aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmanuel Haupt <ehaupt@FreeBSD.org>2014-02-27 13:56:33 +0000
committerEmanuel Haupt <ehaupt@FreeBSD.org>2014-02-27 13:56:33 +0000
commita829284cc07033888bf29d6a9d9635b916fa9dfc (patch)
tree8640e1501c673f5157ea80d66f5e3ff455acb044
parent7bc710c5a0c0b6a8c1ab9d2a53ddbc06b12cf726 (diff)
downloadports-a829284cc07033888bf29d6a9d9635b916fa9dfc.tar.gz
ports-a829284cc07033888bf29d6a9d9635b916fa9dfc.zip
Notes
-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