aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/edict-utf-8
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2014-08-25 16:13:44 +0800
committervanilla <vanilla@FreeBSD.org>2014-08-25 16:13:44 +0800
commitc67f289e196459421cafac6a6ef8e63e1e81ac90 (patch)
treee8c79eeb17128061ea4c78fd7e278d3db17dcf3c /japanese/edict-utf-8
parent8f36bedfb8ad05b51ac185f5c7396689deab354f (diff)
downloadfreebsd-ports-gnome-c67f289e196459421cafac6a6ef8e63e1e81ac90.tar.gz
freebsd-ports-gnome-c67f289e196459421cafac6a6ef8e63e1e81ac90.tar.zst
freebsd-ports-gnome-c67f289e196459421cafac6a6ef8e63e1e81ac90.zip
Stagify.
Diffstat (limited to 'japanese/edict-utf-8')
-rw-r--r--japanese/edict-utf-8/Makefile20
-rw-r--r--japanese/edict-utf-8/pkg-plist26
2 files changed, 30 insertions, 16 deletions
diff --git a/japanese/edict-utf-8/Makefile b/japanese/edict-utf-8/Makefile
index 0f38d72c0735..a5d78fd4acf9 100644
--- a/japanese/edict-utf-8/Makefile
+++ b/japanese/edict-utf-8/Makefile
@@ -14,15 +14,12 @@ EXTRACT_DEPENDS= ${UNZIP_CMD}:${PORTSDIR}/archivers/unzip
USES= iconv
CONVERT_CMD= ${ICONV_CMD} -c -f EUC-JP -t UTF-8
-
DIST_SUBDIR= ${PORTNAME}
-
DICTFILES= edict.gz edicth compdic.gz jddict.v02.gz \
j_places.gz ediclsd3.zip kanjidic.gz kanjd212.gz \
lawgledt.zip lingdic.zip geodic.gz pandpdic.zip \
aviation.zip findic.zip mktdic.zip compverb.gz \
4jwords.gz concrete.zip enamdict.gz
-
NODOCFILES= edict_doc.txt edict_doc.html edicth.doc \
enamdict_doc.txt enamdict_doc.html jddict.doc \
j_places.inf kanjidic.doc kanjd212.doc ediclsd3.rme \
@@ -30,17 +27,12 @@ NODOCFILES= edict_doc.txt edict_doc.html edicth.doc \
findic.doc mktdic.doc compverb.doc 4jwords.doc \
concrete.doc ${DICTFILES:S/zip/jdx/}
-PLIST_FILES= ${DICTFILES:S|^|%%DATADIR%%/|:S|.gz||:S|.zip||}
-PLIST_DIRS= %%DATADIR%%
-
# Where to install the data files
DATADIR= ${PREFIX}/share/dict/edict-utf-8
+PLIST_SUB= OWNER="${SHAREOWN}" GROUP="${SHAREGRP}" MODE="${SHAREMODE}"
NO_WRKSUBDIR= yes
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
-
do-extract:
@${RM} -rf ${WRKDIR}
@${MKDIR} ${WRKDIR}
@@ -71,14 +63,10 @@ do-build:
done
do-install:
- @if [ ! -d ${DATADIR} ] ; \
- then \
- ${MKDIR} ${DATADIR} ; \
- fi
+ @${MKDIR} ${STAGEDIR}${DATADIR}
@for file in `cat ${WRKSRC}/filelist`; do \
${ECHO} "Installing $$file"; \
- ${INSTALL} -o ${SHAREOWN} -g ${SHAREGRP} -m ${SHAREMODE} \
- ${WRKSRC}/$$file ${DATADIR}/$$file; \
+ ${INSTALL} ${WRKSRC}/$$file ${STAGEDIR}${DATADIR}/$$file; \
done
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/japanese/edict-utf-8/pkg-plist b/japanese/edict-utf-8/pkg-plist
new file mode 100644
index 000000000000..b5842c8b3d2d
--- /dev/null
+++ b/japanese/edict-utf-8/pkg-plist
@@ -0,0 +1,26 @@
+@owner %%OWNER%%
+@group %%GROUP%%
+@mode %%MODE%%
+%%DATADIR%%/4jwords
+%%DATADIR%%/aviation
+%%DATADIR%%/compdic
+%%DATADIR%%/compverb
+%%DATADIR%%/concrete
+%%DATADIR%%/ediclsd3
+%%DATADIR%%/edict
+%%DATADIR%%/edicth
+%%DATADIR%%/enamdict
+%%DATADIR%%/findic
+%%DATADIR%%/geodic
+%%DATADIR%%/j_places
+%%DATADIR%%/jddict.v02
+%%DATADIR%%/kanjd212
+%%DATADIR%%/kanjidic
+%%DATADIR%%/lawgledt
+%%DATADIR%%/lingdic
+%%DATADIR%%/mktdic
+%%DATADIR%%/pandpdic
+@mode
+@group
+@owner
+@dirrm %%DATADIR%%