summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorsten Veller <tove@gentoo.org>2011-03-09 20:05:23 +0000
committerTorsten Veller <tove@gentoo.org>2011-03-09 20:05:23 +0000
commit9777672eabd2ed705344daa1e199b3caba49e96d (patch)
tree22ecbc883201057cba0c6a9d3cc3990cdf1888bc /dev-libs/clearsilver
parentVersion bump, simplified the EAPI4 and a small change in the elog to install ... (diff)
downloadgentoo-2-9777672eabd2ed705344daa1e199b3caba49e96d.tar.gz
gentoo-2-9777672eabd2ed705344daa1e199b3caba49e96d.tar.bz2
gentoo-2-9777672eabd2ed705344daa1e199b3caba49e96d.zip
Move perl modules to vendor_dir (#295895)
(Portage version: 2.2.0_alpha26/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs/clearsilver')
-rw-r--r--dev-libs/clearsilver/ChangeLog10
-rw-r--r--dev-libs/clearsilver/clearsilver-0.10.5-r1.ebuild71
-rw-r--r--dev-libs/clearsilver/files/clearsilver-0.10.5-perl_installdir.patch22
3 files changed, 101 insertions, 2 deletions
diff --git a/dev-libs/clearsilver/ChangeLog b/dev-libs/clearsilver/ChangeLog
index 3f3fa14c382d..e8ab52608ab5 100644
--- a/dev-libs/clearsilver/ChangeLog
+++ b/dev-libs/clearsilver/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-libs/clearsilver
-# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/clearsilver/ChangeLog,v 1.36 2008/05/28 19:24:15 phreak Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/clearsilver/ChangeLog,v 1.37 2011/03/09 20:05:23 tove Exp $
+
+*clearsilver-0.10.5-r1 (09 Mar 2011)
+
+ 09 Mar 2011; Torsten Veller <tove@gentoo.org> +clearsilver-0.10.5-r1.ebuild,
+ +files/clearsilver-0.10.5-perl_installdir.patch:
+ Move perl modules to vendor_dir (#295895)
28 May 2008; Christian Heim <phreak@gentoo.org> metadata.xml:
Removing Julien Allanos (dju) from metadata.xml (as per #87168).
diff --git a/dev-libs/clearsilver/clearsilver-0.10.5-r1.ebuild b/dev-libs/clearsilver/clearsilver-0.10.5-r1.ebuild
new file mode 100644
index 000000000000..d4ed6770d0f6
--- /dev/null
+++ b/dev-libs/clearsilver/clearsilver-0.10.5-r1.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/clearsilver/clearsilver-0.10.5-r1.ebuild,v 1.1 2011/03/09 20:05:23 tove Exp $
+
+# Please note: apache, java, mono and ruby support disabled for now.
+# Fill a bug if you need it.
+#
+# dju@gentoo.org, 4th July 2005
+
+inherit eutils perl-app multilib autotools
+
+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="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="perl python zlib"
+
+DEPEND="python? ( dev-lang/python )
+ perl? ( dev-lang/perl )
+ zlib? ( sys-libs/zlib )"
+
+DOCS="README INSTALL"
+
+if use python ; then
+ DOCS="${DOCS} README.python"
+fi
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}"/${P}-perl_installdir.patch
+
+ use zlib && epatch "${FILESDIR}"/${P}-libz.patch
+
+ epatch "${FILESDIR}"/${P}-libdir.patch
+ sed -i -e "s:GENTOO_LIBDIR:$(get_libdir):" configure.in
+ eautoreconf || die "eautoreconf failed"
+
+ # Fix for Gentoo/Freebsd
+ [[ "${ARCH}" == FreeBSD ]] && touch ${S}/features.h ${S}/cgi/features.h
+}
+
+src_compile() {
+ econf \
+ $(use_enable perl) \
+ $(use_with perl perl /usr/bin/perl) \
+ $(use_enable python) \
+ $(use_with python python /usr/bin/python) \
+ $(use_enable zlib compression) \
+ "--disable-apache" \
+ "--disable-ruby" \
+ "--disable-java" \
+ "--disable-csharp" \
+ || die "./configure failed"
+
+ emake || die "emake failed"
+}
+
+src_install () {
+ make DESTDIR="${D}" install || die "make install failed"
+
+ dodoc ${DOCS} || die "dodoc failed"
+
+ if use perl ; then
+ fixlocalpod || die "fixlocalpod failed"
+ fi
+}
diff --git a/dev-libs/clearsilver/files/clearsilver-0.10.5-perl_installdir.patch b/dev-libs/clearsilver/files/clearsilver-0.10.5-perl_installdir.patch
new file mode 100644
index 000000000000..a8073e1f0afb
--- /dev/null
+++ b/dev-libs/clearsilver/files/clearsilver-0.10.5-perl_installdir.patch
@@ -0,0 +1,22 @@
+X-Bug-Debian: http://bugs.debian.org/357908
+X-Bug-Gentoo: https://bugs.gentoo.org/295895
+--- b/Makefile
++++ a/Makefile
+@@ -29,7 +29,7 @@
+ @for mdir in $(SUBDIRS); do \
+ if test -d $$mdir; then \
+ if test -f $$mdir/Makefile.PL -a ! -f $$mdir/Makefile; then \
+- cd $$mdir; $(PERL) Makefile.PL PREFIX=$(prefix); cd ..; \
++ cd $$mdir; $(PERL) Makefile.PL PREFIX=$(prefix) INSTALLDIRS=vendor; cd ..; \
+ fi; \
+ $(MAKE) -C $$mdir PREFIX=$(prefix); \
+ fi; \
+@@ -46,7 +46,7 @@
+ @for mdir in $(SUBDIRS); do \
+ if test -d $$mdir; then \
+ if test -f $$mdir/Makefile.PL -a ! -f $$mdir/Makefile; then \
+- cd $$mdir; $(PERL) Makefile.PL PREFIX=$(prefix); cd ..; \
++ cd $$mdir; $(PERL) Makefile.PL PREFIX=$(prefix) INSTALLDIRS=vendor; cd ..; \
+ fi; \
+ $(MAKE) -C $$mdir PREFIX=$(prefix) install; \
+ fi; \