add google-ctemplate 0.1

A simple but powerful template language for C++

pass maintainership to clsung
This commit is contained in:
Ying-Chieh Liao 2006-04-27 01:52:15 +00:00
parent ecca9860e1
commit 220e8ece45
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=160561
9 changed files with 111 additions and 0 deletions

View file

@ -144,6 +144,7 @@
SUBDIR += gnome-translate
SUBDIR += gnomedocutils
SUBDIR += gnomespell
SUBDIR += google-ctemplate
SUBDIR += gpp
SUBDIR += grap
SUBDIR += gsed

View file

@ -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>

View file

@ -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

View file

@ -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"

View file

@ -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>

View file

@ -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>

View file

@ -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);
}

View file

@ -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/

View file

@ -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