aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2015-12-16 10:02:16 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2015-12-16 10:02:16 +0800
commit9abdb670f2660be4722f68239b6400ccf1898903 (patch)
treeb6a74cd8707b0fa2b24721984a14ed575ea6276f /devel
parent41577dcdda06ca94e2b60bdadac15c578b80a83e (diff)
downloadfreebsd-ports-gnome-9abdb670f2660be4722f68239b6400ccf1898903.tar.gz
freebsd-ports-gnome-9abdb670f2660be4722f68239b6400ccf1898903.tar.zst
freebsd-ports-gnome-9abdb670f2660be4722f68239b6400ccf1898903.zip
- Switch to options helpers
- Simplify installation - Regenerate patches with `make makepatch`
Diffstat (limited to 'devel')
-rw-r--r--devel/cccc/Makefile8
-rw-r--r--devel/cccc/files/patch-cccc__cccc_tbl.cc6
2 files changed, 9 insertions, 5 deletions
diff --git a/devel/cccc/Makefile b/devel/cccc/Makefile
index 68e8a05a1f05..777cc72edb16 100644
--- a/devel/cccc/Makefile
+++ b/devel/cccc/Makefile
@@ -20,6 +20,8 @@ MAKE_JOBS_UNSAFE= yes
PORTDOCS= readme.txt changes.txt
PLIST_FILES= bin/cccc
+OPTIONS_DEFINE= DOCS
+
post-patch:
@${REINPLACE_CMD} -e \
'/^all/s|install|| ; \
@@ -38,10 +40,12 @@ post-patch:
.endfor
do-install:
- (cd ${WRKSRC}/cccc && ${INSTALL_PROGRAM} cccc ${STAGEDIR}${PREFIX}/bin)
+ ${INSTALL_PROGRAM} ${WRKSRC}/cccc/cccc ${STAGEDIR}${PREFIX}/bin
+
+do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${PORTDOCS}
- (cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR})
+ ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>
diff --git a/devel/cccc/files/patch-cccc__cccc_tbl.cc b/devel/cccc/files/patch-cccc__cccc_tbl.cc
index 3de16003a605..4520ecbe61aa 100644
--- a/devel/cccc/files/patch-cccc__cccc_tbl.cc
+++ b/devel/cccc/files/patch-cccc__cccc_tbl.cc
@@ -1,6 +1,6 @@
---- ./cccc/cccc_tbl.cc.orig 2011-07-01 03:42:55.000000000 +0200
-+++ ./cccc/cccc_tbl.cc 2011-07-01 03:43:07.000000000 +0200
-@@ -96,7 +96,7 @@
+--- cccc/cccc_tbl.cc.orig 2006-01-05 16:05:30 UTC
++++ cccc/cccc_tbl.cc
+@@ -96,7 +96,7 @@ bool CCCC_Table<T>::remove(T* old_item_p
typename map_t::iterator value_iterator=map_t::find(old_item_ptr->key());
if(value_iterator!=map_t::end())
{