Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 215640 Details for
Bug 295634
[gnustep overlay] SOPE SVN ebuilds
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
gnustep-libs/sope/sope-4.9_pre200908051100.ebuild
sope-4.9_pre200908051100.ebuild (text/plain), 7.03 KB, created by
steveb
on 2010-01-08 12:12:51 UTC
(
hide
)
Description:
gnustep-libs/sope/sope-4.9_pre200908051100.ebuild
Filename:
MIME Type:
Creator:
steveb
Created:
2010-01-08 12:12:51 UTC
Size:
7.03 KB
patch
obsolete
># Copyright 1999-2010 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >EAPI=2 > ># gnustep-2 is pulling way to many dependencies. >inherit gnustep-base apache-module > >APACHE2_MOD_DEFINE="NGOBJWEB" >APACHE2_MOD_FILE="sope-appserver/mod_ngobjweb/mod_ngobjweb.so" >APACHE2_MOD_CONF="47_mod_ngobjweb" >MY_PV="1660-200908051100" > >DESCRIPTION="An extensive set of frameworks which form a complete Web application server environment" >HOMEPAGE="http://sope.opengroupware.org/en/index.html" >SRC_URI="http://download.opengroupware.org/nightly/sources/trunk/${PN}-trunk-r${MY_PV}.tar.gz > http://www.scalableogo.org/files/downloads/SOGo/Sources/SOGo-1.1.0.tar.gz" >LICENSE="LGPL-2" >SLOT="0" >KEYWORDS="~alpha amd64 ppc ~ppc64 ~sparc x86 ~x86-fbsd" >IUSE="apache2 ldap libFoundation mysql postgres sqlite" >DEPEND="gnustep-base/gnustep-base > dev-libs/libxml2 > dev-libs/openssl > ldap? ( net-nds/openldap ) > mysql? ( virtual/mysql ) > postgres? ( virtual/postgresql-base ) > sqlite? ( >=dev-db/sqlite-3.0 )" >RDEPEND="${DEPEND} > sys-apps/sed > sys-apps/grep > sys-apps/coreutils" >S=${WORKDIR}/${PN} > >want_apache > >pkg_setup() { > gnustep-base_pkg_setup > egnustep_env > local myLDFLAGS="$(gnustep-config --variable=LDFLAGS 2>/dev/null)" > if [ -n "${myLDFLAGS}" ] && (echo "${myLDFLAGS}" | grep -q "\-\-a\(dd\|s\)\-needed" 2>/dev/null); then > ewarn > ewarn "You seem to have compiled GNUstep with custom LDFLAGS:" > for foo in $(gnustep-config --variable=LDFLAGS); do > ewarn " "${foo} > done > ewarn > ewarn "SOPE is very sensitive regarding custom LDFLAGS. Especially with:" > ewarn " --add-needed" > ewarn " --as-needed" > ewarn > ewarn "If your SOPE install does not work as expected then please re-emerge SOPE" > ewarn "and your GNUstep (base and make) without any LDFLAGS before filing bugs." > ewarn > ebeep 5 > epause 10 > fi > depend.apache_pkg_setup >} > >src_unpack() { > gnustep-base_src_unpack > # http://www.scalableogo.org/english/support/faq/article/how-do-i-compile-sogo.html > epatch "${WORKDIR}"/SOGo-1.1.0/SOPE/sope-gsmake2.diff > epatch "${WORKDIR}"/SOGo-1.1.0/SOPE/sope-patchset-r*.diff > #epatch "${WORKDIR}"/SOGo-1.1.0/SOPE/sope-ngobjweb-fix.diff > epatch "${FILESDIR}"/${PN}-r1660-SOGo-fix.patch # Fixing stuff after SOGo patches > epatch "${FILESDIR}"/${PN}-r1660-NSZoneMallocAtomic.patch # NSZoneMalloc changed in GNUstep > epatch "${FILESDIR}"/${PN}-r1660-SoOFS.patch # libSoOFS is failing without -lcrypt > epatch "${FILESDIR}"/${PN}-r1660-WORepetition.m.patch > epatch "${FILESDIR}"/${PN}-r1660-NSDictionary+KVC.patch > epatch "${FILESDIR}"/${PN}-r1660-NSNull+misc.m.patch > epatch "${FILESDIR}"/${PN}-r1660-LDAP_deprecated.patch > > if use apache2; then > # Only add mod_ngobjweb if it is not already in SUBPROJECTS > if ! ( sed -e :a -e '/\\$/N; s/\\\n//; ta' "${S}"/sope-appserver/GNUmakefile 2>/dev/null | grep -q "^[[:space:]]*SUBPROJECTS[\t \+=].*[[:space:]]mod_ngobjweb" ); then > sed -i "/^SUBPROJECTS[\t \+=]/,/^[\t ]\{1,99\}[a-zA-Z]\{1,99\}[\t ]*$/{s/\([a-zA-Z]\)$/\1\t\\\\\n\tmod_ngobjweb/}" \ > "${S}"/sope-appserver/GNUmakefile > fi > else > # Only remove mod_ngobjweb if it is found in SUBPROJECTS > if ( sed -e :a -e '/\\$/N; s/\\\n//; ta' "${S}"/sope-appserver/GNUmakefile 2>/dev/null | grep -q "^[[:space:]]*SUBPROJECTS[\t \+=].*[[:space:]]mod_ngobjweb" ); then > sed -i "s/^[\t ]*mod_ngobjweb[\t ]*$/\n/;/^[\t ]*mod_ngobjweb[\t ]*\\\\$/d" \ > "${S}"/sope-appserver/GNUmakefile > fi > fi >} > >src_configure() { > unset LDFLAGS > egnustep_env > local myconf > if use libFoundation; then > myconf="${myconf} --frameworks=libFoundation" > cd "${S}"/libFoundation > ./configure \ > --prefix=/usr \ > $(use_enable debug) \ > --with-gnustep || die "configure libFoundation failed" > fi > cd "${S}" > ./configure \ > $(use_enable debug) \ > $(use_enable debug strip) \ > --with-gnustep ${myconf} || die "configure failed" >} > >src_compile() { > cd "${S}" > unset LDFLAGS > egnustep_env > local myconf > if use libFoundation; then > cd "${S}"/libFoundation > CFLAGS="${CFLAGS} -Wno-import" egnustep_make > fi > if use apache2; then > myconf="${myconf} apxs=/usr/sbin/apxs" > myconf="${myconf} apr=/usr/bin/apr-1-config" > fi > cd "${S}" > egnustep_make ${myconf} >} > >src_test() { > # SOPE tends to break horribly if gnustep-make is build with LDFLAGS such as > # -Wl,--add-needed or -Wl,--as-needed. So we check here some vital binaries. > # Check if SoCore, SoOFS is correctly build/linked > local mySoCoreLDD=$(ldd -d "${S}"/sope-appserver/NGObjWeb/SoCore.sxp/SoCore 2>&1 | grep "lib\(NG\(ObjWeb\|Mime\|Streams\|Extensions\)\|EOControl\|DOM\|SaxObjC\|XmlRpc\)\.so\." | wc -l) > local mySoOFSLDD=$(ldd -d "${S}"/sope-appserver/SoOFS/SoOFS.sxp/SoOFS 2>&1 | grep "lib\(SoOFS\|NG\(ObjWeb\|Mime\|Streams\|Extensions\)\|EOControl\|DOM\|SaxObjC\|XmlRpc\)\.so\." | wc -l) > if [ -z "${mySoCoreLDD}" -o -z "${mySoOFSLDD}" -o "${mySoCoreLDD}" != "8" -o "${mySoOFSLDD}" != "9" ]; then > ewarn > ewarn "This SOPE installtion is not correctly build. Probably you are using" > ewarn "LDFLAGS to build SOPE that are not correctly handled in SOPE or you" > ewarn "have emerged gnustep-base/gnustep-make with LDFLAGS which are" > ewarn "preventing SOPE to link the needed libraries into it's own binaries." > ewarn "Please remerge gnustep-base/gnustep-make and/or SOPE with empty LDFLAGS." > ewarn > die "SOPE build is not complete (SoCore, SoOFS)" > fi > # Do the same for WEExtensions, WOExtensions, WEPrototype > local myWEExtensionsLDD=$(ldd -d "${S}"/sope-appserver/WEExtensions/WEExtensions.wox/WEExtensions 2>&1 | grep "lib\(WEExtensions\|NG\(ObjWeb\|Mime\|Streams\|Extensions\)\|EOControl\|DOM\|SaxObjC\|XmlRpc\)\.so\." | wc -l) > local myWOExtensionsLDD=$(ldd -d "${S}"/sope-appserver/WOExtensions/WOExtensions.wox/WOExtensions 2>&1 | grep "lib\(W[EO]Extensions\|NG\(ObjWeb\|Mime\|Streams\|Extensions\)\|EOControl\|DOM\|SaxObjC\|XmlRpc\)\.so\." | wc -l) > local myWEPrototypeLDD=$(ldd -d "${S}"/sope-appserver/WEPrototype/WEPrototype.wox/WEPrototype 2>&1 | grep "lib\(WEPrototype\|NG\(ObjWeb\|Mime\|Streams\|Extensions\)\|EOControl\|DOM\|SaxObjC\|XmlRpc\)\.so\." | wc -l) > if [ -z "${myWEExtensionsLDD}" -o -z "${myWOExtensionsLDD}" -o -z "${myWEPrototypeLDD}" -o "${myWEExtensionsLDD}" != "9" -o "${myWOExtensionsLDD}" != "10" -o "${myWEPrototypeLDD}" != "9" ]; then > ewarn > ewarn "This SOPE installtion is not correctly build. Probably you are using" > ewarn "LDFLAGS to build SOPE that are not correctly handled in SOPE or you" > ewarn "have emerged gnustep-base/gnustep-make with LDFLAGS which are" > ewarn "preventing SOPE to link the needed libraries into it's own binaries." > ewarn "Please remerge gnustep-base/gnustep-make and/or SOPE with empty LDFLAGS." > ewarn > die "SOPE build is not complete (WEExtensions, WOExtensions, WEPrototype)" > fi >} > >src_install() { > cd "${S}" > unset LDFLAGS > newenvd "${FILESDIR}"/sope.envd 99sope \ > || die "Failed installing env.d script" > gnustep-base_src_install > use apache2 && apache-module_src_install >} > >pkg_postinst() { > cd "${S}" > unset LDFLAGS > gnustep-base_pkg_postinst > use apache2 && apache-module_pkg_postinst > elog > elog "You need to update your path by running now:" > elog " /usr/sbin/env-update && source /etc/profile" >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 295634
:
211962
|
211964
|
211966
|
211967
|
211969
|
211971
|
211973
|
211975
|
211977
|
211979
|
211980
|
211981
|
211982
|
211983
|
211984
|
211985
|
212043
|
212045
|
212046
|
215373
|
215374
|
215614
|
215616
|
215617
|
215638
|
215640
|
215641
|
216230
|
216231