parent
0d09d0b245
commit
c49c70c4a4
@ -1,74 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/389-admin-console/389-admin-console-1.1.7.ebuild,v 1.1 2011/06/14 19:01:03 lxnay Exp $
|
||||
|
||||
EAPI="2"
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
MY_PV=${PV/_alpha/.a}
|
||||
MY_PV=${MY_PV/_rc/.rc}
|
||||
|
||||
DESCRIPTION="389 Server Management Console (jar and help files)"
|
||||
HOMEPAGE="http://port389.org/"
|
||||
SRC_URI="http://directory.fedoraproject.org/sources/${P}.tar.bz2"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="1.1"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
COMMON_DEP="dev-java/jss:3.4
|
||||
dev-java/ldapsdk:4.1
|
||||
>=dev-java/idm-console-framework-1.1.7"
|
||||
RDEPEND="|| ( >=virtual/jre-1.5 >=virtual/jdk-1.5 )
|
||||
${COMMON_DEP}"
|
||||
DEPEND="sys-apps/sed
|
||||
>=virtual/jdk-1.5
|
||||
${COMMON_DEP}"
|
||||
PDEPEND="net-nds/389-admin"
|
||||
|
||||
src_prepare() {
|
||||
# Gentoo java rules say no jars with version number
|
||||
# so sed away the version indicator '-'
|
||||
sed -e "s!-\*!\*!g" -i build.xml
|
||||
|
||||
java-pkg_jar-from ldapsdk-4.1 ldapjdk.jar
|
||||
java-pkg_jar-from jss-3.4 xpclass.jar jss4.jar
|
||||
java-pkg_jar-from idm-console-framework-1.1
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
eant -Dbuilt.dir="${S}"/build \
|
||||
-Dldapjdk.location="${S}" \
|
||||
-Djss.location="${S}" \
|
||||
-Dconsole.location="${S}" ${antflags}
|
||||
use doc && eant -Dbuilt.dir="${S}"/build \
|
||||
-Dldapjdk.location="${S}" \
|
||||
-Djss.location="${S}" \
|
||||
-Dconsole.location="${S}" ${antflags} javadoc
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_jarinto /usr/share/dirsrv/html/java
|
||||
# have to install versioned jars, otherwise 389-console will crash
|
||||
java-pkg_newjar "${S}"/build/package/389-admin-${MY_PV}.jar 389-admin-${MY_PV}.jar
|
||||
java-pkg_newjar "${S}"/build/package/389-admin-${MY_PV}_en.jar 389-admin-${MY_PV}_en.jar
|
||||
|
||||
dosym 389-admin-${MY_PV}.jar /usr/share/dirsrv/html/java/389-admin.jar
|
||||
dosym 389-admin-${MY_PV}.jar /usr/share/dirsrv/html/java/389-admin-${SLOT}.jar
|
||||
dosym 389-admin-${MY_PV}_en.jar /usr/share/dirsrv/html/java/389-admin_en.jar
|
||||
dosym 389-admin-${MY_PV}_en.jar /usr/share/dirsrv/html/java/389-admin-${SLOT}_en.jar
|
||||
|
||||
insinto /usr/share/dirsrv/manual/en/admin
|
||||
doins "${S}"/help/en/*.html
|
||||
doins "${S}"/help/en/tokens.map
|
||||
|
||||
insinto /usr/share/dirsrv/manual/en/admin/help
|
||||
doins "${S}"/help/en/help/*.html
|
||||
|
||||
use doc && java-pkg_dojavadoc build/doc
|
||||
use source && java-pkg_dosrc src/com
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST 389-admin-console-1.1.7.tar.bz2 126272 SHA256 2590ffb33bf46c97641ee9d560e7332d3109702f9f1ebc997fbe819603f24fe1 SHA512 6fbce920c2adf135331377f3aa96aa2ae7a26ab2c80244b307f7ecc343a992bb4200e930bcf3168fb637ffa117d9a2c17a5b11b65eb14aae249b30d13a084ed5 WHIRLPOOL 3d1933abc4e49c92c7d5ece6d2613ecf1e5c0bba725fa61ff495e3d39abc16c098c3cd1e3e9b956ba484696cc7a53f0152daf4a0e47c1d0ef37edd9e9e07c23a
|
||||
DIST 389-admin-console-1.1.8.tar.bz2 126004 SHA256 6f2e05299876c11380c6b98540772d45a0e2128f3ec9fcd15f9cd7cc80ce4e4d SHA512 85ac61f8032450e1a86f973b244c136784016bfe6782fff2b992881fd427190223cd4655caf6a592bda7bc8b13e6dde04a5644abbc833c0472c287127a397ae5 WHIRLPOOL f286f37744a12400f27732d17e0d1deb7b09f1801b9f110db8835ef1ff0e1d39bb7f1b897c708938ba6668a9adcfc17a46972d1a7eac57dd4d088a9d65dab519
|
||||
|
@ -1,54 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/389-console/389-console-1.1.6.ebuild,v 1.4 2012/07/11 18:20:53 lxnay Exp $
|
||||
|
||||
EAPI="2"
|
||||
|
||||
JAVA_PKG_IUSE=""
|
||||
|
||||
inherit java-pkg-2 eutils java-ant-2
|
||||
|
||||
DESCRIPTION="A Java based console for remote management 389 server"
|
||||
HOMEPAGE="http://port389.org/"
|
||||
SRC_URI="http://directory.fedoraproject.org/sources/${P}.tar.bz2
|
||||
http://dev.gentoo.org/~lxnay/${PN}/fedora.png"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="1.1"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
COMMON_DEP="dev-java/jss:3.4
|
||||
dev-java/ldapsdk:4.1
|
||||
>=dev-java/idm-console-framework-1.1"
|
||||
|
||||
RDEPEND="|| ( >=virtual/jre-1.6 >=virtual/jdk-1.6 )
|
||||
${COMMON_DEP}"
|
||||
|
||||
DEPEND=">=virtual/jdk-1.6
|
||||
${COMMON_DEP}"
|
||||
|
||||
src_prepare() {
|
||||
java-pkg_jar-from ldapsdk-4.1 ldapjdk.jar
|
||||
java-pkg_jar-from jss-3.4 xpclass.jar jss4.jar
|
||||
java-pkg_jar-from idm-console-framework-1.1
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
eant -Dbuilt.dir="${S}"/build \
|
||||
-Dldapjdk.local.location="${S}" \
|
||||
-Djss.local.location="${S}" \
|
||||
-Dconsole.local.location="${S}" ${antflags} \
|
||||
||die "eant failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_newjar "${S}"/build/389-console-1.1.4_en.jar 389-console_en.jar
|
||||
java-pkg_dolauncher ${PN} --main com.netscape.management.client.console.Console \
|
||||
--pwd "/usr/share/dirsrv/html/java/" \
|
||||
--pkg_args "-Djava.util.prefs.systemRoot=\"\$HOME/.${PN}\" -Djava.util.prefs.userRoot=\"\$HOME/.${PN}\"" \
|
||||
|| die
|
||||
|
||||
doicon "${DISTDIR}"/fedora.png || die "doicon failed"
|
||||
make_desktop_entry ${PN} "Port389 Management Console" fedora System
|
||||
}
|
@ -1,3 +1,2 @@
|
||||
DIST 389-console-1.1.6.tar.bz2 113307 SHA256 8b5a4c250df29224f2f833395555c9a8ba4b4ed2a90fa1e9f4b36026d7c28fbb SHA512 81cef26d59ee6610ff344ed22bb47e26c7954ddb15a1ec71e10729df5edde73e631a5c25110619b046af1e583927f07c895b38878ef42a294ed85e86321f3eed WHIRLPOOL 94e617fb7691bd49dc313001858813d26a53c2d90de2a4f60c467cd4d71dac01b79ff7838ba6d23f1d2293a9f22307bb6665d1809ba48059ab4523939e92ed00
|
||||
DIST 389-console-1.1.7.tar.bz2 112970 SHA256 dcaf63654ec4c6986b9a3b10d79d8e0592f334fd42d34869b0b767bbffd01a05 SHA512 d2ea4c65ea6bb01d3163271a44bb4fab4167863e2df1389e8d4bd2782083c33563ddfd232512d8b28f0de037a7cf0dd7ee554c1660d40fa50d731224748d9f6e WHIRLPOOL dc1fed080e91fdee1a4dd7150a779a5d525c81020e2121127f9e7824e4a23f366907edf40c565332515cf7ba1654262bae82c7819185b31b99154050910548f0
|
||||
DIST fedora.png 11606 SHA256 88318e1704924c7d33aac3e37c195f99d29eb6f6f6235f254f254881257bbb0e SHA512 f6adbf8d3cb0e09a819baa54fc638bf48a478bbea666a49ed7f6ac91c3ee2e03ded61d7e17a184ae29dddfc128a11fee724dfaa42e0493a57dd7c91531809aad WHIRLPOOL c105c9daaa4ca4e1329a8bc7f6e403bfacf873db3f719e00b099fa2fb91eac550aa7222967518f8ad0ab99b94f59406082e27d99827c5bbf5ceeaecdb36a9d3c
|
||||
|
@ -1,2 +1,3 @@
|
||||
DIST sagan-rules-02032014.tar.gz 260618 SHA256 ca3ffef073b4a9d00b7ddc1e0c0cc9ee7b15fc074daf26bfb3faf028237bad52 SHA512 4038ff7922839da92340624ba91576020ebc2a6a9a987688662d1973f2bfeddec4cbd904ec9ca6a7ccaf8116885e6b8dd18ba61f61c54902232152f3913182ee WHIRLPOOL 3189cc7ca9df7fc21b84d632cc7eb95bd8f4e50512fe9cc0a1c2b589d2d45f15729dc7a42a5857352d3bbdf45db2bbec5e8e4be86581c21268be18ecfdcaae6f
|
||||
DIST sagan-rules-20120918.tar.gz 130169 SHA256 be60c56b8ba3bdc89b8c5370d2b9d02582af60fd64e169487532c8627bebbf6f SHA512 6316eb7bb605e890a1d7fae2dd9596ac7644fc372d62eaed49a546c7b5fd312693e9c6f6ee8cdf5a71d12b4038659402b723d5e4d547c855b0120f2d728cb149 WHIRLPOOL b11e371ef7f17cd3b07c7eb27c899bda5ed33c1a68827f344acb59669d4c7b54933ea2303219366f502828412df2663b100ba8dfd41126f11cb79d621be11de1
|
||||
DIST sagan-rules-20130430.tar.gz 240975 SHA256 58077c7ce1e47bb32965336afee3d372108325da67dc2f4a562a9850d986415c SHA512 bc31f043a0e14542665d9e1469d85427fea395bb86b833200dfa3c8f4cbd2591f6268f26a478c768ad8784aeb1a102e01e3bbfc63636a0384b2092193bbb9bdb WHIRLPOOL d460b320b415c71f48011406ee3cde1967b46249d5e09a11343fa028a2b1fe103c6775a2eaa485897d834b3727cbc41a90092471096b39e7a121db8a1de806e4
|
||||
|
@ -0,0 +1,31 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/sagan-rules/sagan-rules-20140203.ebuild,v 1.1 2014/06/26 13:24:48 maksbotan Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
DESCRIPTION="Rules for Sagan log analyzer"
|
||||
HOMEPAGE="http://sagan.softwink.com/"
|
||||
#SRC_URI="http://dev.gentoo.org/~maksbotan/sagan/sagan-rules-${PV}.tar.gz"
|
||||
SRC_URI="http://sagan.quadrantsec.com/rules/sagan-rules-02032014.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="+lognorm"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="${DEPEND}"
|
||||
PDEPEND="app-admin/sagan"
|
||||
|
||||
S=${WORKDIR}/rules
|
||||
|
||||
src_install() {
|
||||
insinto /etc/sagan-rules
|
||||
doins ./*.config
|
||||
doins ./*rules
|
||||
doins ./*map
|
||||
if use lognorm ; then
|
||||
doins ./*normalize.rulebase
|
||||
fi
|
||||
}
|
@ -1,36 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-arch/upx-bin/upx-bin-3.07-r1.ebuild,v 1.1 2011/10/10 15:29:17 matsuu Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit pax-utils
|
||||
|
||||
MY_P="${PN/-bin}-${PV}"
|
||||
DESCRIPTION="Ultimate Packer for eXecutables (binary version with proprietary NRV compression)"
|
||||
HOMEPAGE="http://upx.sourceforge.net/"
|
||||
SRC_URI="x86? ( http://upx.sourceforge.net/download/${MY_P}-i386_linux.tar.bz2 )
|
||||
amd64? ( http://upx.sourceforge.net/download/${MY_P}-amd64_linux.tar.bz2 )
|
||||
ppc? ( http://upx.sourceforge.net/download/${MY_P}-powerpc_linux.tar.bz2 )
|
||||
arm? ( http://upx.sourceforge.net/download/${MY_P}-armeb_linux.tar.bz2 )
|
||||
mips? ( http://upx.sourceforge.net/download/${MY_P}-mipsel_linux.tar.bz2 )"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE=""
|
||||
RESTRICT="strip"
|
||||
|
||||
RDEPEND="!app-arch/upx-ucl"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_install() {
|
||||
cd ${MY_P}*
|
||||
into /opt
|
||||
dobin upx
|
||||
pax-mark -m "${ED}"/opt/bin/upx
|
||||
doman upx.1
|
||||
dodoc upx.doc BUGS NEWS README* THANKS TODO
|
||||
dohtml upx.html
|
||||
}
|
@ -1,36 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-arch/upx-bin/upx-bin-3.08.ebuild,v 1.1 2013/02/04 07:54:55 patrick Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit pax-utils
|
||||
|
||||
MY_P="${PN/-bin}-${PV}"
|
||||
DESCRIPTION="Ultimate Packer for eXecutables (binary version with proprietary NRV compression)"
|
||||
HOMEPAGE="http://upx.sourceforge.net/"
|
||||
SRC_URI="x86? ( http://upx.sourceforge.net/download/${MY_P}-i386_linux.tar.bz2 )
|
||||
amd64? ( http://upx.sourceforge.net/download/${MY_P}-amd64_linux.tar.bz2 )
|
||||
ppc? ( http://upx.sourceforge.net/download/${MY_P}-powerpc_linux.tar.bz2 )
|
||||
arm? ( http://upx.sourceforge.net/download/${MY_P}-armeb_linux.tar.bz2 )
|
||||
mips? ( http://upx.sourceforge.net/download/${MY_P}-mipsel_linux.tar.bz2 )"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE=""
|
||||
RESTRICT="strip"
|
||||
|
||||
RDEPEND="!app-arch/upx-ucl"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_install() {
|
||||
cd ${MY_P}*
|
||||
into /opt
|
||||
dobin upx
|
||||
pax-mark -m "${ED}"/opt/bin/upx
|
||||
doman upx.1
|
||||
dodoc upx.doc BUGS NEWS README* THANKS TODO
|
||||
dohtml upx.html
|
||||
}
|
@ -1,37 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-arch/upx-bin/upx-bin-3.09.ebuild,v 1.1 2013/03/13 22:10:19 tomwij Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit pax-utils
|
||||
|
||||
MY_P="${PN/-bin}-${PV}"
|
||||
DESCRIPTION="Ultimate Packer for eXecutables (binary version with proprietary NRV compression)"
|
||||
HOMEPAGE="http://upx.sourceforge.net/"
|
||||
SRC_URI="x86? ( http://upx.sourceforge.net/download/${MY_P}-i386_linux.tar.bz2 )
|
||||
amd64? ( http://upx.sourceforge.net/download/${MY_P}-amd64_linux.tar.bz2 )
|
||||
ppc? ( http://upx.sourceforge.net/download/${MY_P}-powerpc_linux.tar.bz2 )
|
||||
arm? ( http://upx.sourceforge.net/download/${MY_P}-armeb_linux.tar.bz2 )
|
||||
mips? ( http://upx.sourceforge.net/download/${MY_P}-mipsel_linux.tar.bz2 )"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
RESTRICT="strip"
|
||||
|
||||
RDEPEND="!app-arch/upx-ucl"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
QA_PREBUILT="/opt/bin/upx"
|
||||
|
||||
src_install() {
|
||||
cd ${MY_P}*
|
||||
into /opt
|
||||
dobin upx
|
||||
pax-mark -m "${ED}"/opt/bin/upx
|
||||
doman upx.1
|
||||
dodoc upx.doc BUGS NEWS README* THANKS TODO
|
||||
dohtml upx.html
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST hdup-1.6.37.tar.gz 111441 SHA256 567551d77642ad7681aa86b806c1ca6ae4f5bf44724c2487a24a6491e25538b4 SHA512 4ebdfd5aa763d66001e7d7b81e31e40843383c09b979866edc3701536bd1afb498708afaff27c11012379b0dc7ab0aac97d317425219d639200503557396ef63 WHIRLPOOL 25cd0c1135e4d953d815728ba2cb0046d03cb8e1730c2c0d4bb54ec626426df40fa6cef04f9bb1616789402ddeafaf9b03999d6ed5af965588110a7538fd1469
|
||||
DIST hdup-2.0.14.tar.bz2 87803 SHA256 6781ec53a739c0ae15129bbbb4674cad012501b30b6652ab54d0b300de677609 SHA512 076876345d58bc6a1b987adc3ea10b1e82652504f52579d62c3f9f97c120fd56f3177deb4fe810b1579ab473061d2ab38b0ab97b83427ec84d5141f7043897f8 WHIRLPOOL 0f882463fcf0df0de019d18d915f87944d4dddb49e3e560c5d6c42479b947bc5ffe87808c95bdba6815f57a2ebee28c3f0e46c7666a63589811410934481dc34
|
||||
|
@ -1,44 +0,0 @@
|
||||
# Copyright 1999-2008 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-backup/hdup/hdup-1.6.37.ebuild,v 1.6 2008/04/21 11:07:36 chtekk Exp $
|
||||
|
||||
KEYWORDS="~amd64 ~ppc x86"
|
||||
DESCRIPTION="Hdup is backup program using tar, find, gzip/bzip2, mcrypt and ssh."
|
||||
HOMEPAGE="http://www.miek.nl/projects/hdup16/hdup16.html"
|
||||
SRC_URI="http://www.miek.nl/projects/${PN}16/previous/${P}.tar.gz"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="app-arch/bzip2
|
||||
app-arch/gzip
|
||||
app-arch/tar"
|
||||
|
||||
RDEPEND="${DEPEND}
|
||||
net-misc/openssh
|
||||
sys-apps/coreutils
|
||||
sys-apps/findutils"
|
||||
|
||||
S="${WORKDIR}/${PN}16"
|
||||
|
||||
src_compile() {
|
||||
econf || die "econf failed"
|
||||
emake || die "emake failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodir /usr/sbin
|
||||
make prefix="${D}/usr" mandir="${D}/usr/share/man" sysconfdir="${D}/etc" install || die "make install failed"
|
||||
|
||||
dohtml doc/FAQ.html
|
||||
dodoc ChangeLog Credits INSTALL
|
||||
|
||||
dodoc contrib/cleanup.pl contrib/backup.pl
|
||||
|
||||
dodoc examples/hdup.cron examples/no-history-post-run.sh
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Now edit your /etc/hdup/${PN}.conf to configure your backups."
|
||||
elog "You can also check included examples and contrib, see /usr/share/doc/${P}/."
|
||||
}
|
@ -1,4 +1,5 @@
|
||||
DIST ccid-1.4.14.tar.bz2 484659 SHA256 c50b04ac8e800a14246ea42cf37f73bd42fdb3645afb290b7af091f9e15cd146 SHA512 72e9a026689a308a1eb96ab7e31a6af987782e8c66721e1fd0f4eb7b575363309303cdf138863c35e3feda789517122fd6f15cbd4b03bf3ed870a5e7fae9b5ea WHIRLPOOL ddb427f1efa1e5b512fb114b9cf57e92b81a449bc46f6788b8054754c09b7d30491713f76da08fd9272c3803b1f12dfa38269ef501bc7817bd6bd47d3a739115
|
||||
DIST ccid-1.4.15.tar.bz2 487625 SHA256 5436182246f15b3e78b1ad6707022b02dc400e3f50c4cb5e5d340a4e716d990a SHA512 393eb65db0fb31b58d4010c10cae6c7592078b02d0e77b7741330cc3b1e5dd768fa08dbaf75db39c547e3603fa70aa1c8aaf3b536266314f2f04d2ff2b6fb29c WHIRLPOOL 0dd511454cf8e39303318b61f9e2390f2ef27b763e80e9270f55ee15966ced8378f3f3ee5440b6380481f970f03ae37bbb2221da6c3d2d658622ea4cdc3aee3f
|
||||
DIST ccid-1.4.16.tar.bz2 490965 SHA256 0a0e6aa38863c79e38673c085254fa94fd0aa040b9622304a8d6d4222b7e7ea0 SHA512 b3b1761c591ba9981f646433bda4b300e6a1a2bf80b5416c47302cd430ec4f33deac8c0753d3e0568591d0ee6aea180695f2dc8f206585a85de506d1873eb915 WHIRLPOOL 083add5ca26fd1bea18d3547c482e9f0597f65d650ba942c23718ed2cebe216afc41c03ce22d9dadf1b3b9248b9fcc17ec7026a143fc9daa93b383e887603e9d
|
||||
DIST ccid-1.4.17.tar.bz2 491972 SHA256 ccdab8a9bc1ad288242d5f9ef399405e9cb96fb09caadb43e3649cbaba84c451 SHA512 65dd0020b7b586eb6e0db5953561e8dc578daee522bf472542f05355293171a9635ea64447ecf465bc65b13a5fdeb7d223e15b53ca7045b880ba8bde859bd4eb WHIRLPOOL f3044a70112bdbf061262ed69c218547d266f3ec8ae31bf211b54456829b2956b782c473d4ea21c0f8e97edc2b262c1db5a7aa45baee287f9d48fef3260f7df3
|
||||
DIST ccid-1.4.8.tar.bz2 470158 SHA256 7aca09fa4b9099e423402fd5df424adbafa502888710d1fda6015b6c1ff637ef SHA512 1b5b56521e2469c23e033141236aae0791d50640f810a012d8420002a56a6929e476a1c8462653909e8939f9439b043a64b247aced7d1f511f96a7dd0071ffa0 WHIRLPOOL d0c51bf360ee63a72646af98e44b4b1940336dcf3400f249b075d8efcabdf650cfbaa6be2656d411195411646c82ac410487b8b274e88457edc8c4e4a23ac15d
|
||||
|
@ -0,0 +1,49 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-crypt/ccid/ccid-1.4.17.ebuild,v 1.1 2014/06/26 19:57:03 flameeyes Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
STUPID_NUM="4091"
|
||||
|
||||
inherit eutils toolchain-funcs udev autotools-utils
|
||||
|
||||
DESCRIPTION="CCID free software driver"
|
||||
HOMEPAGE="http://pcsclite.alioth.debian.org/ccid.html"
|
||||
SRC_URI="http://alioth.debian.org/frs/download.php/file/${STUPID_NUM}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE="twinserial +usb"
|
||||
|
||||
RDEPEND=">=sys-apps/pcsc-lite-1.8.3
|
||||
usb? ( virtual/libusb:1 )"
|
||||
DEPEND="${RDEPEND}
|
||||
kernel_linux? ( virtual/pkgconfig )"
|
||||
|
||||
DOCS=( README AUTHORS )
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
LEX=:
|
||||
$(use_enable twinserial)
|
||||
$(use_enable usb libusb)
|
||||
)
|
||||
|
||||
autotools-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
autotools-utils_src_install
|
||||
|
||||
if use kernel_linux; then
|
||||
# note: for eudev support, rules probably will always need to be
|
||||
# installed to /usr
|
||||
|
||||
# ccid >=1.4.11 version changed the rules drastically in a minor
|
||||
# release to no longer use the pcscd group. Using the old ones in
|
||||
# the mean time.
|
||||
udev_newrules "${FILESDIR}"/92_pcscd_ccid.rules 92-pcsc-ccid.rules
|
||||
fi
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST xmltoman-0.3.tar.gz 14780 SHA256 5dfde3066ee70b481888f5937159c120854ff660004addf80eceb44fda3920cc SHA512 e29c8038266e9479e469bc4f288dcbd760b91590a1a557dea053e44ac286741109eeaaf90d2d5258b16ce84a4fb77a709bea429575916b75fc226cd6ebb3d461 WHIRLPOOL 880da40fd1479d1caaaba3be08b53fe7aa0092ba4c1a367fb0a4437fb150e2c9e30bca2a16959a6fffa72c9cd1d142c72e210fb51a8f4f809b47508570b5f720
|
||||
DIST xmltoman-0.4.tar.gz 15250 SHA256 948794a316aaecd13add60e17e476beae86644d066cb60171fc6b779f2df14b0 SHA512 347722731e2101ecd0619f88f4efdbca534810c96977a1281af685e8a61f4c1a826a71a9f0e3af43cc899936640787366a78077f36d23a9efcfeb789dbcfae22 WHIRLPOOL d55ac95434d0aa54bdb5f45dee7c4a6a7ce1467fb7a2165d08ddf2fc6a0bb6001c15b1db4edc21d8eb4791cac2a2fc32a5c83ad4b3c851216117d1d21f441838
|
||||
|
@ -1,22 +0,0 @@
|
||||
# Copyright 1999-2009 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-doc/xmltoman/xmltoman-0.3.ebuild,v 1.10 2009/06/28 13:30:44 swegener Exp $
|
||||
|
||||
DESCRIPTION="Simple scripts for converting xml to groff or html"
|
||||
HOMEPAGE="http://sourceforge.net/projects/xmltoman/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc sparc x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-lang/perl
|
||||
dev-perl/XML-Parser"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" PREFIX="/usr" install || die "emake install failed"
|
||||
dodoc README
|
||||
doman xmltoman.1 xmlmantohtml.1
|
||||
}
|
@ -1,254 +0,0 @@
|
||||
diff -up flasm-1.62/assembler.y.midrule flasm-1.62/assembler.y
|
||||
--- flasm-1.62/assembler.y.midrule 2008-12-20 22:44:50.000000000 +0100
|
||||
+++ flasm-1.62/assembler.y 2008-12-20 22:54:03.000000000 +0100
|
||||
@@ -605,24 +605,24 @@ finally_opt
|
||||
|
||||
trycatchfinally
|
||||
: TRY name_opt {
|
||||
- $$ = writeByte(SWFACTION_TRY);
|
||||
+ $<num>$ = writeByte(SWFACTION_TRY);
|
||||
/* action length */
|
||||
- $$ += writeShort(strlen($2)+8);
|
||||
+ $<num>$ += writeShort(strlen($2)+8);
|
||||
/* zero flag */
|
||||
- $$ += writeByte(0);
|
||||
+ $<num>$ += writeByte(0);
|
||||
/* zero try length */
|
||||
- $$ += writeShort(0);
|
||||
+ $<num>$ += writeShort(0);
|
||||
/* zero catch length */
|
||||
- $$ += writeShort(0);
|
||||
+ $<num>$ += writeShort(0);
|
||||
/* zero finally length */
|
||||
- $$ += writeShort(0);
|
||||
+ $<num>$ += writeShort(0);
|
||||
/* error variable name */
|
||||
- $$ += writeString($2);
|
||||
+ $<num>$ += writeString($2);
|
||||
}
|
||||
|
||||
- statements_opt { $$ = $<num>3 + $4; patchLength($$ - 6, $4); }
|
||||
- catch_opt { $$ = $<num>5 + $6; patchLength($$ - 8, $6); }
|
||||
- finally_opt { $$ = $<num>7 + $8; patchLength($$ - 10, $8); }
|
||||
+ statements_opt { $<num>$ = $<num>3 + $4; patchLength($<num>$ - 6, $4); }
|
||||
+ catch_opt { $<num>$ = $<num>5 + $6; patchLength($<num>$ - 8, $6); }
|
||||
+ finally_opt { $<num>$ = $<num>7 + $8; patchLength($<num>$ - 10, $8); }
|
||||
END {
|
||||
byte flag = 0;
|
||||
$$ = $<num>9;
|
||||
@@ -634,24 +634,24 @@ trycatchfinally
|
||||
}
|
||||
|
||||
| TRY register {
|
||||
- $$ = writeByte(SWFACTION_TRY);
|
||||
+ $<num>$ = writeByte(SWFACTION_TRY);
|
||||
/* action length */
|
||||
- $$ += writeShort(8);
|
||||
+ $<num>$ += writeShort(8);
|
||||
/* zero flag */
|
||||
- $$ += writeByte(0);
|
||||
+ $<num>$ += writeByte(0);
|
||||
/* zero try length */
|
||||
- $$ += writeShort(0);
|
||||
+ $<num>$ += writeShort(0);
|
||||
/* zero catch length */
|
||||
- $$ += writeShort(0);
|
||||
+ $<num>$ += writeShort(0);
|
||||
/* zero finally length */
|
||||
- $$ += writeShort(0);
|
||||
+ $<num>$ += writeShort(0);
|
||||
/* error register number */
|
||||
- $$ += writeByte((byte) $2);
|
||||
+ $<num>$ += writeByte((byte) $2);
|
||||
}
|
||||
|
||||
- statements_opt { $$ = $<num>3 + $4; patchLength($$ - 6, $4); }
|
||||
- catch_opt { $$ = $<num>5 + $6; patchLength($$ - 8, $6); }
|
||||
- finally_opt { $$ = $<num>7 + $8; patchLength($$ - 10, $8); }
|
||||
+ statements_opt { $<num>$ = $<num>3 + $4; patchLength($<num>$ - 6, $4); }
|
||||
+ catch_opt { $<num>$ = $<num>5 + $6; patchLength($<num>$ - 8, $6); }
|
||||
+ finally_opt { $<num>$ = $<num>7 + $8; patchLength($<num>$ - 10, $8); }
|
||||
END {
|
||||
byte flag = 4;
|
||||
$$ = $<num>9;
|
||||
@@ -707,25 +707,25 @@ name_opt
|
||||
|
||||
function
|
||||
: FUNCTION name_opt {
|
||||
- $$ = writeByte(SWFACTION_DEFINEFUNCTION);
|
||||
+ $<num>$ = writeByte(SWFACTION_DEFINEFUNCTION);
|
||||
/* zero block length */
|
||||
- $$ += writeShort(0);
|
||||
- $$ += writeString($2);
|
||||
+ $<num>$ += writeShort(0);
|
||||
+ $<num>$ += writeString($2);
|
||||
}
|
||||
|
||||
'(' function_args ')' {
|
||||
unsigned int i;
|
||||
numArgs = $5;
|
||||
|
||||
- $$ = $<num>3 + writeShort(numArgs);
|
||||
+ $<num>$ = $<num>3 + writeShort(numArgs);
|
||||
|
||||
for(i = 0; i < numArgs; ++i)
|
||||
- $$ += writeString(func_args[i]);
|
||||
+ $<num>$ += writeString(func_args[i]);
|
||||
|
||||
/* zero function length */
|
||||
- $$ += writeShort(0);
|
||||
+ $<num>$ += writeShort(0);
|
||||
/* patch block length */
|
||||
- patchLength($$-3, $$-3);
|
||||
+ patchLength($<num>$-3, $<num>$-3);
|
||||
}
|
||||
|
||||
statements_opt END {
|
||||
@@ -837,25 +837,25 @@ autoregarglist
|
||||
|
||||
function2
|
||||
: FUNCTION2 name_opt {
|
||||
- $$ = writeByte(SWFACTION_DEFINEFUNCTION2);
|
||||
+ $<num>$ = writeByte(SWFACTION_DEFINEFUNCTION2);
|
||||
/* zero block length */
|
||||
- $$ += writeShort(0);
|
||||
+ $<num>$ += writeShort(0);
|
||||
/* function name */
|
||||
- $$ += writeString($2);
|
||||
+ $<num>$ += writeString($2);
|
||||
curFunc++;
|
||||
memset(regfunc_args[curFunc], 0, sizeof (regfunc_args[curFunc]));
|
||||
numArgs = 0;
|
||||
/* zero num of function arguments */
|
||||
- $$ += writeShort(numArgs);
|
||||
+ $<num>$ += writeShort(numArgs);
|
||||
/* allocate zero registers */
|
||||
numRegisters[curFunc] = 0;
|
||||
- $$ += writeByte(numRegisters[curFunc]);
|
||||
+ $<num>$ += writeByte(numRegisters[curFunc]);
|
||||
/* zero automatic register flags */
|
||||
- $$ += writeShort(0);
|
||||
+ $<num>$ += writeShort(0);
|
||||
}
|
||||
|
||||
'(' regarglist ')' {
|
||||
- $$ = $<num>3 + $5;
|
||||
+ $<num>$ = $<num>3 + $5;
|
||||
/* patch num of function arguments */
|
||||
patchLength($5 + 3, numArgs);
|
||||
autoregFlags = 0;
|
||||
@@ -866,9 +866,9 @@ function2
|
||||
byte curautoreg = 1;
|
||||
unsigned int i;
|
||||
|
||||
- $$ = $<num>7;
|
||||
+ $<num>$ = $<num>7;
|
||||
/* zero body length */
|
||||
- $$ += writeShort(0);
|
||||
+ $<num>$ += writeShort(0);
|
||||
|
||||
/* make sure auto registers are allocated in the right order */
|
||||
for (i = 0; i < MAX_AUTO_REGS; i++) {
|
||||
@@ -883,9 +883,9 @@ function2
|
||||
}
|
||||
|
||||
/* patch automatic register flags */
|
||||
- patchLength($$ - $<num>3, autoregFlags);
|
||||
+ patchLength($<num>$ - $<num>3, autoregFlags);
|
||||
/* patch block length */
|
||||
- patchLength($$ - 3, $$ - 3);
|
||||
+ patchLength($<num>$ - 3, $<num>$ - 3);
|
||||
}
|
||||
|
||||
statements_opt END {
|
||||
@@ -905,11 +905,11 @@ function2
|
||||
|
||||
with
|
||||
: WITH {
|
||||
- $$ = writeByte(SWFACTION_WITH);
|
||||
+ $<num>$ = writeByte(SWFACTION_WITH);
|
||||
/* length of with action */
|
||||
- $$ += writeShort(2);
|
||||
+ $<num>$ += writeShort(2);
|
||||
/* length of with block - will be patched */
|
||||
- $$ += writeShort(0);
|
||||
+ $<num>$ += writeShort(0);
|
||||
}
|
||||
|
||||
statements_opt END {
|
||||
@@ -921,9 +921,9 @@ with
|
||||
|
||||
settarget
|
||||
: SETTARGET STRING {
|
||||
- $$ = writeByte(SWFACTION_SETTARGET);
|
||||
- $$ += writeShort(strlen($2)+1);
|
||||
- $$ += writeString($2);
|
||||
+ $<num>$ = writeByte(SWFACTION_SETTARGET);
|
||||
+ $<num>$ += writeShort(strlen($2)+1);
|
||||
+ $<num>$ += writeString($2);
|
||||
}
|
||||
|
||||
statements_opt END {
|
||||
@@ -934,7 +934,7 @@ settarget
|
||||
;
|
||||
|
||||
settargetexpression
|
||||
- : SETTARGETEXPR { $$ = writeByte(SWFACTION_SETTARGETEXPRESSION); }
|
||||
+ : SETTARGETEXPR { $<num>$ = writeByte(SWFACTION_SETTARGETEXPRESSION); }
|
||||
statements_opt END {
|
||||
$$ = $3 + writeByte(SWFACTION_SETTARGET);
|
||||
$$ += $<num>2 + writeShort(1);
|
||||
@@ -946,9 +946,9 @@ ifframeloadedexpression
|
||||
: IFFRAMELOADEDEXPR {
|
||||
if (frameloadedStart>-1)
|
||||
yyerror("IfFrameLoaded actions can't be nested");
|
||||
- $$ = writeByte(SWFACTION_IFFRAMELOADEDEXPRESSION);
|
||||
- $$ += writeShort(1);
|
||||
- $$ += writeByte(0);
|
||||
+ $<num>$ = writeByte(SWFACTION_IFFRAMELOADEDEXPRESSION);
|
||||
+ $<num>$ += writeShort(1);
|
||||
+ $<num>$ += writeByte(0);
|
||||
frameloadedStart = numActions;
|
||||
}
|
||||
|
||||
@@ -963,10 +963,10 @@ ifframeloaded
|
||||
: IFFRAMELOADED INTEGER {
|
||||
if (frameloadedStart>-1)
|
||||
yyerror("IfFrameLoaded actions can't be nested");
|
||||
- $$ = writeByte(SWFACTION_IFFRAMELOADED);
|
||||
- $$ += writeShort(3);
|
||||
- $$ += writeShort($2);
|
||||
- $$ += writeByte(0);
|
||||
+ $<num>$ = writeByte(SWFACTION_IFFRAMELOADED);
|
||||
+ $<num>$ += writeShort(3);
|
||||
+ $<num>$ += writeShort($2);
|
||||
+ $<num>$ += writeByte(0);
|
||||
frameloadedStart = numActions;
|
||||
}
|
||||
|
||||
@@ -1199,9 +1199,9 @@ opcode
|
||||
constant_list_opt { $$ = writeConstants(); }
|
||||
|
||||
| PUSH {
|
||||
- $$ = writeByte(SWFACTION_PUSHDATA);
|
||||
+ $<num>$ = writeByte(SWFACTION_PUSHDATA);
|
||||
/* length */
|
||||
- $$ += writeShort(0);
|
||||
+ $<num>$ += writeShort(0);
|
||||
}
|
||||
|
||||
push_list {
|
||||
@@ -1212,10 +1212,10 @@ opcode
|
||||
| SWFACTION HEX {
|
||||
if (xtoi($2)>0xff)
|
||||
yyerror("Action code out of range");
|
||||
- $$ = writeByte((char)xtoi($2));
|
||||
+ $<num>$ = writeByte((char)xtoi($2));
|
||||
if (xtoi($2)>=0x80)
|
||||
/* length */
|
||||
- $$ += writeShort(0);
|
||||
+ $<num>$ += writeShort(0);
|
||||
}
|
||||
|
||||
hexlist_opt {
|
||||
|
@ -1,38 +0,0 @@
|
||||
--- Makefile.orig 2010-02-23 11:13:31.000000000 +0100
|
||||
+++ Makefile 2010-02-23 11:13:37.000000000 +0100
|
||||
@@ -1,6 +1,4 @@
|
||||
UNAME = $(shell uname)
|
||||
-CC = gcc
|
||||
-CFLAGS = -g -Wall -O2
|
||||
LIBS = -lz
|
||||
OFILES = util.o keywords.o flasm.o unflasm.o lex.yy.o assembler.tab.o
|
||||
GARBAGE = assembler.tab.* lex.yy.c memwatch.o gmon.out memwatch.log core
|
||||
@@ -9,8 +7,6 @@
|
||||
ifneq (,$(findstring debug,$(MAKECMDGOALS)))
|
||||
CFLAGS += -DMEMWATCH -pg -p -pedantic -W -Wcast-align -Wcast-qual -Wshadow -Wnested-externs -Wstrict-prototypes -Waggregate-return -Wmissing-prototypes -Wpointer-arith
|
||||
OFILES += memwatch.o
|
||||
-else
|
||||
- CFLAGS += -s
|
||||
endif
|
||||
|
||||
# executable should not depend on cygwin.dll
|
||||
@@ -26,13 +22,15 @@
|
||||
-rm -f ${OFILES} ${GARBAGE}
|
||||
|
||||
flasm: ${OFILES}
|
||||
- ${CC} $(CFLAGS) -o flasm ${OFILES} ${LIBS}
|
||||
+ ${CC} $(CFLAGS) $(LDFLAGS) -o flasm ${OFILES} ${LIBS}
|
||||
|
||||
-assembler.tab.c assembler.tab.h: assembler.y
|
||||
+assembler.tab.c: assembler.tab.h
|
||||
+
|
||||
+assembler.tab.h: assembler.y
|
||||
bison --defines --debug assembler.y
|
||||
|
||||
lex.yy.c: assembler.flex assembler.tab.h
|
||||
flex -i assembler.flex
|
||||
|
||||
keywords.c: keywords.gperf assembler.tab.h
|
||||
- gperf --language=ANSI-C -t -T -E -o -k 1,$$,2,5 -S8 keywords.gperf > keywords.c
|
||||
\ No newline at end of file
|
||||
+ gperf --language=ANSI-C -t -T -E -o -k 1,$$,2,5 -S8 keywords.gperf > keywords.c
|
@ -1,2 +1 @@
|
||||
DIST dictd-1.11.2.tar.gz 418649 SHA256 60e7f44259adee87e952ea5d7e87555685224fb1d1dca24d3735b9feb58c871f SHA512 1ff92fb4bf9b6e3f5eb9f9352371d6f8902f0c2bc0d4ea64c702a1043c32f199178f383a783f7a9b5b31a7c764c4155d0c4921f5571ff98ffbffeb522a4a76f5 WHIRLPOOL 05b6bff3dd1d20bb7fffa18278e6c4c50e34f7d123cbfd19820fc2640c0ebccbbea330f96b411579bf017400b86d0a915c58492e299f1ade9c5682d8d9adcce2
|
||||
DIST dictd-1.12.1.tar.gz 423870 SHA256 a237f6ecdc854ab10de5145ed42eaa2d9b6d51ffdc495f7daee59b05cc363656 SHA512 51bceba36f9e34ffcbbf42a6235aab6097fe66ba8ed086ea60d0df8b7daf91c6449fdf7c5605150c77035d98029053233db106f9188786b30e02ecd61748209b WHIRLPOOL d9f92667c0cb66d893f4f4630cc2dae61dd54b5d96b01d312d83eebd34278ddb11b76c2fcaef40a0b6dcd608d5a542d14c6645c7769893879eb9c229e04c9648
|
||||
|
@ -1,100 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/dictd/dictd-1.11.2.ebuild,v 1.8 2012/05/24 04:43:00 vapier Exp $
|
||||
|
||||
EAPI="3"
|
||||
|
||||
inherit eutils user
|
||||
|
||||
DESCRIPTION="Dictionary Client/Server for the DICT protocol"
|
||||
HOMEPAGE="http://www.dict.org/"
|
||||
SRC_URI="mirror://sourceforge/dict/${P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
# We install rfc so - ISOC-rfc
|
||||
LICENSE="GPL-2 ISOC-rfc"
|
||||
KEYWORDS="alpha amd64 ~hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris"
|
||||
IUSE="dbi judy minimal"
|
||||
|
||||
# <gawk-3.1.6 makes tests fail.
|
||||
DEPEND="sys-apps/coreutils
|
||||
sys-libs/zlib
|
||||
dev-libs/libmaa
|
||||
dbi? ( dev-db/libdbi )
|
||||
judy? ( dev-libs/judy )
|
||||
>=sys-apps/coreutils-6.10"
|
||||
RDEPEND="${DEPEND}
|
||||
>=sys-apps/gawk-3.1.6"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup dictd # used in src_test()
|
||||
enewuser dictd -1 -1 -1 dictd
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/dictd-1.10.11-colorit-nopp-fix.patch"
|
||||
|
||||
[[ ${CHOST} == *-darwin* ]] && \
|
||||
sed -i -e 's:libtool:glibtool:g' libmaa/Makefile.in Makefile.in
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_with dbi plugin-dbi) \
|
||||
$(use_with judy plugin-judy) \
|
||||
--sysconfdir="${EPREFIX}"/etc/dict
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if use minimal; then
|
||||
emake dictfmt dictzip dictzip || die
|
||||
else
|
||||
emake || die "make failed"
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
use minimal && return 0 # All tests are for dictd which we don't build...
|
||||
if [[ ${EUID} -eq 0 ]]; then
|
||||
# If dictd is run as root user (-userpriv) it drops its privileges to
|
||||
# dictd user and group. Give dictd group write access to test directory.
|
||||
chown :dictd "${WORKDIR}" "${S}/test"
|
||||
chmod 770 "${WORKDIR}" "${S}/test"
|
||||
fi
|
||||
emake test || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if use minimal; then
|
||||
emake DESTDIR="${D}" install.dictzip install.dict install.dictfmt || die "install failed"
|
||||
else
|
||||
emake DESTDIR="${D}" install || die "install failed"
|
||||
|
||||
dodoc doc/{dicf.ms,rfc.ms,rfc.sh,rfc2229.txt} || die "installing docs part 2 failed"
|
||||
dodoc doc/{security.doc,toc.ms} || die "installing docs part 3 failed"
|
||||
|
||||
# conf files. For dict.conf see below.
|
||||
insinto /etc/dict
|
||||
for f in dictd.conf site.info colorit.conf; do
|
||||
doins "${FILESDIR}/1.10.11/${f}" || die "failed to install ${f}"
|
||||
done
|
||||
|
||||
# startups for dictd
|
||||
newinitd "${FILESDIR}/1.10.11/dictd.initd" dictd || die "failed to install dictd.initd"
|
||||
newconfd "${FILESDIR}/1.10.11/dictd.confd" dictd || die "failed to install dictd.confd"
|
||||
fi
|
||||
|
||||
insinto /etc/dict
|
||||
doins "${FILESDIR}/1.10.11/dict.conf" || die
|
||||
# Install docs
|
||||
dodoc README TODO ChangeLog ANNOUNCE NEWS || die "installing docs part 1 failed"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
echo
|
||||
elog "To start and use ${PN} you need to emerge at least one dictionary from"
|
||||
elog "the app-dicts category with the package name starting with 'dictd-'."
|
||||
elog "To install all available dictionaries, emerge app-dicts/dictd-dicts."
|
||||
elog "${PN} will NOT start without at least one dictionary."
|
||||
echo
|
||||
}
|
@ -1,102 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/dictd/dictd-1.12.1.ebuild,v 1.1 2013/01/29 08:38:29 patrick Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit eutils user
|
||||
|
||||
DESCRIPTION="Dictionary Client/Server for the DICT protocol"
|
||||
HOMEPAGE="http://www.dict.org/ http://sourceforge.net/projects/dict/"
|
||||
SRC_URI="mirror://sourceforge/dict/${P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
# We install rfc so - ISOC-rfc
|
||||
LICENSE="GPL-2 ISOC-rfc"
|
||||
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris"
|
||||
IUSE="dbi judy minimal"
|
||||
|
||||
# <gawk-3.1.6 makes tests fail.
|
||||
RDEPEND="sys-apps/coreutils
|
||||
sys-libs/zlib
|
||||
dev-libs/libmaa
|
||||
dbi? ( dev-db/libdbi )
|
||||
judy? ( dev-libs/judy )
|
||||
>=sys-apps/coreutils-6.10"
|
||||
DEPEND="${RDEPEND}
|
||||
>=sys-apps/gawk-3.1.6
|
||||
virtual/yacc"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup dictd # used in src_test()
|
||||
enewuser dictd -1 -1 -1 dictd
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/dictd-1.10.11-colorit-nopp-fix.patch
|
||||
epatch "${FILESDIR}"/dictd-1.12.0-build.patch
|
||||
|
||||
[[ ${CHOST} == *-darwin* ]] && \
|
||||
sed -i -e 's:libtool:glibtool:g' Makefile.in
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_with dbi plugin-dbi) \
|
||||
$(use_with judy plugin-judy) \
|
||||
--sysconfdir="${EPREFIX}"/etc/dict
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if use minimal; then
|
||||
emake dictfmt dictzip dictzip
|
||||
else
|
||||
emake
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
use minimal && return 0 # All tests are for dictd which we don't build...
|
||||
if [[ ${EUID} -eq 0 ]]; then
|
||||
# If dictd is run as root user (-userpriv) it drops its privileges to
|
||||
# dictd user and group. Give dictd group write access to test directory.
|
||||
chown :dictd "${WORKDIR}" "${S}/test"
|
||||
chmod 770 "${WORKDIR}" "${S}/test"
|
||||
fi
|
||||
emake test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if use minimal; then
|
||||
emake DESTDIR="${D}" install.dictzip install.dict install.dictfmt
|
||||
else
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
dodoc doc/{dicf.ms,rfc.ms,rfc.sh,rfc2229.txt}
|
||||
dodoc doc/{security.doc,toc.ms}
|
||||
|
||||
# conf files. For dict.conf see below.
|
||||
insinto /etc/dict
|
||||
for f in dictd.conf site.info colorit.conf; do
|
||||
doins "${FILESDIR}/1.10.11/${f}"
|
||||
done
|
||||
|
||||
# startups for dictd
|
||||
newinitd "${FILESDIR}/1.10.11/dictd.initd" dictd
|
||||
newconfd "${FILESDIR}/1.10.11/dictd.confd" dictd
|
||||
fi
|
||||
|
||||
insinto /etc/dict
|
||||
doins "${FILESDIR}/1.10.11/dict.conf"
|
||||
# Install docs
|
||||
dodoc README TODO ChangeLog ANNOUNCE NEWS
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
echo
|
||||
elog "To start and use ${PN} you need to emerge at least one dictionary from"
|
||||
elog "the app-dicts category with the package name starting with 'dictd-'."
|
||||
elog "To install all available dictionaries, emerge app-dicts/dictd-dicts."
|
||||
elog "${PN} will NOT start without at least one dictionary."
|
||||
echo
|
||||
}
|
@ -1,6 +1 @@
|
||||
DIST HaXml-1.13.2.tar.gz 472348 SHA256 a4473977f76a3c2514c1456fb2d4eceb4b73a64104d9a0635f10b33c98a58aa1 SHA512 03609fc0a2e634e98fced50648b048390a7df35890bac0f59fd40691c76b44f6663d67840b9ca86d03a063d4fec539d170e21bb46deafcbcc36d4d3b51a7ebd2 WHIRLPOOL eb2d4116084f0799b45600b6ed851c904e61151f7f3532a694a818ff7a495844aed4364318d7f2d6007ff9ead080694f680123b481d029aec6a357fb7b073159
|
||||
DIST HaXml-1.13.3.tar.gz 472660 SHA256 60872bc3684f6884e4b8fdfca95adf455072e8dc1f74105a33a6a69781e7a921 SHA512 88f9d21304e0c1c271ae283d5b915d9bfbeb26966a56c72722e8c79e82aa2bd96b07df45143e930f11513540358f2c3061bfc24d0487ff51e69d9d12a80bfcef WHIRLPOOL 77a3eab6005b9bc6d89376021d786a3d288e3d7decb5065d11e1a90089750667d1ba183fa6746dc11bb1a56656819676d417af5c7548bb3d5fc5493cdd671a0c
|
||||
DIST HaXml-1.23.2.tar.gz 146596 SHA256 68e23bdb8fff6b3e109c544e85a7d874a4cc0d8a8db4b577e442ecddc30cf809 SHA512 a340cb914e9fd41eaefc3aeff760abc02cd06e2077bbab4523c36b3b0dfd5fb49d42e9f202434804f2f63218a08f20a3a3e39a13b6c381dca38f771cb1db40d0 WHIRLPOOL 34a7d10429525a0d6cdea8c9c72ecc4a680418ccd2724760efeaa14bf7c4f009ff968f62e97dde10cf36834f8efa243504a5d8c23718822af08dbe5dbc89756b
|
||||
DIST HaXml-1.23.3.tar.gz 146596 SHA256 0fe925a45f78ca87e197c8ac98976b0dd9737f56d2f9ac415b298287b6dce3be SHA512 4691d5fa86b60732b448777974ba20281288929fb37e11bedf3a4b8f0353c40ba0a9fdb6f449b0045dc58ba4a2cba222846fa36f71171e8af9bf3d7649565f33 WHIRLPOOL 1bf18b26c4e95fae6992c6a2e392cfefb1e9cda9f213cd65884009f38fcf3c063b541d936c1c42a08d19bb85b54f5ca4a45bea71c525cd8c26dbf980f8e65496
|
||||
DIST HaXml-1.23.tar.gz 144359 SHA256 5061d16be9a585e6cddad96d5e07d24af6f38b12a6aba82a922defce13b6a692 SHA512 259563742595037f2ba3edb90c9062eadf05ddfe3dd5b1ce9b4891f4cf6a9891d5f0c1b9bedbfdc786d8e960c99147db5bec3e0ad58af1591680e495980692fd WHIRLPOOL 1c1bdd7cf0fc55ddcd0729f99b955dcdbb5919ec339125f7273c09eb4a7b35edbb1aa80cd3e70f2501aed1c44de075c119e0d18dcfbd929efa9b0cb374276968
|
||||
DIST HaXml-1.24.tar.gz 143107 SHA256 b6f9b147f80dbac04b11633d0bd9309c7ce9d2b0cff67b83086212a4f0567ba2 SHA512 421864e4177b16f485b72d33210a67914c2040664d604db5cc70b356a518114f11dbcc1b1c8f300fd045338605613a14317bd5bf5f041a8e38990d3c5dc7e94c WHIRLPOOL 7d2bee34221d932847fb208003090997545e543ab29338673e3e23e0b895cfe982985e78ec68a17e9973ced866711d9fbc42b8a4beb14e99ef6b7d7fe3f6994e
|
||||
|
@ -1,85 +0,0 @@
|
||||
--- HaXml-1.23-orig/HaXml.cabal 2012-06-15 21:27:50.000000000 +1000
|
||||
+++ HaXml-1.23/HaXml.cabal 2012-06-16 17:18:02.471555934 +1000
|
||||
@@ -11,7 +11,7 @@
|
||||
Haskell utilities for parsing, filtering, transforming and
|
||||
generating XML documents.
|
||||
build-type: Simple
|
||||
-cabal-version: >=1.2
|
||||
+cabal-version: >=1.8
|
||||
extra-source-files: LICENCE-GPL, LICENCE-LGPL
|
||||
|
||||
flag splitBase
|
||||
@@ -84,6 +84,7 @@
|
||||
Hs-Source-Dirs: src/tools, src
|
||||
cpp-options: -DMAJOR=1 -DMINOR=23
|
||||
Main-Is: Canonicalise.hs
|
||||
+ build-depends: base, bytestring, containers, filepath, polyparse >= 1.5, pretty
|
||||
|
||||
Executable CanonicaliseLazy
|
||||
GHC-Options: -Wall
|
||||
@@ -91,6 +92,7 @@
|
||||
Hs-Source-Dirs: src/tools, src
|
||||
cpp-options: -DMAJOR=1 -DMINOR=23
|
||||
Main-Is: CanonicaliseLazy.hs
|
||||
+ build-depends: base, bytestring, containers, filepath, polyparse >= 1.5, pretty
|
||||
|
||||
Executable Xtract
|
||||
GHC-Options: -Wall
|
||||
@@ -98,6 +100,7 @@
|
||||
Hs-Source-Dirs: src/tools, src
|
||||
cpp-options: -DMAJOR=1 -DMINOR=23
|
||||
Main-Is: Xtract.hs
|
||||
+ build-depends: base, bytestring, containers, filepath, polyparse >= 1.5, pretty
|
||||
|
||||
Executable Validate
|
||||
GHC-Options: -Wall
|
||||
@@ -105,6 +108,7 @@
|
||||
Hs-Source-Dirs: src/tools, src
|
||||
cpp-options: -DMAJOR=1 -DMINOR=23
|
||||
Main-Is: Validate.hs
|
||||
+ build-depends: base, bytestring, containers, filepath, polyparse >= 1.5, pretty
|
||||
|
||||
Executable MkOneOf
|
||||
GHC-Options: -Wall
|
||||
@@ -112,6 +116,7 @@
|
||||
Hs-Source-Dirs: src/tools, src
|
||||
cpp-options: -DMAJOR=1 -DMINOR=23
|
||||
Main-Is: MkOneOf.hs
|
||||
+ build-depends: base, bytestring, containers, filepath, polyparse >= 1.5, pretty
|
||||
|
||||
Executable DtdToHaskell
|
||||
GHC-Options: -Wall
|
||||
@@ -119,6 +124,7 @@
|
||||
Hs-Source-Dirs: src/tools, src
|
||||
cpp-options: -DMAJOR=1 -DMINOR=23
|
||||
Main-Is: DtdToHaskell.hs
|
||||
+ build-depends: base, bytestring, containers, filepath, polyparse >= 1.5, pretty
|
||||
|
||||
Executable XsdToHaskell
|
||||
GHC-Options: -Wall
|
||||
@@ -126,6 +132,7 @@
|
||||
Hs-Source-Dirs: src/tools, src
|
||||
cpp-options: -DMAJOR=1 -DMINOR=23
|
||||
Main-Is: XsdToHaskell.hs
|
||||
+ build-depends: base, bytestring, containers, filepath, polyparse >= 1.5, pretty
|
||||
|
||||
Executable FpMLToHaskell
|
||||
GHC-Options: -Wall
|
||||
@@ -133,5 +140,5 @@
|
||||
Hs-Source-Dirs: src/tools, src
|
||||
cpp-options: -DMAJOR=1 -DMINOR=23
|
||||
Main-Is: FpMLToHaskell.hs
|
||||
- build-depends: directory
|
||||
+ build-depends: base, bytestring, containers, directory, filepath, HaXml == 1.23.*, polyparse >= 1.5, pretty
|
||||
|
||||
--- HaXml-1.23-orig/src/tools/FpMLToHaskell.hs 2012-06-15 21:27:50.000000000 +1000
|
||||
+++ HaXml-1.23/src/tools/FpMLToHaskell.hs 2012-06-16 16:22:22.423493642 +1000
|
||||
@@ -33,7 +33,7 @@
|
||||
import Text.XML.HaXml.Schema.Environment as Env
|
||||
import Text.XML.HaXml.Schema.TypeConversion as XsdToH
|
||||
import Text.XML.HaXml.Schema.PrettyHaskell
|
||||
-import qualified Text.XML.HaXml.Schema.PrettyHsBoot as HsBoot
|
||||
+import qualified Text.XML.HaXml.Schema.PrettyHaskell as HsBoot
|
||||
import qualified Text.XML.HaXml.Schema.HaskellTypeModel as Haskell
|
||||
import Text.ParserCombinators.Poly
|
||||
import Text.PrettyPrint.HughesPJ (render,vcat)
|
@ -1,37 +0,0 @@
|
||||
--- HaXml-1.23-orig/src/Text/XML/HaXml/Schema/HaskellTypeModel.hs 2012-06-15 21:27:49.000000000 +1000
|
||||
+++ HaXml-1.23/src/Text/XML/HaXml/Schema/HaskellTypeModel.hs 2012-06-16 16:46:26.358651992 +1000
|
||||
@@ -77,8 +77,8 @@
|
||||
-- rests with the input doc, not with the caller of the parser.
|
||||
| ElementsAttrsAbstract {-typename-}XName
|
||||
{-subtypes-}[(XName,Maybe XName)]
|
||||
- -- ^ [(type name, module where declared later)]
|
||||
Comment
|
||||
+ -- ^ [(type name, module where declared later)]
|
||||
|
||||
-- becomes function
|
||||
-- elementE :: Parser T
|
||||
--- HaXml-1.23-orig/src/Text/XML/HaXml/Schema/PrettyHaskell.hs 2012-06-15 21:27:50.000000000 +1000
|
||||
+++ HaXml-1.23/src/Text/XML/HaXml/Schema/PrettyHaskell.hs 2012-06-16 16:49:56.952051977 +1000
|
||||
@@ -403,9 +403,6 @@
|
||||
$$ text "data" <+> ppUnqConId nx t
|
||||
$$ nest 8 (ppvList "=" "|" "" ppAbstrCons insts
|
||||
$$ text "deriving (Eq,Show)")
|
||||
--- $$ text "-- instance SchemaType" <+> ppUnqConId nx t
|
||||
--- <+> text "(declared in Instance module)"
|
||||
--- *** Declare instance here
|
||||
$$ text "instance SchemaType" <+> ppUnqConId nx t <+> text "where"
|
||||
$$ nest 4 (text "parseSchemaType s = do"
|
||||
$$ nest 4 (vcat (intersperse (text "`onFail`")
|
||||
@@ -417,12 +414,6 @@
|
||||
where
|
||||
ppAbstrCons (name,Nothing) = con name <+> ppConId nx name
|
||||
ppAbstrCons (name,Just mod) = con name <+> ppConId nx name
|
||||
--- *** Declare FwdDecl type here (proxy for type declared in later module)
|
||||
--- ppAbstrCons (name,Just mod) = text "forall q . (FwdDecl" <+>
|
||||
--- fwd name <+> text "q," <+>
|
||||
--- text "SchemaType q) =>" <+>
|
||||
--- con name <+>
|
||||
--- text "("<>fwd name<>text"->q)" <+> fwd name
|
||||
ppParse (name,Nothing) = text "(fmap" <+> con name <+>
|
||||
text "$ parseSchemaType s)"
|
||||
ppParse (name,Just _) = ppParse (name,Nothing)
|
@ -1,37 +0,0 @@
|
||||
--- HaXml-1.23.2-orig/src/Text/XML/HaXml/Schema/HaskellTypeModel.hs 2012-06-18 23:17:57.000000000 +1000
|
||||
+++ HaXml-1.23.2/src/Text/XML/HaXml/Schema/HaskellTypeModel.hs 2012-06-18 23:37:04.279978702 +1000
|
||||
@@ -77,8 +77,8 @@
|
||||
-- rests with the input doc, not with the caller of the parser.
|
||||
| ElementsAttrsAbstract {-typename-}XName
|
||||
{-subtypes-}[(XName,Maybe XName)]
|
||||
- -- ^ [(type name, module where declared later)]
|
||||
Comment
|
||||
+ -- ^ [(type name, module where declared later)]
|
||||
|
||||
-- becomes function
|
||||
-- elementE :: Parser T
|
||||
--- HaXml-1.23.2-orig/src/Text/XML/HaXml/Schema/PrettyHaskell.hs 2012-06-18 23:17:57.000000000 +1000
|
||||
+++ HaXml-1.23.2/src/Text/XML/HaXml/Schema/PrettyHaskell.hs 2012-06-18 23:34:50.954660444 +1000
|
||||
@@ -403,9 +403,6 @@
|
||||
$$ text "data" <+> ppUnqConId nx t
|
||||
$$ nest 8 (ppvList "=" "|" "" ppAbstrCons insts
|
||||
$$ text "deriving (Eq,Show)")
|
||||
--- $$ text "-- instance SchemaType" <+> ppUnqConId nx t
|
||||
--- <+> text "(declared in Instance module)"
|
||||
--- *** Declare instance here
|
||||
$$ text "instance SchemaType" <+> ppUnqConId nx t <+> text "where"
|
||||
$$ nest 4 (text "parseSchemaType s = do"
|
||||
$$ nest 4 (vcat (intersperse (text "`onFail`")
|
||||
@@ -417,12 +414,6 @@
|
||||
where
|
||||
ppAbstrCons (name,Nothing) = con name <+> ppConId nx name
|
||||
ppAbstrCons (name,Just mod) = con name <+> ppConId nx name
|
||||
--- *** Declare FwdDecl type here (proxy for type declared in later module)
|
||||
--- ppAbstrCons (name,Just mod) = text "forall q . (FwdDecl" <+>
|
||||
--- fwd name <+> text "q," <+>
|
||||
--- text "SchemaType q) =>" <+>
|
||||
--- con name <+>
|
||||
--- text "("<>fwd name<>text"->q)" <+> fwd name
|
||||
ppParse (name,Nothing) = text "(fmap" <+> con name <+>
|
||||
text "$ parseSchemaType s)"
|
||||
ppParse (name,Just _) = ppParse (name,Nothing)
|
@ -1,49 +0,0 @@
|
||||
# Copyright 1999-2007 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-haskell/haxml/haxml-1.13.2.ebuild,v 1.9 2007/12/13 17:57:57 dcoutts Exp $
|
||||
|
||||
CABAL_FEATURES="lib bin profile haddock"
|
||||
inherit base haskell-cabal versionator
|
||||
|
||||
MY_PN=HaXml
|
||||
MY_P=${MY_PN}-${PV}
|
||||
|
||||
DESCRIPTION="Haskell utilities for parsing, filtering, transforming and generating XML documents"
|
||||
HOMEPAGE="http://www.haskell.org/HaXml/"
|
||||
SRC_URI="http://www.haskell.org/HaXml/${MY_P}.tar.gz"
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
|
||||
KEYWORDS="amd64 ~ia64 ppc ppc64 sparc x86"
|
||||
|
||||
IUSE=""
|
||||
|
||||
# actually, >=ghc-5.02 should be ok (if not using cabal)
|
||||
# hugs and nhc98 are ok too, somebody might want to add support for them
|
||||
DEPEND=">=dev-lang/ghc-6.2
|
||||
>=dev-haskell/cabal-1.1.3-r1"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_unpack() {
|
||||
base_src_unpack
|
||||
|
||||
# Don't warn so much, and don't compile with -O2
|
||||
sed -i 's/GHC-Options: -Wall -O2/GHC-Options: -O/' "${S}/HaXml.cabal"
|
||||
|
||||
# Add in the extra split-base deps
|
||||
if version_is_at_least "6.8" "$(ghc-version)"; then
|
||||
sed -i -e '/build-depends:/a \
|
||||
, pretty, containers' \
|
||||
"${S}/HaXml.cabal"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cabal_src_install
|
||||
|
||||
if use doc; then
|
||||
dohtml -r docs/*
|
||||
dodoc docs/icfp99.dvi docs/icfp99.ps.gz
|
||||
fi
|
||||
}
|
@ -1,45 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-haskell/haxml/haxml-1.13.3.ebuild,v 1.3 2012/09/12 15:20:42 qnikst Exp $
|
||||
|
||||
CABAL_FEATURES="lib bin profile haddock"
|
||||
inherit haskell-cabal versionator
|
||||
|
||||
MY_PN="HaXml"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="Utilities for manipulating XML documents"
|
||||
HOMEPAGE="http://www.cs.york.ac.uk/fp/HaXml/"
|
||||
SRC_URI="mirror://hackage/packages/archive/${MY_PN}/${PV}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
|
||||
IUSE=""
|
||||
|
||||
DEPEND=">=dev-lang/ghc-6.2"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
|
||||
# Don't warn so much, and don't compile with -O2
|
||||
sed -i 's/GHC-Options: -Wall -O2/GHC-Options: -O/' "${S}/HaXml.cabal"
|
||||
|
||||
# Unless ghc 6.8, remove the new packages
|
||||
if ! version_is_at_least "6.8" "$(ghc-version)"; then
|
||||
sed -i -e 's/, pretty, containers//' \
|
||||
"${S}/HaXml.cabal"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cabal_src_install
|
||||
|
||||
if use doc; then
|
||||
dohtml -r docs/*
|
||||
dodoc docs/icfp99.dvi docs/icfp99.ps.gz
|
||||
fi
|
||||
}
|
@ -1,32 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-haskell/haxml/haxml-1.23.2.ebuild,v 1.2 2012/09/12 15:20:42 qnikst Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
# ebuild generated by hackport 0.2.18.9999
|
||||
|
||||
CABAL_FEATURES="bin lib profile haddock hoogle hscolour"
|
||||
inherit base haskell-cabal
|
||||
|
||||
MY_PN="HaXml"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="Utilities for manipulating XML documents"
|
||||
HOMEPAGE="http://www.cs.york.ac.uk/fp/HaXml/"
|
||||
SRC_URI="mirror://hackage/packages/archive/${MY_PN}/${PV}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=dev-haskell/polyparse-1.5[profile?]
|
||||
dev-haskell/random[profile?]
|
||||
>=dev-lang/ghc-6.10.1"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-haskell/cabal-1.2"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
PATCHES=("${FILESDIR}/${PN}-1.23.2-haddock.patch")
|
@ -1,32 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-haskell/haxml/haxml-1.23.3.ebuild,v 1.1 2012/11/18 12:35:04 gienah Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
# ebuild generated by hackport 0.3.9999
|
||||
|
||||
CABAL_FEATURES="bin lib profile haddock hoogle hscolour"
|
||||
inherit base haskell-cabal
|
||||
|
||||
MY_PN="HaXml"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="Utilities for manipulating XML documents"
|
||||
HOMEPAGE="http://www.cs.york.ac.uk/fp/HaXml/"
|
||||
SRC_URI="mirror://hackage/packages/archive/${MY_PN}/${PV}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=dev-haskell/polyparse-1.5:=[profile?]
|
||||
dev-haskell/random:=[profile?]
|
||||
>=dev-lang/ghc-6.10.4:="
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-haskell/cabal-1.2"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
PATCHES=("${FILESDIR}/${PN}-1.23.3-haddock.patch")
|
@ -1,30 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-haskell/haxml/haxml-1.23.ebuild,v 1.2 2012/09/12 15:20:42 qnikst Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
CABAL_FEATURES="bin lib profile haddock hscolour hoogle"
|
||||
inherit base haskell-cabal
|
||||
|
||||
MY_PN="HaXml"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="Utilities for manipulating XML documents"
|
||||
HOMEPAGE="http://www.cs.york.ac.uk/fp/HaXml/"
|
||||
SRC_URI="mirror://hackage/packages/archive/${MY_PN}/${PV}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT=0
|
||||
KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=dev-haskell/polyparse-1.5[profile?]
|
||||
>=dev-lang/ghc-6.8.2"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-haskell/cabal-1.2"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
PATCHES=("${FILESDIR}/${PN}-1.23-fix-build.patch"
|
||||
"${FILESDIR}/${PN}-1.23-haddock.patch")
|
@ -1,2 +1 @@
|
||||
DIST idm-console-framework-1.1.5.tar.bz2 706718 SHA256 6d4d08955bab2bdbda624bca4c21486f310a4044cf5a8c47d0b3697ec99d9121 SHA512 48bd70f16a0d554c769ad79bf71478586543ad20a7fdd05248dd2a74d23412bc3e525bd6677aac1126c3be1ae31bf6145c783e6a5e275878dd2467be955cd4e5 WHIRLPOOL faa6fe9dba9894aa28d8751dca635165bce8102856cc875ce6e13ce167d8d4f108bea83c1a742791cd8604d49f9c021fc48e5c9201c1216c7a0cdabd1014eb40
|
||||
DIST idm-console-framework-1.1.7.tar.bz2 708770 SHA256 0d3eb64b2a7ce349add244b1544fb18a3dbf04c40b09ef91ad1ad04b44286d5c SHA512 ce4441cbc9917f6ffd0ef6ced44c7ebc542c14db60e7c6eeb844f8c68cbb15fe533916b9ea363d1e865759138d92d38365e9172206c7cd0fa385f4bf443aa739 WHIRLPOOL 1fc8f1dd66e61ed3149e0cf36a76b22794e2836cf3ac95c7172a85bc4b69476d0785f2cd2da05add7e9e3db52acef89a86273715339798f9cf71d8d9f8be558a
|
||||
|
@ -1,51 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/idm-console-framework/idm-console-framework-1.1.5.ebuild,v 1.4 2011/06/14 18:46:05 lxnay Exp $
|
||||
|
||||
EAPI="2"
|
||||
|
||||
JAVA_PKG_IUSE="doc examples source"
|
||||
|
||||
inherit java-pkg-2 eutils java-ant-2
|
||||
|
||||
DESCRIPTION="A Java Management Console framework used for remote server management"
|
||||
HOMEPAGE="http://directory.fedoraproject.org/"
|
||||
SRC_URI="http://directory.fedoraproject.org/sources/${P}.tar.bz2"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="1.1"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
COMMON_DEPEND="dev-java/jss:3.4
|
||||
dev-java/ldapsdk:4.1"
|
||||
RDEPEND=">=virtual/jre-1.6
|
||||
${COMMON_DEPEND}"
|
||||
DEPEND=">=virtual/jdk-1.6
|
||||
${COMMON_DEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
java-pkg_jar-from ldapsdk-4.1 ldapjdk.jar
|
||||
java-pkg_jar-from jss-3.4 xpclass.jar jss4.jar
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
eant -Dbuilt.dir="${S}"/build \
|
||||
-Dldapjdk.local.location="${S}" \
|
||||
-Djss.local.location="${S}" ${antflags}
|
||||
use doc && eant -Dbuilt.dir="${S}"/build \
|
||||
-Dldapjdk.local.location="${S}" \
|
||||
-Djss.local.location="${S}" ${antflags} javadoc
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_newjar "${S}"/build/release/jars/idm-console-mcc-${PV}.jar idm-console-mcc.jar
|
||||
java-pkg_newjar "${S}"/build/release/jars/idm-console-mcc-${PV}_en.jar idm-console-mcc_en.jar
|
||||
java-pkg_newjar "${S}"/build/release/jars/idm-console-nmclf-${PV}.jar idm-console-nmclf.jar
|
||||
java-pkg_newjar "${S}"/build/release/jars/idm-console-nmclf-${PV}_en.jar idm-console-nmclf_en.jar
|
||||
java-pkg_newjar "${S}"/build/release/jars/idm-console-base-${PV}.jar idm-console-base.jar
|
||||
|
||||
use doc && java-pkg_dojavadoc build/doc
|
||||
use examples && java-pkg_doexamples examples
|
||||
use source && java-pkg_dosrc src/com
|
||||
}
|
@ -1,3 +1 @@
|
||||
DIST bas-2.2.tar.gz 251580 SHA256 1172e03ac03d04f71ab410c534b638569c8970e7933b7a7620b5c06efc3c8f36 SHA512 5519e296d35fe8b117f5f5696a74618b4170b06a91d68ecd8ad256f393722eb4a4329c2fade00ba031964efd4ead50c8f6b45a4f684348aa368d6608f97bdb94 WHIRLPOOL a3cf33893731e423cc1d0e5ccf8e078908ad3af4d56e3f2c8498a7bb5455b3650cb86225468fdfe49a9efcfb23a84f1c0320ba081c0c62009a689e2613b994b7
|
||||
DIST bas-2.3.tar.gz 255903 SHA256 4a6c1006f309049b2eb74bfa59cae0b90a78c01d9d3d436872d9afbd96f9155d SHA512 9cddcfa98efbc1566219f65d103c7c2d1123f1661c86e10da89b05130af61685e662220b7738fd33903391b40eb19c80d57c9d3f08ee9ee2713a01dd55ef327d WHIRLPOOL c114be3777aa99a96c6201274fa74b4f53f4f62824162331921ede430b1cf7d1901758ea11bcfd53d918e0c1d47d8a2c4cbda9f024fb5d458b4317fdd79f28b6
|
||||
DIST bas-2.4.tar.gz 258055 SHA256 2a147dd75a80049c1e6030c97aadb03a31fdbb622d0e18bd7961d167c9b48fac SHA512 1a86805d1981a7bc920d7f6ab7827ee9f0ed9535b78b4c46718106e7abe0b1ef9298631e7e4d3d9bf206a8ca0e1239db48a9d94b0b85b71101aea0956d1454d7 WHIRLPOOL 15a1c8a7f00158e330c13998f00976ab10258d8dffb9689722cb01db7ddd62fd15b6a1cc8ad91368a578729e312088a34f29dcaf60b960e43736e3aa2ff8049d
|
||||
|
@ -1,41 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/bas/bas-2.2.ebuild,v 1.1 2011/04/19 20:23:31 signals Exp $
|
||||
|
||||
EAPI=4
|
||||
inherit autotools eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="An interpreter for the classic dialect of the programming language BASIC"
|
||||
HOMEPAGE="http://www.moria.de/~michael/bas/"
|
||||
SRC_URI="http://www.moria.de/~michael/bas/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="lr0"
|
||||
|
||||
RDEPEND="sys-libs/ncurses
|
||||
virtual/libintl"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/gettext"
|
||||
|
||||
src_prepare() {
|
||||
epatch \
|
||||
"${FILESDIR}"/${PN}-2.1-configure.patch \
|
||||
"${FILESDIR}"/${PN}-2.1-makefile.patch
|
||||
|
||||
eautoconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
tc-export AR
|
||||
econf \
|
||||
$(use_enable lr0)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
dodoc NEWS README
|
||||
insinto /usr/share/doc/${PF}/pdf
|
||||
doins bas.pdf
|
||||
}
|
@ -1,41 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/bas/bas-2.3.ebuild,v 1.1 2013/01/30 06:51:04 patrick Exp $
|
||||
|
||||
EAPI=4
|
||||
inherit autotools eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="An interpreter for the classic dialect of the programming language BASIC"
|
||||
HOMEPAGE="http://www.moria.de/~michael/bas/"
|
||||
SRC_URI="http://www.moria.de/~michael/bas/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="lr0"
|
||||
|
||||
RDEPEND="sys-libs/ncurses
|
||||
virtual/libintl"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/gettext"
|
||||
|
||||
src_prepare() {
|
||||
epatch \
|
||||
"${FILESDIR}"/${P}-configure.patch \
|
||||
"${FILESDIR}"/${PN}-2.1-makefile.patch
|
||||
|
||||
eautoconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
tc-export AR
|
||||
econf \
|
||||
$(use_enable lr0)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
dodoc NEWS README
|
||||
insinto /usr/share/doc/${PF}/pdf
|
||||
doins bas.pdf
|
||||
}
|
@ -1,28 +0,0 @@
|
||||
Remove hardcoded CFLAG -pipe
|
||||
Remove hardcoded LDFLAG -g
|
||||
|
||||
Disable check for lrint to fix compile warning.
|
||||
|
||||
Patch by Kevin McCarthy <signals42@gmail.com>
|
||||
|
||||
--- configure.in
|
||||
+++ configure.in
|
||||
@@ -31,8 +31,8 @@
|
||||
AC_PROG_CC
|
||||
if test "$GCC" = yes
|
||||
then
|
||||
- CFLAGS="${CFLAGS} ${EXTRA_GCFLAGS}-pipe -Wall -Wno-unused -Wshadow -Wbad-function-cast -Wmissing-prototypes -Wstrict-prototypes -Wcast-align -Wcast-qual -Wpointer-arith -Wwrite-strings -Wmissing-declarations -Wnested-externs -Wundef -pedantic -fno-common"
|
||||
- LDFLAGS="${LDFLAGS} ${EXTRA_GLDFLAGS}-g"
|
||||
+ CFLAGS="${CFLAGS} ${EXTRA_GCFLAGS} -Wall -Wno-unused -Wshadow -Wbad-function-cast -Wmissing-prototypes -Wstrict-prototypes -Wcast-align -Wcast-qual -Wpointer-arith -Wwrite-strings -Wmissing-declarations -Wnested-externs -Wundef -pedantic -fno-common"
|
||||
+ LDFLAGS="${LDFLAGS} ${EXTRA_GLDFLAGS}"
|
||||
else
|
||||
CFLAGS="${CFLAGS} ${EXTRA_CFLAGS}"
|
||||
LDFLAGS="${LDFLAGS} ${EXTRA_LDFLAGS}"
|
||||
@@ -65,7 +65,6 @@
|
||||
exit 1
|
||||
fi
|
||||
|
||||
-AC_CHECK_FUNCS(lrint)
|
||||
AC_CHECK_FUNCS(nanosleep)
|
||||
|
||||
AC_CHECK_FUNCS(tgetent,have_tgetent=yes)
|
@ -1,21 +0,0 @@
|
||||
--- configure.in 2012-08-30 16:29:25.000000000 +0800
|
||||
+++ configure.in.new 2013-01-30 14:48:16.504664907 +0800
|
||||
@@ -31,8 +31,8 @@
|
||||
AC_PROG_CC
|
||||
if test "$GCC" = yes
|
||||
then
|
||||
- CFLAGS="${CFLAGS} ${EXTRA_GCFLAGS}-pipe -Wall -Wshadow -Wbad-function-cast -Wmissing-prototypes -Wstrict-prototypes -Wcast-align -Wcast-qual -Wpointer-arith -Wwrite-strings -Wmissing-declarations -Wnested-externs -Wundef -pedantic -fno-common"
|
||||
- LDFLAGS="${LDFLAGS} ${EXTRA_GLDFLAGS}-g"
|
||||
+ CFLAGS="${CFLAGS} ${EXTRA_GCFLAGS} -Wall -Wshadow -Wbad-function-cast -Wmissing-prototypes -Wstrict-prototypes -Wcast-align -Wcast-qual -Wpointer-arith -Wwrite-strings -Wmissing-declarations -Wnested-externs -Wundef -pedantic -fno-common"
|
||||
+ LDFLAGS="${LDFLAGS} ${EXTRA_GLDFLAGS}"
|
||||
else
|
||||
CFLAGS="${CFLAGS} ${EXTRA_CFLAGS}"
|
||||
LDFLAGS="${LDFLAGS} ${EXTRA_LDFLAGS}"
|
||||
@@ -66,7 +66,6 @@
|
||||
fi
|
||||
|
||||
AC_CHECK_HEADERS(tgmath.h,have_tgmath_h=yes)
|
||||
-AC_CHECK_FUNCS(lrint)
|
||||
AC_CHECK_FUNCS(nanosleep)
|
||||
|
||||
AC_CHECK_FUNCS(tgetent,have_tgetent=yes)
|
@ -0,0 +1,53 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/nqp/nqp-2014.06.ebuild,v 1.1 2014/06/27 07:00:03 patrick Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils multilib
|
||||
|
||||
GITCRAP=7792847
|
||||
|
||||
DESCRIPTION="Not Quite Perl, a Perl 6 bootstrapping compiler"
|
||||
HOMEPAGE="http://rakudo.org/"
|
||||
SRC_URI="http://github.com/perl6/${PN}/tarball/${PV} -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~x86 ~amd64"
|
||||
#IUSE="doc +parrot java moar"
|
||||
# doesn't build with parrot, disable temporarily
|
||||
IUSE="doc java +moar"
|
||||
REQUIRED_USE="|| ( java moar )"
|
||||
|
||||
RDEPEND="java? ( >=virtual/jre-1.7 )
|
||||
moar? ( =dev-lang/moarvm-${PV} )"
|
||||
DEPEND="${RDEPEND}
|
||||
java? ( >=virtual/jdk-1.7 )
|
||||
dev-lang/perl"
|
||||
|
||||
S=${WORKDIR}/perl6-nqp-${GITCRAP}
|
||||
|
||||
src_configure() {
|
||||
use java && myconf+="jvm,"
|
||||
use moar && myconf+="moar,"
|
||||
perl Configure.pl --backend=${myconf} --prefix=/usr || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake -j1 || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake -j1 test || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${ED}" install || die
|
||||
|
||||
dodoc CREDITS README.pod || die
|
||||
|
||||
if use doc; then
|
||||
dodoc -r docs/* || die
|
||||
fi
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST parrot-6.1.0.tar.gz 4602229 SHA256 87d25119c73acdb26f89ac4c68d73f3d996451ada51f3cb2cd4878b6f0e0a34c SHA512 f6945a44566cb4a4f6e4cc6c056ecb0038caf0b1b20927c12427ec24f22ba77d19043b403bde3d212324bc8f1fa83fa619661255a13e13d7066bbeb1f407b74f WHIRLPOOL cac154c3d8c78ba9ac1b86144c809261229e16fa86236303cce193ca726c914ab39aa5dc093f2678e63d117a6628242f50b936430c9a2b774203d0382f6af179
|
||||
DIST parrot-6.2.0.tar.gz 4608819 SHA256 a4c97e5974cf6e6ee1e34317aafd2d87a3bd63730098a050d4f09802b13da814 SHA512 a6d99285fc4158faef783b28c6dba441abc3ced513569880d9986fdd6b48d020ffb38792dc4e0fbb843c11b58b969f063387a7e7179181e3bc3db253ab761291 WHIRLPOOL 3fde9a41d124088d8c220932e0fd8b6fd6336a524f7337f6a87be01993cbd71388fbda4ee91960dc81543f4d7266c95f617d0e32b6c487dbf7993ea0f62d3a4f
|
||||
DIST parrot-6.3.0.tar.gz 4598294 SHA256 42aa409fa82d827019ebd218e8f9501b50e04ee81f3ccf705e03f59611317a1b SHA512 5b74c6f6d2044a49a1787a7e5b1b13c9367fc61452aafc8e4021d91080d569ec67e6017b044388b951abeb50391aef49fd88c35c8015a2cfd818cb08a1cce155 WHIRLPOOL 99461589a43f0e543496305010ae7861b66199f071a2adeca40649c3dbd4e8bed910560e7da883e463e4a212cf3f0d0840c71f482c5bdf8be6d773bd0749d931
|
||||
DIST parrot-6.5.0.tar.gz 4615454 SHA256 249047f8fc2041ce460d3524547c10faf4462facdffd6b4f9b42f250640c79de SHA512 a1be39a3c65134c190d63b4c711c6d8f94c064f5454b0f12bac1f698598ecffa079a101bbb8eb4cc4e30be2d6257093a6afb99ada4c478cf990de2574667d408 WHIRLPOOL f13f46b194a9d4e31db4e289b3c1baac0b0276fd40027423b8c891ab5e6d4da1eb1e2b10d52329280fc70cdf0a9d82ed3606a51f7e238ae9b34d1424e3dd1c77
|
||||
|
@ -0,0 +1,82 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/parrot/parrot-6.5.0.ebuild,v 1.1 2014/06/27 06:34:08 patrick Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils multilib
|
||||
|
||||
# weird failures
|
||||
RESTRICT="test"
|
||||
|
||||
DESCRIPTION="Virtual machine designed to efficiently compile and execute bytecode for dynamic languages"
|
||||
HOMEPAGE="http://www.parrot.org/"
|
||||
SRC_URI="ftp://ftp.parrot.org/pub/parrot/releases/all/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0/6.1.0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
IUSE="opengl nls doc examples gdbm gmp ssl +unicode pcre"
|
||||
|
||||
RDEPEND="sys-libs/readline
|
||||
opengl? ( media-libs/freeglut )
|
||||
nls? ( sys-devel/gettext )
|
||||
unicode? ( >=dev-libs/icu-2.6:= )
|
||||
gdbm? ( >=sys-libs/gdbm-1.8.3-r1 )
|
||||
gmp? ( >=dev-libs/gmp-4.1.4 )
|
||||
ssl? ( dev-libs/openssl )
|
||||
pcre? ( dev-libs/libpcre )
|
||||
doc? ( dev-perl/JSON )"
|
||||
|
||||
DEPEND="dev-lang/perl[doc?]
|
||||
${RDEPEND}"
|
||||
|
||||
src_configure() {
|
||||
myconf="--disable-rpath"
|
||||
use unicode || myconf+=" --without-icu"
|
||||
use ssl || myconf+=" --without-crypto"
|
||||
use gdbm || myconf+=" --without-gdbm"
|
||||
use nls || myconf+=" --without-gettext"
|
||||
use gmp || myconf+=" --without-gmp"
|
||||
use opengl || myconf+=" --without-opengl"
|
||||
use pcre || myconf+=" --without-pcre"
|
||||
|
||||
perl Configure.pl \
|
||||
--ccflags="${CFLAGS}" \
|
||||
--linkflags="${LDFLAGS}" \
|
||||
--prefix="${EPREFIX}"/usr \
|
||||
--libdir="${EPREFIX}"/usr/$(get_libdir) \
|
||||
--mandir="${EPREFIX}"/usr/share/man \
|
||||
--sysconfdir="${EPREFIX}"/etc \
|
||||
--sharedstatedir="${EPREFIX}"/var/lib/parrot \
|
||||
$myconf || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"${S}"/blib/lib
|
||||
# occasionally dies in parallel make
|
||||
emake -j1 || die
|
||||
if use doc ; then
|
||||
emake -j1 html || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake -j1 test || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake -j1 install-dev DESTDIR="${D}" DOC_DIR="${EPREFIX}/usr/share/doc/${PF}" || die
|
||||
dodoc CREDITS DONORS.pod PBC_COMPAT PLATFORMS RESPONSIBLE_PARTIES TODO || die
|
||||
if use examples; then
|
||||
insinto "/usr/share/doc/${PF}/examples"
|
||||
doins -r examples/* || die
|
||||
fi
|
||||
if use doc; then
|
||||
insinto "/usr/share/doc/${PF}/editor"
|
||||
doins -r editor || die
|
||||
cd docs/html
|
||||
dohtml -r developer.html DONORS.pod.html index.html ops.html parrotbug.html pdds.html \
|
||||
pmc.html tools.html docs src tools || die
|
||||
fi
|
||||
}
|
@ -0,0 +1,801 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.4.30.ebuild,v 1.1 2014/06/27 10:40:39 olemarkus Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool systemd
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
|
||||
function php_get_uri ()
|
||||
{
|
||||
case "${1}" in
|
||||
"php-pre")
|
||||
echo "http://downloads.php.net/stas/${2}"
|
||||
;;
|
||||
"php")
|
||||
echo "http://www.php.net/distributions/${2}"
|
||||
;;
|
||||
"olemarkus")
|
||||
echo "http://dev.gentoo.org/~olemarkus/php/${2}"
|
||||
;;
|
||||
"gentoo")
|
||||
echo "mirror://gentoo/${2}"
|
||||
;;
|
||||
*)
|
||||
die "unhandled case in php_get_uri"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
PHP_MV="$(get_major_version)"
|
||||
SLOT="$(get_version_component_range 1-2)"
|
||||
|
||||
# alias, so we can handle different types of releases (finals, rcs, alphas,
|
||||
# betas, ...) w/o changing the whole ebuild
|
||||
PHP_PV="${PV/_rc/RC}"
|
||||
PHP_PV="${PHP_PV/_alpha/alpha}"
|
||||
PHP_PV="${PHP_PV/_beta/beta}"
|
||||
PHP_RELEASE="php"
|
||||
[[ ${PV} == ${PV/_alpha/} ]] || PHP_RELEASE="php-pre"
|
||||
[[ ${PV} == ${PV/_beta/} ]] || PHP_RELEASE="php-pre"
|
||||
[[ ${PV} == ${PV/_rc/} ]] || PHP_RELEASE="php-pre"
|
||||
PHP_P="${PN}-${PHP_PV}"
|
||||
|
||||
PHP_PATCHSET_LOC="olemarkus"
|
||||
|
||||
PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
|
||||
|
||||
PHP_PATCHSET="2"
|
||||
PHP_PATCHSET_URI="
|
||||
$(php_get_uri "${PHP_PATCHSET_LOC}" "php-patchset-${SLOT}-r${PHP_PATCHSET}.tar.bz2")"
|
||||
|
||||
PHP_FPM_INIT_VER="4"
|
||||
PHP_FPM_CONF_VER="1"
|
||||
|
||||
SRC_URI="
|
||||
${PHP_SRC_URI}
|
||||
${PHP_PATCHSET_URI}"
|
||||
|
||||
DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
|
||||
HOMEPAGE="http://php.net/"
|
||||
LICENSE="PHP-3"
|
||||
|
||||
S="${WORKDIR}/${PHP_P}"
|
||||
|
||||
# We can build the following SAPIs in the given order
|
||||
SAPIS="embed cli cgi fpm apache2"
|
||||
|
||||
# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
|
||||
IUSE="${IUSE}
|
||||
${SAPIS/cli/+cli}
|
||||
threads"
|
||||
|
||||
IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
|
||||
crypt +ctype curl curlwrappers debug
|
||||
enchant exif +fileinfo +filter firebird
|
||||
flatfile ftp gd gdbm gmp +hash +iconv imap inifile
|
||||
intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
|
||||
mssql mysql mysqlnd mysqli nls
|
||||
oci8-instant-client odbc pcntl pdo +phar +posix postgres qdbm
|
||||
readline recode selinux +session sharedmem
|
||||
+simplexml snmp soap sockets spell sqlite ssl
|
||||
sybase-ct sysvipc systemd tidy +tokenizer truetype unicode wddx
|
||||
+xml xmlreader xmlwriter xmlrpc xpm xslt zip zlib"
|
||||
|
||||
DEPEND="
|
||||
>=app-admin/eselect-php-0.7.1-r3[apache2?,fpm?]
|
||||
>=dev-libs/libpcre-8.32[unicode]
|
||||
apache2? ( www-servers/apache[threads=] )
|
||||
berkdb? ( =sys-libs/db-4* )
|
||||
bzip2? ( app-arch/bzip2 )
|
||||
cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
|
||||
cjk? ( !gd? (
|
||||
virtual/jpeg:0
|
||||
media-libs/libpng:0=
|
||||
sys-libs/zlib
|
||||
) )
|
||||
crypt? ( >=dev-libs/libmcrypt-2.4 )
|
||||
curl? ( >=net-misc/curl-7.10.5 )
|
||||
enchant? ( app-text/enchant )
|
||||
exif? ( !gd? (
|
||||
virtual/jpeg:0
|
||||
media-libs/libpng:0=
|
||||
sys-libs/zlib
|
||||
) )
|
||||
firebird? ( dev-db/firebird )
|
||||
gd? ( virtual/jpeg:0 media-libs/libpng:0= sys-libs/zlib )
|
||||
gdbm? ( >=sys-libs/gdbm-1.8.0 )
|
||||
gmp? ( >=dev-libs/gmp-4.1.2 )
|
||||
iconv? ( virtual/libiconv )
|
||||
imap? ( virtual/imap-c-client[ssl=] )
|
||||
intl? ( dev-libs/icu:= )
|
||||
iodbc? ( dev-db/libiodbc )
|
||||
kerberos? ( virtual/krb5 )
|
||||
ldap? ( >=net-nds/openldap-1.2.11 )
|
||||
ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
|
||||
libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
|
||||
mssql? ( dev-db/freetds[mssql] )
|
||||
!mysqlnd? (
|
||||
mysql? ( virtual/mysql )
|
||||
mysqli? ( >=virtual/mysql-4.1 )
|
||||
)
|
||||
nls? ( sys-devel/gettext )
|
||||
oci8-instant-client? ( dev-db/oracle-instantclient-basic )
|
||||
odbc? ( >=dev-db/unixODBC-1.8.13 )
|
||||
postgres? ( dev-db/postgresql-base )
|
||||
qdbm? ( dev-db/qdbm )
|
||||
readline? ( sys-libs/readline )
|
||||
recode? ( app-text/recode )
|
||||
sharedmem? ( dev-libs/mm )
|
||||
simplexml? ( >=dev-libs/libxml2-2.6.8 )
|
||||
snmp? ( >=net-analyzer/net-snmp-5.2 )
|
||||
soap? ( >=dev-libs/libxml2-2.6.8 )
|
||||
spell? ( >=app-text/aspell-0.50 )
|
||||
sqlite? ( >=dev-db/sqlite-3.7.6.3 )
|
||||
ssl? ( >=dev-libs/openssl-0.9.7 )
|
||||
sybase-ct? ( dev-db/freetds )
|
||||
tidy? ( app-text/htmltidy )
|
||||
truetype? (
|
||||
=media-libs/freetype-2*
|
||||
>=media-libs/t1lib-5.0.0
|
||||
!gd? (
|
||||
virtual/jpeg:0 media-libs/libpng:0= sys-libs/zlib )
|
||||
)
|
||||
unicode? ( dev-libs/oniguruma )
|
||||
wddx? ( >=dev-libs/libxml2-2.6.8 )
|
||||
xml? ( >=dev-libs/libxml2-2.6.8 )
|
||||
xmlrpc? ( >=dev-libs/libxml2-2.6.8 virtual/libiconv )
|
||||
xmlreader? ( >=dev-libs/libxml2-2.6.8 )
|
||||
xmlwriter? ( >=dev-libs/libxml2-2.6.8 )
|
||||
xpm? (
|
||||
x11-libs/libXpm
|
||||
virtual/jpeg:0
|
||||
media-libs/libpng:0= sys-libs/zlib
|
||||
)
|
||||
xslt? ( dev-libs/libxslt >=dev-libs/libxml2-2.6.8 )
|
||||
zip? ( sys-libs/zlib )
|
||||
zlib? ( sys-libs/zlib )
|
||||
virtual/mta
|
||||
"
|
||||
|
||||
php="=${CATEGORY}/${PF}"
|
||||
|
||||
REQUIRED_USE="
|
||||
truetype? ( gd )
|
||||
cjk? ( gd )
|
||||
exif? ( gd )
|
||||
|
||||
xpm? ( gd )
|
||||
gd? ( zlib )
|
||||
simplexml? ( xml )
|
||||
soap? ( xml )
|
||||
wddx? ( xml )
|
||||
xmlrpc? ( || ( xml iconv ) )
|
||||
xmlreader? ( xml )
|
||||
xslt? ( xml )
|
||||
ldap-sasl? ( ldap )
|
||||
mhash? ( hash )
|
||||
phar? ( hash )
|
||||
mysqlnd? ( || (
|
||||
mysql
|
||||
mysqli
|
||||
pdo
|
||||
) )
|
||||
|
||||
qdbm? ( !gdbm )
|
||||
readline? ( !libedit )
|
||||
recode? ( !imap !mysql !mysqli )
|
||||
sharedmem? ( !threads )
|
||||
|
||||
!cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
RDEPEND="${RDEPEND}
|
||||
fpm? (
|
||||
selinux? ( sec-policy/selinux-phpfpm )
|
||||
systemd? ( sys-apps/systemd ) )"
|
||||
|
||||
DEPEND="${DEPEND}
|
||||
sys-devel/flex
|
||||
>=sys-devel/m4-1.4.3
|
||||
>=sys-devel/libtool-1.5.18"
|
||||
|
||||
# Allow users to install production version if they want to
|
||||
|
||||
case "${PHP_INI_VERSION}" in
|
||||
production|development)
|
||||
;;
|
||||
*)
|
||||
PHP_INI_VERSION="development"
|
||||
;;
|
||||
esac
|
||||
|
||||
PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
|
||||
PHP_INI_FILE="php.ini"
|
||||
|
||||
want_apache
|
||||
|
||||
pkg_setup() {
|
||||
depend.apache_pkg_setup
|
||||
}
|
||||
|
||||
php_install_ini() {
|
||||
local phpsapi="${1}"
|
||||
|
||||
# work out where we are installing the ini file
|
||||
php_set_ini_dir "${phpsapi}"
|
||||
|
||||
local phpinisrc="${PHP_INI_UPSTREAM}-${phpsapi}"
|
||||
cp "${PHP_INI_UPSTREAM}" "${phpinisrc}"
|
||||
|
||||
# default to /tmp for save_path, bug #282768
|
||||
sed -e 's|^;session.save_path .*$|session.save_path = "'"${EPREFIX}"'/tmp"|g' -i "${phpinisrc}"
|
||||
|
||||
# Set the extension dir
|
||||
sed -e "s|^extension_dir .*$|extension_dir = ${extension_dir}|g" -i "${phpinisrc}"
|
||||
|
||||
# Set the include path to point to where we want to find PEAR packages
|
||||
sed -e 's|^;include_path = ".:/php/includes".*|include_path = ".:'"${EPREFIX}"'/usr/share/php'${PHP_MV}':'"${EPREFIX}"'/usr/share/php"|' -i "${phpinisrc}"
|
||||
|
||||
if use_if_iuse opcache; then
|
||||
elog "Adding opcache to ${phpinisrc}"
|
||||
echo "zend_extension=${PHP_DESTDIR}/$(get_libdir)/opcache.so" >> ${phpinisrc}
|
||||
fi
|
||||
|
||||
dodir "${PHP_INI_DIR#${EPREFIX}}"
|
||||
insinto "${PHP_INI_DIR#${EPREFIX}}"
|
||||
newins "${phpinisrc}" "${PHP_INI_FILE}"
|
||||
|
||||
elog "Installing php.ini for ${phpsapi} into ${PHP_INI_DIR#${EPREFIX}}"
|
||||
elog
|
||||
|
||||
dodir "${PHP_EXT_INI_DIR#${EPREFIX}}"
|
||||
dodir "${PHP_EXT_INI_DIR_ACTIVE#${EPREFIX}}"
|
||||
|
||||
# SAPI-specific handling
|
||||
|
||||
if [[ "${sapi}" == "fpm" ]] ; then
|
||||
[[ -z ${PHP_FPM_CONF_VER} ]] && PHP_FPM_CONF_VER=0
|
||||
einfo "Installing FPM CGI config file php-fpm.conf"
|
||||
insinto "${PHP_INI_DIR#${EPREFIX}}"
|
||||
newins "${FILESDIR}/php-fpm-r${PHP_FPM_CONF_VER}.conf" php-fpm.conf
|
||||
|
||||
# Remove bogus /etc/php-fpm.conf.default (bug 359906)
|
||||
[[ -f "${ED}/etc/php-fpm.conf.default" ]] && rm "${ED}/etc/php-fpm.conf.default"
|
||||
fi
|
||||
|
||||
# Install PHP ini files into /usr/share/php
|
||||
|
||||
dodoc php.ini-development
|
||||
dodoc php.ini-production
|
||||
|
||||
}
|
||||
|
||||
php_set_ini_dir() {
|
||||
PHP_INI_DIR="${EPREFIX}/etc/php/${1}-php${SLOT}"
|
||||
PHP_EXT_INI_DIR="${PHP_INI_DIR}/ext"
|
||||
PHP_EXT_INI_DIR_ACTIVE="${PHP_INI_DIR}/ext-active"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# USE=sharedmem (session/mod_mm to be exact) tries to mmap() this path
|
||||
# ([empty session.save_path]/session_mm_[sapi][gid].sem)
|
||||
# there is no easy way to circumvent that, all php calls during
|
||||
# install use -n, so no php.ini file will be used.
|
||||
# As such, this is the easiest way to get around
|
||||
addpredict /session_mm_cli250.sem
|
||||
addpredict /session_mm_cli0.sem
|
||||
|
||||
# Change PHP branding
|
||||
# Get the alpha/beta/rc version
|
||||
sed -re "s|^(PHP_EXTRA_VERSION=\").*(\")|\1-pl${PR/r/}-gentoo\2|g" \
|
||||
-i configure.in || die "Unable to change PHP branding"
|
||||
|
||||
# Patch PHP to show Gentoo as the server platform
|
||||
sed -e 's/PHP_UNAME=`uname -a | xargs`/PHP_UNAME=`uname -s -n -r -v | xargs`/g' \
|
||||
-i configure.in || die "Failed to fix server platform name"
|
||||
|
||||
# Prevent PHP from activating the Apache config,
|
||||
# as we will do that ourselves
|
||||
sed -i \
|
||||
-e "s,-i -a -n php${PHP_MV},-i -n php${PHP_MV},g" \
|
||||
-e "s,-i -A -n php${PHP_MV},-i -n php${PHP_MV},g" \
|
||||
configure sapi/apache2filter/config.m4 sapi/apache2handler/config.m4
|
||||
|
||||
# Patch PHP to support heimdal instead of mit-krb5
|
||||
if has_version "app-crypt/heimdal" ; then
|
||||
sed -e 's|gssapi_krb5|gssapi|g' -i acinclude.m4 \
|
||||
|| die "Failed to fix heimdal libname"
|
||||
sed -e 's|PHP_ADD_LIBRARY(k5crypto, 1, $1)||g' -i acinclude.m4 \
|
||||
|| die "Failed to fix heimdal crypt library reference"
|
||||
fi
|
||||
|
||||
#Add user patches #357637
|
||||
epatch_user
|
||||
|
||||
#force rebuilding aclocal.m4
|
||||
rm aclocal.m4
|
||||
eautoreconf
|
||||
|
||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||
# http://bugs.php.net/bug.php?id=48795, bug #343481
|
||||
sed -i -e '/BUILD_CGI="\\$(CC)/s/CC/CXX/' configure || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
addpredict /usr/share/snmp/mibs/.index
|
||||
addpredict /var/lib/net-snmp/mib_indexes
|
||||
|
||||
PHP_DESTDIR="${EPREFIX}/usr/$(get_libdir)/php${SLOT}"
|
||||
|
||||
# This is a global variable and should be in caps. It isn't because the
|
||||
# phpconfutils eclass relies on exactly this name...
|
||||
# for --with-libdir see bug #327025
|
||||
my_conf="
|
||||
--prefix="${PHP_DESTDIR}"
|
||||
--mandir="${PHP_DESTDIR}"/man
|
||||
--infodir="${PHP_DESTDIR}"/info
|
||||
--libdir="${PHP_DESTDIR}"/lib
|
||||
--with-libdir=$(get_libdir)
|
||||
--without-pear
|
||||
$(use_enable threads maintainer-zts)"
|
||||
|
||||
# extension USE flag shared
|
||||
my_conf+="
|
||||
$(use_enable bcmath bcmath )
|
||||
$(use_with bzip2 bz2 "${EPREFIX}"/usr)
|
||||
$(use_enable calendar calendar )
|
||||
$(use_enable ctype ctype )
|
||||
$(use_with curl curl "${EPREFIX}"/usr)
|
||||
$(use_with curlwrappers curlwrappers "${EPREFIX}"/usr)
|
||||
$(use_enable xml dom )
|
||||
$(use_with enchant enchant "${EPREFIX}"/usr)
|
||||
$(use_enable exif exif )
|
||||
$(use_enable fileinfo fileinfo )
|
||||
$(use_enable filter filter )
|
||||
$(use_enable ftp ftp )
|
||||
$(use_with nls gettext "${EPREFIX}"/usr)
|
||||
$(use_with gmp gmp "${EPREFIX}"/usr)
|
||||
$(use_enable hash hash )
|
||||
$(use_with mhash mhash "${EPREFIX}"/usr)
|
||||
$(use_with iconv iconv $(use elibc_glibc || echo "${EPREFIX}"/usr))
|
||||
$(use_enable intl intl )
|
||||
$(use_enable ipv6 ipv6 )
|
||||
$(use_enable json json )
|
||||
$(use_with kerberos kerberos "${EPREFIX}"/usr)
|
||||
$(use_enable xml libxml )
|
||||
$(use_with xml libxml-dir "${EPREFIX}"/usr)
|
||||
$(use_enable unicode mbstring )
|
||||
$(use_with crypt mcrypt "${EPREFIX}"/usr)
|
||||
$(use_with mssql mssql "${EPREFIX}"/usr)
|
||||
$(use_with unicode onig "${EPREFIX}"/usr)
|
||||
$(use_with ssl openssl "${EPREFIX}"/usr)
|
||||
$(use_with ssl openssl-dir "${EPREFIX}"/usr)
|
||||
$(use_enable pcntl pcntl )
|
||||
$(use_enable phar phar )
|
||||
$(use_enable pdo pdo )
|
||||
$(use_with postgres pgsql "${EPREFIX}"/usr)
|
||||
$(use_enable posix posix )
|
||||
$(use_with spell pspell "${EPREFIX}"/usr)
|
||||
$(use_with recode recode "${EPREFIX}"/usr)
|
||||
$(use_enable simplexml simplexml )
|
||||
$(use_enable sharedmem shmop )
|
||||
$(use_with snmp snmp "${EPREFIX}"/usr)
|
||||
$(use_enable soap soap )
|
||||
$(use_enable sockets sockets )
|
||||
$(use_with sqlite sqlite3 "${EPREFIX}"/usr)
|
||||
$(use_with sybase-ct sybase-ct "${EPREFIX}"/usr)
|
||||
$(use_enable sysvipc sysvmsg )
|
||||
$(use_enable sysvipc sysvsem )
|
||||
$(use_enable sysvipc sysvshm )
|
||||
$(use_with systemd fpm-systemd)
|
||||
$(use_with tidy tidy "${EPREFIX}"/usr)
|
||||
$(use_enable tokenizer tokenizer )
|
||||
$(use_enable wddx wddx )
|
||||
$(use_enable xml xml )
|
||||
$(use_enable xmlreader xmlreader )
|
||||
$(use_enable xmlwriter xmlwriter )
|
||||
$(use_with xmlrpc xmlrpc)
|
||||
$(use_with xslt xsl "${EPREFIX}"/usr)
|
||||
$(use_enable zip zip )
|
||||
$(use_with zlib zlib "${EPREFIX}"/usr)
|
||||
$(use_enable debug debug )"
|
||||
|
||||
# DBA support
|
||||
if use cdb || use berkdb || use flatfile || use gdbm || use inifile \
|
||||
|| use qdbm ; then
|
||||
my_conf="${my_conf} --enable-dba${shared}"
|
||||
fi
|
||||
|
||||
# DBA drivers support
|
||||
my_conf+="
|
||||
$(use_with cdb cdb)
|
||||
$(use_with berkdb db4 ${EPREFIX}/usr)
|
||||
$(use_enable flatfile flatfile )
|
||||
$(use_with gdbm gdbm ${EPREFIX}/usr)
|
||||
$(use_enable inifile inifile )
|
||||
$(use_with qdbm qdbm ${EPREFIX}/usr)"
|
||||
|
||||
# Support for the GD graphics library
|
||||
my_conf+="
|
||||
$(use_with truetype freetype-dir ${EPREFIX}/usr)
|
||||
$(use_with truetype t1lib ${EPREFIX}/usr)
|
||||
$(use_enable cjk gd-jis-conv )
|
||||
$(use_with gd jpeg-dir ${EPREFIX}/usr)
|
||||
$(use_with gd png-dir ${EPREFIX}/usr)
|
||||
$(use_with xpm xpm-dir ${EPREFIX}/usr)"
|
||||
# enable gd last, so configure can pick up the previous settings
|
||||
my_conf+="
|
||||
$(use_with gd gd)"
|
||||
|
||||
# IMAP support
|
||||
if use imap ; then
|
||||
my_conf+="
|
||||
$(use_with imap imap ${EPREFIX}/usr)
|
||||
$(use_with ssl imap-ssl ${EPREFIX}/usr)"
|
||||
fi
|
||||
|
||||
# Interbase/firebird support
|
||||
|
||||
if use firebird ; then
|
||||
my_conf+="
|
||||
$(use_with firebird interbase ${EPREFIX}/usr)"
|
||||
fi
|
||||
|
||||
# LDAP support
|
||||
if use ldap ; then
|
||||
my_conf+="
|
||||
$(use_with ldap ldap ${EPREFIX}/usr)
|
||||
$(use_with ldap-sasl ldap-sasl ${EPREFIX}/usr)"
|
||||
fi
|
||||
|
||||
# MySQL support
|
||||
if use mysql ; then
|
||||
if use mysqlnd ; then
|
||||
my_conf+="
|
||||
$(use_with mysql mysql mysqlnd)"
|
||||
else
|
||||
my_conf+="
|
||||
$(use_with mysql mysql ${EPREFIX}/usr)"
|
||||
fi
|
||||
my_conf+="
|
||||
$(use_with mysql mysql-sock ${EPREFIX}/var/run/mysqld/mysqld.sock)"
|
||||
fi
|
||||
|
||||
# MySQLi support
|
||||
if use mysqlnd ; then
|
||||
my_conf+="
|
||||
$(use_with mysqli mysqli mysqlnd)"
|
||||
else
|
||||
my_conf+="
|
||||
$(use_with mysqli mysqli ${EPREFIX}/usr/bin/mysql_config)"
|
||||
fi
|
||||
|
||||
# ODBC support
|
||||
if use odbc ; then
|
||||
my_conf+="
|
||||
$(use_with odbc unixODBC ${EPREFIX}/usr)"
|
||||
fi
|
||||
|
||||
if use iodbc ; then
|
||||
my_conf+="
|
||||
$(use_with iodbc iodbc ${EPREFIX}/usr)"
|
||||
fi
|
||||
|
||||
# Oracle support
|
||||
if use oci8-instant-client ; then
|
||||
my_conf+="
|
||||
$(use_with oci8-instant-client oci8)"
|
||||
fi
|
||||
|
||||
# PDO support
|
||||
if use pdo ; then
|
||||
my_conf+="
|
||||
$(use_with mssql pdo-dblib )"
|
||||
if use mysqlnd ; then
|
||||
my_conf+="
|
||||
$(use_with mysqlnd pdo-mysql mysqlnd)"
|
||||
else
|
||||
my_conf+="
|
||||
$(use_with mysql pdo-mysql ${EPREFIX}/usr)"
|
||||
fi
|
||||
my_conf+="
|
||||
$(use_with postgres pdo-pgsql )
|
||||
$(use_with sqlite pdo-sqlite ${EPREFIX}/usr)
|
||||
$(use_with odbc pdo-odbc unixODBC,${EPREFIX}/usr)"
|
||||
if use oci8-instant-client ; then
|
||||
my_conf+="
|
||||
$(use_with oci8-instant-client pdo-oci)"
|
||||
fi
|
||||
fi
|
||||
|
||||
# readline/libedit support
|
||||
my_conf+="
|
||||
$(use_with readline readline ${EPREFIX}/usr)
|
||||
$(use_with libedit libedit ${EPREFIX}/usr)"
|
||||
|
||||
# Session support
|
||||
if use session ; then
|
||||
my_conf+="
|
||||
$(use_with sharedmem mm ${EPREFIX}/usr)"
|
||||
else
|
||||
my_conf+="
|
||||
$(use_enable session session )"
|
||||
fi
|
||||
|
||||
# Use pic for shared modules such as apache2's mod_php
|
||||
my_conf="${my_conf} --with-pic"
|
||||
|
||||
# we use the system copy of pcre
|
||||
# --with-pcre-regex affects ext/pcre
|
||||
# --with-pcre-dir affects ext/filter and ext/zip
|
||||
my_conf="${my_conf} --with-pcre-regex=${EPREFIX}/usr --with-pcre-dir=${EPREFIX}/usr"
|
||||
|
||||
# Catch CFLAGS problems
|
||||
# Fixes bug #14067.
|
||||
# Changed order to run it in reverse for bug #32022 and #12021.
|
||||
replace-cpu-flags "k6*" "i586"
|
||||
|
||||
# Support user-passed configuration parameters
|
||||
my_conf="${my_conf} ${EXTRA_ECONF:-}"
|
||||
|
||||
# Support the Apache2 extras, they must be set globally for all
|
||||
# SAPIs to work correctly, especially for external PHP extensions
|
||||
|
||||
mkdir -p "${WORKDIR}/sapis-build"
|
||||
for one_sapi in $SAPIS ; do
|
||||
use "${one_sapi}" || continue
|
||||
php_set_ini_dir "${one_sapi}"
|
||||
|
||||
cp -r "${S}" "${WORKDIR}/sapis-build/${one_sapi}"
|
||||
cd "${WORKDIR}/sapis-build/${one_sapi}"
|
||||
|
||||
sapi_conf="${my_conf} --with-config-file-path=${PHP_INI_DIR}
|
||||
--with-config-file-scan-dir=${PHP_EXT_INI_DIR_ACTIVE}"
|
||||
|
||||
for sapi in $SAPIS ; do
|
||||
case "$sapi" in
|
||||
cli|cgi|embed|fpm)
|
||||
if [[ "${one_sapi}" == "${sapi}" ]] ; then
|
||||
sapi_conf="${sapi_conf} --enable-${sapi}"
|
||||
else
|
||||
sapi_conf="${sapi_conf} --disable-${sapi}"
|
||||
fi
|
||||
;;
|
||||
|
||||
apache2)
|
||||
if [[ "${one_sapi}" == "${sapi}" ]] ; then
|
||||
sapi_conf="${sapi_conf} --with-apxs2=${EPREFIX}/usr/sbin/apxs"
|
||||
else
|
||||
sapi_conf="${sapi_conf} --without-apxs2"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
econf ${sapi_conf}
|
||||
done
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# snmp seems to run during src_compile, too (bug #324739)
|
||||
addpredict /usr/share/snmp/mibs/.index
|
||||
addpredict /var/lib/net-snmp/mib_indexes
|
||||
|
||||
for sapi in ${SAPIS} ; do
|
||||
if use "${sapi}"; then
|
||||
cd "${WORKDIR}/sapis-build/$sapi" || "Failed to change dir to ${WORKDIR}/sapis-build/$1"
|
||||
emake || die "emake failed"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# see bug #324739 for what happens when we don't have that
|
||||
addpredict /usr/share/snmp/mibs/.index
|
||||
|
||||
# grab the first SAPI that got built and install common files from there
|
||||
local first_sapi=""
|
||||
for sapi in $SAPIS ; do
|
||||
if use $sapi ; then
|
||||
first_sapi=$sapi
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
# Makefile forgets to create this before trying to write to it...
|
||||
dodir "${PHP_DESTDIR#${EPREFIX}}/bin"
|
||||
|
||||
# Install php environment (without any sapis)
|
||||
cd "${WORKDIR}/sapis-build/$first_sapi"
|
||||
emake INSTALL_ROOT="${D}" \
|
||||
install-build install-headers install-programs \
|
||||
|| die "emake install failed"
|
||||
|
||||
local extension_dir="$("${ED}/${PHP_DESTDIR#${EPREFIX}}/bin/php-config" --extension-dir)"
|
||||
|
||||
# Create the directory where we'll put version-specific php scripts
|
||||
keepdir /usr/share/php${PHP_MV}
|
||||
|
||||
local sapi="", file=""
|
||||
local sapi_list=""
|
||||
|
||||
for sapi in ${SAPIS}; do
|
||||
if use "${sapi}" ; then
|
||||
einfo "Installing SAPI: ${sapi}"
|
||||
cd "${WORKDIR}/sapis-build/${sapi}"
|
||||
|
||||
if [[ "${sapi}" == "apache2" ]] ; then
|
||||
# We're specifically not using emake install-sapi as libtool
|
||||
# may cause unnecessary relink failures (see bug #351266)
|
||||
insinto "${PHP_DESTDIR#${EPREFIX}}/apache2/"
|
||||
newins ".libs/libphp5$(get_libname)" "libphp${PHP_MV}$(get_libname)"
|
||||
keepdir "/usr/$(get_libdir)/apache2/modules"
|
||||
else
|
||||
# needed each time, php_install_ini would reset it
|
||||
local dest="${PHP_DESTDIR#${EPREFIX}}"
|
||||
into "${dest}"
|
||||
case "$sapi" in
|
||||
cli)
|
||||
source="sapi/cli/php"
|
||||
;;
|
||||
cgi)
|
||||
source="sapi/cgi/php-cgi"
|
||||
;;
|
||||
fpm)
|
||||
source="sapi/fpm/php-fpm"
|
||||
;;
|
||||
embed)
|
||||
source="libs/libphp${PHP_MV}$(get_libname)"
|
||||
;;
|
||||
*)
|
||||
die "unhandled sapi in src_install"
|
||||
;;
|
||||
esac
|
||||
|
||||
if [[ "${source}" == *"$(get_libname)" ]]; then
|
||||
dolib.so "${source}" || die "Unable to install ${sapi} sapi"
|
||||
else
|
||||
dobin "${source}" || die "Unable to install ${sapi} sapi"
|
||||
local name="$(basename ${source})"
|
||||
dosym "${dest}/bin/${name}" "/usr/bin/${name}${SLOT}"
|
||||
fi
|
||||
fi
|
||||
|
||||
php_install_ini "${sapi}"
|
||||
|
||||
# construct correct SAPI string for php-config
|
||||
# thanks to ferringb for the bash voodoo
|
||||
if [[ "${sapi}" == "apache2" ]]; then
|
||||
sapi_list="${sapi_list:+${sapi_list} }apache2handler"
|
||||
else
|
||||
sapi_list="${sapi_list:+${sapi_list} }${sapi}"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
# Installing opcache module
|
||||
if use_if_iuse opcache ; then
|
||||
dolib.so "modules/opcache$(get_libname)" || die "Unable to install opcache module"
|
||||
fi
|
||||
|
||||
# Install env.d files
|
||||
newenvd "${FILESDIR}/20php5-envd" \
|
||||
"20php${SLOT}"
|
||||
sed -e "s|/lib/|/$(get_libdir)/|g" -i \
|
||||
"${ED}/etc/env.d/20php${SLOT}"
|
||||
sed -e "s|php5|php${SLOT}|g" -i \
|
||||
"${ED}/etc/env.d/20php${SLOT}"
|
||||
|
||||
# set php-config variable correctly (bug #278439)
|
||||
sed -e "s:^\(php_sapis=\)\".*\"$:\1\"${sapi_list}\":" -i \
|
||||
"${ED}/usr/$(get_libdir)/php${SLOT}/bin/php-config"
|
||||
|
||||
if use fpm ; then
|
||||
if use systemd; then
|
||||
systemd_newunit "${FILESDIR}/php-fpm_at.service" "php-fpm@${SLOT}.service"
|
||||
else
|
||||
systemd_newunit "${FILESDIR}/php-fpm_at-simple.service" "php-fpm@${SLOT}.service"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
echo ">>> Test phase [test]: ${CATEGORY}/${PF}"
|
||||
PHP_BIN="${WORKDIR}/sapis-build/cli/sapi/cli/php"
|
||||
if [[ ! -x "${PHP_BIN}" ]] ; then
|
||||
ewarn "Test phase requires USE=cli, skipping"
|
||||
return
|
||||
else
|
||||
export TEST_PHP_EXECUTABLE="${PHP_BIN}"
|
||||
fi
|
||||
|
||||
if [[ -x "${WORKDIR}/sapis/cgi/php-cgi" ]] ; then
|
||||
export TEST_PHP_CGI_EXECUTABLE="${WORKDIR}/sapis/cgi/php-cgi"
|
||||
fi
|
||||
|
||||
REPORT_EXIT_STATUS=1 "${TEST_PHP_EXECUTABLE}" -n -d "session.save_path=${T}" \
|
||||
"${WORKDIR}/sapis-build/cli/run-tests.php" -n -q -d "session.save_path=${T}"
|
||||
|
||||
for name in ${EXPECTED_TEST_FAILURES}; do
|
||||
mv "${name}.out" "${name}.out.orig" 2>/dev/null
|
||||
done
|
||||
|
||||
local failed="$(find -name '*.out')"
|
||||
if [[ ${failed} != "" ]] ; then
|
||||
ewarn "The following test cases failed unexpectedly:"
|
||||
for name in ${failed}; do
|
||||
ewarn " ${name/.out/}"
|
||||
done
|
||||
else
|
||||
einfo "No unexpected test failures, all fine"
|
||||
fi
|
||||
|
||||
if [[ ${PHP_SHOW_UNEXPECTED_TEST_PASS} == "1" ]] ; then
|
||||
local passed=""
|
||||
for name in ${EXPECTED_TEST_FAILURES}; do
|
||||
[[ -f "${name}.diff" ]] && continue
|
||||
passed="${passed} ${name}"
|
||||
done
|
||||
if [[ ${passed} != "" ]] ; then
|
||||
einfo "The following test cases passed unexpectedly:"
|
||||
for name in ${passed}; do
|
||||
ewarn " ${passed}"
|
||||
done
|
||||
else
|
||||
einfo "None of the known-to-fail tests passed, all fine"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Output some general info to the user
|
||||
if use apache2 ; then
|
||||
APACHE2_MOD_DEFINE="PHP5"
|
||||
APACHE2_MOD_CONF="70_mod_php5"
|
||||
apache-module_pkg_postinst
|
||||
fi
|
||||
|
||||
# Create the symlinks for php
|
||||
for m in ${SAPIS}; do
|
||||
[[ ${m} == 'embed' ]] && continue;
|
||||
if use $m ; then
|
||||
local ci=$(eselect php show $m)
|
||||
if [[ -z $ci ]]; then
|
||||
eselect php set $m php${SLOT}
|
||||
einfo "Switched ${m} to use php:${SLOT}"
|
||||
einfo
|
||||
elif [[ $ci != "php${SLOT}" ]] ; then
|
||||
elog "To switch $m to use php:${SLOT}, run"
|
||||
elog " eselect php set $m php${SLOT}"
|
||||
elog
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
elog "Make sure that PHP_TARGETS in ${EPREFIX}/etc/make.conf includes php${SLOT/./-} in order"
|
||||
elog "to compile extensions for the ${SLOT} ABI"
|
||||
elog
|
||||
if ! use readline && use cli ; then
|
||||
ewarn "Note that in order to use php interactivly, you need to enable"
|
||||
ewarn "the readline USE flag or php -a will hang"
|
||||
fi
|
||||
elog
|
||||
elog "This ebuild installed a version of php.ini based on php.ini-${PHP_INI_VERSION} version."
|
||||
elog "You can chose which version of php.ini to install by default by setting PHP_INI_VERSION to either"
|
||||
elog "'production' or 'development' in ${EPREFIX}/etc/make.conf"
|
||||
elog "Both versions of php.ini can be found in ${EPREFIX}/usr/share/doc/${PF}"
|
||||
|
||||
elog
|
||||
elog "For more details on how minor version slotting works (PHP_TARGETS) please read the upgrade guide:"
|
||||
elog "http://www.gentoo.org/proj/en/php/php-upgrading.xml"
|
||||
elog
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
eselect php cleanup
|
||||
}
|
@ -0,0 +1,780 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.5.14.ebuild,v 1.1 2014/06/27 10:40:39 olemarkus Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool systemd
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
|
||||
function php_get_uri ()
|
||||
{
|
||||
case "${1}" in
|
||||
"php-pre")
|
||||
echo "http://downloads.php.net/dsp/${2}"
|
||||
;;
|
||||
"php")
|
||||
echo "http://www.php.net/distributions/${2}"
|
||||
;;
|
||||
"olemarkus")
|
||||
echo "http://dev.gentoo.org/~olemarkus/php/${2}"
|
||||
;;
|
||||
"gentoo")
|
||||
echo "mirror://gentoo/${2}"
|
||||
;;
|
||||
*)
|
||||
die "unhandled case in php_get_uri"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
PHP_MV="$(get_major_version)"
|
||||
SLOT="$(get_version_component_range 1-2)"
|
||||
|
||||
# alias, so we can handle different types of releases (finals, rcs, alphas,
|
||||
# betas, ...) w/o changing the whole ebuild
|
||||
PHP_PV="${PV/_rc/RC}"
|
||||
PHP_PV="${PHP_PV/_alpha/alpha}"
|
||||
PHP_PV="${PHP_PV/_beta/beta}"
|
||||
PHP_RELEASE="php"
|
||||
[[ ${PV} == ${PV/_alpha/} ]] || PHP_RELEASE="php-pre"
|
||||
[[ ${PV} == ${PV/_beta/} ]] || PHP_RELEASE="php-pre"
|
||||
[[ ${PV} == ${PV/_rc/} ]] || PHP_RELEASE="php-pre"
|
||||
PHP_P="${PN}-${PHP_PV}"
|
||||
|
||||
PHP_SRC_URI="$(php_get_uri "${PHP_RELEASE}" "${PHP_P}.tar.bz2")"
|
||||
|
||||
PHP_FPM_CONF_VER="1"
|
||||
|
||||
SRC_URI="${PHP_SRC_URI}"
|
||||
|
||||
DESCRIPTION="The PHP language runtime engine: CLI, CGI, FPM/FastCGI, Apache2 and embed SAPIs."
|
||||
HOMEPAGE="http://php.net/"
|
||||
LICENSE="PHP-3"
|
||||
|
||||
S="${WORKDIR}/${PHP_P}"
|
||||
|
||||
# We can build the following SAPIs in the given order
|
||||
SAPIS="embed cli cgi fpm apache2"
|
||||
|
||||
# SAPIs and SAPI-specific USE flags (cli SAPI is default on):
|
||||
IUSE="${IUSE}
|
||||
${SAPIS/cli/+cli}
|
||||
threads"
|
||||
|
||||
IUSE="${IUSE} bcmath berkdb bzip2 calendar cdb cjk
|
||||
crypt +ctype curl debug
|
||||
enchant exif frontbase +fileinfo +filter firebird
|
||||
flatfile ftp gd gdbm gmp +hash +iconv imap inifile
|
||||
intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit mhash
|
||||
mssql mysql libmysqlclient mysqli nls
|
||||
oci8-instant-client odbc +opcache pcntl pdo +phar +posix postgres qdbm
|
||||
readline recode selinux +session sharedmem
|
||||
+simplexml snmp soap sockets spell sqlite ssl
|
||||
sybase-ct sysvipc systemd tidy +tokenizer truetype unicode wddx
|
||||
+xml xmlreader xmlwriter xmlrpc xpm xslt zip zlib"
|
||||
|
||||
DEPEND="
|
||||
>=app-admin/eselect-php-0.7.1-r3[apache2?,fpm?]
|
||||
>=dev-libs/libpcre-8.32[unicode]
|
||||
apache2? ( www-servers/apache[threads=] )
|
||||
berkdb? ( =sys-libs/db-4* )
|
||||
bzip2? ( app-arch/bzip2 )
|
||||
cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
|
||||
cjk? ( !gd? (
|
||||
virtual/jpeg:0
|
||||
media-libs/libpng:0=
|
||||
sys-libs/zlib
|
||||
) )
|
||||
crypt? ( >=dev-libs/libmcrypt-2.4 )
|
||||
curl? ( >=net-misc/curl-7.10.5 )
|
||||
enchant? ( app-text/enchant )
|
||||
exif? ( !gd? (
|
||||
virtual/jpeg:0
|
||||
media-libs/libpng:0=
|
||||
sys-libs/zlib
|
||||
) )
|
||||
firebird? ( dev-db/firebird )
|
||||
gd? ( virtual/jpeg:0 media-libs/libpng:0= sys-libs/zlib )
|
||||
gdbm? ( >=sys-libs/gdbm-1.8.0 )
|
||||
gmp? ( >=dev-libs/gmp-4.1.2 )
|
||||
iconv? ( virtual/libiconv )
|
||||
imap? ( virtual/imap-c-client[ssl=] )
|
||||
intl? ( dev-libs/icu:= )
|
||||
iodbc? ( dev-db/libiodbc )
|
||||
kerberos? ( virtual/krb5 )
|
||||
ldap? ( >=net-nds/openldap-1.2.11 )
|
||||
ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
|
||||
libedit? ( || ( sys-freebsd/freebsd-lib dev-libs/libedit ) )
|
||||
mssql? ( dev-db/freetds[mssql] )
|
||||
libmysqlclient? (
|
||||
mysql? ( virtual/mysql )
|
||||
mysqli? ( >=virtual/mysql-4.1 )
|
||||
)
|
||||
nls? ( sys-devel/gettext )
|
||||
oci8-instant-client? ( dev-db/oracle-instantclient-basic )
|
||||
odbc? ( >=dev-db/unixODBC-1.8.13 )
|
||||
postgres? ( dev-db/postgresql-base )
|
||||
qdbm? ( dev-db/qdbm )
|
||||
readline? ( sys-libs/readline )
|
||||
recode? ( app-text/recode )
|
||||
sharedmem? ( dev-libs/mm )
|
||||
simplexml? ( >=dev-libs/libxml2-2.6.8 )
|
||||
snmp? ( >=net-analyzer/net-snmp-5.2 )
|
||||
soap? ( >=dev-libs/libxml2-2.6.8 )
|
||||
spell? ( >=app-text/aspell-0.50 )
|
||||
sqlite? ( >=dev-db/sqlite-3.7.6.3 )
|
||||
ssl? ( >=dev-libs/openssl-0.9.7 )
|
||||
sybase-ct? ( dev-db/freetds )
|
||||
tidy? ( app-text/htmltidy )
|
||||
truetype? (
|
||||
=media-libs/freetype-2*
|
||||
>=media-libs/t1lib-5.0.0
|
||||
!gd? (
|
||||
virtual/jpeg:0 media-libs/libpng:0= sys-libs/zlib )
|
||||
)
|
||||
unicode? ( dev-libs/oniguruma )
|
||||
wddx? ( >=dev-libs/libxml2-2.6.8 )
|
||||
xml? ( >=dev-libs/libxml2-2.6.8 )
|
||||
xmlrpc? ( >=dev-libs/libxml2-2.6.8 virtual/libiconv )
|
||||
xmlreader? ( >=dev-libs/libxml2-2.6.8 )
|
||||
xmlwriter? ( >=dev-libs/libxml2-2.6.8 )
|
||||
xpm? (
|
||||
x11-libs/libXpm
|
||||
virtual/jpeg:0
|
||||
media-libs/libpng:0= sys-libs/zlib
|
||||
)
|
||||
xslt? ( dev-libs/libxslt >=dev-libs/libxml2-2.6.8 )
|
||||
zip? ( sys-libs/zlib )
|
||||
zlib? ( sys-libs/zlib )
|
||||
virtual/mta
|
||||
"
|
||||
|
||||
php="=${CATEGORY}/${PF}"
|
||||
|
||||
REQUIRED_USE="
|
||||
truetype? ( gd )
|
||||
cjk? ( gd )
|
||||
exif? ( gd )
|
||||
|
||||
xpm? ( gd )
|
||||
gd? ( zlib )
|
||||
simplexml? ( xml )
|
||||
soap? ( xml )
|
||||
wddx? ( xml )
|
||||
xmlrpc? ( || ( xml iconv ) )
|
||||
xmlreader? ( xml )
|
||||
xslt? ( xml )
|
||||
ldap-sasl? ( ldap )
|
||||
mhash? ( hash )
|
||||
phar? ( hash )
|
||||
libmysqlclient? ( || (
|
||||
mysql
|
||||
mysqli
|
||||
pdo
|
||||
) )
|
||||
|
||||
qdbm? ( !gdbm )
|
||||
readline? ( !libedit )
|
||||
recode? ( !imap !mysql !mysqli )
|
||||
sharedmem? ( !threads )
|
||||
|
||||
!cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )"
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
RDEPEND="${RDEPEND}
|
||||
fpm? (
|
||||
selinux? ( sec-policy/selinux-phpfpm )
|
||||
systemd? ( sys-apps/systemd ) )"
|
||||
|
||||
DEPEND="${DEPEND}
|
||||
sys-devel/flex
|
||||
>=sys-devel/m4-1.4.3
|
||||
>=sys-devel/libtool-1.5.18"
|
||||
|
||||
# Allow users to install production version if they want to
|
||||
|
||||
case "${PHP_INI_VERSION}" in
|
||||
production|development)
|
||||
;;
|
||||
*)
|
||||
PHP_INI_VERSION="development"
|
||||
;;
|
||||
esac
|
||||
|
||||
PHP_INI_UPSTREAM="php.ini-${PHP_INI_VERSION}"
|
||||
PHP_INI_FILE="php.ini"
|
||||
|
||||
want_apache
|
||||
|
||||
pkg_setup() {
|
||||
depend.apache_pkg_setup
|
||||
}
|
||||
|
||||
php_install_ini() {
|
||||
local phpsapi="${1}"
|
||||
|
||||
# work out where we are installing the ini file
|
||||
php_set_ini_dir "${phpsapi}"
|
||||
|
||||
local phpinisrc="${PHP_INI_UPSTREAM}-${phpsapi}"
|
||||
cp "${PHP_INI_UPSTREAM}" "${phpinisrc}"
|
||||
|
||||
# default to /tmp for save_path, bug #282768
|
||||
sed -e 's|^;session.save_path .*$|session.save_path = "'"${EPREFIX}"'/tmp"|g' -i "${phpinisrc}"
|
||||
|
||||
# Set the extension dir
|
||||
sed -e "s|^extension_dir .*$|extension_dir = ${extension_dir}|g" -i "${phpinisrc}"
|
||||
|
||||
# Set the include path to point to where we want to find PEAR packages
|
||||
sed -e 's|^;include_path = ".:/php/includes".*|include_path = ".:'"${EPREFIX}"'/usr/share/php'${PHP_MV}':'"${EPREFIX}"'/usr/share/php"|' -i "${phpinisrc}"
|
||||
|
||||
dodir "${PHP_INI_DIR#${EPREFIX}}"
|
||||
insinto "${PHP_INI_DIR#${EPREFIX}}"
|
||||
newins "${phpinisrc}" "${PHP_INI_FILE}"
|
||||
|
||||
elog "Installing php.ini for ${phpsapi} into ${PHP_INI_DIR#${EPREFIX}}"
|
||||
elog
|
||||
|
||||
dodir "${PHP_EXT_INI_DIR#${EPREFIX}}"
|
||||
dodir "${PHP_EXT_INI_DIR_ACTIVE#${EPREFIX}}"
|
||||
|
||||
if use_if_iuse opcache; then
|
||||
elog "Adding opcache to $PHP_EXT_INI_DIR"
|
||||
echo "zend_extension=${PHP_DESTDIR}/$(get_libdir)/opcache.so" >> "${D}/${PHP_EXT_INI_DIR}"/opcache.ini
|
||||
dosym "${PHP_EXT_INI_DIR#${EPREFIX}}/opcache.ini" "${PHP_EXT_INI_DIR_ACTIVE#${EPREFIX}}/opcache.ini"
|
||||
fi
|
||||
|
||||
# SAPI-specific handling
|
||||
|
||||
if [[ "${sapi}" == "fpm" ]] ; then
|
||||
[[ -z ${PHP_FPM_CONF_VER} ]] && PHP_FPM_CONF_VER=0
|
||||
einfo "Installing FPM CGI config file php-fpm.conf"
|
||||
insinto "${PHP_INI_DIR#${EPREFIX}}"
|
||||
newins "${FILESDIR}/php-fpm-r${PHP_FPM_CONF_VER}.conf" php-fpm.conf
|
||||
|
||||
# Remove bogus /etc/php-fpm.conf.default (bug 359906)
|
||||
[[ -f "${ED}/etc/php-fpm.conf.default" ]] && rm "${ED}/etc/php-fpm.conf.default"
|
||||
fi
|
||||
|
||||
# Install PHP ini files into /usr/share/php
|
||||
|
||||
dodoc php.ini-development
|
||||
dodoc php.ini-production
|
||||
|
||||
}
|
||||
|
||||
php_set_ini_dir() {
|
||||
PHP_INI_DIR="${EPREFIX}/etc/php/${1}-php${SLOT}"
|
||||
PHP_EXT_INI_DIR="${PHP_INI_DIR}/ext"
|
||||
PHP_EXT_INI_DIR_ACTIVE="${PHP_INI_DIR}/ext-active"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# USE=sharedmem (session/mod_mm to be exact) tries to mmap() this path
|
||||
# ([empty session.save_path]/session_mm_[sapi][gid].sem)
|
||||
# there is no easy way to circumvent that, all php calls during
|
||||
# install use -n, so no php.ini file will be used.
|
||||
# As such, this is the easiest way to get around
|
||||
addpredict /session_mm_cli250.sem
|
||||
addpredict /session_mm_cli0.sem
|
||||
|
||||
# Change PHP branding
|
||||
# Get the alpha/beta/rc version
|
||||
sed -re "s|^(PHP_EXTRA_VERSION=\").*(\")|\1-pl${PR/r/}-gentoo\2|g" \
|
||||
-i configure.in || die "Unable to change PHP branding"
|
||||
|
||||
# Patch PHP to show Gentoo as the server platform
|
||||
sed -e 's/PHP_UNAME=`uname -a | xargs`/PHP_UNAME=`uname -s -n -r -v | xargs`/g' \
|
||||
-i configure.in || die "Failed to fix server platform name"
|
||||
|
||||
# Prevent PHP from activating the Apache config,
|
||||
# as we will do that ourselves
|
||||
sed -i \
|
||||
-e "s,-i -a -n php${PHP_MV},-i -n php${PHP_MV},g" \
|
||||
-e "s,-i -A -n php${PHP_MV},-i -n php${PHP_MV},g" \
|
||||
configure sapi/apache2filter/config.m4 sapi/apache2handler/config.m4
|
||||
|
||||
# Patch PHP to support heimdal instead of mit-krb5
|
||||
if has_version "app-crypt/heimdal" ; then
|
||||
sed -e 's|gssapi_krb5|gssapi|g' -i acinclude.m4 \
|
||||
|| die "Failed to fix heimdal libname"
|
||||
sed -e 's|PHP_ADD_LIBRARY(k5crypto, 1, $1)||g' -i acinclude.m4 \
|
||||
|| die "Failed to fix heimdal crypt library reference"
|
||||
fi
|
||||
|
||||
#Add user patches #357637
|
||||
epatch_user
|
||||
|
||||
#force rebuilding aclocal.m4
|
||||
rm aclocal.m4
|
||||
eautoreconf
|
||||
|
||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||
# http://bugs.php.net/bug.php?id=48795, bug #343481
|
||||
sed -i -e '/BUILD_CGI="\\$(CC)/s/CC/CXX/' configure || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
addpredict /usr/share/snmp/mibs/.index
|
||||
addpredict /var/lib/net-snmp/mib_indexes
|
||||
|
||||
PHP_DESTDIR="${EPREFIX}/usr/$(get_libdir)/php${SLOT}"
|
||||
|
||||
# This is a global variable and should be in caps. It isn't because the
|
||||
# phpconfutils eclass relies on exactly this name...
|
||||
# for --with-libdir see bug #327025
|
||||
my_conf="
|
||||
--prefix="${PHP_DESTDIR}"
|
||||
--mandir="${PHP_DESTDIR}"/man
|
||||
--infodir="${PHP_DESTDIR}"/info
|
||||
--libdir="${PHP_DESTDIR}"/lib
|
||||
--with-libdir=$(get_libdir)
|
||||
--without-pear
|
||||
$(use_enable threads maintainer-zts)"
|
||||
|
||||
# extension USE flag shared
|
||||
my_conf+="
|
||||
$(use_enable bcmath bcmath )
|
||||
$(use_with bzip2 bz2 "${EPREFIX}"/usr)
|
||||
$(use_enable calendar calendar )
|
||||
$(use_enable ctype ctype )
|
||||
$(use_with curl curl "${EPREFIX}"/usr)
|
||||
$(use_enable xml dom )
|
||||
$(use_with enchant enchant "${EPREFIX}"/usr)
|
||||
$(use_enable exif exif )
|
||||
$(use_enable fileinfo fileinfo )
|
||||
$(use_enable filter filter )
|
||||
$(use_enable ftp ftp )
|
||||
$(use_with nls gettext "${EPREFIX}"/usr)
|
||||
$(use_with gmp gmp "${EPREFIX}"/usr)
|
||||
$(use_enable hash hash )
|
||||
$(use_with mhash mhash "${EPREFIX}"/usr)
|
||||
$(use_with iconv iconv $(use elibc_glibc || echo "${EPREFIX}"/usr))
|
||||
$(use_enable intl intl )
|
||||
$(use_enable ipv6 ipv6 )
|
||||
$(use_enable json json )
|
||||
$(use_with kerberos kerberos "${EPREFIX}"/usr)
|
||||
$(use_enable xml libxml )
|
||||
$(use_with xml libxml-dir "${EPREFIX}"/usr)
|
||||
$(use_enable unicode mbstring )
|
||||
$(use_with crypt mcrypt "${EPREFIX}"/usr)
|
||||
$(use_with mssql mssql "${EPREFIX}"/usr)
|
||||
$(use_with unicode onig "${EPREFIX}"/usr)
|
||||
$(use_with ssl openssl "${EPREFIX}"/usr)
|
||||
$(use_with ssl openssl-dir "${EPREFIX}"/usr)
|
||||
$(use_enable pcntl pcntl )
|
||||
$(use_enable phar phar )
|
||||
$(use_enable pdo pdo )
|
||||
$(use_enable opcache opcache )
|
||||
$(use_with postgres pgsql "${EPREFIX}"/usr)
|
||||
$(use_enable posix posix )
|
||||
$(use_with spell pspell "${EPREFIX}"/usr)
|
||||
$(use_with recode recode "${EPREFIX}"/usr)
|
||||
$(use_enable simplexml simplexml )
|
||||
$(use_enable sharedmem shmop )
|
||||
$(use_with snmp snmp "${EPREFIX}"/usr)
|
||||
$(use_enable soap soap )
|
||||
$(use_enable sockets sockets )
|
||||
$(use_with sqlite sqlite3 "${EPREFIX}"/usr)
|
||||
$(use_with sybase-ct sybase-ct "${EPREFIX}"/usr)
|
||||
$(use_enable sysvipc sysvmsg )
|
||||
$(use_enable sysvipc sysvsem )
|
||||
$(use_enable sysvipc sysvshm )
|
||||
$(use_with systemd fpm-systemd)
|
||||
$(use_with tidy tidy "${EPREFIX}"/usr)
|
||||
$(use_enable tokenizer tokenizer )
|
||||
$(use_enable wddx wddx )
|
||||
$(use_enable xml xml )
|
||||
$(use_enable xmlreader xmlreader )
|
||||
$(use_enable xmlwriter xmlwriter )
|
||||
$(use_with xmlrpc xmlrpc)
|
||||
$(use_with xslt xsl "${EPREFIX}"/usr)
|
||||
$(use_enable zip zip )
|
||||
$(use_with zlib zlib "${EPREFIX}"/usr)
|
||||
$(use_enable debug debug )"
|
||||
|
||||
# DBA support
|
||||
if use cdb || use berkdb || use flatfile || use gdbm || use inifile \
|
||||
|| use qdbm ; then
|
||||
my_conf="${my_conf} --enable-dba${shared}"
|
||||
fi
|
||||
|
||||
# DBA drivers support
|
||||
my_conf+="
|
||||
$(use_with cdb cdb)
|
||||
$(use_with berkdb db4 ${EPREFIX}/usr)
|
||||
$(use_enable flatfile flatfile )
|
||||
$(use_with gdbm gdbm ${EPREFIX}/usr)
|
||||
$(use_enable inifile inifile )
|
||||
$(use_with qdbm qdbm ${EPREFIX}/usr)"
|
||||
|
||||
# Support for the GD graphics library
|
||||
my_conf+="
|
||||
$(use_with truetype freetype-dir ${EPREFIX}/usr)
|
||||
$(use_with truetype t1lib ${EPREFIX}/usr)
|
||||
$(use_enable cjk gd-jis-conv )
|
||||
$(use_with gd jpeg-dir ${EPREFIX}/usr)
|
||||
$(use_with gd png-dir ${EPREFIX}/usr)
|
||||
$(use_with xpm xpm-dir ${EPREFIX}/usr)"
|
||||
# enable gd last, so configure can pick up the previous settings
|
||||
my_conf+="
|
||||
$(use_with gd gd)"
|
||||
|
||||
# IMAP support
|
||||
if use imap ; then
|
||||
my_conf+="
|
||||
$(use_with imap imap ${EPREFIX}/usr)
|
||||
$(use_with ssl imap-ssl ${EPREFIX}/usr)"
|
||||
fi
|
||||
|
||||
# Interbase/firebird support
|
||||
|
||||
if use firebird ; then
|
||||
my_conf+="
|
||||
$(use_with firebird interbase ${EPREFIX}/usr)"
|
||||
fi
|
||||
|
||||
# LDAP support
|
||||
if use ldap ; then
|
||||
my_conf+="
|
||||
$(use_with ldap ldap ${EPREFIX}/usr)
|
||||
$(use_with ldap-sasl ldap-sasl ${EPREFIX}/usr)"
|
||||
fi
|
||||
|
||||
# MySQL support
|
||||
local mysqllib="mysqlnd"
|
||||
local mysqlilib="mysqlnd"
|
||||
use libmysqlclient && mysqllib="${EPREFIX}/usr"
|
||||
use libmysqlclient && mysqlilib="${EPREFIX}/usr/bin/mysql_config"
|
||||
|
||||
my_conf+=" $(use_with mysql mysql $mysqllib)"
|
||||
my_conf+=" $(use_with mysqli mysqli $mysqlilib)"
|
||||
|
||||
local mysqlsock=" $(use_with mysql mysql-sock ${EPREFIX}/var/run/mysqld/mysqld.sock)"
|
||||
if use mysql ; then
|
||||
my_conf+="${mysqlsock}"
|
||||
elif use mysqli ; then
|
||||
my_conf+="${mysqlsock}"
|
||||
fi
|
||||
|
||||
# ODBC support
|
||||
if use odbc ; then
|
||||
my_conf+="
|
||||
$(use_with odbc unixODBC ${EPREFIX}/usr)"
|
||||
fi
|
||||
|
||||
if use iodbc ; then
|
||||
my_conf+="
|
||||
$(use_with iodbc iodbc ${EPREFIX}/usr)"
|
||||
fi
|
||||
|
||||
# Oracle support
|
||||
if use oci8-instant-client ; then
|
||||
my_conf+="
|
||||
$(use_with oci8-instant-client oci8)"
|
||||
fi
|
||||
|
||||
# PDO support
|
||||
if use pdo ; then
|
||||
my_conf+="
|
||||
$(use_with mssql pdo-dblib )
|
||||
$(use_with mysql pdo-mysql ${mysqllib})
|
||||
$(use_with postgres pdo-pgsql )
|
||||
$(use_with sqlite pdo-sqlite ${EPREFIX}/usr)
|
||||
$(use_with odbc pdo-odbc unixODBC,${EPREFIX}/usr)"
|
||||
if use oci8-instant-client ; then
|
||||
my_conf+="
|
||||
$(use_with oci8-instant-client pdo-oci)"
|
||||
fi
|
||||
fi
|
||||
|
||||
# readline/libedit support
|
||||
my_conf+="
|
||||
$(use_with readline readline ${EPREFIX}/usr)
|
||||
$(use_with libedit libedit ${EPREFIX}/usr)"
|
||||
|
||||
# Session support
|
||||
if use session ; then
|
||||
my_conf+="
|
||||
$(use_with sharedmem mm ${EPREFIX}/usr)"
|
||||
else
|
||||
my_conf+="
|
||||
$(use_enable session session )"
|
||||
fi
|
||||
|
||||
# Use pic for shared modules such as apache2's mod_php
|
||||
my_conf="${my_conf} --with-pic"
|
||||
|
||||
# we use the system copy of pcre
|
||||
# --with-pcre-regex affects ext/pcre
|
||||
# --with-pcre-dir affects ext/filter and ext/zip
|
||||
my_conf="${my_conf} --with-pcre-regex=${EPREFIX}/usr --with-pcre-dir=${EPREFIX}/usr"
|
||||
|
||||
# Catch CFLAGS problems
|
||||
# Fixes bug #14067.
|
||||
# Changed order to run it in reverse for bug #32022 and #12021.
|
||||
replace-cpu-flags "k6*" "i586"
|
||||
|
||||
# Support user-passed configuration parameters
|
||||
my_conf="${my_conf} ${EXTRA_ECONF:-}"
|
||||
|
||||
# Support the Apache2 extras, they must be set globally for all
|
||||
# SAPIs to work correctly, especially for external PHP extensions
|
||||
|
||||
mkdir -p "${WORKDIR}/sapis-build"
|
||||
for one_sapi in $SAPIS ; do
|
||||
use "${one_sapi}" || continue
|
||||
php_set_ini_dir "${one_sapi}"
|
||||
|
||||
cp -r "${S}" "${WORKDIR}/sapis-build/${one_sapi}"
|
||||
cd "${WORKDIR}/sapis-build/${one_sapi}"
|
||||
|
||||
sapi_conf="${my_conf} --with-config-file-path=${PHP_INI_DIR}
|
||||
--with-config-file-scan-dir=${PHP_EXT_INI_DIR_ACTIVE}"
|
||||
|
||||
for sapi in $SAPIS ; do
|
||||
case "$sapi" in
|
||||
cli|cgi|embed|fpm)
|
||||
if [[ "${one_sapi}" == "${sapi}" ]] ; then
|
||||
sapi_conf="${sapi_conf} --enable-${sapi}"
|
||||
else
|
||||
sapi_conf="${sapi_conf} --disable-${sapi}"
|
||||
fi
|
||||
;;
|
||||
|
||||
apache2)
|
||||
if [[ "${one_sapi}" == "${sapi}" ]] ; then
|
||||
sapi_conf="${sapi_conf} --with-apxs2=${EPREFIX}/usr/sbin/apxs"
|
||||
else
|
||||
sapi_conf="${sapi_conf} --without-apxs2"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
econf ${sapi_conf}
|
||||
done
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# snmp seems to run during src_compile, too (bug #324739)
|
||||
addpredict /usr/share/snmp/mibs/.index
|
||||
addpredict /var/lib/net-snmp/mib_indexes
|
||||
|
||||
for sapi in ${SAPIS} ; do
|
||||
if use "${sapi}"; then
|
||||
cd "${WORKDIR}/sapis-build/$sapi" || "Failed to change dir to ${WORKDIR}/sapis-build/$1"
|
||||
emake || die "emake failed"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# see bug #324739 for what happens when we don't have that
|
||||
addpredict /usr/share/snmp/mibs/.index
|
||||
|
||||
# grab the first SAPI that got built and install common files from there
|
||||
local first_sapi=""
|
||||
for sapi in $SAPIS ; do
|
||||
if use $sapi ; then
|
||||
first_sapi=$sapi
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
# Makefile forgets to create this before trying to write to it...
|
||||
dodir "${PHP_DESTDIR#${EPREFIX}}/bin"
|
||||
|
||||
# Install php environment (without any sapis)
|
||||
cd "${WORKDIR}/sapis-build/$first_sapi"
|
||||
emake INSTALL_ROOT="${D}" \
|
||||
install-build install-headers install-programs \
|
||||
|| die "emake install failed"
|
||||
|
||||
local extension_dir="$("${ED}/${PHP_DESTDIR#${EPREFIX}}/bin/php-config" --extension-dir)"
|
||||
|
||||
# Create the directory where we'll put version-specific php scripts
|
||||
keepdir /usr/share/php${PHP_MV}
|
||||
|
||||
local sapi="", file=""
|
||||
local sapi_list=""
|
||||
|
||||
for sapi in ${SAPIS}; do
|
||||
if use "${sapi}" ; then
|
||||
einfo "Installing SAPI: ${sapi}"
|
||||
cd "${WORKDIR}/sapis-build/${sapi}"
|
||||
|
||||
if [[ "${sapi}" == "apache2" ]] ; then
|
||||
# We're specifically not using emake install-sapi as libtool
|
||||
# may cause unnecessary relink failures (see bug #351266)
|
||||
insinto "${PHP_DESTDIR#${EPREFIX}}/apache2/"
|
||||
newins ".libs/libphp5$(get_libname)" "libphp${PHP_MV}$(get_libname)"
|
||||
keepdir "/usr/$(get_libdir)/apache2/modules"
|
||||
else
|
||||
# needed each time, php_install_ini would reset it
|
||||
local dest="${PHP_DESTDIR#${EPREFIX}}"
|
||||
into "${dest}"
|
||||
case "$sapi" in
|
||||
cli)
|
||||
source="sapi/cli/php"
|
||||
;;
|
||||
cgi)
|
||||
source="sapi/cgi/php-cgi"
|
||||
;;
|
||||
fpm)
|
||||
source="sapi/fpm/php-fpm"
|
||||
;;
|
||||
embed)
|
||||
source="libs/libphp${PHP_MV}$(get_libname)"
|
||||
;;
|
||||
*)
|
||||
die "unhandled sapi in src_install"
|
||||
;;
|
||||
esac
|
||||
|
||||
if [[ "${source}" == *"$(get_libname)" ]]; then
|
||||
dolib.so "${source}" || die "Unable to install ${sapi} sapi"
|
||||
else
|
||||
dobin "${source}" || die "Unable to install ${sapi} sapi"
|
||||
local name="$(basename ${source})"
|
||||
dosym "${dest}/bin/${name}" "/usr/bin/${name}${SLOT}"
|
||||
fi
|
||||
fi
|
||||
|
||||
php_install_ini "${sapi}"
|
||||
|
||||
# construct correct SAPI string for php-config
|
||||
# thanks to ferringb for the bash voodoo
|
||||
if [[ "${sapi}" == "apache2" ]]; then
|
||||
sapi_list="${sapi_list:+${sapi_list} }apache2handler"
|
||||
else
|
||||
sapi_list="${sapi_list:+${sapi_list} }${sapi}"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
# Installing opcache module
|
||||
if use_if_iuse opcache ; then
|
||||
dolib.so "modules/opcache$(get_libname)" || die "Unable to install opcache module"
|
||||
fi
|
||||
|
||||
# Install env.d files
|
||||
newenvd "${FILESDIR}/20php5-envd" \
|
||||
"20php${SLOT}"
|
||||
sed -e "s|/lib/|/$(get_libdir)/|g" -i \
|
||||
"${ED}/etc/env.d/20php${SLOT}"
|
||||
sed -e "s|php5|php${SLOT}|g" -i \
|
||||
"${ED}/etc/env.d/20php${SLOT}"
|
||||
|
||||
# set php-config variable correctly (bug #278439)
|
||||
sed -e "s:^\(php_sapis=\)\".*\"$:\1\"${sapi_list}\":" -i \
|
||||
"${ED}/usr/$(get_libdir)/php${SLOT}/bin/php-config"
|
||||
|
||||
if use fpm ; then
|
||||
if use systemd; then
|
||||
systemd_newunit "${FILESDIR}/php-fpm_at.service" "php-fpm@${SLOT}.service"
|
||||
else
|
||||
systemd_newunit "${FILESDIR}/php-fpm_at-simple.service" "php-fpm@${SLOT}.service"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
echo ">>> Test phase [test]: ${CATEGORY}/${PF}"
|
||||
PHP_BIN="${WORKDIR}/sapis-build/cli/sapi/cli/php"
|
||||
if [[ ! -x "${PHP_BIN}" ]] ; then
|
||||
ewarn "Test phase requires USE=cli, skipping"
|
||||
return
|
||||
else
|
||||
export TEST_PHP_EXECUTABLE="${PHP_BIN}"
|
||||
fi
|
||||
|
||||
if [[ -x "${WORKDIR}/sapis/cgi/php-cgi" ]] ; then
|
||||
export TEST_PHP_CGI_EXECUTABLE="${WORKDIR}/sapis/cgi/php-cgi"
|
||||
fi
|
||||
|
||||
REPORT_EXIT_STATUS=1 "${TEST_PHP_EXECUTABLE}" -n -d "session.save_path=${T}" \
|
||||
"${WORKDIR}/sapis-build/cli/run-tests.php" -n -q -d "session.save_path=${T}"
|
||||
|
||||
for name in ${EXPECTED_TEST_FAILURES}; do
|
||||
mv "${name}.out" "${name}.out.orig" 2>/dev/null
|
||||
done
|
||||
|
||||
local failed="$(find -name '*.out')"
|
||||
if [[ ${failed} != "" ]] ; then
|
||||
ewarn "The following test cases failed unexpectedly:"
|
||||
for name in ${failed}; do
|
||||
ewarn " ${name/.out/}"
|
||||
done
|
||||
else
|
||||
einfo "No unexpected test failures, all fine"
|
||||
fi
|
||||
|
||||
if [[ ${PHP_SHOW_UNEXPECTED_TEST_PASS} == "1" ]] ; then
|
||||
local passed=""
|
||||
for name in ${EXPECTED_TEST_FAILURES}; do
|
||||
[[ -f "${name}.diff" ]] && continue
|
||||
passed="${passed} ${name}"
|
||||
done
|
||||
if [[ ${passed} != "" ]] ; then
|
||||
einfo "The following test cases passed unexpectedly:"
|
||||
for name in ${passed}; do
|
||||
ewarn " ${passed}"
|
||||
done
|
||||
else
|
||||
einfo "None of the known-to-fail tests passed, all fine"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# Output some general info to the user
|
||||
if use apache2 ; then
|
||||
APACHE2_MOD_DEFINE="PHP5"
|
||||
APACHE2_MOD_CONF="70_mod_php5"
|
||||
apache-module_pkg_postinst
|
||||
fi
|
||||
|
||||
# Create the symlinks for php
|
||||
for m in ${SAPIS}; do
|
||||
[[ ${m} == 'embed' ]] && continue;
|
||||
if use $m ; then
|
||||
local ci=$(eselect php show $m)
|
||||
if [[ -z $ci ]]; then
|
||||
eselect php set $m php${SLOT}
|
||||
einfo "Switched ${m} to use php:${SLOT}"
|
||||
einfo
|
||||
elif [[ $ci != "php${SLOT}" ]] ; then
|
||||
elog "To switch $m to use php:${SLOT}, run"
|
||||
elog " eselect php set $m php${SLOT}"
|
||||
elog
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
elog "Make sure that PHP_TARGETS in ${EPREFIX}/etc/make.conf includes php${SLOT/./-} in order"
|
||||
elog "to compile extensions for the ${SLOT} ABI"
|
||||
elog
|
||||
if ! use readline && use cli ; then
|
||||
ewarn "Note that in order to use php interactivly, you need to enable"
|
||||
ewarn "the readline USE flag or php -a will hang"
|
||||
fi
|
||||
elog
|
||||
elog "This ebuild installed a version of php.ini based on php.ini-${PHP_INI_VERSION} version."
|
||||
elog "You can chose which version of php.ini to install by default by setting PHP_INI_VERSION to either"
|
||||
elog "'production' or 'development' in ${EPREFIX}/etc/make.conf"
|
||||
elog "Both versions of php.ini can be found in ${EPREFIX}/usr/share/doc/${PF}"
|
||||
|
||||
elog
|
||||
elog "For more details on how minor version slotting works (PHP_TARGETS) please read the upgrade guide:"
|
||||
elog "http://www.gentoo.org/proj/en/php/php-upgrading.xml"
|
||||
elog
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
eselect php cleanup
|
||||
}
|
@ -0,0 +1,47 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/rakudo/rakudo-2014.06.ebuild,v 1.1 2014/06/27 07:06:27 patrick Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils multilib
|
||||
|
||||
DESCRIPTION="A Perl 6 implementation built on the Parrot virtual machine"
|
||||
HOMEPAGE="http://rakudo.org/"
|
||||
SRC_URI="http://rakudo.org/downloads/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc java +moar"
|
||||
|
||||
RDEPEND=">=dev-lang/nqp-${PV}[java?,moar?]"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-lang/perl"
|
||||
|
||||
src_prepare() {
|
||||
sed -i "s,\$(DOCDIR)/rakudo$,&-${PVR}," tools/build/Makefile-Parrot.in || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
use java && myconf+="jvm,"
|
||||
use moar && myconf+="moar,"
|
||||
perl Configure.pl --backends=${myconf} --prefix=/usr || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake -j1 test || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake -j1 DESTDIR="${ED}" install || die
|
||||
|
||||
dodoc CREDITS README.md docs/ChangeLog docs/ROADMAP || die
|
||||
|
||||
if use doc; then
|
||||
dohtml -A svg docs/architecture.html docs/architecture.svg || die
|
||||
dodoc docs/*.pod || die
|
||||
docinto announce
|
||||
dodoc docs/announce/* || die
|
||||
fi
|
||||
}
|
@ -1,46 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/389-adminutil/389-adminutil-1.1.14.ebuild,v 1.2 2012/05/04 18:35:54 jdhore Exp $
|
||||
|
||||
EAPI="2"
|
||||
|
||||
inherit libtool eutils
|
||||
|
||||
MY_PV=${PV/_rc/.rc}
|
||||
MY_PV=${MY_PV/_a/.a}
|
||||
MY_P=${P/_rc/.rc}
|
||||
MY_P=${MY_P/_a/.a}
|
||||
|
||||
DESCRIPTION="389 adminutil"
|
||||
HOMEPAGE="http://port389.org/"
|
||||
SRC_URI="http://port389.org/sources/${MY_P}.tar.bz2"
|
||||
|
||||
LICENSE="LGPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="debug"
|
||||
|
||||
COMMON_DEPEND=">=dev-libs/nss-3.11.4
|
||||
>=dev-libs/nspr-4.6.4
|
||||
>=dev-libs/svrcore-4.0.3
|
||||
>=dev-libs/mozldap-6.0.2
|
||||
>=dev-libs/cyrus-sasl-2.1.19
|
||||
>=dev-libs/icu-3.4"
|
||||
DEPEND="virtual/pkgconfig ${COMMON_DEPEND}"
|
||||
RDEPEND="${COMMON_DEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
elibtoolize
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf $(use_enable debug) \
|
||||
--with-fhs \
|
||||
--disable-rpath \
|
||||
--disable-tests ||die "econf failed"
|
||||
}
|
||||
|
||||
src_install () {
|
||||
emake DESTDIR="${D}" install || die "emake failed"
|
||||
dodoc README NEWS
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST 389-adminutil-1.1.14.tar.bz2 284042 SHA256 d900e28b409cf3f8e5514a86cfad953f7bb53bf474300f006b4bbb021973d890 SHA512 09190bc6a15ace8252ebff117f4ebb0c2f447d021059770479965cce121afce7113e25a29c538107cb45b39de76dffdf37b009c5c79890cbe11c070d95dcb29c WHIRLPOOL b0427b24e5a862883946c22c95e998a9fde646e6f8a30ecca3376a6b376f278af16eb980c773e9bdb766f0692d67034c73cbafd5756743f8511e8d64586b0f46
|
||||
DIST 389-adminutil-1.1.15.tar.bz2 283825 SHA256 8ca29db779c87f3c8c41ba793864454b094f41b5cdbf74b9b45967a81eb17958 SHA512 5ed8d758ee47a2e276bab73696067dd2acd36f15ea5b93b32e3e244530920d74d95a4a4ff96cd325f22ae4ce2cc764fef03c90497c0181cbc1f0291f260d8ddf WHIRLPOOL e68fd5975a2d871e0e2c79580ecc24f48091fc1418ec04816e39799ac17b2495fd3b25c26e7e55626da46210909a8e9ffc1c8d6ad140e3fce0f3665dff0de903
|
||||
|
@ -1,3 +1,4 @@
|
||||
DIST ding-libs-0.1.3.tar.gz 526095 SHA256 97c9c02fee77c8467d759dc4fe3a9136cd1349aa7abb29c9af1d36c6fb25e33e SHA512 5bab16cfffcb70162cf9034a8639c59eae0a9b454fa85670eb19b2ec490410534c8119d7c5400095b04c791d4bbc37a20d407473416d8073de0f087a7317d8e2 WHIRLPOOL a60794d781b359c06d4609d34fb259882b166793d30e721dfff14762a30860a8ec03f7874d2e2293b69c69c7472cf8d7d0bce160850efd5accdcb6693e48e2bb
|
||||
DIST ding-libs-0.2.91.tar.gz 584390 SHA256 25b186688d62ef6ad1374bb9c71f91e8a13745d7ab52241c5ccdc2d37e286e41 SHA512 e65a7a46927ab07cc9848d61a33888ba204d3b1ba772004e124c3e6f9745ef6a23982729ee6b5c303194759ec4a45f02467d37324ae0023fc97cc47ba9e1f83e WHIRLPOOL c1171609d8f83e5e021b4b0e6c14479a6f2c93084515e69dbe3bdb6a28fb85a5d18983056539b30108b87d82e24e863bdec723b9e29502e462bc507dde3d23be
|
||||
DIST ding-libs-0.3.0.1.tar.gz 612258 SHA256 7b3b57b8de9c84ffccc93c452697f445de3d57585df77bba01d26509f811fc26 SHA512 7895870dcb49f605fb872365d7e664790f3d18de5391210dbf31fb87592dc125291a8e95f3e01c7ba2e7f0acc7b4d5c2f01b3e2582a1e588aa51f78a231795b4 WHIRLPOOL 5a3c1138662777d10c8ad57ba429d22a91f3e7dc9d313a1ab7c6b808f1202d01628e9a159d9b50dc8916e3d35805312bb24d884981febe7f475102c11f438885
|
||||
DIST ding-libs-0.4.0.tar.gz 827058 SHA256 bdeb90b07ceaa9145e6784ce40a71b69a37fffc7373c51fee258ffffd5390457 SHA512 e062e104f4ad75eea0b59bb113b7a6a4044a42230d96b9b9dda611535835cd0809635b1da1408ae58e97f9ff9a9f4fd48f751365901f9b066b465df3523730a0 WHIRLPOOL 41733ac92c3c7fcaa19f19843a2464a0644632cc345b77fc033910974fa449f91780725302fafadd233c6ef4379174261bbab45e49830e8673a46d9ee3d6f652
|
||||
|
@ -0,0 +1,24 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/ding-libs/ding-libs-0.4.0.ebuild,v 1.1 2014/06/27 08:54:58 maksbotan Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit autotools-multilib
|
||||
|
||||
DESCRIPTION="Library set needed for build sssd"
|
||||
HOMEPAGE="https://fedorahosted.org/sssd"
|
||||
SRC_URI="https://fedorahosted.org/released/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-3 GPL-3"
|
||||
SLOT="0"
|
||||
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux"
|
||||
IUSE="test static-libs"
|
||||
|
||||
RDEPEND=""
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
test? ( dev-libs/check )
|
||||
"
|
@ -1,2 +1,3 @@
|
||||
DIST folks-0.4.3.tar.bz2 635168 SHA256 e5a5bbe1524130ff5b6400726db3e12299b12ffefa108bc89169509f343d925e SHA512 dfd7cb055aba691e7b8e7daa3e887e20f021d230617641c0dcf91787b53b576601fabeeba654e98009b47ecff39969ea1b560822d4452ee497c7eeedc16c423b WHIRLPOOL 49cee01e55e9223b6566d76c21f8de68a15c6a2534ce4b4d6ed752e9cf8dadd256b5343a46c26e0236155901864e34b6677764aa70c43c8e18df692c40d8c85d
|
||||
DIST folks-0.9.6.tar.xz 1694012 SHA256 a67e055b5a2724a34a80946e2940c4c0ad708cb1f4e0a09407c6b69a5e40267f SHA512 613d4cfb84f4ce9656994950f66d974c99c074317c5f1c92f4501760261021e8e86d85e56c7720fa0f6a20db818a1e813d6cd40e67d4157fd3005a3770a86127 WHIRLPOOL ae564d02ec3bea7efca04bd9a0f77732fdc03217538d1cb410bf7c467cca606adcf8bc395d7f8f4ed386eb07e687203889b75c930a8103dc104ce2ce1afb0d94
|
||||
DIST folks-0.9.7.1.tar.xz 1860208 SHA256 8d53cf9f6ccb7d9499a352c7367170b103b14a7d59da0bd06dda8c57b689276a SHA512 26926d7eb284322618ac6fd654bc5e0f600b7e6ee5feaf9e7f5216f33eac9dd0a58549a0fd9715a273c5feafd6f5f83e21aa4a60595a252aa6a872a07e38e9cd WHIRLPOOL 216ab08a4053eee22cd52612d4c37751f1bfc533940ae86fb354c4ca08e42dea3ec200871d1cae7d26fb153999f90afba7c80820a4c811b13db94b3b26e8ca28
|
||||
|
@ -0,0 +1,92 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/folks/folks-0.9.7.1.ebuild,v 1.1 2014/06/26 10:42:13 pacho Exp $
|
||||
|
||||
EAPI="5"
|
||||
GCONF_DEBUG="yes"
|
||||
VALA_MIN_API_VERSION="0.22"
|
||||
VALA_USE_DEPEND="vapigen"
|
||||
|
||||
inherit gnome2 vala virtualx
|
||||
|
||||
DESCRIPTION="Library for aggregating people from multiple sources"
|
||||
HOMEPAGE="https://wiki.gnome.org/Projects/Folks"
|
||||
|
||||
LICENSE="LGPL-2.1+"
|
||||
SLOT="0/25" # subslot = libfolks soname version
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-linux"
|
||||
# TODO: --enable-profiling
|
||||
# Vala isn't really optional, https://bugzilla.gnome.org/show_bug.cgi?id=701099
|
||||
IUSE="bluetooth eds socialweb +telepathy test tracker utils zeitgeist"
|
||||
REQUIRED_USE="bluetooth? ( eds )"
|
||||
|
||||
COMMON_DEPEND="
|
||||
$(vala_depend)
|
||||
>=dev-libs/glib-2.38.2:2
|
||||
dev-libs/dbus-glib
|
||||
>=dev-libs/libgee-0.10:0.8[introspection]
|
||||
dev-libs/libxml2
|
||||
sys-libs/ncurses:=
|
||||
sys-libs/readline:=
|
||||
|
||||
bluetooth? ( >=net-wireless/bluez-5 )
|
||||
eds? ( >=gnome-extra/evolution-data-server-3.8:=[vala] )
|
||||
socialweb? ( >=net-libs/libsocialweb-0.25.20 )
|
||||
telepathy? ( >=net-libs/telepathy-glib-0.19[vala] )
|
||||
tracker? ( >=app-misc/tracker-1:0= )
|
||||
zeitgeist? ( >=gnome-extra/zeitgeist-0.9.14 )
|
||||
"
|
||||
# telepathy-mission-control needed at runtime; it is used by the telepathy
|
||||
# backend via telepathy-glib's AccountManager binding.
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
net-im/telepathy-mission-control
|
||||
"
|
||||
# folks socialweb backend requires that libsocialweb be built with USE=vala,
|
||||
# even when building folks with --disable-vala.
|
||||
#
|
||||
# FIXME:
|
||||
# test? ( bluetooth? ( dbusmock is missing in the tree ) )
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
>=dev-libs/gobject-introspection-1.30
|
||||
>=dev-util/intltool-0.50.0
|
||||
sys-devel/gettext
|
||||
virtual/pkgconfig
|
||||
|
||||
socialweb? ( >=net-libs/libsocialweb-0.25.15[vala] )
|
||||
test? ( sys-apps/dbus
|
||||
bluetooth? (
|
||||
>=gnome-extra/evolution-data-server-3.9.1
|
||||
>=dev-libs/glib-2.39.2 ) )
|
||||
!<dev-lang/vala-0.22.1:0.22
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
# Allow building against tracker-1.0
|
||||
sed -e 's/\(TRACKER_SPARQL_MAJOR\)=0.16/\1=1.0/' \
|
||||
-i configure{.ac,} || die
|
||||
|
||||
vala_src_prepare
|
||||
gnome2_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Rebuilding docs needs valadoc, which has no release
|
||||
gnome2_src_configure \
|
||||
$(use_enable bluetooth bluez-backend) \
|
||||
$(use_enable eds eds-backend) \
|
||||
$(use_enable eds ofono-backend) \
|
||||
$(use_enable socialweb libsocialweb-backend) \
|
||||
$(use_enable telepathy telepathy-backend) \
|
||||
$(use_enable tracker tracker-backend) \
|
||||
$(use_enable utils inspect-tool) \
|
||||
$(use_enable test tests) \
|
||||
$(use_enable zeitgeist) \
|
||||
--enable-vala \
|
||||
--enable-import-tool \
|
||||
--disable-docs \
|
||||
--disable-fatal-warnings
|
||||
}
|
||||
|
||||
src_test() {
|
||||
dbus-launch Xemake check
|
||||
}
|
@ -0,0 +1,43 @@
|
||||
#!/bin/sh
|
||||
|
||||
GEOIP_MIRROR="https://geolite.maxmind.com/download/geoip/database"
|
||||
GEOIPDIR=@PREFIX@/usr/share/GeoIP
|
||||
TMPDIR=
|
||||
|
||||
DATABASES="
|
||||
GeoIPv6
|
||||
GeoLiteCity
|
||||
GeoLiteCityv6-beta/GeoLiteCityv6
|
||||
GeoLiteCountry/GeoIP
|
||||
asnum/GeoIPASNum
|
||||
asnum/GeoIPASNumv6
|
||||
"
|
||||
|
||||
if [ "${1}" = -f ] || [ "${1}" = --force ]; then
|
||||
force=true
|
||||
fi
|
||||
|
||||
if [ -d "${GEOIPDIR}" ]; then
|
||||
cd $GEOIPDIR
|
||||
if [ -n "${DATABASES}" ]; then
|
||||
TMPDIR=$(mktemp -d geoipupdate.XXXXXXXXXX)
|
||||
|
||||
echo "Updating GeoIP databases..."
|
||||
|
||||
for db in $DATABASES; do
|
||||
fname=$(basename $db)
|
||||
|
||||
if [ -f "${GEOIPDIR}/${fname}.dat" ] || [ ${force} ]; then
|
||||
wget --no-verbose -t 3 -T 60 \
|
||||
"${GEOIP_MIRROR}/${db}.dat.gz" \
|
||||
-O "${TMPDIR}/${fname}.dat.gz"
|
||||
if [ $? -eq 0 ]; then
|
||||
gunzip -fdc "${TMPDIR}/${fname}.dat.gz" > "${TMPDIR}/${fname}.dat"
|
||||
mv "${TMPDIR}/${fname}.dat" "${GEOIPDIR}/${fname}.dat"
|
||||
chmod 0644 "${GEOIPDIR}/${fname}.dat"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
[ -d "${TMPDIR}" ] && rm -rf $TMPDIR
|
||||
fi
|
||||
fi
|
@ -0,0 +1,51 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/geoip/geoip-1.6.1.ebuild,v 1.1 2014/06/26 20:12:16 jer Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit autotools eutils
|
||||
|
||||
DESCRIPTION="easily lookup countries by IP addresses, even when Reverse DNS entries don't exist"
|
||||
HOMEPAGE="https://github.com/maxmind/geoip-api-c"
|
||||
SRC_URI="
|
||||
https://github.com/maxmind/${PN}-api-c/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
"
|
||||
|
||||
# GPL-2 for md5.c - part of libGeoIPUpdate, MaxMind for GeoLite Country db
|
||||
LICENSE="LGPL-2.1 GPL-2 MaxMind2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~x86-macos"
|
||||
IUSE="static-libs"
|
||||
RESTRICT="test"
|
||||
|
||||
DEPEND="net-misc/wget"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}/${PN}-api-c-${PV}"
|
||||
|
||||
src_prepare() {
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf $(use_enable static-libs static)
|
||||
sed -e "s|@PREFIX@|${ROOT}|g" "${FILESDIR}"/geoipupdate-r4.sh > geoipupdate.sh || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
dodoc AUTHORS ChangeLog README* TODO
|
||||
|
||||
prune_libtool_files
|
||||
|
||||
keepdir /usr/share/GeoIP
|
||||
|
||||
dosbin geoipupdate.sh
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Don't forget to run the included geoipupdate.sh or geoipupdate (from"
|
||||
elog "net-misc/geoipupdate) regularly to populate ${ROOT}/usr/share/GeoIP/"
|
||||
elog "with geo-located IP address databases."
|
||||
}
|
@ -1,2 +1,2 @@
|
||||
DIST igraph-0.6.4.tar.gz 3021465 SHA256 1da6359240fe7c6fdc46cc0d6a5a083daba9baf130e0933b939977696e059e43 SHA512 1faeea0202381f5e2b2aafb180b6670121b3c24622f60729f2ff461bcfd06da61be28743327470c8700d67e9c08d01a6a1fd19ad27ec5e06e60069f27e04af10 WHIRLPOOL 3637ed0d2a67705f1409a451330035e8892cd1fa7136de67525c9a5b668549941f6f500a542257fcd0e2832c59b024e5272e1abeefcebb0045aeda469e2a31c9
|
||||
DIST igraph-0.6.5.tar.gz 3209599 SHA256 7d1f8da9ebb6dd7acc648d9c7d6f4c490e998c5ca54ddf85db0017de3cc73fa2 SHA512 820ef71236942be21c393aede5913fe0d699cc901925ce3d989f4cc543eeac748d97e6e7c82f96c505a1c8580371447b27adf8369047b9d8f3d009eb9be6880d WHIRLPOOL cc9b2b084771b063455d0aa5353a6838e0684cd6a93d8c957973e2534333832e2680d6b975c7471cfabce55d00f88b9d4c6e1b120009f1cd2e17609a1c7d6f2d
|
||||
DIST igraph-0.7.1.tar.gz 2967134 SHA256 d978030e27369bf698f3816ab70aa9141e9baf81c56cc4f55efbe5489b46b0df SHA512 ac7d7e3fbc6d27ae69079224881ca03db2c7e0b50d016706f3e167c614e2c9332c675d2fcd3cde12874e13a8fc402d42222308c6195afadee15152cec93f94dd WHIRLPOOL bb860c90796b8706ffed708bc5ba1a1a83ab73b57f9fd49aa0d05548c6f2758f8305a09386dc6da7d86bd568261df35b207231facffc7045527c7ab0b0ec89ea
|
||||
|
@ -1,3 +1 @@
|
||||
DIST libmaa-1.3.0.tar.gz 286870 SHA256 188b7092e546b44ab31a1e6d75e31ea62c52cfb66ed0bce4e977c926d96f5c92 SHA512 0d238720d17985c6be5d36ddf18046418d64ae5766c0be42d86b46b4372e17c3e6f7819a9b755363f4f49a57f01be1bd4176d46be5f388d9d2b70afea16521d7 WHIRLPOOL 305bce69a2d3632526e082c6cf13baca48bcfcd3fdb23efb22fb9076ce06a821d864b026dc5343121a4ff845959c8432cde91ec8775a856d67d25ceec9659d06
|
||||
DIST libmaa-1.3.1.tar.gz 287084 SHA256 53401077333ea1a8b9fd0669b2fcb62bee435a6b95c6678c605640d8d4f5f077 SHA512 877d6bb44d16c070cc4a9d23ba99377e5086f7c6da7d8093bc7f50985f7a152ad9224ba0dd70b5c9438be97e14623729e5db81e15e0a3bf4e4ff63b8c2252c69 WHIRLPOOL e98be6ea80b6385c7cbb77360563631c6dfe56131be4fea0e7d738af133732cedd1da833f1037829663b0822f42f9511eebb71723e0d17731ba0e5071ca02e05
|
||||
DIST libmaa-1.3.2.tar.gz 287198 SHA256 59a5a01e3a9036bd32160ec535d25b72e579824e391fea7079e9c40b0623b1c5 SHA512 dde91e8bf1c08515ff4662282d16a03b18a1dfb16eb7b95be980ba398ed1e65d8cd88e58d454e03a03f48a5ecca8bf23b4ebaf475a98630a9178318c12a1b176 WHIRLPOOL 9e650e7d896d89730901166222ed57d994a8f87f78ae29aaae09c03b4d1618815ec9e8a1421ea69324ec86293934f2fc70347049c59fe14bf54dc643c2c01418
|
||||
|
@ -1,19 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libmaa/libmaa-1.3.0.ebuild,v 1.7 2012/03/18 19:50:20 armin76 Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
DESCRIPTION="Library with low-level data structures which are helpful for writing compilers"
|
||||
HOMEPAGE="http://www.dict.org/"
|
||||
SRC_URI="mirror://sourceforge/dict/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 ~hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~ia64-linux ~x86-linux"
|
||||
IUSE=""
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
dodoc ChangeLog NEWS README doc/libmaa.600dpi.ps
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libmaa/libmaa-1.3.1.ebuild,v 1.8 2012/09/02 18:44:27 armin76 Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
DESCRIPTION="Library with low-level data structures which are helpful for writing compilers"
|
||||
HOMEPAGE="http://www.dict.org/"
|
||||
SRC_URI="mirror://sourceforge/dict/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 ~hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~ia64-linux ~x86-linux"
|
||||
IUSE=""
|
||||
|
||||
DOCS="ChangeLog NEWS README doc/libmaa.600dpi.ps"
|
@ -0,0 +1,42 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libtasn1/libtasn1-4.0.ebuild,v 1.1 2014/06/26 18:51:44 alonbl Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit autotools-multilib
|
||||
|
||||
DESCRIPTION="ASN.1 library"
|
||||
HOMEPAGE="http://www.gnu.org/software/libtasn1/"
|
||||
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3 LGPL-2.1"
|
||||
SLOT="0/6" # subslot = libtasn1 soname version
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos"
|
||||
IUSE="doc static-libs"
|
||||
|
||||
DEPEND=">=dev-lang/perl-5.6
|
||||
sys-apps/help2man
|
||||
virtual/yacc"
|
||||
RDEPEND="
|
||||
abi_x86_32? (
|
||||
!<=app-emulation/emul-linux-x86-baselibs-20131008-r16
|
||||
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
|
||||
)"
|
||||
|
||||
DOCS=( AUTHORS ChangeLog NEWS README THANKS )
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs
|
||||
[[ "${VALGRIND_TESTS}" == "0" ]] && myeconfargs+=( --disable-valgrind-tests )
|
||||
autotools-multilib_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
autotools-multilib_src_install
|
||||
|
||||
if use doc ; then
|
||||
dodoc doc/libtasn1.pdf
|
||||
dohtml doc/reference/html/*
|
||||
fi
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST ucommon-5.2.2.tar.gz 792081 SHA256 9d5f3f4d1ef897482fe470b0dd65b0df516aaeb874eac3a33a455abca13f39e9 SHA512 5d5e526675cb39dffea48c38a14dff4eb1316a59c60e2352cfdbb0727ff4db00417e9704026f106da5d34f92ec2be3385b0763d66196f345f0b775bf62eb0125 WHIRLPOOL f857c4b06aff4bbb1ff84edc810d674c7d77a92bb4bcdb62fed64e77e9979c7d736b93596166de6c5fb848745aa7efc1b666231bdb6a33c3b959953b4b114ac2
|
||||
DIST ucommon-6.0.3.tar.gz 806841 SHA256 228f3a0fa78173e9fa43e154250a7ed4f1e5be720a81fd2768506c088190c432 SHA512 3ff30865a7f3fae955717c9bc2d3b37ad8f63dff8d3addc05eb9ddefa2311792f21b97ede852e22959ae6aae5114cce777a04b937aa07d564dd92d6f25f77762 WHIRLPOOL 93135ae4ec3c0e6d5203ebed6c6736b9b768d623d99a20674ee0a0ce48622d783efea6b8ca4eb22d5c2653b5059ff9626a35bf0ccfbad7d422a5cdf6c190c7c8
|
||||
DIST ucommon-6.1.8.tar.gz 833017 SHA256 9a2b3eb0b71198adcccd74303df59551fdd016c3a2848fb8be003fb1ac2e7fc5 SHA512 86fcd9b2fbafd06d87470a16bc3d377716e7040f29ccb91bf1fbe9ce66ef88e936141bd7c388d4bb63b9d4dea5e22ec9a0aae39cf3cf58e8a0e3ac9cb9b546b4 WHIRLPOOL a87ae7a929920710ad601d04bbf907c626ca4ade92d19c18ac0cba004428505d52082742ff65a0ce00862f04507e69a31012a365ababdc9bbbf5b0866c557047
|
||||
|
@ -0,0 +1,11 @@
|
||||
--- Doxyfile.orig 2014-06-26 23:56:45.724303475 +0300
|
||||
+++ Doxyfile 2014-06-26 23:57:12.875021734 +0300
|
||||
@@ -40,7 +40,7 @@
|
||||
GENERATE_HTMLHELP = YES
|
||||
GENERATE_TREEVIEW = NO
|
||||
TREEVIEW_WIDTH = 256
|
||||
-GENERATE_LATEX = YES
|
||||
+GENERATE_LATEX = NO
|
||||
COMPACT_LATEX = YES
|
||||
PDF_HYPERLINKS = YES
|
||||
USE_PDFLATEX = NO
|
@ -0,0 +1,58 @@
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -8,6 +8,8 @@
|
||||
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
+ACLOCAL_AMFLAGS = -I m4
|
||||
+
|
||||
EXTRA_DIST = autogen.sh README* *.pc.in *.spec.in *.spec *-config.in \
|
||||
*-config.1 Doxyfile cmodel.sh BUILDS SUPPORT COPYING* COPYRIGHT \
|
||||
CMakeLists.txt ucommon-config.cmake ucommon.pc.cmake cmake-abi.sh \
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -40,6 +40,9 @@
|
||||
|
||||
CHECKFLAGS="$CHECKFLAGS"
|
||||
|
||||
+m4_include([m4/libgcrypt.m4])
|
||||
+
|
||||
+
|
||||
case "$with_crypto" in
|
||||
ssl|openssl)
|
||||
ssl="openssl"
|
||||
@@ -698,6 +701,8 @@
|
||||
gnutls|gnu)
|
||||
if test ! -z "$GNUTLS_LIBS" ; then
|
||||
SECURE_LIBS="$GNUTLS_LIBS"
|
||||
+ AM_PATH_LIBGCRYPT
|
||||
+ SECURE_LIBS="$GNUTLS_LIBS $LIBGCRYPT_LIBS"
|
||||
SECURE="gnutls"
|
||||
fi
|
||||
;;
|
||||
diff --git a/utils/Makefile.am b/utils/Makefile.am
|
||||
--- a/utils/Makefile.am
|
||||
+++ b/utils/Makefile.am
|
||||
@@ -9,9 +9,9 @@
|
||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
MAINTAINERCLEANFILES = Makefile.in Makefile
|
||||
-AM_CXXFLAGS = -I$(top_srcdir)/inc @UCOMMON_FLAGS@
|
||||
+AM_CXXFLAGS = -I$(top_srcdir)/inc @UCOMMON_FLAGS@ @LIBGCRYPT_CFLAGS@
|
||||
AM_CPPFLAGS = -I$(top_srcdir)/inc
|
||||
-LDADD = ../corelib/libucommon.la @UCOMMON_LIBS@ @UCOMMON_CLINK@
|
||||
+LDADD = ../corelib/libucommon.la @UCOMMON_LIBS@ @UCOMMON_CLINK@ @LIBGCRYPT_LIBS@
|
||||
EXTRA_DIST = *.1
|
||||
|
||||
man_MANS = args.1 scrub-files.1 mdsum.1 zerofill.1 car.1 sockaddr.1 \
|
||||
@@ -30,7 +30,7 @@
|
||||
scrub_files_LDFLAGS = @SECURE_LOCAL@
|
||||
|
||||
mdsum_SOURCES = mdsum.cpp
|
||||
-mdsum_LDFLAGS = @SECURE_LOCAL@
|
||||
+mdsum_LDFLAGS = @SECURE_LOCAL@ @LIBGCRYPT_LIBS@
|
||||
|
||||
zerofill_SOURCES = zerofill.cpp
|
||||
zerofill_LDFLAGS = @SECURE_LOCAL@
|
@ -0,0 +1,128 @@
|
||||
diff --git a/m4/libgcrypt.m4 b/m4/libgcrypt.m4
|
||||
new file mode 100644
|
||||
--- /dev/null
|
||||
+++ m4/libgcrypt.m4
|
||||
@@ -0,0 +1,123 @@
|
||||
+dnl Autoconf macros for libgcrypt
|
||||
+dnl Copyright (C) 2002, 2004 Free Software Foundation, Inc.
|
||||
+dnl
|
||||
+dnl This file is free software; as a special exception the author gives
|
||||
+dnl unlimited permission to copy and/or distribute it, with or without
|
||||
+dnl modifications, as long as this notice is preserved.
|
||||
+dnl
|
||||
+dnl This file is distributed in the hope that it will be useful, but
|
||||
+dnl WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
|
||||
+dnl implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
+
|
||||
+
|
||||
+dnl AM_PATH_LIBGCRYPT([MINIMUM-VERSION,
|
||||
+dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]])
|
||||
+dnl Test for libgcrypt and define LIBGCRYPT_CFLAGS and LIBGCRYPT_LIBS.
|
||||
+dnl MINIMUN-VERSION is a string with the version number optionalliy prefixed
|
||||
+dnl with the API version to also check the API compatibility. Example:
|
||||
+dnl a MINIMUN-VERSION of 1:1.2.5 won't pass the test unless the installed
|
||||
+dnl version of libgcrypt is at least 1.2.5 *and* the API number is 1. Using
|
||||
+dnl this features allows to prevent build against newer versions of libgcrypt
|
||||
+dnl with a changed API.
|
||||
+dnl
|
||||
+AC_DEFUN([AM_PATH_LIBGCRYPT],
|
||||
+[ AC_ARG_WITH(libgcrypt-prefix,
|
||||
+ AC_HELP_STRING([--with-libgcrypt-prefix=PFX],
|
||||
+ [prefix where LIBGCRYPT is installed (optional)]),
|
||||
+ libgcrypt_config_prefix="$withval", libgcrypt_config_prefix="")
|
||||
+ if test x$libgcrypt_config_prefix != x ; then
|
||||
+ if test x${LIBGCRYPT_CONFIG+set} != xset ; then
|
||||
+ LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
|
||||
+ fi
|
||||
+ fi
|
||||
+
|
||||
+ AC_PATH_TOOL(LIBGCRYPT_CONFIG, libgcrypt-config, no)
|
||||
+ tmp=ifelse([$1], ,1:1.2.0,$1)
|
||||
+ if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
|
||||
+ req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
|
||||
+ min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
|
||||
+ else
|
||||
+ req_libgcrypt_api=0
|
||||
+ min_libgcrypt_version="$tmp"
|
||||
+ fi
|
||||
+
|
||||
+ AC_MSG_CHECKING(for LIBGCRYPT - version >= $min_libgcrypt_version)
|
||||
+ ok=no
|
||||
+ if test "$LIBGCRYPT_CONFIG" != "no" ; then
|
||||
+ req_major=`echo $min_libgcrypt_version | \
|
||||
+ sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\1/'`
|
||||
+ req_minor=`echo $min_libgcrypt_version | \
|
||||
+ sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\2/'`
|
||||
+ req_micro=`echo $min_libgcrypt_version | \
|
||||
+ sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\3/'`
|
||||
+ libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
|
||||
+ major=`echo $libgcrypt_config_version | \
|
||||
+ sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
|
||||
+ minor=`echo $libgcrypt_config_version | \
|
||||
+ sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'`
|
||||
+ micro=`echo $libgcrypt_config_version | \
|
||||
+ sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\3/'`
|
||||
+ if test "$major" -gt "$req_major"; then
|
||||
+ ok=yes
|
||||
+ else
|
||||
+ if test "$major" -eq "$req_major"; then
|
||||
+ if test "$minor" -gt "$req_minor"; then
|
||||
+ ok=yes
|
||||
+ else
|
||||
+ if test "$minor" -eq "$req_minor"; then
|
||||
+ if test "$micro" -ge "$req_micro"; then
|
||||
+ ok=yes
|
||||
+ fi
|
||||
+ fi
|
||||
+ fi
|
||||
+ fi
|
||||
+ fi
|
||||
+ fi
|
||||
+ if test $ok = yes; then
|
||||
+ AC_MSG_RESULT([yes ($libgcrypt_config_version)])
|
||||
+ else
|
||||
+ AC_MSG_RESULT(no)
|
||||
+ fi
|
||||
+ if test $ok = yes; then
|
||||
+ # If we have a recent libgcrypt, we should also check that the
|
||||
+ # API is compatible
|
||||
+ if test "$req_libgcrypt_api" -gt 0 ; then
|
||||
+ tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
|
||||
+ if test "$tmp" -gt 0 ; then
|
||||
+ AC_MSG_CHECKING([LIBGCRYPT API version])
|
||||
+ if test "$req_libgcrypt_api" -eq "$tmp" ; then
|
||||
+ AC_MSG_RESULT([okay])
|
||||
+ else
|
||||
+ ok=no
|
||||
+ AC_MSG_RESULT([does not match. want=$req_libgcrypt_api got=$tmp])
|
||||
+ fi
|
||||
+ fi
|
||||
+ fi
|
||||
+ fi
|
||||
+ if test $ok = yes; then
|
||||
+ LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
|
||||
+ LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
|
||||
+ ifelse([$2], , :, [$2])
|
||||
+ if test x"$host" != x ; then
|
||||
+ libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
|
||||
+ if test x"$libgcrypt_config_host" != xnone ; then
|
||||
+ if test x"$libgcrypt_config_host" != x"$host" ; then
|
||||
+ AC_MSG_WARN([[
|
||||
+***
|
||||
+*** The config script $LIBGCRYPT_CONFIG was
|
||||
+*** built for $libgcrypt_config_host and thus may not match the
|
||||
+*** used host $host.
|
||||
+*** You may want to use the configure option --with-libgcrypt-prefix
|
||||
+*** to specify a matching config script.
|
||||
+***]])
|
||||
+ fi
|
||||
+ fi
|
||||
+ fi
|
||||
+ else
|
||||
+ LIBGCRYPT_CFLAGS=""
|
||||
+ LIBGCRYPT_LIBS=""
|
||||
+ ifelse([$3], , :, [$3])
|
||||
+ fi
|
||||
+ AC_SUBST(LIBGCRYPT_CFLAGS)
|
||||
+ AC_SUBST(LIBGCRYPT_LIBS)
|
||||
+])
|
@ -0,0 +1,75 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/ucommon/ucommon-6.1.8.ebuild,v 1.1 2014/06/27 08:46:59 maksbotan Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
AUTOTOOLS_AUTORECONF=1
|
||||
|
||||
inherit autotools-utils eutils
|
||||
|
||||
DESCRIPTION="Portable C++ runtime for threads and sockets"
|
||||
HOMEPAGE="http://www.gnu.org/software/commoncpp"
|
||||
SRC_URI="mirror://gnu/commoncpp/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux"
|
||||
IUSE="doc static-libs socks +cxx debug ssl gnutls"
|
||||
|
||||
RDEPEND="ssl? (
|
||||
!gnutls? ( dev-libs/openssl )
|
||||
gnutls? (
|
||||
net-libs/gnutls
|
||||
dev-libs/libgcrypt
|
||||
)
|
||||
)"
|
||||
|
||||
DEPEND="virtual/pkgconfig
|
||||
doc? ( app-doc/doxygen )
|
||||
${RDEPEND}"
|
||||
|
||||
DOCS=(README NEWS SUPPORT ChangeLog AUTHORS)
|
||||
PATCHES=( "${FILESDIR}"/6.1/disable_rtf_gen_doxy.patch
|
||||
"${FILESDIR}"/6.1/install_gcrypt.m4_file.patch
|
||||
"${FILESDIR}"/6.1/gcrypt_autotools.patch )
|
||||
|
||||
#AUTOTOOLS_IN_SOURCE_BUILD=1
|
||||
|
||||
src_prepare() {
|
||||
|
||||
# Aclocal 1.13 deprecated error BGO #467674
|
||||
sed -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' -i configure.ac || die
|
||||
|
||||
autotools-utils_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=""
|
||||
if use ssl; then
|
||||
myconf+=" --with-sslstack=$(usex gnutls gnu ssl) "
|
||||
else
|
||||
myconf+=" --with-sslstack=nossl ";
|
||||
fi
|
||||
|
||||
local myeconfargs=(
|
||||
$(use_enable socks)
|
||||
$(use_enable cxx stdcpp)
|
||||
${myconf}
|
||||
--enable-atomics
|
||||
--with-pkg-config
|
||||
)
|
||||
autotools-utils_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
autotools-utils_src_compile
|
||||
use doc && autotools-utils_src_compile doxy
|
||||
}
|
||||
|
||||
src_install() {
|
||||
autotools-utils_src_install
|
||||
if use doc; then
|
||||
dohtml doc/html/*
|
||||
fi
|
||||
}
|
@ -1,27 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Net-SNMP/Net-SNMP-6.0.1.ebuild,v 1.9 2012/09/01 11:44:24 grobian Exp $
|
||||
|
||||
EAPI=3
|
||||
|
||||
MY_P=${PN}-v${PV}
|
||||
S=${WORKDIR}/${MY_P}
|
||||
MODULE_AUTHOR=DTOWN
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="A SNMP Perl Module"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 sparc x86 ~ppc-aix ~sparc-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
>=dev-perl/Crypt-DES-2.03
|
||||
>=virtual/perl-Digest-MD5-2.11
|
||||
>=dev-perl/Digest-SHA1-1.02
|
||||
>=dev-perl/Digest-HMAC-1.0
|
||||
>=virtual/perl-libnet-1.0703"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/perl-Module-Build"
|
||||
|
||||
SRC_TEST=do
|
@ -1,2 +1 @@
|
||||
DIST Parallel-ForkManager-0.7.5.tar.gz 5935 SHA256 77736f583ee6828aa00214bc5f08197a6978ad103755e6de223a6506b88648b4 SHA512 d8c4de63d74e48aa0e6bd438ff63511437d63643f8b710130d3470e58c2a0471c8716b4c25471c7935e4685f84b732b39a32dd26cf2e5a62cceec18cb1b2a8be WHIRLPOOL dfe1e418eb13cff143049806d7b4dd758ce122dda2b1aa0dd9edda74f280c427ddf80f0c6c9923ab76087d153629c17aa09a4c458612c7ad5d9335402aa798d9
|
||||
DIST Parallel-ForkManager-1.02.tar.gz 13270 SHA256 fb005d9a25b9bab86244673deaeefc18e83c590dd2b9b74ef53d21134c981534 SHA512 a5efaf348939019494dc5c7bb56c817ffab09782907de80f0258ef75a4639e56919bb35608321a17aa9322c838def4eb789f2e4dc56ad44825a4b2997b798ed7 WHIRLPOOL 800bb5bd36d078c30fe594405011bfe10fb528c3f87dd15a87b82df1f9b76c31f2f5d58ed6d934a6fe1fbaa90595c44756704ed1b655de622ecbe420fcf9ba23
|
||||
|
@ -1,14 +0,0 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/Parallel-ForkManager/Parallel-ForkManager-0.7.5.ebuild,v 1.13 2010/03/18 19:04:43 darkside Exp $
|
||||
|
||||
EAPI=2
|
||||
|
||||
MODULE_AUTHOR=DLUX
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="Parallel ForkManager module"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 ia64 ~ppc sparc x86 ~sparc-solaris ~x86-solaris"
|
||||
IUSE=""
|
@ -0,0 +1,198 @@
|
||||
lib/PortageXS.pm | 16 ++++++++--------
|
||||
lib/PortageXS/Core.pm | 8 ++++----
|
||||
lib/PortageXS/examples/getParamFromFile.pl | 2 +-
|
||||
t/01_Core.t | 12 ++++++------
|
||||
usr/bin/portagexs_client | 8 ++++----
|
||||
usr/sbin/portagexsd | 12 ++++++------
|
||||
6 files changed, 29 insertions(+), 29 deletions(-)
|
||||
|
||||
diff --git a/lib/PortageXS.pm b/lib/PortageXS.pm
|
||||
index db57a25..6cec46e 100644
|
||||
--- a/lib/PortageXS.pm
|
||||
+++ b/lib/PortageXS.pm
|
||||
@@ -71,8 +71,8 @@ sub new {
|
||||
$pxs->{'VERSION'} = $PortageXS::VERSION;
|
||||
|
||||
$pxs->{'PORTDIR'} = $pxs->getPortdir();
|
||||
- $pxs->{'PKG_DB_DIR'} = '/var/db/pkg/';
|
||||
- $pxs->{'PATH_TO_WORLDFILE'} = '/var/lib/portage/world';
|
||||
+ $pxs->{'PKG_DB_DIR'} = '@GENTOO_PORTAGE_EPREFIX@/var/db/pkg/';
|
||||
+ $pxs->{'PATH_TO_WORLDFILE'} = '@GENTOO_PORTAGE_EPREFIX@/var/lib/portage/world';
|
||||
$pxs->{'IS_INITIALIZED'} = 1;
|
||||
|
||||
$pxs->{'EXCLUDE_DIRS'}{'.'} = 1;
|
||||
@@ -85,17 +85,17 @@ sub new {
|
||||
$pxs->{'EXCLUDE_DIRS'}{'CVS'} = 1;
|
||||
$pxs->{'EXCLUDE_DIRS'}{'.cache'} = 1;
|
||||
|
||||
- $pxs->{'PORTAGEXS_ETC_DIR'} = '/etc/pxs/';
|
||||
- $pxs->{'ETC_DIR'} = '/etc/';
|
||||
+ $pxs->{'PORTAGEXS_ETC_DIR'} = '@GENTOO_PORTAGE_EPREFIX@/etc/pxs/';
|
||||
+ $pxs->{'ETC_DIR'} = '@GENTOO_PORTAGE_EPREFIX@/etc/';
|
||||
|
||||
$pxs->{'MAKE_PROFILE_PATHS'} = [
|
||||
- '/etc/make.profile',
|
||||
- '/etc/portage/make.profile'
|
||||
+ '@GENTOO_PORTAGE_EPREFIX@/etc/make.profile',
|
||||
+ '@GENTOO_PORTAGE_EPREFIX@/etc/portage/make.profile'
|
||||
];
|
||||
|
||||
$pxs->{'MAKE_CONF_PATHS'} = [
|
||||
- '/etc/make.conf',
|
||||
- '/etc/portage/make.conf'
|
||||
+ '@GENTOO_PORTAGE_EPREFIX@/etc/make.conf',
|
||||
+ '@GENTOO_PORTAGE_EPREFIX@/etc/portage/make.conf'
|
||||
];
|
||||
|
||||
for my $path ( @{ $pxs->{'MAKE_PROFILE_PATHS'} } ) {
|
||||
diff --git a/lib/PortageXS/Core.pm b/lib/PortageXS/Core.pm
|
||||
index 5d51023..3dd0b84 100644
|
||||
--- a/lib/PortageXS/Core.pm
|
||||
+++ b/lib/PortageXS/Core.pm
|
||||
@@ -122,7 +122,7 @@ sub getPortageMakeParam {
|
||||
my $self = shift;
|
||||
my $param = shift;
|
||||
my @files = ();
|
||||
- my @etcfiles = qw(/usr/share/portage/config/make.globals /etc/make.conf);
|
||||
+ my @etcfiles = qw(@GENTOO_PORTAGE_EPREFIX@/usr/share/portage/config/make.globals @GENTOO_PORTAGE_EPREFIX@/etc/make.conf);
|
||||
my $v = '';
|
||||
my $parent = '';
|
||||
my $curPath;
|
||||
@@ -166,7 +166,7 @@ sub getPortageMakeParam {
|
||||
|
||||
# - Defaults >
|
||||
if ($param eq 'PORTDIR' && !$v) {
|
||||
- $v='/usr/portage';
|
||||
+ $v='@GENTOO_PORTAGE_EPREFIX@/usr/portage';
|
||||
}
|
||||
|
||||
return $v;
|
||||
@@ -193,7 +193,7 @@ sub getPortdir {
|
||||
return $self->{'PORTDIR'};
|
||||
}
|
||||
else {
|
||||
- $self->{'PORTDIR'}=$self->getParamFromFile($self->getFileContents('/usr/share/portage/config/make.globals').$self->getFileContents('/etc/portage/make.conf'),'PORTDIR','lastseen');
|
||||
+ $self->{'PORTDIR'}=$self->getParamFromFile($self->getFileContents('@GENTOO_PORTAGE_EPREFIX@/usr/share/portage/config/make.globals').$self->getFileContents('@GENTOO_PORTAGE_EPREFIX@/etc/portage/make.conf'),'PORTDIR','lastseen');
|
||||
return $self->{'PORTDIR'};
|
||||
}
|
||||
}
|
||||
@@ -210,7 +210,7 @@ sub getPortdirOverlay {
|
||||
my $self = shift;
|
||||
my $forcereload = shift;
|
||||
|
||||
- return split(/ /,$self->getParamFromFile($self->getFileContents('/usr/share/portage/config/make.globals').$self->getFileContents('/etc/make.conf'),'PORTDIR_OVERLAY','lastseen'));
|
||||
+ return split(/ /,$self->getParamFromFile($self->getFileContents('@GENTOO_PORTAGE_EPREFIX@/usr/share/portage/config/make.globals').$self->getFileContents('@GENTOO_PORTAGE_EPREFIX@/etc/make.conf'),'PORTDIR_OVERLAY','lastseen'));
|
||||
}
|
||||
|
||||
# Description:
|
||||
diff --git a/lib/PortageXS/examples/getParamFromFile.pl b/lib/PortageXS/examples/getParamFromFile.pl
|
||||
index 416b1be..9ea88bb 100755
|
||||
--- a/lib/PortageXS/examples/getParamFromFile.pl
|
||||
+++ b/lib/PortageXS/examples/getParamFromFile.pl
|
||||
@@ -8,4 +8,4 @@ use PortageXS;
|
||||
|
||||
my $pxs=PortageXS->new();
|
||||
print "CFLAGS are set to: ";
|
||||
-print join(' ',$pxs->getParamFromFile($pxs->getFileContents('/etc/make.globals').$pxs->getFileContents('/etc/make.conf'),'CFLAGS','lastseen'))."\n";
|
||||
+print join(' ',$pxs->getParamFromFile($pxs->getFileContents('@GENTOO_PORTAGE_EPREFIX@/etc/make.globals').$pxs->getFileContents('@GENTOO_PORTAGE_EPREFIX@/etc/make.conf'),'CFLAGS','lastseen'))."\n";
|
||||
diff --git a/t/01_Core.t b/t/01_Core.t
|
||||
index d01dc31..6daba99 100644
|
||||
--- a/t/01_Core.t
|
||||
+++ b/t/01_Core.t
|
||||
@@ -14,8 +14,8 @@ ok(-d $pxs->getPortdir(),'getPortdir: '.$pxs->getPortdir());
|
||||
|
||||
# - getFileContents >
|
||||
{
|
||||
- my $content = $pxs->getFileContents('/etc/portage/make.conf');
|
||||
- ok($content ne '','getFileContents of /etc/portage/make.conf');
|
||||
+ my $content = $pxs->getFileContents('@GENTOO_PORTAGE_EPREFIX@/etc/portage/make.conf');
|
||||
+ ok($content ne '','getFileContents of @GENTOO_PORTAGE_EPREFIX@/etc/portage/make.conf');
|
||||
}
|
||||
|
||||
# - searchInstalledPackage >
|
||||
@@ -26,8 +26,8 @@ ok(-d $pxs->getPortdir(),'getPortdir: '.$pxs->getPortdir());
|
||||
|
||||
# - getParamFromFile >
|
||||
{
|
||||
- my $param = $pxs->getParamFromFile($pxs->getFileContents('/etc/portage/make.conf'),'CFLAGS','lastseen');
|
||||
- ok($param ne '','getParamFromFile /etc/portage/make.conf - CFLAGS: '.$param);
|
||||
+ my $param = $pxs->getParamFromFile($pxs->getFileContents('@GENTOO_PORTAGE_EPREFIX@/etc/portage/make.conf'),'CFLAGS','lastseen');
|
||||
+ ok($param ne '','getParamFromFile @GENTOO_PORTAGE_EPREFIX@/etc/portage/make.conf - CFLAGS: '.$param);
|
||||
}
|
||||
|
||||
# - getUseSettingsOfInstalledPackage >
|
||||
@@ -65,8 +65,8 @@ ok(-d $pxs->getPortdir(),'getPortdir: '.$pxs->getPortdir());
|
||||
|
||||
# - fileBelongsToPackage >
|
||||
{
|
||||
- my @packages = $pxs->fileBelongsToPackage('/etc/gentoo-release');
|
||||
- ok($#packages==0,'fileBelongsToPackage - /etc/gentoo-release: '.$packages[0]);
|
||||
+ my @packages = $pxs->fileBelongsToPackage('@GENTOO_PORTAGE_EPREFIX@/etc/gentoo-release');
|
||||
+ ok($#packages==0,'fileBelongsToPackage - @GENTOO_PORTAGE_EPREFIX@/etc/gentoo-release: '.$packages[0]);
|
||||
}
|
||||
ok(!$pxs->fileBelongsToPackage('/this/path/most/likely/does/not/exist'),'fileBelongsToPackage bogus test');
|
||||
|
||||
diff --git a/usr/bin/portagexs_client b/usr/bin/portagexs_client
|
||||
index 598d05a..688cb97 100755
|
||||
--- a/usr/bin/portagexs_client
|
||||
+++ b/usr/bin/portagexs_client
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/perl
|
||||
+#!@GENTOO_PORTAGE_EPREFIX@/usr/bin/perl
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
#
|
||||
@@ -54,9 +54,9 @@ if(!($sock = IO::Socket::SSL->new( PeerAddr => $remote_addr,
|
||||
SSL_use_cert => 1,
|
||||
SSL_verify_mode => 0x01,
|
||||
SSL_passwd_cb => sub { return "" },
|
||||
- SSL_key_file => '/etc/pxs/certs/client-key.pem',
|
||||
- SSL_cert_file => '/etc/pxs/certs/client-cert.pem',
|
||||
- SSL_ca_file => '/etc/pxs/certs/my-ca.pem'
|
||||
+ SSL_key_file => '@GENTOO_PORTAGE_EPREFIX@/etc/pxs/certs/client-key.pem',
|
||||
+ SSL_cert_file => '@GENTOO_PORTAGE_EPREFIX@/etc/pxs/certs/client-cert.pem',
|
||||
+ SSL_ca_file => '@GENTOO_PORTAGE_EPREFIX@/etc/pxs/certs/my-ca.pem'
|
||||
))) {
|
||||
$pxs->print_err("unable to create socket: ".&IO::Socket::SSL::errstr."\n");
|
||||
$pxs->print_err("Server down?\n");
|
||||
diff --git a/usr/sbin/portagexsd b/usr/sbin/portagexsd
|
||||
index 638f662..e93bdfa 100755
|
||||
--- a/usr/sbin/portagexsd
|
||||
+++ b/usr/sbin/portagexsd
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/perl -t
|
||||
+#!@GENTOO_PORTAGE_EPREFIX@/usr/bin/perl -t
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
#
|
||||
@@ -50,7 +50,7 @@ else {
|
||||
sub main {
|
||||
# - Parse config >
|
||||
my %config = ();
|
||||
- $config{'cfgfiledata'} = $pxs->getFileContents("/etc/pxs/portagexsd.conf");
|
||||
+ $config{'cfgfiledata'} = $pxs->getFileContents("@GENTOO_PORTAGE_EPREFIX@/etc/pxs/portagexsd.conf");
|
||||
$config{'Port'} = $pxs->getParamFromFile($config{'cfgfiledata'},"Port","lastseen");
|
||||
$config{'SSLpasswd'} = $pxs->getParamFromFile($config{'cfgfiledata'},"SSLpasswd","lastseen");
|
||||
$config{'PidFile'} = $pxs->getParamFromFile($config{'cfgfiledata'},"PidFile","lastseen");
|
||||
@@ -60,7 +60,7 @@ sub main {
|
||||
$config{'cfgfiledata'} = undef;
|
||||
|
||||
if (!$config{'I_AM_ROOT_AND_I_KNOW_WHAT_I_AM_DOING'}) {
|
||||
- syslog("info", 'Not starting server as it seems that you did not have a look at the configs yet! (/etc/pxs/portagexsd.conf)');
|
||||
+ syslog("info", 'Not starting server as it seems that you did not have a look at the configs yet! (@GENTOO_PORTAGE_EPREFIX@/etc/pxs/portagexsd.conf)');
|
||||
exit(0);
|
||||
}
|
||||
|
||||
@@ -70,9 +70,9 @@ sub main {
|
||||
Reuse => 1,
|
||||
SSL_verify_mode => 0x01,
|
||||
SSL_passwd_cb => sub {return $config{'SSLpasswd'}},
|
||||
- SSL_key_file => '/etc/pxs/certs/server-key.pem',
|
||||
- SSL_cert_file => '/etc/pxs/certs/server-cert.pem',
|
||||
- SSL_ca_file => '/etc/pxs/certs/my-ca.pem'
|
||||
+ SSL_key_file => '@GENTOO_PORTAGE_EPREFIX@/etc/pxs/certs/server-key.pem',
|
||||
+ SSL_cert_file => '@GENTOO_PORTAGE_EPREFIX@/etc/pxs/certs/server-cert.pem',
|
||||
+ SSL_ca_file => '@GENTOO_PORTAGE_EPREFIX@/etc/pxs/certs/my-ca.pem'
|
||||
)) ) {
|
||||
syslog("info", "Unable to create socket: ", &IO::Socket::SSL::errstr);
|
||||
exit(0);
|
@ -1,2 +1 @@
|
||||
DIST SVN-Mirror-0.73.tar.gz 124896 SHA256 4c7460a9fa2bf8dfc5aa42b8ddfcc21ab8ee4bc0850a16a6a6d27c890f5692e9 SHA512 6969678bb322e1a0a1858721419ca28ad21c6eb95fcc74aaf7a8d985c4acf5577adfe719f491b9640474dcad6298c22347963e3949e8a864edb51798008846c8 WHIRLPOOL b607560fc580510ae373a6c94d5dc0e1a10ea05f07a0b690375c713923c298963b4a74365472dc1a6e11275c853a5f33921d701dadb00c205cdcd970af2287ca
|
||||
DIST SVN-Mirror-0.75.tar.gz 122577 SHA256 3f48d92f4210a4b7c1984f25f5d7b7f594ccc0b09c907aa3fa693fc6dd5e0cb5 SHA512 0029edf67c6983944d3cc062b8712a6d46d30f46d0f5c3e035a487ff75135d00b861bc198e0cdb78f904d103aced26b8aa7ef7ca01c948ba1370ee2e72ae4d81 WHIRLPOOL 09d4dc868c3cd4cbdcce17fe5c0aa87d78d0a75fd6bd2e334c466fdcb1482e608781e3e8c73c893421dde49f92f7bb1b5c975ceae23c7f8c48603dde2303abcc
|
||||
|
@ -1,33 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/SVN-Mirror/SVN-Mirror-0.73.ebuild,v 1.7 2011/12/04 17:59:39 armin76 Exp $
|
||||
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="SVN::Mirror - Mirror remote repositories to local subversion repository"
|
||||
SRC_URI="mirror://cpan/authors/id/C/CL/CLKAO/${P}.tar.gz"
|
||||
HOMEPAGE="http://www.cpan.org/authors/id/C/CL/CLKAO/${P}.readme"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="Artistic"
|
||||
KEYWORDS="amd64 ppc x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=">=dev-vcs/subversion-1.1.3
|
||||
>=dev-perl/URI-1.34
|
||||
>=dev-perl/TermReadKey-2.21
|
||||
>=dev-perl/SVN-Simple-0.26
|
||||
dev-perl/Data-UUID
|
||||
dev-perl/Class-Accessor
|
||||
dev-perl/TimeDate
|
||||
dev-perl/File-chdir
|
||||
dev-lang/perl"
|
||||
|
||||
pkg_setup() {
|
||||
if ! perl -MSVN::Core < /dev/null 2> /dev/null
|
||||
then
|
||||
eerror "You need subversion-1.0.4+ compiled with Perl bindings."
|
||||
eerror "USE=\"perl\" emerge subversion"
|
||||
die "Need Subversion compiled with Perl bindings."
|
||||
fi
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-perl/gtk2-trayicon/gtk2-trayicon-0.60.0-r1.ebuild,v 1.1 2014/06/27 10:08:34 zlogene Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
MODULE_AUTHOR=BORUP
|
||||
MODULE_VERSION=0.06
|
||||
MY_PN=Gtk2-TrayIcon
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="Perl wrappers for the egg cup Gtk2::TrayIcon utilities."
|
||||
HOMEPAGE="http://gtk2-perl.sf.net/ ${HOMEPAGE}"
|
||||
|
||||
LICENSE="LGPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
>=dev-perl/glib-perl-1.012
|
||||
>=dev-perl/gtk2-perl-1.012
|
||||
gnome-base/libglade:2.0
|
||||
x11-libs/gtk+:2"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-perl/extutils-depends
|
||||
dev-perl/extutils-pkgconfig
|
||||
virtual/pkgconfig"
|
@ -1,3 +1,2 @@
|
||||
DIST django-auth-ldap-1.0.19.tar.gz 31549 SHA256 db9ba2d367f7a39e8e6474440cf4ef0290ea51c87116ba8d59191051a46fe462 SHA512 5440e47513b0e80a2a409efc88388866b98c387ec86dd94802679ee1d4310a2a55ca2cc9319b17f489db1479fb90e9e9d7e9740b1bd7b888c802e5408a54b6ce WHIRLPOOL dffcfb8c27657f8dd4da584fbeec35671a0e1b1980882c98263d358c8bb04f7f0aa0125f8c759e5ac303ceba408e9c7a56297bd5a5ce53d08e2eb75e8c399e5f
|
||||
DIST django-auth-ldap-1.1.4.tar.gz 41140 SHA256 b87919df2211cf68556aa8dbeea01bb4217a0053e6a4eef7a7bc8f2ef07b28bb SHA512 cc97b424ded2916651e5ef65bb35f1aedcc5d51cf1a201d0e9e739b9171fb319b1226dab4791e9c7da867a0b9d5dccf0af79e263599b356f9075e80f1d4c8ba9 WHIRLPOOL d7244a0716b84aa63f42e0c2f36a7faa782340a241e3dd8369e58da49e81ac8c30f57f6b64a118778bcf943d0c93555affa9ccba1e2679a44922520d8f6c6bbe
|
||||
DIST django-auth-ldap-1.1.tar.gz 33022 SHA256 95f89b01c0d85a882ae3446af13e8f9804e0a2a816e9d2152ca44eaf8f2bf7a3 SHA512 422a40da476a6af185f787c7111578f3a7af81970fddf1b50faf6dad7dd51225c6063364b63e500c74fb433ee9c5cda9819ef52df86d0bb2a24f51f00878f89c WHIRLPOOL aca900ab3865e89a5db3bcc1fd5c5454f61e50ac449a1e6f455a2796bda5001cf40f5ba0384bc91331e1990a609e80c3acd0f984c5d6b3b66c43188993e51e17
|
||||
DIST django-auth-ldap-1.2.0.zip 158395 SHA256 61b0aab57726eb0f0b9ef540e871c99247070178c254c16b8612c8235129adc5 SHA512 60e1370590561613b6c99eee8cc8cf80ca63de4882a7753b136d1aee7fbd8f9dcf445d146bee258dbe5f53c15e80c3ac8afc77414462919852100984ed92e4e2 WHIRLPOOL b9788ed88e1837318ac0be592d6784a3560fa5d3d0d365d67ce028a13de09f9ebfa90913bb7424d1e3ac1de62bf91da3a8748dd8d4c27b425e3ed55b47b1ac6b
|
||||
|
@ -1,48 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/django-auth-ldap/django-auth-ldap-1.0.19.ebuild,v 1.3 2012/05/04 08:07:57 iksaif Exp $
|
||||
|
||||
EAPI=4
|
||||
PYTHON_DEPEND="2"
|
||||
SUPPORT_PYTHON_ABIS=1
|
||||
RESTRICT_PYTHON_ABIS="3.*"
|
||||
inherit distutils
|
||||
|
||||
DESCRIPTION="Django LDAP authentication backend"
|
||||
HOMEPAGE="http://pypi.python.org/pypi/django-auth-ldap http://bitbucket.org/psagers/django-auth-ldap/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
PYTHON_MODNAME="django_auth_ldap"
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="${RDEPEND} >=dev-python/django-1.0
|
||||
dev-python/python-ldap
|
||||
doc? ( dev-python/sphinx )"
|
||||
|
||||
src_test() {
|
||||
export DJANGO_SETTINGS_MODULE="django.conf"
|
||||
testing() {
|
||||
"$(PYTHON)" build-$(python_get_version)/lib/django_auth_ldap/tests.py
|
||||
echo "tests completed for python"$(python_get_version)
|
||||
}
|
||||
python_execute_function testing
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
distutils_src_compile
|
||||
if use doc; then
|
||||
emake -C docs html
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils_src_install
|
||||
|
||||
if use doc; then
|
||||
dohtml -r docs/_build/html/*
|
||||
fi
|
||||
}
|
@ -1,49 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/django-auth-ldap/django-auth-ldap-1.1.ebuild,v 1.1 2012/05/19 13:47:56 tampakrap Exp $
|
||||
|
||||
EAPI=4
|
||||
PYTHON_DEPEND="2"
|
||||
SUPPORT_PYTHON_ABIS=1
|
||||
RESTRICT_PYTHON_ABIS="3.*"
|
||||
|
||||
inherit distutils
|
||||
|
||||
DESCRIPTION="Django LDAP authentication backend"
|
||||
HOMEPAGE="http://pypi.python.org/pypi/django-auth-ldap http://bitbucket.org/psagers/django-auth-ldap/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
PYTHON_MODNAME="django_auth_ldap"
|
||||
|
||||
RDEPEND=">=dev-python/django-1.0"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/python-ldap
|
||||
doc? ( dev-python/sphinx )"
|
||||
|
||||
src_compile() {
|
||||
distutils_src_compile
|
||||
|
||||
use doc && emake -C docs html
|
||||
}
|
||||
|
||||
src_test() {
|
||||
export DJANGO_SETTINGS_MODULE="django.conf"
|
||||
|
||||
# Python.[56] trigger a harmless deprecation warning
|
||||
testing() {
|
||||
"$(PYTHON)" -m django_auth_ldap.tests
|
||||
}
|
||||
python_execute_function testing
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils_src_install
|
||||
|
||||
if use doc; then
|
||||
dohtml -r docs/_build/html/
|
||||
fi
|
||||
}
|
@ -0,0 +1,43 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/django-auth-ldap/django-auth-ldap-1.2.0.ebuild,v 1.1 2014/06/26 15:46:49 idella4 Exp $
|
||||
|
||||
EAPI=5
|
||||
# Although setup.py claims to support py3, python-ldap does not
|
||||
PYTHON_COMPAT=( python2_7 pypy )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Django LDAP authentication backend"
|
||||
HOMEPAGE="http://pypi.python.org/pypi/django-auth-ldap http://bitbucket.org/psagers/django-auth-ldap/"
|
||||
SRC_URI="https://bitbucket.org/psagers/django-auth-ldap/get/80379ce59e6b.zip -> ${P}.zip"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc test"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND="dev-python/django[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-ldap-2.0[${PYTHON_USEDEP}]"
|
||||
DEPEND="app-arch/unzip
|
||||
test? ( ${RDEPEND}
|
||||
>=dev-python/mockldap-0.2[${PYTHON_USEDEP}] )
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
|
||||
|
||||
S="${WORKDIR}"/psagers-${PN}-80379ce59e6b
|
||||
|
||||
PATCHES=( "${FILESDIR}"/docs.patch )
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C docs html
|
||||
}
|
||||
|
||||
python_test() {
|
||||
PYTHONPATH=. "${PYTHON}" test/manage.py test
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( docs/build/html/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1,17 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>python</herd>
|
||||
<herd>proxy-maintainers</herd>
|
||||
<maintainer>
|
||||
<email>ultrabug@gentoo.org</email>
|
||||
<name>Ultrabug</name>
|
||||
<description>main maintainer</description>
|
||||
</maintainer>
|
||||
<maintainer>
|
||||
<email>julien@thebault.co</email>
|
||||
<name>Lujeni</name>
|
||||
<description>Proxy Maintainer. CC on bugs</description>
|
||||
</maintainer>
|
||||
<longdescription>SocketIO server based on the Gevent pywsgi server</longdescription>
|
||||
<herd>python</herd>
|
||||
<herd>proxy-maintainers</herd>
|
||||
<maintainer>
|
||||
<email>ultrabug@gentoo.org</email>
|
||||
<name>Ultrabug</name>
|
||||
<description>main maintainer</description>
|
||||
</maintainer>
|
||||
<maintainer>
|
||||
<email>julien@thebault.co</email>
|
||||
<name>Lujeni</name>
|
||||
<description>Proxy Maintainer. CC on bugs</description>
|
||||
</maintainer>
|
||||
<longdescription>SocketIO server based on the Gevent pywsgi server</longdescription>
|
||||
</pkgmetadata>
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue