aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2014-02-27 21:56:33 +0800
committerehaupt <ehaupt@FreeBSD.org>2014-02-27 21:56:33 +0800
commit2e36211a4e3887de36c29a5372e1389216746923 (patch)
tree8640e1501c673f5157ea80d66f5e3ff455acb044 /databases
parentcd18941571a02d5393699c27c06fde36584ce40f (diff)
downloadfreebsd-ports-gnome-2e36211a4e3887de36c29a5372e1389216746923.tar.gz
freebsd-ports-gnome-2e36211a4e3887de36c29a5372e1389216746923.tar.zst
freebsd-ports-gnome-2e36211a4e3887de36c29a5372e1389216746923.zip
- Support staging
- Use shebangfix - Define EXAMPLES option - Define DOCS option
Diffstat (limited to 'databases')
-rw-r--r--databases/wfb2sql/Makefile33
-rw-r--r--databases/wfb2sql/pkg-plist1
2 files changed, 14 insertions, 20 deletions
diff --git a/databases/wfb2sql/Makefile b/databases/wfb2sql/Makefile
index 7208d94f18e5..16be8f318b81 100644
--- a/databases/wfb2sql/Makefile
+++ b/databases/wfb2sql/Makefile
@@ -13,26 +13,21 @@ COMMENT= CIA World Fact Book to SQL Conversion Utility
BUILD_DEPENDS= p5-Config-General>=0:${PORTSDIR}/devel/p5-Config-General
RUN_DEPENDS:= ${BUILD_DEPENDS}
-USES= perl5
-NO_BUILD= YES
+USES= perl5 shebangfix
+NO_BUILD= yes
+
+OPTION_DEFINE= DOCS EXAMPLES
+
+PLIST_FILES= bin/wfb2sql
+PORTDOCS= wfb2sql.html
+PORTEXAMPLES= wfb2sqlrc
+SHEBANG_FILES= wfb2sql
-NO_STAGE= yes
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/wfb2sql ${PREFIX}/bin/wfb2sql
- @${ECHO} "bin/wfb2sql" >> ${TMPPLIST}
-
- ${MKDIR} ${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/wfb2sqlrc ${EXAMPLESDIR}/wfb2sqlrc
- @${ECHO} "share/examples/${PORTNAME}/wfb2sqlrc" >> ${TMPPLIST}
- @${ECHO} "@dirrm share/examples/${PORTNAME}" >> ${TMPPLIST}
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/doc/wfb2sql.html ${DOCSDIR}
- @${ECHO} "share/doc/${PORTNAME}/wfb2sql.html" >> ${TMPPLIST}
- @${ECHO} "@dirrm share/doc/${PORTNAME}/" >> ${TMPPLIST}
-.endif
-
-post-install:
- @${CAT} ${PKGMESSAGE}
+ ${INSTALL_SCRIPT} ${WRKSRC}/wfb2sql ${STAGEDIR}${PREFIX}/bin
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/wfb2sqlrc ${STAGEDIR}${EXAMPLESDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/wfb2sql.html ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/databases/wfb2sql/pkg-plist b/databases/wfb2sql/pkg-plist
deleted file mode 100644
index a164734b562c..000000000000
--- a/databases/wfb2sql/pkg-plist
+++ /dev/null
@@ -1 +0,0 @@
-@comment Automatically generated plist