aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2006-04-27 01:52:15 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2006-04-27 01:52:15 +0000
commit220e8ece45290a8e222629a8a84877fd2ece993b (patch)
treee335c428c55b352c716e2396c12cb7afc4478b8a
parentecca9860e12c2cf1c79b4c50c0990ab6f5d7571d (diff)
downloadports-220e8ece45290a8e222629a8a84877fd2ece993b.tar.gz
ports-220e8ece45290a8e222629a8a84877fd2ece993b.zip
Notes
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/google-ctemplate/Makefile40
-rw-r--r--textproc/google-ctemplate/distinfo3
-rw-r--r--textproc/google-ctemplate/files/patch-ltmain.sh15
-rw-r--r--textproc/google-ctemplate/files/patch-src-template.cc11
-rw-r--r--textproc/google-ctemplate/files/patch-src-template_dictionary.cc11
-rw-r--r--textproc/google-ctemplate/files/patch-src-tests-template_regtest.cc11
-rw-r--r--textproc/google-ctemplate/pkg-descr5
-rw-r--r--textproc/google-ctemplate/pkg-plist14
9 files changed, 111 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index b08909469c17..19eacb765062 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -144,6 +144,7 @@
SUBDIR += gnome-translate
SUBDIR += gnomedocutils
SUBDIR += gnomespell
+ SUBDIR += google-ctemplate
SUBDIR += gpp
SUBDIR += grap
SUBDIR += gsed
diff --git a/textproc/google-ctemplate/Makefile b/textproc/google-ctemplate/Makefile
new file mode 100644
index 000000000000..1ff24b037adf
--- /dev/null
+++ b/textproc/google-ctemplate/Makefile
@@ -0,0 +1,40 @@
+# ex:ts=8
+# Ports collection makefile for: google-ctemplate
+# Date created: Apr 26, 2006
+# Whom: ijliao
+#
+# $FreeBSD$
+#
+
+PORTNAME= google-ctemplate
+PORTVERSION= 0.1
+CATEGORIES= textproc
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= goog-ctemplate
+DISTNAME= ctemplate-${PORTVERSION}
+
+MAINTAINER= clsung@FreeBSD.org
+COMMENT= A simple but powerful template language for C++
+
+GNU_CONFIGURE= yes
+INSTALLS_SHLIB= yes
+
+.if !defined(NOPORTDOCS)
+PORTDOCS= *
+.endif
+
+post-patch:
+.if !defined(NOPORTDOCS)
+ @${REINPLACE_CMD} -e \
+ 's|$$(prefix)/share/doc/$$(PACKAGE)-$$(VERSION)|${DOCSDIR}|' \
+ ${WRKSRC}/Makefile.in
+.else
+ @${REINPLACE_CMD} -e \
+ '/install-data-am/ s|install-dist_docDATA||' \
+ ${WRKSRC}/Makefile.in
+.endif
+
+tests: build
+ @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} check)
+
+.include <bsd.port.mk>
diff --git a/textproc/google-ctemplate/distinfo b/textproc/google-ctemplate/distinfo
new file mode 100644
index 000000000000..fe6653043177
--- /dev/null
+++ b/textproc/google-ctemplate/distinfo
@@ -0,0 +1,3 @@
+MD5 (ctemplate-0.1.tar.gz) = eed8cce6ebe42480756b9db8fea17a74
+SHA256 (ctemplate-0.1.tar.gz) = 4ff1ed3311ea464cce6c3a3c069091707ced7d4fdbcbb8335279da7ccfdc9b5b
+SIZE (ctemplate-0.1.tar.gz) = 440047
diff --git a/textproc/google-ctemplate/files/patch-ltmain.sh b/textproc/google-ctemplate/files/patch-ltmain.sh
new file mode 100644
index 000000000000..c48a342df6f2
--- /dev/null
+++ b/textproc/google-ctemplate/files/patch-ltmain.sh
@@ -0,0 +1,15 @@
+--- ltmain.sh.orig Wed Apr 26 15:39:55 2006
++++ ltmain.sh Wed Apr 26 15:40:11 2006
+@@ -5551,10 +5551,12 @@
+ fi
+
+ # Install the pseudo-library for information purposes.
++ if /usr/bin/false ; then
+ name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
+ instname="$dir/$name"i
+ $show "$install_prog $instname $destdir/$name"
+ $run eval "$install_prog $instname $destdir/$name" || exit $?
++ fi
+
+ # Maybe install the static library, too.
+ test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
diff --git a/textproc/google-ctemplate/files/patch-src-template.cc b/textproc/google-ctemplate/files/patch-src-template.cc
new file mode 100644
index 000000000000..d5651bc97159
--- /dev/null
+++ b/textproc/google-ctemplate/files/patch-src-template.cc
@@ -0,0 +1,11 @@
+--- src/template.cc.orig Mon Apr 24 22:43:36 2006
++++ src/template.cc Wed Apr 26 15:13:22 2006
+@@ -35,7 +35,7 @@
+
+ // Needed for pthread_rwlock_*. If it causes problems, you could take
+ // it out, but then you'd have to unset HAVE_RWLOCK (at least on linux).
+-#define _XOPEN_SOURCE 500 // needed to get the rwlock calls
++//#define _XOPEN_SOURCE 500 // needed to get the rwlock calls
+
+ #include <assert.h>
+ #include <stdlib.h>
diff --git a/textproc/google-ctemplate/files/patch-src-template_dictionary.cc b/textproc/google-ctemplate/files/patch-src-template_dictionary.cc
new file mode 100644
index 000000000000..4c98402e243b
--- /dev/null
+++ b/textproc/google-ctemplate/files/patch-src-template_dictionary.cc
@@ -0,0 +1,11 @@
+--- src/template_dictionary.cc.orig Wed Apr 26 15:14:17 2006
++++ src/template_dictionary.cc Wed Apr 26 15:14:26 2006
+@@ -36,7 +36,7 @@
+
+ // Needed for pthread_rwlock_*. If it causes problems, you could take
+ // it out, but then you'd have to unset HAVE_RWLOCK (at least on linux).
+-#define _XOPEN_SOURCE 500 // needed to get the rwlock calls
++//#define _XOPEN_SOURCE 500 // needed to get the rwlock calls
+
+ #include <assert.h>
+ #include <stdlib.h>
diff --git a/textproc/google-ctemplate/files/patch-src-tests-template_regtest.cc b/textproc/google-ctemplate/files/patch-src-tests-template_regtest.cc
new file mode 100644
index 000000000000..2631b576d071
--- /dev/null
+++ b/textproc/google-ctemplate/files/patch-src-tests-template_regtest.cc
@@ -0,0 +1,11 @@
+--- src/tests/template_regtest.cc.orig Wed Apr 26 15:25:03 2006
++++ src/tests/template_regtest.cc Wed Apr 26 15:24:10 2006
+@@ -131,7 +131,7 @@
+ fclose(fp);
+ }
+
+-static int select_testdata(const struct dirent* d) {
++static int select_testdata(struct dirent* d) {
+ return !strncmp(d->d_name, "template_unittest_test",
+ sizeof("template_unittest_test")-1);
+ }
diff --git a/textproc/google-ctemplate/pkg-descr b/textproc/google-ctemplate/pkg-descr
new file mode 100644
index 000000000000..569d0c4f1b19
--- /dev/null
+++ b/textproc/google-ctemplate/pkg-descr
@@ -0,0 +1,5 @@
+The ctemplate package contains a library implementing a simple but powerful
+template language for C++. It emphasizes separating logic from presentation:
+it is impossible to embed application logic in this template language.
+
+WWW: http://goog-ctemplate.sourceforge.net/
diff --git a/textproc/google-ctemplate/pkg-plist b/textproc/google-ctemplate/pkg-plist
new file mode 100644
index 000000000000..0c97c3c516c7
--- /dev/null
+++ b/textproc/google-ctemplate/pkg-plist
@@ -0,0 +1,14 @@
+bin/make_tpl_varnames_h
+bin/template-converter
+include/google/ctemplate/hash_map.h
+include/google/template.h
+include/google/template_enums.h
+include/google/template_dictionary.h
+include/google/template_namelist.h
+include/google/template_from_string.h
+include/google/hash_map.h
+@dirrm include/google/ctemplate
+@dirrm include/google
+lib/libctemplate.a
+lib/libctemplate.so
+lib/libctemplate.so.0