mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-20 08:27:15 +00:00
Use PLIST_DIRS. Avoid REINPLACE_CMD. Drop maintainership.
This commit is contained in:
parent
aa899a0f72
commit
b9ae4c82ab
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=106402
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user