diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2008-12-09 09:13:02 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2008-12-09 09:13:02 +0000 |
commit | 8a0e75021ddd89a44b4c122975528682a1bf4be0 (patch) | |
tree | ea21fb24e7f9cdb43f9e0ff664625621dedfd7c1 /dev-libs/OpenSRF | |
parent | remove old (diff) | |
download | gentoo-2-8a0e75021ddd89a44b4c122975528682a1bf4be0.tar.gz gentoo-2-8a0e75021ddd89a44b4c122975528682a1bf4be0.tar.bz2 gentoo-2-8a0e75021ddd89a44b4c122975528682a1bf4be0.zip |
Version bump.
(Portage version: 2.2_rc16/cvs/Linux 2.6.28-rc5-00117-g7f0f598 x86_64)
Diffstat (limited to 'dev-libs/OpenSRF')
-rw-r--r-- | dev-libs/OpenSRF/ChangeLog | 8 | ||||
-rw-r--r-- | dev-libs/OpenSRF/OpenSRF-1.0.1.ebuild | 133 | ||||
-rw-r--r-- | dev-libs/OpenSRF/files/OpenSRF-1.0.1-buildfix.patch | 164 |
3 files changed, 304 insertions, 1 deletions
diff --git a/dev-libs/OpenSRF/ChangeLog b/dev-libs/OpenSRF/ChangeLog index 0c26b3174ec6..a3d0d65d51fe 100644 --- a/dev-libs/OpenSRF/ChangeLog +++ b/dev-libs/OpenSRF/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-libs/OpenSRF # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/OpenSRF/ChangeLog,v 1.1 2008/09/29 04:13:48 robbat2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/OpenSRF/ChangeLog,v 1.2 2008/12/09 09:13:02 robbat2 Exp $ + +*OpenSRF-1.0.1 (09 Dec 2008) + + 09 Dec 2008; Robin H. Johnson <robbat2@gentoo.org> + +files/OpenSRF-1.0.1-buildfix.patch, +OpenSRF-1.0.1.ebuild: + Version bump. *OpenSRF-0.9 (29 Sep 2008) diff --git a/dev-libs/OpenSRF/OpenSRF-1.0.1.ebuild b/dev-libs/OpenSRF/OpenSRF-1.0.1.ebuild new file mode 100644 index 000000000000..f39745149638 --- /dev/null +++ b/dev-libs/OpenSRF/OpenSRF-1.0.1.ebuild @@ -0,0 +1,133 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/OpenSRF/OpenSRF-1.0.1.ebuild,v 1.1 2008/12/09 09:13:02 robbat2 Exp $ + +inherit eutils multilib flag-o-matic apache-module autotools perl-module + +DESCRIPTION="OpenSRF is a framework that allows the development of software without requiring a detailed knowledge of Evergreen's structure." +HOMEPAGE="http://open-ils.org/" +SRC_URI="http://open-ils.org/downloads/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" +DEPEND=">=www-servers/apache-2.2.9 + >=dev-libs/yaz-3.0 + app-dicts/aspell-en + >=dev-lang/spidermonkey-1.6 + >=dev-db/libdbi-drivers-0.8.2 + >=dev-db/libdbi-0.8.2 + net-im/ejabberd + dev-libs/libmemcache + dev-perl/FreezeThaw + dev-perl/Cache-Memcached + dev-perl/DateTime + dev-perl/DateTime-Locale + dev-perl/DateTime-TimeZone + dev-perl/DateTime-Format-ISO8601 + dev-perl/DBD-Pg + dev-perl/Email-Send + dev-perl/GD-Graph3d + dev-perl/Log-Log4perl + dev-perl/JSON-XS + dev-perl/XML-LibXML + dev-perl/XML-LibXSLT + dev-perl/XML-Simple + dev-perl/Template-Toolkit + dev-perl/Text-Aspell + dev-perl/UNIVERSAL-require + dev-perl/Unix-Syslog + dev-perl/Text-CSV + dev-perl/Text-CSV-Simple + dev-perl/Text-CSV_XS + dev-perl/Spreadsheet-WriteExcel + dev-perl/Tie-IxHash + dev-perl/Net-XMPP + dev-perl/Authen-SASL + dev-perl/XML-Stream + dev-perl/net-server + dev-perl/Class-DBI-AbstractSearch + dev-perl/JavaScript-SpiderMonkey + dev-perl/MARC-Record + dev-perl/MARC-Charset + dev-perl/MARC-XML + dev-perl/Net-Z3950-ZOOM" + +PERL_S="${S}/src/perl" + +APXS2_S="${S}/src/gateway/.libs/" +APACHE2_MOD_FILE="${APXS2_S}/osrf_json_gateway.so ${APXS2_S}/osrf_http_translator.so" +#APACHE2_MOD_CONF="42_${PN}" +#APACHE2_MOD_DEFINE="FOO" +#DOCFILES="docs/*.html" +need_apache2_2 + +RDEPEND="${DEPEND}" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${PN}-1.0.1-buildfix.patch + eautoreconf +} + +#src_compile() { +# LIBXML2_CFLAGS=$(xml2-config --cflags) +# LIBXML2_CFLAGS="${LIBXML2_CFLAGS//*-I}" +# LIBXML2_HEADERS="${LIBXML2_CFLAGS// *}" +# APR_HEADERS=$(apr-1-config --includedir) +# APACHE2_HEADERS=$(apxs2 -q INCLUDEDIR) +# sed -i \ +# -e '/^export PREFIX=/s,/.*,/usr,' \ +# -e '/^export BINDIR=/s,/.*,${PREFIX}/bin,' \ +# -e "/^export LIBDIR=/s,/.*,\${PREFIX}/$(get_libdir)," \ +# -e '/^export PERLDIR=/s,/.*,${LIBDIR}/perl5,' \ +# -e '/^export INCLUDEDIR=/s,/.*,${PREFIX}/include,' \ +# -e '/^export ETCDIR=/s,/.*,/etc,' \ +# -e '/^export SOCK=/s,/.*,/var/run/opensrf,' \ +# -e '/^export PID=/s,/.*,/var/run/opensrf,' \ +# -e '/^export LOG=/s,/.*,/var/log,' \ +# -e '/^export TMP=/s,/.*,/tmp,' \ +# -e '/^export APXS2=/s,/.*,/usr/sbin/apxs2,' \ +# -e "/^export APACHE2_HEADERS=/s,/.*,${APACHE2_HEADERS}," \ +# -e "/^export APR_HEADERS=/s,/.*,${APR_HEADERS}," \ +# -e "/^export LIBXML2_HEADERS=/s,/.*,${LIBXML2_HEADERS}," \ +# install.conf +# emake verbose || die "Failed to build" +#} +src_compile() { + econf \ + --with-apxs=/usr/sbin/apxs2 \ + || die "econf failed" + cd "${S}" && emake || die "main emake failed" + cd "${PERL_S}" && S="${PERL_S}" perl-module_src_compile || die "perl-module_src_compile failed" +} + +src_install() { + einfo "Doing src_install" + #emake install-verbose DESTDIR="${D}" || die "Failed to install" + emake install DESTDIR="${D}" || die "Failed to install" + apache-module_src_install || die "apache-module_src_install failed" + cd "${PERL_S}" && S="${PERL_S}" perl-module_src_install || die "perl-module_src_install failed" + #insinto /usr/share/opensrf + #doins src/javascript/*js + #dodoc doc/* +} + +src_test() { + emake check || die "emake check failed" + cd "${PERL_S}" && S="${PERL_S}" perl-module_src_test || die "perl-module_src_test failed" +} + +pkg_config() { + JABBER_SERVER=${JABBER_SERVER:=localhost} + JABBER_PORT=${JABBER_PORT:=5222} + PASSWORD=${PASSWORD:=osrf} + einfo "Using Jabber server at ${JABBER_SERVER}:${JABBER_PORT}" + einfo "Adding 'osrf' and 'router' users with password ${PASSWORD}" + cd "${ROOT}"/usr/share/doc/${PF}/examples + for user in osrf router ; do + perl register.pl ${JABBER_SERVER} ${JABBER_PORT} ${user} ${PASSWORD} \ + || die "Failed to add $user user to server" + done +} diff --git a/dev-libs/OpenSRF/files/OpenSRF-1.0.1-buildfix.patch b/dev-libs/OpenSRF/files/OpenSRF-1.0.1-buildfix.patch new file mode 100644 index 000000000000..75a6f8ac2e2e --- /dev/null +++ b/dev-libs/OpenSRF/files/OpenSRF-1.0.1-buildfix.patch @@ -0,0 +1,164 @@ +- Make OpenSRF parallel-build safe +- DESTDIR fixups +- split out install targets to build the apache modules +- disable perl and apache install targets, will use gentoo tools instead +- compile fix to osrf_chat.c + +Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> + +diff -Nuar OpenSRF-1.0.1.orig/Makefile.am OpenSRF-1.0.1/Makefile.am +--- OpenSRF-1.0.1.orig/Makefile.am 2008-10-26 22:10:21.000000000 -0700 ++++ OpenSRF-1.0.1/Makefile.am 2008-12-08 23:44:44.402248471 -0800 +@@ -115,13 +115,13 @@ + SUBDIRS = src + + jserver: +- make -s -C src jserver ++ $(MAKE) -s -C src jserver + + jserver-install: +- make -s -C src jserver-install ++ $(MAKE) -s -C src jserver-install + + javascript-install: +- make -s -C src javascript-install ++ $(MAKE) -s -C src javascript-install + + install-data-hook: + cp @srcdir@/src/gateway/apachetools.h @includedir@/opensrf/apachetools.h +diff -Nuar OpenSRF-1.0.1.orig/src/gateway/Makefile.am OpenSRF-1.0.1/src/gateway/Makefile.am +--- OpenSRF-1.0.1.orig/src/gateway/Makefile.am 2008-08-18 12:14:00.000000000 -0700 ++++ OpenSRF-1.0.1/src/gateway/Makefile.am 2008-12-08 23:44:44.405703486 -0800 +@@ -16,16 +16,25 @@ + + AM_CFLAGS = -D_LARGEFILE64_SOURCE -Wall -I@abs_top_srcdir@/include/ -I$(LIBXML2_HEADERS) -I$(APACHE2_HEADERS) -I$(APR_HEADERS) + AM_LDFLAGS = -L$(LIBDIR) -L@top_builddir@/src/libopensrf ++APACHE_DEPS = apachetools.c apachetools.h ++LIBS=libopensrf.so ++TARGETS = osrf_json_gateway.la osrf_http_translator.la + +-install-exec-local: +- if [ ! "$$(grep mod_placeholder `apxs2 -q SYSCONFDIR`/httpd.conf)" ]; \ +- then echo -e "#\n#LoadModule mod_placeholder /usr/lib/apache2/modules/mod_placeholder.so" \ +- >> `apxs2 -q SYSCONFDIR`/httpd.conf; \ +- fi +- $(APXS2) -c $(DEF_LDLIBS) $(AM_CFLAGS) $(AM_LDFLAGS) @srcdir@/osrf_json_gateway.c apachetools.c apachetools.h libopensrf.so +- $(APXS2) -c $(DEF_LDLIBS) $(AM_CFLAGS) $(AM_LDFLAGS) @srcdir@/osrf_http_translator.c apachetools.c apachetools.h libopensrf.so +- $(APXS2) -i -a @srcdir@/osrf_json_gateway.la +- $(APXS2) -i -a @srcdir@/osrf_http_translator.la ++all: $(TARGETS) ++ ++osrf_json_gateway.la: osrf_json_gateway.c $(APACHE_DEPS) ++ $(APXS2) -c $(DEF_LDLIBS) $(AM_CFLAGS) $(AM_LDFLAGS) $^ $(LIBS) ++ ++osrf_http_translator.la: osrf_http_translator.c $(APACHE_DEPS) ++ $(APXS2) -c $(DEF_LDLIBS) $(AM_CFLAGS) $(AM_LDFLAGS) $^ $(LIBS) ++ ++#install-exec-local: $(TARGETS) ++# if [ ! "$$(grep mod_placeholder `apxs2 -q SYSCONFDIR`/httpd.conf)" ]; \ ++# then echo -e "#\n#LoadModule mod_placeholder /usr/lib/apache2/modules/mod_placeholder.so" \ ++# >> `apxs2 -q SYSCONFDIR`/httpd.conf; \ ++# fi ++# $(APXS2) -i -a osrf_json_gateway.la ++# $(APXS2) -i -a osrf_http_translator.la + + clean-local: + rm -f @srcdir@/osrf_http_translator.la @srcdir@/osrf_http_translator.lo @srcdir@/osrf_http_translator.slo @srcdir@/osrf_json_gateway.la @srcdir@/osrf_json_gateway.lo @srcdir@/osrf_json_gateway.slo +diff -Nuar OpenSRF-1.0.1.orig/src/java/Makefile.am OpenSRF-1.0.1/src/java/Makefile.am +--- OpenSRF-1.0.1.orig/src/java/Makefile.am 2008-07-17 11:15:09.000000000 -0700 ++++ OpenSRF-1.0.1/src/java/Makefile.am 2008-12-08 23:44:44.405703486 -0800 +@@ -48,8 +48,8 @@ + rm files; + + install-data-local: +- mkdir -p $(LIBDIR)/java +- cp opensrf.jar $(LIBDIR)/java ++ mkdir -p $(DESTDIR)$(LIBDIR)/java ++ cp opensrf.jar $(DESTDIR)$(LIBDIR)/java + + dep_clean: + rm -rf deps +diff -Nuar OpenSRF-1.0.1.orig/src/jserver/osrf_chat.c OpenSRF-1.0.1/src/jserver/osrf_chat.c +--- OpenSRF-1.0.1.orig/src/jserver/osrf_chat.c 2008-04-11 07:13:49.000000000 -0700 ++++ OpenSRF-1.0.1/src/jserver/osrf_chat.c 2008-12-08 23:44:44.405703486 -0800 +@@ -18,6 +18,10 @@ + #include <stdio.h> + #include <time.h> + ++#ifndef HOST_NAME_MAX ++#define HOST_NAME_MAX 256 ++#endif ++ + static int osrfChatXMLErrorOcurred = 0; + + /* This is used by code in osrfChatPushData, but that code is +diff -Nuar OpenSRF-1.0.1.orig/src/libopensrf/Makefile.am OpenSRF-1.0.1/src/libopensrf/Makefile.am +--- OpenSRF-1.0.1.orig/src/libopensrf/Makefile.am 2008-08-07 09:54:56.000000000 -0700 ++++ OpenSRF-1.0.1/src/libopensrf/Makefile.am 2008-12-08 23:44:44.405703486 -0800 +@@ -94,6 +94,7 @@ + opensrf_c_SOURCES = opensrf.c + opensrf_c_DEPENDENCIES = libopensrf.la + ++osrf_json_test_DEPENDENCIES = libopensrf.la libosrf_json.la + osrf_json_test_SOURCES = osrf_json_test.c $(JSON_TARGS) $(JSON_DEP) $(JSON_TARGS_HEADS) $(JSON_DEP_HEADS) + + noinst_LTLIBRARIES = libosrf_json.la +diff -Nuar OpenSRF-1.0.1.orig/src/Makefile.am OpenSRF-1.0.1/src/Makefile.am +--- OpenSRF-1.0.1.orig/src/Makefile.am 2008-11-03 19:04:24.000000000 -0800 ++++ OpenSRF-1.0.1/src/Makefile.am 2008-12-08 23:44:44.405703486 -0800 +@@ -41,12 +41,12 @@ + dist_sysconf_DATA = @top_srcdir@/examples/opensrf.xml.example @top_srcdir@/examples/opensrf_core.xml.example @top_srcdir@/examples/srfsh.xml.example + + install-exec-local: +- mkdir -p $(VAR) +- mkdir -p $(PID) +- mkdir -p $(LOG) +- mkdir -p $(SOCK) +- mkdir -p $(jsdir) +- make install-perl ++ mkdir -p $(DESTDIR)$(VAR) ++ mkdir -p $(DESTDIR)$(PID) ++ mkdir -p $(DESTDIR)$(LOG) ++ mkdir -p $(DESTDIR)$(SOCK) ++ mkdir -p $(DESTDIR)$(jsdir) ++# $(MAKE) install-perl + + install-exec-hook: + sed -i 's|LOCALSTATEDIR|$(VAR)|g' '$(DESTDIR)@sysconfdir@/opensrf.xml.example' +@@ -59,10 +59,10 @@ + + + install-perl: +- cd ./perl && perl Makefile.PL || make -s install-perl-fail +- make -C perl +- make -C perl test || make -s install-perl-fail +- make -C perl install ++# cd ./perl && perl Makefile.PL || $(MAKE) -s install-perl-fail ++# $(MAKE) -C perl ++# $(MAKE) -C perl test || $(MAKE) -s install-perl-fail ++# $(MAKE) -C perl install + + install-perl-fail: + echo +diff -Nuar OpenSRF-1.0.1.orig/src/Makefile.am OpenSRF-1.0.1/src/Makefile.am +--- OpenSRF-1.0.1.orig/src/Makefile.am 2008-12-08 23:55:32.012609493 -0800 ++++ OpenSRF-1.0.1/src/Makefile.am 2008-12-08 23:56:54.739569108 -0800 +@@ -55,7 +55,7 @@ + sed -i 's|SYSCONFDIR|$(ETCDIR)|g' '$(DESTDIR)@sysconfdir@/opensrf_core.xml.example' + sed -i 's|LOCALSTATEDIR|$(VAR)|g' '$(DESTDIR)@sysconfdir@/srfsh.xml.example' + sed -i 's|SYSCONFDIR|$(ETCDIR)|g' '$(DESTDIR)@sysconfdir@/srfsh.xml.example' +- cp -r @srcdir@/javascript/* $(jsdir)/ ++ cp -r @srcdir@/javascript/* $(DESTDIR)$(jsdir)/ + + + install-perl: +diff -Nuar OpenSRF-1.0.1.orig/Makefile.am OpenSRF-1.0.1/Makefile.am +--- OpenSRF-1.0.1.orig/Makefile.am 2008-12-08 23:57:09.459287812 -0800 ++++ OpenSRF-1.0.1/Makefile.am 2008-12-08 23:58:26.355782021 -0800 +@@ -124,5 +124,5 @@ + $(MAKE) -s -C src javascript-install + + install-data-hook: +- cp @srcdir@/src/gateway/apachetools.h @includedir@/opensrf/apachetools.h ++ cp @srcdir@/src/gateway/apachetools.h $(DESTDIR)@includedir@/opensrf/apachetools.h + |