diff options
author | bapt <bapt@FreeBSD.org> | 2013-12-11 07:01:07 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2013-12-11 07:01:07 +0800 |
commit | d8d4300fa874b439bbed0eb58d09bf012d4ae18f (patch) | |
tree | b6009f216eb568419176ac8329337a84c48190bb /devel | |
parent | fef0238490a1f56b9db9305fd424d44d55b297f3 (diff) | |
download | freebsd-ports-gnome-d8d4300fa874b439bbed0eb58d09bf012d4ae18f.tar.gz freebsd-ports-gnome-d8d4300fa874b439bbed0eb58d09bf012d4ae18f.tar.zst freebsd-ports-gnome-d8d4300fa874b439bbed0eb58d09bf012d4ae18f.zip |
Support stage
Respect EXAMPLES
Diffstat (limited to 'devel')
-rw-r--r-- | devel/devtodo/Makefile | 14 | ||||
-rw-r--r-- | devel/devtodo/pkg-plist | 17 |
2 files changed, 17 insertions, 14 deletions
diff --git a/devel/devtodo/Makefile b/devel/devtodo/Makefile index d83cbf4c83f5..079a2037e904 100644 --- a/devel/devtodo/Makefile +++ b/devel/devtodo/Makefile @@ -14,25 +14,21 @@ CONFLICTS= tdl-[0-9]* todo-[0-9]* GNU_CONFIGURE= yes +OPTIONS_DEFINE= EXAMPLES + # Note: without this define util/regex.c doesn't compile due to redeclaration # of malloc and realloc functions. Adding this define was the simplest # (although not elegant) solution. CFLAGS+= -DSTDC_HEADERS -MAN1= devtodo.1 -MLINKS= devtodo.1 tda.1 devtodo.1 tdd.1 devtodo.1 tde.1 devtodo.1 tdl.1 \ - devtodo.1 tdr.1 devtodo.1 todo.1 -MANCOMPRESSED= no - -NO_STAGE= yes post-patch: @${REINPLACE_CMD} -e 's/^\ttest -f.*todorc.*\n//' ${WRKSRC}/doc/Makefile.in post-install: - @${MKDIR} ${EXAMPLESDIR} + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} .for file in scripts.sh scripts.tcsh todorc.example - ${INSTALL_DATA} ${WRKSRC}/doc/${file} ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/${file} ${STAGEDIR}${EXAMPLESDIR} .endfor - ${INSTALL_DATA} ${WRKSRC}/doc/todorc.example ${PREFIX}/etc/todorc.sample + ${INSTALL_DATA} ${WRKSRC}/doc/todorc.example ${STAGEDIR}${PREFIX}/etc/todorc.sample .include <bsd.port.mk> diff --git a/devel/devtodo/pkg-plist b/devel/devtodo/pkg-plist index d0b2f506b481..b00a2d77d934 100644 --- a/devel/devtodo/pkg-plist +++ b/devel/devtodo/pkg-plist @@ -5,9 +5,16 @@ bin/tde bin/tdl bin/tdr bin/todo -@unexec if cmp -s %D/etc/todorc %D/etc/todorc.sample; then rm -f %D/etc/todorc; fi etc/todorc.sample -%%EXAMPLESDIR%%/scripts.sh -%%EXAMPLESDIR%%/scripts.tcsh -%%EXAMPLESDIR%%/todorc.example -@dirrm %%EXAMPLESDIR%% +@unexec if cmp -s %D/etc/todorc %D/etc/todorc.sample; then rm -f %D/etc/todorc; fi +man/man1/devtodo.1.gz +man/man1/tda.1.gz +man/man1/tdd.1.gz +man/man1/tde.1.gz +man/man1/tdl.1.gz +man/man1/tdr.1.gz +man/man1/todo.1.gz +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts.sh +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scripts.tcsh +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/todorc.example +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% |