summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Herbert <stuart@gentoo.org>2004-04-25 19:51:44 +0000
committerStuart Herbert <stuart@gentoo.org>2004-04-25 19:51:44 +0000
commitc838165ecea7fba015ab0fe15d3d6b2370bcda18 (patch)
treebf075b5f01fdcf1811da81a0d80644c1d56e0304 /dev-libs/clearsilver
parentLicense for dev-libs/clearsilver (diff)
downloadhistorical-c838165ecea7fba015ab0fe15d3d6b2370bcda18.tar.gz
historical-c838165ecea7fba015ab0fe15d3d6b2370bcda18.tar.bz2
historical-c838165ecea7fba015ab0fe15d3d6b2370bcda18.zip
Initial import
Diffstat (limited to 'dev-libs/clearsilver')
-rw-r--r--dev-libs/clearsilver/ChangeLog10
-rw-r--r--dev-libs/clearsilver/Manifest5
-rw-r--r--dev-libs/clearsilver/clearsilver-0.9.7.ebuild75
-rw-r--r--dev-libs/clearsilver/files/0.9.7-python.patch11
-rw-r--r--dev-libs/clearsilver/files/digest-clearsilver-0.9.71
-rw-r--r--dev-libs/clearsilver/metadata.xml8
6 files changed, 110 insertions, 0 deletions
diff --git a/dev-libs/clearsilver/ChangeLog b/dev-libs/clearsilver/ChangeLog
new file mode 100644
index 000000000000..3b0c495c7ae1
--- /dev/null
+++ b/dev-libs/clearsilver/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-libs/clearsilver
+# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/clearsilver/ChangeLog,v 1.1 2004/04/25 19:51:43 stuart Exp $
+
+*clearsilver-0.9.7 (25 Apr 2004)
+
+ 25 Apr 2004; Stuart Herbert <stuart@gentoo.org> clearsilver-0.9.7.ebuild,
+ metadata.xml:
+ Initial import; thanks to dju` <dju@elegiac.net> for the ebuild; see bug #48818
+
diff --git a/dev-libs/clearsilver/Manifest b/dev-libs/clearsilver/Manifest
new file mode 100644
index 000000000000..7d13d4975eb0
--- /dev/null
+++ b/dev-libs/clearsilver/Manifest
@@ -0,0 +1,5 @@
+MD5 86480ac66e812c1b5d1f296346d4a539 clearsilver-0.9.7.ebuild 1986
+MD5 077eeb778eb4be3b93ca274576441451 ChangeLog 431
+MD5 3d182d43f7f0341a9a42f96694f04e72 metadata.xml 224
+MD5 4c227dbc14edacb199c6a4df09c64fce files/0.9.7-python.patch 391
+MD5 478f0f67e9ea8486fbea128e5c80dd24 files/digest-clearsilver-0.9.7 69
diff --git a/dev-libs/clearsilver/clearsilver-0.9.7.ebuild b/dev-libs/clearsilver/clearsilver-0.9.7.ebuild
new file mode 100644
index 000000000000..85b56512be7b
--- /dev/null
+++ b/dev-libs/clearsilver/clearsilver-0.9.7.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header:
+
+DESCRIPTION="Clearsilver is a fast, powerful, and language-neutral HTML template system."
+HOMEPAGE="http://www.clearsilver.net/"
+SRC_URI="http://www.clearsilver.net/downloads/${P}.tar.gz"
+
+LICENSE="CS-1.0"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="apache2 java perl python ruby zlib"
+
+# Important:
+#
+# We don't redistribute clearsilver - we just provide a way to install it
+# By doing this, I believe we are compliant with the license without any
+# further actions
+#
+# stuart@gentoo.org, 25th April 2004
+
+RESTRICT="nomirror"
+
+inherit eutils
+
+DEPEND="apache2? ( >=net-www/apache-2 )
+ java? ( virtual/jdk )
+ perl? ( dev-lang/perl )
+ python? ( >=dev-lang/python-2.1 )
+ ruby? ( dev-lang/ruby )
+ zlib? ( sys-libs/zlib )"
+
+DOCS="CS_LICENSE README README.python INSTALL"
+
+src_unpack () {
+ unpack ${A}
+ cd ${S}
+ sed -i s/apxs/apxs2/g configure
+ sed -i s,bin/httpd,bin/apache2,g configure
+ sed -i s/2.2\ 2.1/2.3\ 2.2\ 2.1/ configure
+
+ epatch ${FILESDIR}/${PV}-python.patch
+}
+
+src_compile() {
+ local myconf
+ local jdkhome=`java-config -O`
+
+ use apache2 && myconf="${myconf} --with-apache" \
+ || myconf="${myconf} --disable-apache"
+ use java && myconf="${myconf} --with-java=${jdkhome}" \
+ || myconf="${myconf} --disable-java"
+ use perl && myconf="${myconf} --with-perl" \
+ || myconf="${myconf} --disable-perl"
+ use python && myconf="${myconf} --with-python" \
+ || myconf="${myconf} --disable-python"
+ use ruby && myconf="${myconf} --with-ruby" \
+ || myconf="${myconf} --disable-ruby"
+ use zlib || myconf="${myconf} --disable-compression"
+
+ econf $myconf || die "./configure failed"
+
+ emake -j1 || die "make failed"
+}
+
+src_install () {
+ cd ${S}
+ sed -i s,/usr/local,/usr, scripts/document.py
+ make DESTDIR=${D} install || die "make install failed"
+
+ dodir /var/www/localhost/cgi-bin
+ mv ${D}/usr/bin/static.cgi ${D}/var/www/localhost/cgi-bin/clearsilver.cgi
+
+ dodoc ${DOCS}
+}
diff --git a/dev-libs/clearsilver/files/0.9.7-python.patch b/dev-libs/clearsilver/files/0.9.7-python.patch
new file mode 100644
index 000000000000..fcd82b29e489
--- /dev/null
+++ b/dev-libs/clearsilver/files/0.9.7-python.patch
@@ -0,0 +1,11 @@
+--- python/setup.py~ 2004-04-20 23:29:55.566483816 +0200
++++ python/setup.py 2004-04-20 23:30:07.642647960 +0200
+@@ -69,6 +69,8 @@
+ LIB_DIRS = expand_vars(LIB_DIRS, make_vars)
+ LIBRARIES = expand_vars(LIBRARIES, make_vars)
+
++os.environ["CFLAGS"] = os.environ["CFLAGS"].replace(' -c', '')
++
+ setup(name="clearsilver",
+ version=VERSION,
+ description="Python ClearSilver Wrapper",
diff --git a/dev-libs/clearsilver/files/digest-clearsilver-0.9.7 b/dev-libs/clearsilver/files/digest-clearsilver-0.9.7
new file mode 100644
index 000000000000..f866b3a1fec7
--- /dev/null
+++ b/dev-libs/clearsilver/files/digest-clearsilver-0.9.7
@@ -0,0 +1 @@
+MD5 a83844356c92b0ce060c5ba08e55c401 clearsilver-0.9.7.tar.gz 377694
diff --git a/dev-libs/clearsilver/metadata.xml b/dev-libs/clearsilver/metadata.xml
new file mode 100644
index 000000000000..0d59c319c3eb
--- /dev/null
+++ b/dev-libs/clearsilver/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>webapps</herd>
+<maintainer>
+ <email>web-apps@gentoo.org</email>
+</maintainer>
+</pkgmetadata>