Index: head/japanese/eijiro-fpw/pkg-plist =================================================================== --- head/japanese/eijiro-fpw/pkg-plist (revision 366565) +++ head/japanese/eijiro-fpw/pkg-plist (nonexistent) @@ -1,7 +0,0 @@ -share/dict/eijiro-fpw/eijiro/data/honmon -share/dict/eijiro-fpw/catalogs -@dirrm share/dict/eijiro-fpw/eijiro/data -@dirrm share/dict/eijiro-fpw/eijiro -@dirrm share/dict/eijiro-fpw -%%PORTDOCS%%%%DOCSDIR%%/readme.sjis -%%PORTDOCS%%@dirrm %%DOCSDIR%% Property changes on: head/japanese/eijiro-fpw/pkg-plist ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/japanese/eijiro-fpw/Makefile =================================================================== --- head/japanese/eijiro-fpw/Makefile (revision 366565) +++ head/japanese/eijiro-fpw/Makefile (revision 366566) @@ -1,75 +1,79 @@ # Created by: Satoshi Taoka # $FreeBSD$ PORTNAME= eijiro-fpw PORTVERSION= 1.0b -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= japanese MASTER_SITES= http://openlab.ring.gr.jp/edict/fpw/dist/eijiro/ DISTNAME= ${PORTNAME}${PORTVERSION}-src MAINTAINER= ports@FreeBSD.org COMMENT= EIJIRO English - Japanese Dictionary (EPWING V1 format) -EXTRACT_DEPENDS=${LOCALBASE}/share/freepwing/fpwutils.mk:${PORTSDIR}/japanese/freepwing +EXTRACT_DEPENDS=${LOCALBASE}/share/freepwing/fpwutils.mk:${PORTSDIR}/japanese/freepwing \ + lha:${PORTSDIR}/archivers/lha BUILD_DEPENDS= ${LOCALBASE}/libexec/freepwing/catdump:${PORTSDIR}/japanese/freepwing \ ja-p5-Jcode>=0:${PORTSDIR}/japanese/p5-Jcode -MANUAL_PACKAGE_BUILD=Needs data from CDROM +MANUAL_PACKAGE_BUILD= Needs data from CDROM +MAKE_JOBS_UNSAFE= yes + RESTRICTED= The original dictionary is not free -USES= perl5 gmake -MAKE_JOBS_UNSAFE=yes +USES= dos2unix gmake perl5 +DOS2UNIX_FILES= Makefile WRKSRC= ${WRKDIR}/eijiro-fpw${PORTVERSION} +PORTDOCS= readme.sjis DICT_PATH?= /cdrom SRCFILE?= eijiro52.txt +PLIST_FILES= share/dict/eijiro-fpw/eijiro/data/honmon \ + share/dict/eijiro-fpw/catalogs +PLIST_DIRS= share/dict/eijiro-fpw/eijiro/data \ + share/dict/eijiro-fpw/eijiro \ + share/dict/eijiro-fpw + # For eijiro included in a book sold by ALC Inc. # (http://www.alc.co.jp/alcshop/eng/eijiro/) +# Avoid copying uncompressed srcfile, it is > 50Mb -NO_STAGE= yes -.include - -DICT_ARCHIVE!= ${ECHO_CMD} ${DICT_PATH}/eijiro-original/*.exe || ${TRUE} -.if exists(${DICT_ARCHIVE}) -EXTRACT_DEPENDS+= lha:${PORTSDIR}/archivers/lha - -CDROM_PATH:= ${DICT_PATH} -DICT_PATH:= ${WRKDIR} +.if exists(${WRKDIR}/${SRCFILE}) +MAKE_ARGS+= SRCFILE=${WRKDIR}/${SRCFILE} .else -CDROM_PATH= ${NONEXISTENT} -.endif +MAKE_ARGS+= SRCFILE=${DICT_PATH}/${SRCFILE} +.fi -MAKE_ARGS:= SRCFILE=${DICT_PATH}/${SRCFILE} +OPTIONS_DEFINE= DOCS +.include + post-extract: - @if [ -f ${CDROM_PATH}/eijiro-original/*.exe ]; then \ - lha xiw=${WRKDIR} ${CDROM_PATH}/eijiro-original/*.exe '*/${SRCFILE}'; \ + @if [ -f ${DICT_PATH}/eijiro-original/*.exe ]; then \ + lha xiw=${WRKDIR} ${DICT_PATH}/eijiro-original/*.exe '*/${SRCFILE}'; \ elif [ ! -f ${DICT_PATH}/${SRCFILE} ]; then \ ${ECHO} "###################################################"; \ ${ECHO} "I cannot find a file ${DICT_PATH}/${SRCFILE}"; \ ${ECHO} "Specify the Eijiro Dictionary file with the full path"; \ ${ECHO} "and excecute the following command again:"; \ ${ECHO} " make DICT_PATH=${DICT_PATH} SRCFILE=${SRCFILE}"; \ ${ECHO} ""; \ ${ECHO} "Notice: DICT_PATH must be a full path to the file."; \ ${ECHO} "###################################################"; \ ${FALSE}; \ fi ${CP} ${LOCALBASE}/share/freepwing/fpwutils.mk ${WRKSRC} post-build: cd ${WRKSRC}; ${CP} catalogs.sjis catalogs.txt; \ ${SETENV} CATDUMPFLAGS="-e sjis" fpwmake catalogs do-install: - ${MKDIR} ${PREFIX}/share/dict/eijiro-fpw/eijiro/data - ${INSTALL_DATA} ${WRKSRC}/honmon ${PREFIX}/share/dict/eijiro-fpw/eijiro/data - ${INSTALL_DATA} ${WRKSRC}/catalogs ${PREFIX}/share/dict/eijiro-fpw -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} -.for i in readme.sjis - ${INSTALL_DATA} ${WRKSRC}/$i ${DOCSDIR} -.endfor -.endif + ${MKDIR} ${STAGEDIR}${PREFIX}/share/dict/eijiro-fpw/eijiro/data \ + ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/honmon \ + ${STAGEDIR}${PREFIX}/share/dict/eijiro-fpw/eijiro/data + ${INSTALL_DATA} ${WRKSRC}/catalogs \ + ${STAGEDIR}${PREFIX}/share/dict/eijiro-fpw + ${INSTALL_DATA} ${WRKSRC}/readme.sjis ${STAGEDIR}${DOCSDIR} -.include +.include Index: head/japanese/eijiro-fpw/files/patch-aa =================================================================== --- head/japanese/eijiro-fpw/files/patch-aa (revision 366565) +++ head/japanese/eijiro-fpw/files/patch-aa (nonexistent) @@ -1,11 +0,0 @@ ---- Makefile.orig Sun Oct 8 14:40:55 2000 -+++ Makefile Mon Jun 13 11:55:22 2005 -@@ -47,7 +47,7 @@ - DIR = eijiro - - FPWPARSER = eijiro-fpw.pl --FPWPARSERFLAGS = -- --charset=${CHARSET} ${SRCFILE} -+FPWPARSERFLAGS = -c "${CHARSET}" "${SRCFILE}" - - # fpwutils.mk must be located in one of the make include directories or - # you should user -I option. Property changes on: head/japanese/eijiro-fpw/files/patch-aa ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/japanese/eijiro-fpw/files/patch-Makefile =================================================================== --- head/japanese/eijiro-fpw/files/patch-Makefile (nonexistent) +++ head/japanese/eijiro-fpw/files/patch-Makefile (revision 366566) @@ -0,0 +1,11 @@ +--- Makefile.orig Sun Oct 8 14:40:55 2000 ++++ Makefile Mon Jun 13 11:55:22 2005 +@@ -47,7 +47,7 @@ + DIR = eijiro + + FPWPARSER = eijiro-fpw.pl +-FPWPARSERFLAGS = -- --charset=${CHARSET} ${SRCFILE} ++FPWPARSERFLAGS = -c "${CHARSET}" "${SRCFILE}" + + # fpwutils.mk must be located in one of the make include directories or + # you should user -I option. Property changes on: head/japanese/eijiro-fpw/files/patch-Makefile ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property