aboutsummaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2014-01-21 07:35:15 +0000
committerMathieu Arnold <mat@FreeBSD.org>2014-01-21 07:35:15 +0000
commit0c3af1c5af46ba1d388397171216ab580fcaceb3 (patch)
treecfec26955ab5b6a5527c600dac1b2f055c806a03 /textproc
parent4105b7b1e896b3d676e8d824b041ef95a807179c (diff)
downloadports-0c3af1c5af46ba1d388397171216ab580fcaceb3.tar.gz
ports-0c3af1c5af46ba1d388397171216ab580fcaceb3.zip
Convert to staging.
Sponsored by: Absolight
Notes
Notes: svn path=/head/; revision=340563
Diffstat (limited to 'textproc')
-rw-r--r--textproc/grap/Makefile27
-rw-r--r--textproc/grap/pkg-plist19
2 files changed, 12 insertions, 34 deletions
diff --git a/textproc/grap/Makefile b/textproc/grap/Makefile
index 29d6808cfdd6..6e58b244844f 100644
--- a/textproc/grap/Makefile
+++ b/textproc/grap/Makefile
@@ -12,32 +12,27 @@ COMMENT= An implementation of Kernigan & Bentley's grap language
GNU_CONFIGURE= yes
CONFIGURE_ARGS=--with-freebsd-ports
+OPTIONS_DEFINE= DOCS EXAMPLES
+
.if defined(.PARSEDIR)
USE_GMAKE= yes
.endif
CONFLICTS_INSTALL=heirloom-doctools-[0-9]*
-MAN1= grap.1
PORTDOCS= README CHANGES COPYRIGHT grap.man
-
-NO_STAGE= yes
-.include <bsd.port.options.mk>
+PORTEXAMPLES= *
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.doc \
- ${MAN1PREFIX}/man/man1/${PORTNAME}.1
- ${MKDIR} ${DATADIR}
+ ${STAGEDIR}${MAN1PREFIX}/man/man1/${PORTNAME}.1
+ @${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/grap.defines ${WRKSRC}/grap.tex.defines \
- ${DATADIR}
-.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
-. for d in ${PORTDOCS}
- ${INSTALL_DATA} ${WRKSRC}/$d ${DOCSDIR}
-. endfor
-.endif
- ${MKDIR} ${EXAMPLESDIR}
- (cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
+ ${STAGEDIR}${DATADIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ (cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>
diff --git a/textproc/grap/pkg-plist b/textproc/grap/pkg-plist
index 163f670814da..b5e6ccbc6457 100644
--- a/textproc/grap/pkg-plist
+++ b/textproc/grap/pkg-plist
@@ -1,22 +1,5 @@
bin/grap
+man/man1/grap.1.gz
%%DATADIR%%/grap.defines
%%DATADIR%%/grap.tex.defines
-%%EXAMPLESDIR%%/400mpairs.d
-%%EXAMPLESDIR%%/400mtimes.d
-%%EXAMPLESDIR%%/400wpairs.d
-%%EXAMPLESDIR%%/Makefile
-%%EXAMPLESDIR%%/army.d
-%%EXAMPLESDIR%%/boyhts.d
-%%EXAMPLESDIR%%/example.ms
-%%EXAMPLESDIR%%/internet.d
-%%EXAMPLESDIR%%/prof2.d
-%%EXAMPLESDIR%%/states.d
-%%EXAMPLESDIR%%/states2.d
-%%EXAMPLESDIR%%/states3.d
-%%EXAMPLESDIR%%/usapop.d
-%%EXAMPLESDIR%%/cy_fatal.d
-%%EXAMPLESDIR%%/result.SQ_MESH.Fail1.S3.R0.Global.Random1500.succ.result
-%%EXAMPLESDIR%%/result.SQ_MESH.Fail1.S3.R0.Local.Random1500.succ.result
-%%EXAMPLESDIR%%/result.SQ_MESH.Fail1.S3.R0.Hybrid.Random1500.succ.result
-@dirrm %%EXAMPLESDIR%%
@dirrm %%DATADIR%%