diff options
author | Norikatsu Shigemura <nork@FreeBSD.org> | 2003-07-16 11:54:15 +0000 |
---|---|---|
committer | Norikatsu Shigemura <nork@FreeBSD.org> | 2003-07-16 11:54:15 +0000 |
commit | e7f9bbdc4a0ee76c4fb3e7b525dad098a4fcbad4 (patch) | |
tree | 8641840853968ea709fdaa641bccf6410187aa4c /japanese/mendexk-euc | |
parent | c2571c3a2b7954b8c67224c572175f605f4aaa90 (diff) | |
download | ports-e7f9bbdc4a0ee76c4fb3e7b525dad098a4fcbad4.tar.gz ports-e7f9bbdc4a0ee76c4fb3e7b525dad098a4fcbad4.zip |
Merge & Syncronaize mendexk-*. mendexk-sjis is now a slave
port of mendexk-euc.
PR: ports-jp/13921
Submitted by: SHIOZAKI Takehiko <st@be.to>
Approved by: maintainer no response
Notes
Notes:
svn path=/head/; revision=84986
Diffstat (limited to 'japanese/mendexk-euc')
-rw-r--r-- | japanese/mendexk-euc/Makefile | 21 | ||||
-rw-r--r-- | japanese/mendexk-euc/pkg-descr | 2 | ||||
-rw-r--r-- | japanese/mendexk-euc/pkg-plist | 4 |
3 files changed, 19 insertions, 8 deletions
diff --git a/japanese/mendexk-euc/Makefile b/japanese/mendexk-euc/Makefile index bf04cf7decdd..b5f5751a0659 100644 --- a/japanese/mendexk-euc/Makefile +++ b/japanese/mendexk-euc/Makefile @@ -9,13 +9,18 @@ PORTNAME= mendexk PORTVERSION= 2.5 CATEGORIES= japanese print MASTER_SITES= ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/mendex/ -PKGNAMESUFFIX= -euc +PKGNAMESUFFIX= -${KANJICODE} DISTNAME= ${PORTNAME}${PORTVERSION} MAINTAINER= watanabe@zlab.phys.nagoya-u.ac.jp -COMMENT= Index formatter for Japanese (EUC) +COMMENT= Index formatter for Japanese + +KANJICODE?= euc EXTRACT_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/japanese/ptex-base:configure +.if ${KANJICODE} == "sjis" +EXTRACT_DEPENDS+= nkf:${PORTSDIR}/japanese/nkf +.endif USE_GMAKE= yes DIST_SUBDIR= teTeX @@ -23,6 +28,7 @@ WRKSRC= ${WRKDIRPREFIX}${.CURDIR}/../ptex-base/work/tetex-src-${TETEX_VERSION}/t ALL_TARGET= mendex TETEX_VERSION= 2.0.2 +KANJI_FILES= kana.h ktable.h MANLANG= ja MAN1= mendex.1 @@ -30,6 +36,13 @@ MAN1= mendex.1 post-extract: @${RM} -rf ${WRKSRC} @${MV} ${WRKDIR}/${DISTNAME} ${WRKSRC} +.if ${KANJICODE} == "sjis" + @( cd ${WRKSRC} ; \ + for i in ${KANJI_FILES}; do \ + ${MV} $$i $$i.orig ; \ + nkf -s $$i.orig > $$i ; \ + done ) +.endif pre-build: @(cd ${WRKSRC}/../kpathsea; ${MAKE}) @@ -39,8 +52,8 @@ do-install: @${MKDIR} ${PREFIX}/man/${MANLANG}/man1 @${INSTALL_MAN} ${WRKSRC}/mendex.1 ${PREFIX}/man/${MANLANG}/man1 .if !defined(NOPORTDOCS) - @${MKDIR} ${PREFIX}/share/doc/mendex - @${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/mendex + @${MKDIR} ${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} .endif pre-clean: diff --git a/japanese/mendexk-euc/pkg-descr b/japanese/mendexk-euc/pkg-descr index 33bd400e5190..1d725a95fc4c 100644 --- a/japanese/mendexk-euc/pkg-descr +++ b/japanese/mendexk-euc/pkg-descr @@ -1,7 +1,5 @@ The program mendex is a index formatter for Japanese, has the compatibility with makeindex. -The mendex installed using this package supports EUC code. - - Makoto WATANABE watanabe@zlab.phys.nagoya-u.ac.jp diff --git a/japanese/mendexk-euc/pkg-plist b/japanese/mendexk-euc/pkg-plist index c3f4a0811320..b9e27663b8af 100644 --- a/japanese/mendexk-euc/pkg-plist +++ b/japanese/mendexk-euc/pkg-plist @@ -1,3 +1,3 @@ bin/mendex -share/doc/mendex/README -@dirrm share/doc/mendex +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%@dirrm %%DOCSDIR%% |