summaryrefslogtreecommitdiffstats
path: root/misc/patanjali
diff options
context:
space:
mode:
authortrevor <trevor@FreeBSD.org>2004-04-07 13:51:58 +0000
committertrevor <trevor@FreeBSD.org>2004-04-07 13:51:58 +0000
commitab1586a024feb74872c649792139f579142330c3 (patch)
tree0bf881f27baa726552b0a45eecf467a6a20a5bf1 /misc/patanjali
parentae2e32fdf76d846160b27d2d2228570fddec9636 (diff)
downloadFreeBSD-ports-ab1586a024feb74872c649792139f579142330c3.zip
FreeBSD-ports-ab1586a024feb74872c649792139f579142330c3.tar.gz
Use PLIST_DIRS. Avoid REINPLACE_CMD. Drop maintainership.
Diffstat (limited to 'misc/patanjali')
-rw-r--r--misc/patanjali/Makefile18
1 files changed, 9 insertions, 9 deletions
diff --git a/misc/patanjali/Makefile b/misc/patanjali/Makefile
index ef3008a..91a6c38 100644
--- a/misc/patanjali/Makefile
+++ b/misc/patanjali/Makefile
@@ -11,28 +11,28 @@ CATEGORIES= misc
MASTER_SITES= http://www.linuxlabs.com/software/download/
EXTRACT_SUFX= .src.tar.gz
-MAINTAINER= trevor@FreeBSD.org
+MAINTAINER= ports@FreeBSD.org
COMMENT= Displays a verse from Yoga Sutras of Patanjali
-USE_REINPLACE= yes
-
PLIST= ${WRKDIR}/pkg-plist
+PLIST_DIRS= share/patanjali
+SUTRAS= patanjali-sutras-english.txt
do-patch:
- @${REINPLACE_CMD} -e 's:internet:Internet:g' \
- ${WRKSRC}/patanjali-sutras-english.txt
+ @${MV} ${WRKSRC}/${SUTRAS} ${WRKSRC}/${SUTRAS}.orig
+ @${SED} -e 's:internet:Internet:g' \
+ < ${WRKSRC}/${SUTRAS}.orig > ${WRKSRC}/${SUTRAS}
pre-build:
${RM} -f ${WRKSRC}/patanjali
do-build:
- ${CC} -DDPPATHNAME=\"${DATADIR}/patanjali-sutras-english.txt\" \
+ ${CC} -DDPPATHNAME=\"${DATADIR}/${SUTRAS}\" \
-DVERSION=\"1.0\" ${WRKSRC}/patanjali.c -o ${WRKSRC}/patanjali
pre-install:
${ECHO_CMD} bin/patanjali > ${PLIST}
- ${ECHO_CMD} share/patanjali/patanjali-sutras-english.txt >> ${PLIST}
- ${ECHO_CMD} @dirrm share/patanjali/ >> ${PLIST}
+ ${ECHO_CMD} share/patanjali/${SUTRAS} >> ${PLIST}
.if !defined(NOPORTDOCS)
${ECHO_CMD} share/doc/patanjali/display-sutras-patanjali-0.99.lsm >> ${PLIST}
${ECHO_CMD} @dirrm share/doc/patanjali/ >> ${PLIST}
@@ -40,7 +40,7 @@ pre-install:
do-install:
${MKDIR} ${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/patanjali-sutras-english.txt ${DATADIR}/
+ ${INSTALL_DATA} ${WRKSRC}/${SUTRAS} ${DATADIR}/
${INSTALL_PROGRAM} ${WRKSRC}/patanjali ${PREFIX}/bin
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
OpenPOWER on IntegriCloud