upmendex: unbundle from texlive_core

The category is again an estimation, there is no separate package in Gentoo.
This commit is contained in:
Joachim Mairböck
2024-08-27 16:50:14 +02:00
parent d31104a73e
commit 20b0248347
2 changed files with 92 additions and 2 deletions

View File

@@ -413,7 +413,6 @@ PROVIDES="
cmd:updvitype
cmd:uplatex
cmd:uplatex_dev
cmd:upmendex
cmd:upmpost
cmd:uppltotf
cmd:uptex
@@ -628,7 +627,6 @@ defineDebugInfoPackage texlive_core$secondaryArchSuffix \
$prefix/bin/twill \
$prefix/bin/upbibtex \
$prefix/bin/updvitype \
$prefix/bin/upmendex \
$prefix/bin/upmpost \
$prefix/bin/uppltotf \
$prefix/bin/uptex \
@@ -823,6 +821,7 @@ BUILD()
--disable-lcdf-typetools \
--disable-musixtnt \
--disable-psutils \
--disable-upmendex \
--disable-t1utils \
--build=$HOST --host=$HOST

View File

@@ -0,0 +1,91 @@
SUMMARY="Multilingual index processor"
DESCRIPTION="upmendex is a multilingual index processor with following features:
* Mostly compatible with makeindex and upper compatible with mendex, based on mendex version \
2.6f by ASCII media works.
* Unicode for internal process and support UTF-8 encoding for input/output. Work with upLaTeX, \
XeLaTeX and luaLaTeX.
* Support Latin (including non-English), Greek, Cyrillic, Korean Hangul and Chinese Han (Hanzi \
ideographs) scripts as well as Japanese Kana.
* Support Devanagari, Thai, Arabic and Hebrew scripts (experimental).
* Support four kinds of sort orders (Pinyin, Radical-Stroke, Stroke and Zhuyin) for Chinese Han \
scripts (Hanzi ideographs).
* Apply International Components for Unicode (ICU) for sorting process."
HOMEPAGE="https://github.com/t-tk/upmendex-package"
COPYRIGHT="1995 ASCII Corporation
2009 ASCII MEDIA WORKS
2015-2023 TANAKA Takuji"
LICENSE="BSD (3-clause)"
REVISION="1"
SOURCE_URI="https://github.com/t-tk/upmendex-package/archive/refs/tags/v$portVersion.tar.gz"
CHECKSUM_SHA256="a61dcff2311209600dd756de5117967faa8b7781bfa7b176aa6066de75d7c57f"
SOURCE_DIR="upmendex-package-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
upmendex$secondaryArchSuffix = $portVersion
cmd:upmendex = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libicudata$secondaryArchSuffix
lib:libicui18n$secondaryArchSuffix
lib:libicuio$secondaryArchSuffix
lib:libicuuc$secondaryArchSuffix
lib:libkpathsea$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libicudata$secondaryArchSuffix >= 74
devel:libicui18n$secondaryArchSuffix >= 74
devel:libicuio$secondaryArchSuffix >= 74
devel:libicuuc$secondaryArchSuffix >= 74
devel:libkpathsea$secondaryArchSuffix
"
BUILD_PREREQUIRES="
# package requirements instead of commands because only data files are needed
autoconf
automake
libtool$secondaryArchSuffix == 2.4.7 # ltmain.sh is picky about its version
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
defineDebugInfoPackage upmendex$secondaryArchSuffix \
$prefix/bin/upmendex
BUILD()
{
# copy missing build-aux files from autotools
# we can't use autoreconf here because the m4 macros from texlive are also missing
mkdir -p ../build-aux
cp $(finddir B_SYSTEM_DATA_DIRECTORY)/autoconf/build-aux/{config.guess,config.sub,install-sh} \
../build-aux
cp $(finddir B_SYSTEM_DATA_DIRECTORY)/automake-*/{ar-lib,compile,depcomp,missing} ../build-aux
cp $(finddir B_SYSTEM_DATA_DIRECTORY)/libtool/build-aux/ltmain.sh ../build-aux
cd source
runConfigure --omit-dirs "binDir" ./configure \
--bindir=$prefix/bin \
--with-system-kpathsea \
--with-system-icu
make $jobArgs
}
INSTALL()
{
cd source
make install
}
TEST()
{
cp $(finddir B_SYSTEM_DATA_DIRECTORY)/automake-*/test-driver ../build-aux
cd source
make check
}