aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRusmir Dusko <nemysis@FreeBSD.org>2014-04-25 07:15:28 +0000
committerRusmir Dusko <nemysis@FreeBSD.org>2014-04-25 07:15:28 +0000
commitc9f7cc0b968008d38dc72a7246908ea1322c80cf (patch)
treeaeff1cca704a5c1fc57ddff6ebc9ef4f78404573
parent463cabc40901e29a11c28b4fed593bba801cf626 (diff)
downloadports-c9f7cc0b968008d38dc72a7246908ea1322c80cf.tar.gz
ports-c9f7cc0b968008d38dc72a7246908ea1322c80cf.zip
Notes
-rw-r--r--print/detex/Makefile25
1 files changed, 18 insertions, 7 deletions
diff --git a/print/detex/Makefile b/print/detex/Makefile
index 9b6a52a2a1cd..66a9136cd941 100644
--- a/print/detex/Makefile
+++ b/print/detex/Makefile
@@ -3,6 +3,7 @@
PORTNAME= detex
PORTVERSION= 2.8
+PORTREVISIO= 1
CATEGORIES= print
MASTER_SITES= http://www.cs.purdue.edu/homes/trinkle/detex/
EXTRACT_SUFX= .tar
@@ -10,15 +11,25 @@ EXTRACT_SUFX= .tar
MAINTAINER= ports@FreeBSD.org
COMMENT= Strips TeX/LaTeX codes from a file
-DEPRECATED= Unmaintained since 2002
-EXPIRATION_DATE= 2014-04-17
+LICENSE= MIT
+
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS} -DNO_MALLOC_DECL -DHAVE_STRING_H"
-MAN1= detex.1
-PLIST_FILES= bin/detex
-NO_STAGE= yes
+PLIST_FILES= bin/${PORTNAME} man/man1/${PORTNAME}.1.gz
+
+PORTDOCS= README
+OPTIONS_DEFINE= DOCS
+
+post-extract:
+ @(cd ${WRKSRC} && ${MV} ${PORTNAME}.1l ${PORTNAME}.1)
+
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/detex ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/${MAN1}l ${MANPREFIX}/man/man1/${MAN1}
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
+
+ ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 \
+ ${STAGEDIR}${MAN1PREFIX}/man/man1/
+
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>