diff options
author | Hans de Graaff <graaff@gentoo.org> | 2011-12-04 10:12:59 +0000 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2011-12-04 10:12:59 +0000 |
commit | 1f7b0270b3230d8861b8e3bc3d5c7fdaeff7b69f (patch) | |
tree | 77492a2d2bdb3f9a1ec72c7cf7f796cfe109de21 /www-servers/gorg/gorg-0.6.4-r1.ebuild | |
parent | split opts to extra_commands (diff) | |
download | gentoo-2-1f7b0270b3230d8861b8e3bc3d5c7fdaeff7b69f.tar.gz gentoo-2-1f7b0270b3230d8861b8e3bc3d5c7fdaeff7b69f.tar.bz2 gentoo-2-1f7b0270b3230d8861b8e3bc3d5c7fdaeff7b69f.zip |
Convert to ruby-ng.eclass. Add ruby19 support. Thanks to naota for patches and testing in bug 315487.
(Portage version: 2.1.10.11/cvs/Linux x86_64)
Diffstat (limited to 'www-servers/gorg/gorg-0.6.4-r1.ebuild')
-rw-r--r-- | www-servers/gorg/gorg-0.6.4-r1.ebuild | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/www-servers/gorg/gorg-0.6.4-r1.ebuild b/www-servers/gorg/gorg-0.6.4-r1.ebuild new file mode 100644 index 000000000000..17936e86acf7 --- /dev/null +++ b/www-servers/gorg/gorg-0.6.4-r1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-servers/gorg/gorg-0.6.4-r1.ebuild,v 1.1 2011/12/04 10:12:59 graaff Exp $ + +EAPI=2 +USE_RUBY="ruby18 ruby19" + +inherit ruby-ng eutils + +DESCRIPTION="Back-end XSLT processor for an XML-based web site" +HOMEPAGE="http://www.gentoo.org/proj/en/gdp/doc/gorg.xml" +SRC_URI="http://gentoo.neysx.org/mystuff/gorg/${P}.tgz" +IUSE="fastcgi mysql" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~ppc ~x86" + +CDEPEND=" + >=dev-libs/libxml2-2.6.16 + >=dev-libs/libxslt-1.1.12" +DEPEND="${DEPEND} ${CDEPEND}" +RDEPEND="${RDEPEND} ${CDEPEND} + fastcgi? ( virtual/httpd-fastcgi )" + +ruby_add_rdepend " + mysql? ( >=dev-ruby/ruby-dbi-0.0.21[mysql] ) + fastcgi? ( >=dev-ruby/ruby-fcgi-0.8.5-r1 )" + +pkg_setup() { + enewgroup gorg + enewuser gorg -1 -1 -1 gorg +} + +all_ruby_prepare() { + epatch "${FILESDIR}/${P}-ruby19.patch" + epatch "${FILESDIR}/${P}-ruby19-date.patch" +} + +each_ruby_configure() { + ${RUBY} setup.rb config --prefix=/usr || die +} + +each_ruby_compile() { + ${RUBY} setup.rb setup || die +} + +each_ruby_install() { + ${RUBY} setup.rb config --prefix="${D}"/usr || die + ${RUBY} setup.rb install || die + + # install doesn't seem to chmod these correctly, forcing it here + SITE_LIB_DIR=$(ruby_rbconfig_value 'sitelibdir') + chmod +x "${D}"/${SITE_LIB_DIR}/gorg/cgi-bin/*.cgi + chmod +x "${D}"/${SITE_LIB_DIR}/gorg/fcgi-bin/*.fcgi +} + +all_ruby_install() { + keepdir /etc/gorg; insinto /etc/gorg ; doins etc/gorg/* + diropts -m0770 -o gorg -g gorg; keepdir /var/cache/gorg + + dodoc Changelog README +} |