parent
ba7385bfdd
commit
be902dcdef
@ -1,74 +0,0 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/389-ds-console/389-ds-console-1.2.3-r1.ebuild,v 1.4 2010/10/17 10:07:00 lxnay Exp $
|
||||
|
||||
EAPI="2"
|
||||
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
|
||||
inherit java-pkg-2 java-ant-2 eutils versionator
|
||||
|
||||
MY_PV=${PV/_alpha/.a}
|
||||
MY_PV=${MY_PV/_rc/.rc}
|
||||
MY_MV="$(get_version_component_range 1-2)"
|
||||
|
||||
DESCRIPTION="Java based remote management console used for Managing 389-admin 389-ds"
|
||||
HOMEPAGE="http://port389.org/"
|
||||
SRC_URI="http://directory.fedoraproject.org/sources/${P}.tar.bz2"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="1.2"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
COMMON_DEP="dev-java/jss:3.4
|
||||
dev-java/ldapsdk:4.1
|
||||
>=dev-java/idm-console-framework-1.1
|
||||
net-nds/389-ds-base"
|
||||
RDEPEND="|| ( >=virtual/jre-1.6 >=virtual/jdk-1.6 )
|
||||
${COMMON_DEP}"
|
||||
DEPEND="sys-apps/sed
|
||||
>=virtual/jdk-1.6
|
||||
${COMMON_DEP}"
|
||||
|
||||
src_prepare() {
|
||||
# Gentoo java rules say no jars with version number
|
||||
# so sed away the version indicator '-'
|
||||
sed -e "s!-\*!\*!g" -i build.xml || die "sed failed"
|
||||
|
||||
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
|
||||
java-pkg_newjar "${S}"/build/package/389-ds-${MY_PV}.jar 389-ds-${MY_PV}.jar
|
||||
java-pkg_newjar "${S}"/build/package/389-ds-${MY_PV}_en.jar 389-ds-${MY_PV}_en.jar
|
||||
|
||||
dosym 389-ds-${MY_PV}.jar /usr/share/dirsrv/html/java/389-ds.jar
|
||||
dosym 389-ds-${MY_PV}_en.jar /usr/share/dirsrv/html/java/389-ds_en.jar
|
||||
dosym 389-ds-${MY_PV}.jar /usr/share/dirsrv/html/java/389-ds-${MY_MV}.jar
|
||||
dosym 389-ds-${MY_PV}_en.jar /usr/share/dirsrv/html/java/389-ds-${MY_MV}_en.jar
|
||||
|
||||
insinto /usr/share/dirsrv/manual/en/slapd
|
||||
doins "${S}"/help/en/*.html
|
||||
doins "${S}"/help/en/tokens.map
|
||||
|
||||
insinto /usr/share/dirsrv/manual/en/slapd/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-ds-console-1.2.3.tar.bz2 786681 SHA256 a866e4cbef6445d8540b250c0f4ea9617501f6ea1b9c183b4745455bb59eefed SHA512 a8a3318d8f89e6af6a22e1e4052d3ade55ad5661f05fb80812c65d48d7dce031118257550a2612e923ad549ab372ed888b937ffe877aaac8f3592f70689f0768 WHIRLPOOL aeef0781c33100185ebe06ec1bb7b95ca6be8b53323aaa495665867fcdf9762df98b1e1ddfbaffd639db96a5e80635ee7ffff92a800712f51cbcca83051dd639
|
||||
DIST 389-ds-console-1.2.6.tar.bz2 791388 SHA256 142a8e1e22bb4c617d2bcdb3d2257e92f2b34d2cd839ed1325f59fc52b70f410 SHA512 ae62afec7860365156f991a420c701e7057190793f577823e5f8b0e1e3d9c9fb240f8d2f30d9a9160baa86aa968e242ef6a9d9faf6608e1218da8f071a620e02 WHIRLPOOL def2e14fb8c7771711efde18cb53f6d6c36de077221c27e219cf97797a5d5c6fb126bf9485a2133676be2f239c065970fb8731c9ddccf3088bcc18ab485169f5
|
||||
|
@ -1,2 +1,3 @@
|
||||
DIST entropy-136.tar.bz2 1612759 SHA256 4384b251f259c868f8ee3480701beecb466ca8c5727915e6b437291d03f4c63b SHA512 3b2725de557efa76ee65f368f486ab952f49a63474b5226e7b9ce137bee1c9c1ef73074c4d255e3d8695666556923d827c9cb1e232b307c4893d76e6cc6fb948 WHIRLPOOL 222d2c292c4a7c0d465be31898c4b2bf1469b7c769b4099106ded24334f4d16dde1f95ea532cbb2a167e2b7fcc30e6f59974839c3a8019c02c962fc634556e1b
|
||||
DIST entropy-144.tar.bz2 1616075 SHA256 173825d13f4b5c5aecf4d82b4e593921baf2209496be56190babbb142ad9b75d SHA512 30ca32fdf0747530c656ec9c96aed5dad00e8fb4181bd4c2e4a4aed3c5b06427e5b07baa41db13ff03d6730f13607e86f557aad84cb6e85af5d9c49029a911c7 WHIRLPOOL a14b76a2c247e2d4db12e2c78735c64ca183a474758f8b8ab9748cd93378300cd737377888beb03cc64e0ddeff0cb201fd790489ddfee48b8cf82032429509ac
|
||||
DIST entropy-183.tar.bz2 1685003 SHA256 5b2d99ef61a68497c228c392d607faa7fef9b5debe7628f381e4facbef290f38 SHA512 95b83797fc519c5cfd12a985ee3221ffe83fe19289681ca1b0f022a7b9491bdf9b74a06fe4f010536a22db78bac4f3325fc5eab0c11243240fdee5789690e2aa WHIRLPOOL bbd6c44e5bce24e602f89075e126b5e914900aad8bd3b1ff301c733d8838f4cd1aac279a707f81c0873c24259078e5fdc9dacbf1f30d0fd5eef3aa9f9376f7c5
|
||||
|
@ -0,0 +1,45 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/equo/equo-183.ebuild,v 1.1 2013/03/14 18:09:19 lxnay Exp $
|
||||
|
||||
EAPI=3
|
||||
PYTHON_DEPEND="2"
|
||||
inherit eutils python bash-completion-r1
|
||||
|
||||
DESCRIPTION="Entropy Package Manager text-based client"
|
||||
HOMEPAGE="http://www.sabayon.org"
|
||||
LICENSE="GPL-2"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE=""
|
||||
SRC_URI="mirror://sabayon/sys-apps/entropy-${PV}.tar.bz2"
|
||||
|
||||
S="${WORKDIR}/entropy-${PV}"
|
||||
|
||||
DEPEND="~sys-apps/entropy-${PV}"
|
||||
RDEPEND="${DEPEND} sys-apps/file[python]"
|
||||
|
||||
src_compile() {
|
||||
cd "${S}"/client || die
|
||||
emake || die "make failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd "${S}"/client || die
|
||||
emake DESTDIR="${D}" LIBDIR="usr/lib" install || die "make install failed"
|
||||
newbashcomp "${S}/misc/equo-completion.bash" equo
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
python_mod_optimize "/usr/lib/entropy/client"
|
||||
echo
|
||||
elog "If you would like to allow users in the 'entropy' group"
|
||||
elog "to update available package repositories, please consider"
|
||||
elog "to install sys-apps/rigo-daemon"
|
||||
echo
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
python_mod_cleanup "/usr/lib/entropy/client"
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
From dd849a9be540bedd4fd904cc0b86ccd9c3e34af2 Mon Sep 17 00:00:00 2001
|
||||
From: Stuart McLaren <stuart.mclaren@hp.com>
|
||||
Date: Thu, 14 Mar 2013 13:43:36 +0000
|
||||
Subject: [PATCH] Do not return location in headers
|
||||
|
||||
In some cases credentials were being leaked when downloading a cached
|
||||
v1 image.
|
||||
|
||||
Fixes bug 1135541, CVE-2013-1840
|
||||
|
||||
Change-Id: I3ec0a8f484fe1bdc32c3c56fce810fcef347a7f6
|
||||
---
|
||||
glance/api/middleware/cache.py | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/glance/api/middleware/cache.py b/glance/api/middleware/cache.py
|
||||
index 8e24ef0..dcd59b6 100644
|
||||
--- a/glance/api/middleware/cache.py
|
||||
+++ b/glance/api/middleware/cache.py
|
||||
@@ -111,6 +111,9 @@ class CacheFilter(wsgi.Middleware):
|
||||
|
||||
def _process_v1_request(self, request, image_id, image_iterator):
|
||||
image_meta = registry.get_image_metadata(request.context, image_id)
|
||||
+ # Don't display location
|
||||
+ if 'location' in image_meta:
|
||||
+ del image_meta['location']
|
||||
|
||||
if not image_meta['size']:
|
||||
# override image size metadata with the actual cached
|
||||
--
|
||||
1.8.1.5
|
||||
|
@ -0,0 +1 @@
|
||||
DIST entropy-183.tar.bz2 1685003 SHA256 5b2d99ef61a68497c228c392d607faa7fef9b5debe7628f381e4facbef290f38 SHA512 95b83797fc519c5cfd12a985ee3221ffe83fe19289681ca1b0f022a7b9491bdf9b74a06fe4f010536a22db78bac4f3325fc5eab0c11243240fdee5789690e2aa WHIRLPOOL bbd6c44e5bce24e602f89075e126b5e914900aad8bd3b1ff301c733d8838f4cd1aac279a707f81c0873c24259078e5fdc9dacbf1f30d0fd5eef3aa9f9376f7c5
|
@ -0,0 +1,38 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/matter/matter-183.ebuild,v 1.1 2013/03/14 18:21:19 lxnay Exp $
|
||||
|
||||
EAPI=3
|
||||
PYTHON_DEPEND="2"
|
||||
inherit eutils python bash-completion-r1
|
||||
|
||||
DESCRIPTION="Automated Packages Builder for Portage and Entropy"
|
||||
HOMEPAGE="http://www.sabayon.org"
|
||||
LICENSE="GPL-2"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="+entropy"
|
||||
SRC_URI="mirror://sabayon/sys-apps/entropy-${PV}.tar.bz2"
|
||||
|
||||
S="${WORKDIR}/entropy-${PV}/${PN}"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="entropy? ( ~sys-apps/entropy-${PV} )
|
||||
sys-apps/file[python]"
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "make install failed"
|
||||
emake DESTDIR="${D}" base-install || die "make base-install failed"
|
||||
if use entropy; then
|
||||
emake DESTDIR="${D}" entropysrv-install || die "make base-install failed"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
python_mod_optimize "/usr/lib/matter"
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
python_mod_cleanup "/usr/lib/matter"
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer>
|
||||
<email>lxnay@gentoo.org</email>
|
||||
<name>Fabio Erculiani</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name='entropy'>Add Entropy support</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
|
@ -1,2 +1,3 @@
|
||||
DIST entropy-136.tar.bz2 1612759 SHA256 4384b251f259c868f8ee3480701beecb466ca8c5727915e6b437291d03f4c63b SHA512 3b2725de557efa76ee65f368f486ab952f49a63474b5226e7b9ce137bee1c9c1ef73074c4d255e3d8695666556923d827c9cb1e232b307c4893d76e6cc6fb948 WHIRLPOOL 222d2c292c4a7c0d465be31898c4b2bf1469b7c769b4099106ded24334f4d16dde1f95ea532cbb2a167e2b7fcc30e6f59974839c3a8019c02c962fc634556e1b
|
||||
DIST entropy-144.tar.bz2 1616075 SHA256 173825d13f4b5c5aecf4d82b4e593921baf2209496be56190babbb142ad9b75d SHA512 30ca32fdf0747530c656ec9c96aed5dad00e8fb4181bd4c2e4a4aed3c5b06427e5b07baa41db13ff03d6730f13607e86f557aad84cb6e85af5d9c49029a911c7 WHIRLPOOL a14b76a2c247e2d4db12e2c78735c64ca183a474758f8b8ab9748cd93378300cd737377888beb03cc64e0ddeff0cb201fd790489ddfee48b8cf82032429509ac
|
||||
DIST entropy-183.tar.bz2 1685003 SHA256 5b2d99ef61a68497c228c392d607faa7fef9b5debe7628f381e4facbef290f38 SHA512 95b83797fc519c5cfd12a985ee3221ffe83fe19289681ca1b0f022a7b9491bdf9b74a06fe4f010536a22db78bac4f3325fc5eab0c11243240fdee5789690e2aa WHIRLPOOL bbd6c44e5bce24e602f89075e126b5e914900aad8bd3b1ff301c733d8838f4cd1aac279a707f81c0873c24259078e5fdc9dacbf1f30d0fd5eef3aa9f9376f7c5
|
||||
|
@ -0,0 +1,48 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/rigo/rigo-183.ebuild,v 1.1 2013/03/14 18:25:14 lxnay Exp $
|
||||
|
||||
EAPI="3"
|
||||
PYTHON_DEPEND="2"
|
||||
inherit eutils gnome2-utils fdo-mime python
|
||||
|
||||
DESCRIPTION="Rigo, the Sabayon Application Browser"
|
||||
HOMEPAGE="http://www.sabayon.org"
|
||||
LICENSE="GPL-3"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE=""
|
||||
|
||||
SRC_URI="mirror://sabayon/sys-apps/entropy-${PV}.tar.bz2"
|
||||
S="${WORKDIR}/entropy-${PV}/rigo"
|
||||
|
||||
RDEPEND="
|
||||
|| ( dev-python/pygobject-cairo:3 dev-python/pygobject:3[cairo] )
|
||||
~sys-apps/entropy-${PV}
|
||||
~sys-apps/rigo-daemon-${PV}
|
||||
sys-devel/gettext
|
||||
x11-libs/gtk+:3
|
||||
x11-libs/vte:2.90
|
||||
>=x11-misc/xdg-utils-1.1.0_rc1_p20120319"
|
||||
DEPEND=""
|
||||
|
||||
src_compile() {
|
||||
emake || die "make failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "make install failed"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
fdo-mime_mime_database_update
|
||||
fdo-mime_desktop_database_update
|
||||
python_mod_optimize "/usr/lib/rigo/${PN}"
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
fdo-mime_mime_database_update
|
||||
fdo-mime_desktop_database_update
|
||||
python_mod_cleanup "/usr/lib/rigo/${PN}"
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-doc/elisp-manual/elisp-manual-24.3.ebuild,v 1.1 2013/03/15 08:41:27 ulm Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="The GNU Emacs Lisp Reference Manual"
|
||||
HOMEPAGE="http://www.gnu.org/software/emacs/manual/"
|
||||
# taken from doc/lispref/ of emacs-${PV}
|
||||
SRC_URI="mirror://gentoo/${P}.tar.xz"
|
||||
|
||||
LICENSE="FDL-1.3+"
|
||||
SLOT="24"
|
||||
KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
|
||||
|
||||
DEPEND="app-arch/xz-utils"
|
||||
|
||||
S="${WORKDIR}/lispref"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${P}-direntry.patch"
|
||||
echo "@set EMACSVER ${PV}" >emacsver.texi || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
makeinfo elisp.texi || die "makeinfo failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
doinfo elisp${SLOT}.info*
|
||||
dodoc ChangeLog README
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
--- lispref-orig/elisp.texi
|
||||
+++ lispref/elisp.texi
|
||||
@@ -1,6 +1,6 @@
|
||||
\input texinfo @c -*-texinfo-*-
|
||||
@c %**start of header
|
||||
-@setfilename elisp
|
||||
+@setfilename elisp24.info
|
||||
|
||||
@ifset VOL1
|
||||
@set volflag
|
||||
@@ -117,9 +117,9 @@
|
||||
|
||||
@documentencoding ISO-8859-1
|
||||
|
||||
-@dircategory GNU Emacs Lisp
|
||||
+@dircategory Emacs
|
||||
@direntry
|
||||
-* Elisp: (elisp). The Emacs Lisp Reference Manual.
|
||||
+* Elisp 24: (elisp24). The Emacs Lisp Reference Manual for Emacs 24.
|
||||
@end direntry
|
||||
|
||||
@titlepage
|
@ -1,2 +1 @@
|
||||
DIST mp-5.2.1.tar.gz 566513 SHA256 e91ff7b94427a5c49815f091c67c20f47f63fd473318dbd9dce52a68a6a6f9d4 SHA512 9b7a6b87a7bb853bc91beae156280676046281c5d5582ede6cdcf902d289d1572cfcbf53067da3a55f013536891195f8e17bd97b8f83b08c7ad89479902c66e9 WHIRLPOOL 6cd9a8a3d6d150ecedd43b9825ea3d3574b7eda7af383502a03bcc7685faea28a011f931f1d636fed99d940d6a4fe6bb05a298796fd744b179b2cc39fdb54779
|
||||
DIST mp-5.2.2.tar.gz 583918 SHA256 f4c04315e6a0a3b831f218f73904afd3c227aa18b67ab21b39dffbb54edfea1f SHA512 44c9b7ded38c294ffc90240ac73848a799294584f20bb981d95f8dde4f281ea9242b6ff8aefdb490e9e02effaab6cbc5bdf94ea489af838a89038113c43da131 WHIRLPOOL 0feba9d14b0f0a5addf153e0ce4d4186b90392c78d2154200cea665880861cef07fdcbfc7d841ef736a3852d8523290d2f5fdbad87f1ab20894e2a32e9df78d7
|
||||
|
@ -1,69 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-editors/mp/mp-5.2.1.ebuild,v 1.8 2012/07/20 08:24:58 jlec Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="Minimum Profit: A text editor for programmers"
|
||||
HOMEPAGE="http://www.triptico.com/software/mp.html"
|
||||
SRC_URI="http://www.triptico.com/download/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86 ~x86-interix ~ppc-macos ~sparc-solaris ~x86-solaris"
|
||||
IUSE="gtk iconv kde ncurses nls pcre qt4"
|
||||
|
||||
RDEPEND="
|
||||
ncurses? ( sys-libs/ncurses )
|
||||
gtk? ( x11-libs/gtk+:2 >=x11-libs/pango-1.8.0 )
|
||||
!gtk? ( sys-libs/ncurses )
|
||||
nls? ( sys-devel/gettext )
|
||||
pcre? ( dev-libs/libpcre )
|
||||
iconv? ( virtual/libiconv )
|
||||
app-text/grutatxt"
|
||||
DEPEND="${RDEPEND}
|
||||
app-text/grutatxt
|
||||
virtual/pkgconfig
|
||||
dev-lang/perl"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-5.2.1-prll.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf="--prefix=${EPREFIX}/usr --without-win32"
|
||||
|
||||
if use gtk; then
|
||||
! use ncurses && myconf="${myconf} --without-curses"
|
||||
else
|
||||
myconf="${myconf} --without-gtk2"
|
||||
fi
|
||||
|
||||
use iconv || myconf="${myconf} --without-iconv"
|
||||
|
||||
use kde || myconf="${myconf} --without-kde4"
|
||||
|
||||
use nls || myconfig="${myconf} --without-gettext"
|
||||
|
||||
myconf="${myconf} $(use_with pcre)"
|
||||
use pcre || myconf="${myconf} --with-included-regex"
|
||||
|
||||
use qt4 || myconf="${myconf} --without-qt4"
|
||||
|
||||
tc-export CC
|
||||
sh config.sh ${myconf} || die "Configure failed"
|
||||
|
||||
for i in "${S}" "${S}"/mpsl "${S}"/mpdm;do
|
||||
echo ${CFLAGS} >> $i/config.cflags
|
||||
echo ${CFLAGS} >> $i/config.ldflags
|
||||
echo ${LDFLAGS} >> $i/config.ldflags
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodir /usr/bin
|
||||
sh config.sh --prefix="${EPREFIX}/usr"
|
||||
emake DESTDIR="${D}" install
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST ted-2.21.src.tar.gz 3956815 SHA256 6c4bdebb8980fac00cf71ebc6c5f9bddee8ae13ab2327125dda95aa6948b363a SHA512 f926d49c1c68ae54b7b4871cccc48e1ff1ad217baa915735be6f12944b710050fe358b1e85b75a3d8ffc236563dc81364be1f64079805993978dccfdb819f735 WHIRLPOOL a55f61613af80477b9399b43e0ada313e78be5f867acfafb6ee80a530f8939780b3eff63fd8a701e4e83613bc7a1b53bf699c70605ff22bc974cfd6a742bfa71
|
||||
DIST ted-2.22.src.tar.gz 4267772 SHA256 93040d5ff259dbf7707a97f8c1ab4a7c1ec8adae63d35760e20dd6f60520fa4a SHA512 52099f1ddc93c1fda4849e62cd610d6b6701e152589124ba90bcd678c09ec7be82273f0f54d96fb8fa8718dab64f99e5576d0c467e035f8c0baffd91b84faa4f WHIRLPOOL fd584a285198731cbe7b53de0ddae465b0f7efe472984ad99835d19bccadb20ec076cf2fb4e22992ee4419093c1b7b0c8cea2fd7cbd07cc9f7f8fc745157d896
|
||||
|
@ -1,423 +0,0 @@
|
||||
This patch is from netbsd pkgsrc
|
||||
|
||||
ftp://ftp.netbsd.org/pub/NetBSD/packages/pkgsrc/editors/ted/patches/
|
||||
|
||||
--- bitmap/bmpng.c
|
||||
+++ bitmap/bmpng.c
|
||||
@@ -20,23 +20,32 @@
|
||||
/* */
|
||||
/************************************************************************/
|
||||
|
||||
-static int bpPngiToBitmap( const png_info * pngi,
|
||||
+static int bpPngiToBitmap( const png_structp pngp,
|
||||
+ png_info * pngi,
|
||||
BitmapDescription * bd )
|
||||
{
|
||||
unsigned int col;
|
||||
+ png_uint_32 res_x, res_y;
|
||||
+ int unit_type= 0;
|
||||
|
||||
- bd->bdPixelsWide= pngi->width;
|
||||
- bd->bdPixelsHigh= pngi->height;
|
||||
+ bd->bdPixelsWide= png_get_image_width( pngp, pngi );
|
||||
+ bd->bdPixelsHigh= png_get_image_height( pngp, pngi );
|
||||
bd->bdHasAlpha= 0;
|
||||
|
||||
- switch( pngi->color_type )
|
||||
+ switch( png_get_color_type( pngp, pngi ) )
|
||||
{
|
||||
case PNG_COLOR_TYPE_PALETTE:
|
||||
+ {
|
||||
+ int num_palette;
|
||||
+ png_colorp palette;
|
||||
+
|
||||
+ png_get_PLTE( pngp, pngi, &palette, &num_palette );
|
||||
+
|
||||
bd->bdColorEncoding= BMcoRGB8PALETTE;
|
||||
- bd->bdColorCount= pngi->num_palette;
|
||||
+ bd->bdColorCount= num_palette;
|
||||
bd->bdBitsPerSample= 8;
|
||||
bd->bdSamplesPerPixel= 3;
|
||||
- bd->bdBitsPerPixel= pngi->bit_depth;
|
||||
+ bd->bdBitsPerPixel= png_get_bit_depth( pngp, pngi );
|
||||
|
||||
bd->bdRGB8Palette= (RGB8Color *)
|
||||
malloc( bd->bdColorCount* sizeof(RGB8Color) );
|
||||
@@ -46,47 +55,51 @@ static int bpPngiToBitmap( const png_inf
|
||||
|
||||
for ( col= 0; col < bd->bdColorCount; col++ )
|
||||
{
|
||||
- bd->bdRGB8Palette[col].rgb8Red= pngi->palette[col].red;
|
||||
- bd->bdRGB8Palette[col].rgb8Green= pngi->palette[col].green;
|
||||
- bd->bdRGB8Palette[col].rgb8Blue= pngi->palette[col].blue;
|
||||
+ bd->bdRGB8Palette[col].rgb8Red= palette[col].red;
|
||||
+ bd->bdRGB8Palette[col].rgb8Green= palette[col].green;
|
||||
+ bd->bdRGB8Palette[col].rgb8Blue= palette[col].blue;
|
||||
bd->bdRGB8Palette[col].rgb8Alpha= 0;
|
||||
}
|
||||
+ }
|
||||
break;
|
||||
|
||||
case PNG_COLOR_TYPE_RGB:
|
||||
bd->bdColorEncoding= BMcoRGB;
|
||||
- bd->bdBitsPerSample= pngi->bit_depth;
|
||||
- bd->bdSamplesPerPixel= pngi->channels;
|
||||
- bd->bdBitsPerPixel= pngi->pixel_depth;
|
||||
+ bd->bdBitsPerSample= png_get_bit_depth( pngp, pngi );
|
||||
+ bd->bdSamplesPerPixel= png_get_channels( pngp, pngi );
|
||||
+ bd->bdBitsPerPixel= bd->bdSamplesPerPixel* bd->bdBitsPerSample;
|
||||
break;
|
||||
|
||||
case PNG_COLOR_TYPE_GRAY:
|
||||
bd->bdColorEncoding= BMcoWHITEBLACK;
|
||||
- bd->bdBitsPerSample= pngi->bit_depth;
|
||||
- bd->bdSamplesPerPixel= pngi->channels;
|
||||
- bd->bdBitsPerPixel= pngi->pixel_depth;
|
||||
+ bd->bdBitsPerSample= png_get_bit_depth( pngp, pngi );
|
||||
+ bd->bdSamplesPerPixel= png_get_channels( pngp, pngi );
|
||||
+ bd->bdBitsPerPixel= bd->bdSamplesPerPixel* bd->bdBitsPerSample;
|
||||
break;
|
||||
|
||||
case PNG_COLOR_TYPE_RGB_ALPHA:
|
||||
bd->bdHasAlpha= 1;
|
||||
bd->bdColorEncoding= BMcoRGB;
|
||||
- bd->bdBitsPerSample= pngi->bit_depth;
|
||||
- bd->bdSamplesPerPixel= pngi->channels;
|
||||
- bd->bdBitsPerPixel= pngi->pixel_depth;
|
||||
+ bd->bdBitsPerSample= png_get_bit_depth( pngp, pngi );
|
||||
+ bd->bdSamplesPerPixel= png_get_channels( pngp, pngi );
|
||||
+ bd->bdBitsPerPixel= bd->bdSamplesPerPixel* bd->bdBitsPerSample;
|
||||
break;
|
||||
|
||||
case PNG_COLOR_TYPE_GRAY_ALPHA:
|
||||
bd->bdHasAlpha= 1;
|
||||
- LDEB(pngi->color_type); return -1;
|
||||
+ LDEB(png_get_color_type( pngp, pngi )); return -1;
|
||||
|
||||
default:
|
||||
- LDEB(pngi->color_type); return -1;
|
||||
+ LDEB(png_get_color_type( pngp, pngi )); return -1;
|
||||
}
|
||||
|
||||
- bd->bdBytesPerRow= pngi->rowbytes;
|
||||
+ bd->bdBytesPerRow= png_get_rowbytes( pngp, pngi );
|
||||
bd->bdBufferLength= bd->bdBytesPerRow* bd->bdPixelsHigh;
|
||||
|
||||
- switch( pngi->phys_unit_type )
|
||||
+ if ( ! png_get_pHYs( pngp, pngi, &res_x, &res_y, &unit_type ) )
|
||||
+ { unit_type= PNG_RESOLUTION_UNKNOWN; }
|
||||
+
|
||||
+ switch( unit_type )
|
||||
{
|
||||
case PNG_RESOLUTION_UNKNOWN:
|
||||
bd->bdUnit= BMunPIXEL;
|
||||
@@ -96,12 +109,12 @@ static int bpPngiToBitmap( const png_inf
|
||||
|
||||
case PNG_RESOLUTION_METER:
|
||||
bd->bdUnit= BMunM;
|
||||
- bd->bdXResolution= pngi->x_pixels_per_unit;
|
||||
- bd->bdYResolution= pngi->y_pixels_per_unit;
|
||||
+ bd->bdXResolution= res_x;
|
||||
+ bd->bdYResolution= res_y;
|
||||
break;
|
||||
|
||||
default:
|
||||
- LDEB(pngi->phys_unit_type);
|
||||
+ LDEB(unit_type);
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -119,11 +132,11 @@ static int bmPngReadContents( png_info *
|
||||
unsigned char * buffer;
|
||||
|
||||
numberOfPasses= 1;
|
||||
- if ( pngi->interlace_type )
|
||||
+ if ( png_get_interlace_type( png, pngi ) )
|
||||
{ numberOfPasses= png_set_interlace_handling( png ); }
|
||||
|
||||
- if ( pngi->color_type == PNG_COLOR_TYPE_RGB &&
|
||||
- pngi->bit_depth == 16 )
|
||||
+ if ( png_get_color_type( png, pngi ) == PNG_COLOR_TYPE_RGB &&
|
||||
+ png_get_bit_depth( png, pngi ) == 16 )
|
||||
{
|
||||
const unsigned short one= 1;
|
||||
const unsigned char * testEndian= (const unsigned char *)&one;
|
||||
@@ -133,9 +146,6 @@ static int bmPngReadContents( png_info *
|
||||
}
|
||||
|
||||
png_start_read_image( png );
|
||||
- /*
|
||||
- png_read_update_info( png, pngi );
|
||||
- */
|
||||
|
||||
buffer= (unsigned char *)malloc( bd->bdBufferLength );
|
||||
if ( ! buffer )
|
||||
@@ -236,9 +246,9 @@ int bmPngReadPng( BitmapDescription * bd
|
||||
|
||||
png_read_info( pngp, pngip );
|
||||
|
||||
- if ( bpPngiToBitmap( pngip, bd ) )
|
||||
+ if ( bpPngiToBitmap( pngp, pngip, bd ) )
|
||||
{
|
||||
- LLLDEB(pngip->color_type,bd->bdColorCount,bd->bdRGB8Palette);
|
||||
+ LLDEB(bd->bdColorCount,bd->bdRGB8Palette);
|
||||
png_destroy_read_struct( &pngp, &pngip, (png_infop *)0 );
|
||||
return -1;
|
||||
}
|
||||
@@ -282,44 +292,43 @@ int bmCanWritePngFile( const BitmapDescr
|
||||
|
||||
static int bpPngiFromBitmap( png_structp png,
|
||||
png_info * pngi,
|
||||
+ png_colorp * pPalette,
|
||||
const BitmapDescription * bd )
|
||||
{
|
||||
- png_info_init( pngi );
|
||||
- pngi->width= bd->bdPixelsWide;
|
||||
- pngi->height= bd->bdPixelsHigh;
|
||||
+ int bit_depth;
|
||||
+ int color_type;
|
||||
+ png_color_8 sig_bit;
|
||||
|
||||
switch( bd->bdUnit )
|
||||
{
|
||||
case BMunM:
|
||||
- pngi->phys_unit_type= PNG_RESOLUTION_METER;
|
||||
- pngi->x_pixels_per_unit= bd->bdXResolution;
|
||||
- pngi->y_pixels_per_unit= bd->bdYResolution;
|
||||
- pngi->valid |= PNG_INFO_pHYs;
|
||||
+ png_set_pHYs( png, pngi,
|
||||
+ bd->bdXResolution,
|
||||
+ bd->bdYResolution,
|
||||
+ PNG_RESOLUTION_METER);
|
||||
break;
|
||||
|
||||
case BMunINCH:
|
||||
- pngi->phys_unit_type= PNG_RESOLUTION_METER;
|
||||
- pngi->x_pixels_per_unit= (int)( 39.37* bd->bdXResolution );
|
||||
- pngi->y_pixels_per_unit= (int)( 39.37* bd->bdYResolution );
|
||||
- pngi->valid |= PNG_INFO_pHYs;
|
||||
+ png_set_pHYs( png, pngi,
|
||||
+ (int)( 39.37* bd->bdXResolution ),
|
||||
+ (int)( 39.37* bd->bdYResolution ),
|
||||
+ PNG_RESOLUTION_METER);
|
||||
break;
|
||||
|
||||
case BMunPOINT:
|
||||
- pngi->phys_unit_type= PNG_RESOLUTION_METER;
|
||||
- pngi->x_pixels_per_unit= POINTS_PER_M* bd->bdXResolution;
|
||||
- pngi->y_pixels_per_unit= POINTS_PER_M* bd->bdYResolution;
|
||||
- pngi->valid |= PNG_INFO_pHYs;
|
||||
+ png_set_pHYs( png, pngi,
|
||||
+ POINTS_PER_M* bd->bdXResolution,
|
||||
+ POINTS_PER_M* bd->bdYResolution,
|
||||
+ PNG_RESOLUTION_METER);
|
||||
break;
|
||||
|
||||
case BMunPIXEL:
|
||||
- pngi->phys_unit_type= PNG_RESOLUTION_UNKNOWN;
|
||||
- pngi->x_pixels_per_unit= 1;
|
||||
- pngi->y_pixels_per_unit= 1;
|
||||
+ png_set_pHYs(png, pngi, 1, 1, PNG_RESOLUTION_UNKNOWN);
|
||||
break;
|
||||
|
||||
default:
|
||||
LDEB(bd->bdUnit);
|
||||
- pngi->phys_unit_type= PNG_RESOLUTION_UNKNOWN;
|
||||
+ png_set_pHYs(png, pngi, 1, 1, PNG_RESOLUTION_UNKNOWN);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -329,41 +338,48 @@ static int bpPngiFromBitmap( png_structp
|
||||
|
||||
case BMcoBLACKWHITE:
|
||||
case BMcoWHITEBLACK:
|
||||
- pngi->bit_depth= bd->bdBitsPerPixel;
|
||||
+ bit_depth= bd->bdBitsPerPixel;
|
||||
if ( bd->bdHasAlpha )
|
||||
- { pngi->color_type= PNG_COLOR_TYPE_GRAY_ALPHA; }
|
||||
- else{ pngi->color_type= PNG_COLOR_TYPE_GRAY; }
|
||||
- pngi->sig_bit.gray= bd->bdBitsPerSample;
|
||||
+ { color_type= PNG_COLOR_TYPE_GRAY_ALPHA; }
|
||||
+ else{ color_type= PNG_COLOR_TYPE_GRAY; }
|
||||
+ sig_bit.gray= bd->bdBitsPerSample;
|
||||
break;
|
||||
|
||||
case BMcoRGB:
|
||||
- pngi->bit_depth= bd->bdBitsPerSample;
|
||||
+ bit_depth= bd->bdBitsPerSample;
|
||||
if ( bd->bdHasAlpha )
|
||||
- { pngi->color_type= PNG_COLOR_TYPE_RGB_ALPHA; }
|
||||
- else{ pngi->color_type= PNG_COLOR_TYPE_RGB; }
|
||||
- pngi->sig_bit.red= bd->bdBitsPerSample;
|
||||
- pngi->sig_bit.green= bd->bdBitsPerSample;
|
||||
- pngi->sig_bit.blue= bd->bdBitsPerSample;
|
||||
+ { color_type= PNG_COLOR_TYPE_RGB_ALPHA; }
|
||||
+ else{ color_type= PNG_COLOR_TYPE_RGB; }
|
||||
+ sig_bit.red= bd->bdBitsPerSample;
|
||||
+ sig_bit.green= bd->bdBitsPerSample;
|
||||
+ sig_bit.blue= bd->bdBitsPerSample;
|
||||
break;
|
||||
|
||||
case BMcoRGB8PALETTE:
|
||||
- pngi->bit_depth= bd->bdBitsPerPixel;
|
||||
- pngi->color_type= PNG_COLOR_TYPE_PALETTE;
|
||||
+ bit_depth= bd->bdBitsPerPixel;
|
||||
+ color_type= PNG_COLOR_TYPE_PALETTE;
|
||||
|
||||
- pngi->valid |= PNG_INFO_PLTE;
|
||||
- pngi->palette= (png_color *)malloc( 256* sizeof( png_color ) );
|
||||
- if ( ! pngi->palette )
|
||||
- { XDEB(pngi->palette); return -1; }
|
||||
- pngi->num_palette= bd->bdColorCount;
|
||||
- pngi->sig_bit.red= bd->bdBitsPerSample;
|
||||
- pngi->sig_bit.green= bd->bdBitsPerSample;
|
||||
- pngi->sig_bit.blue= bd->bdBitsPerSample;
|
||||
- for ( i= 0; i < pngi->num_palette; i++ )
|
||||
+ if ( bd->bdColorCount > PNG_MAX_PALETTE_LENGTH )
|
||||
{
|
||||
- pngi->palette[i].red= bd->bdRGB8Palette[i].rgb8Red;
|
||||
- pngi->palette[i].green= bd->bdRGB8Palette[i].rgb8Green;
|
||||
- pngi->palette[i].blue= bd->bdRGB8Palette[i].rgb8Blue;
|
||||
+ LLDEB(bd->bdColorCount,PNG_MAX_PALETTE_LENGTH);
|
||||
+ return -1;
|
||||
}
|
||||
+
|
||||
+ *pPalette= (png_color *)malloc( PNG_MAX_PALETTE_LENGTH*
|
||||
+ sizeof( png_color ) );
|
||||
+ if ( ! *pPalette )
|
||||
+ { XDEB(*pPalette); return -1; }
|
||||
+ sig_bit.red= bd->bdBitsPerSample;
|
||||
+ sig_bit.green= bd->bdBitsPerSample;
|
||||
+ sig_bit.blue= bd->bdBitsPerSample;
|
||||
+ for ( i= 0; i < bd->bdColorCount; i++ )
|
||||
+ {
|
||||
+ (*pPalette)[i].red= bd->bdRGB8Palette[i].rgb8Red;
|
||||
+ (*pPalette)[i].green= bd->bdRGB8Palette[i].rgb8Green;
|
||||
+ (*pPalette)[i].blue= bd->bdRGB8Palette[i].rgb8Blue;
|
||||
+ }
|
||||
+
|
||||
+ png_set_PLTE( png, pngi, (*pPalette), bd->bdColorCount );
|
||||
break;
|
||||
|
||||
default:
|
||||
@@ -371,7 +387,13 @@ static int bpPngiFromBitmap( png_structp
|
||||
return -1;
|
||||
}
|
||||
|
||||
- pngi->interlace_type= 0;
|
||||
+ png_set_sBIT( png, pngi, &sig_bit );
|
||||
+ png_set_IHDR( png, pngi,
|
||||
+ bd->bdPixelsWide, bd->bdPixelsHigh,
|
||||
+ bit_depth, color_type,
|
||||
+ PNG_INTERLACE_NONE,
|
||||
+ PNG_COMPRESSION_TYPE_BASE,
|
||||
+ PNG_FILTER_TYPE_BASE );
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -395,8 +417,8 @@ static void bmPngWriteContents( png_stru
|
||||
}
|
||||
}
|
||||
|
||||
- if ( pngi->color_type == PNG_COLOR_TYPE_RGB &&
|
||||
- bd->bdBitsPerSample == 16 )
|
||||
+ if ( png_get_color_type( png, pngi ) == PNG_COLOR_TYPE_RGB &&
|
||||
+ bd->bdBitsPerSample == 16 )
|
||||
{
|
||||
const unsigned short one= 1;
|
||||
const unsigned char * testEndian= (const unsigned char *)&one;
|
||||
@@ -431,9 +453,9 @@ static void bmPngWriteContents( png_stru
|
||||
from= scratch;
|
||||
}
|
||||
|
||||
- if ( pngi->color_type == PNG_COLOR_TYPE_RGB &&
|
||||
- bd->bdBitsPerSample == 16 &&
|
||||
- scratch )
|
||||
+ if ( png_get_color_type( png, pngi ) == PNG_COLOR_TYPE_RGB &&
|
||||
+ bd->bdBitsPerSample == 16 &&
|
||||
+ scratch )
|
||||
{
|
||||
int col;
|
||||
const BmUint16 * fr= (const BmUint16 *)from;
|
||||
@@ -453,10 +475,6 @@ static void bmPngWriteContents( png_stru
|
||||
|
||||
png_write_end( png, pngi );
|
||||
|
||||
- if ( bd->bdColorEncoding == BMcoRGB8PALETTE &&
|
||||
- pngi->palette )
|
||||
- { free( pngi->palette ); }
|
||||
-
|
||||
if ( scratch )
|
||||
{ free( scratch ); }
|
||||
|
||||
@@ -510,50 +528,43 @@ int bmPngWritePng( const BitmapDescript
|
||||
const unsigned char * buffer,
|
||||
SimpleOutputStream * sos )
|
||||
{
|
||||
+ int rval= 0;
|
||||
png_structp pngp= (png_structp)0;
|
||||
png_infop pngip= (png_infop)0;
|
||||
+ png_colorp palette= (png_colorp)0;
|
||||
|
||||
pngp = png_create_write_struct( PNG_LIBPNG_VER_STRING, (void *)0,
|
||||
(png_error_ptr)0, (png_error_ptr)0 );
|
||||
if ( ! pngp )
|
||||
- { LDEB(1); return -1; }
|
||||
+ { XDEB(pngp); rval= -1; goto ready; }
|
||||
|
||||
pngip = png_create_info_struct( pngp );
|
||||
if ( ! pngip )
|
||||
- {
|
||||
- LDEB(1);
|
||||
- png_destroy_write_struct( &pngp, (png_infop *)0 );
|
||||
- return -1;
|
||||
- }
|
||||
+ { XDEB(pngip); rval= -1; goto ready; }
|
||||
+
|
||||
+ /*
|
||||
+ As the info struct is built by libpng this is not needed:
|
||||
+ (The call will disappear from libpng in version 1.4)
|
||||
+ png_info_init( pngi );
|
||||
+ */
|
||||
|
||||
if ( setjmp( png_jmpbuf( pngp ) ) )
|
||||
- {
|
||||
- LDEB(1);
|
||||
- png_destroy_write_struct( &pngp, &pngip );
|
||||
- /* Crashes:
|
||||
- if ( bd->bdColorEncoding == BMcoRGB8PALETTE &&
|
||||
- pngip->palette )
|
||||
- { free( pngip->palette ); }
|
||||
- */
|
||||
- return -1;
|
||||
- }
|
||||
+ { LDEB(1); rval= -1; goto ready; }
|
||||
|
||||
png_init_io( pngp, (FILE *)0 );
|
||||
png_set_write_fn( pngp, (void *)sos, bmPngWriteBytes, bmPngFlushBytes );
|
||||
|
||||
- if ( bpPngiFromBitmap( pngp, pngip, bd ) )
|
||||
- {
|
||||
- LDEB(bd->bdColorEncoding);
|
||||
- png_destroy_write_struct( &pngp, &pngip );
|
||||
- return -1;
|
||||
- }
|
||||
-
|
||||
- /*
|
||||
- png_write_info( pngp, pngip );
|
||||
- */
|
||||
+ if ( bpPngiFromBitmap( pngp, pngip, &palette, bd ) )
|
||||
+ { LDEB(bd->bdColorEncoding); rval= -1; goto ready; }
|
||||
|
||||
bmPngWriteContents( pngp, pngip, buffer, bd );
|
||||
|
||||
+ ready:
|
||||
+
|
||||
+ if ( palette )
|
||||
+ { free( palette ); }
|
||||
+
|
||||
png_destroy_write_struct( &pngp, &pngip );
|
||||
- return 0;
|
||||
+
|
||||
+ return rval;
|
||||
}
|
@ -1,59 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-editors/ted/ted-2.21.ebuild,v 1.11 2012/05/03 18:33:03 jdhore Exp $
|
||||
|
||||
EAPI=4
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="X-based rich text editor"
|
||||
HOMEPAGE="http://www.nllgg.nl/Ted"
|
||||
SRC_URI="ftp://ftp.nluug.nl/pub/editors/ted/${P}.src.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc sparc x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="x11-libs/gtk+:2
|
||||
media-libs/tiff
|
||||
virtual/jpeg
|
||||
media-libs/libpng
|
||||
x11-libs/libXpm"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
S=${WORKDIR}/Ted-${PV}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-libpng15.patch
|
||||
epatch "${FILESDIR}"/${P}-make.patch
|
||||
|
||||
sed -i -e 's|/Ted/|/share/Ted/|' \
|
||||
"${S}"/appFrame/appFrameConfig.h.in \
|
||||
"${S}"/Ted/tedConfig.h.in || die
|
||||
|
||||
mkdir lib || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
tc-export CC
|
||||
|
||||
local dir
|
||||
for dir in appFrame appUtil bitmap docBuf ind Ted tedPackage; do
|
||||
cd "${S}"/${dir}
|
||||
econf --cache-file=../config.cache || die "configure in ${dir} failed"
|
||||
done
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake package.shared
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd tedPackage
|
||||
RPM_BUILD_ROOT=${D} ./installTed.sh COMMON || die
|
||||
|
||||
dodir /usr/share
|
||||
mv "${ED}"usr/Ted "${ED}"usr/share/Ted
|
||||
dosym /usr/share/Ted/rtf2pdf.sh /usr/bin/rtf2pdf.sh
|
||||
}
|
@ -0,0 +1,49 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/actkbd/actkbd-0.2.8-r1.ebuild,v 1.1 2013/03/14 19:50:09 scarabeus Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit linux-info eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="A keyboard shortcut daemon"
|
||||
HOMEPAGE="http://users.softlab.ece.ntua.gr/~thkala/projects/actkbd/"
|
||||
SRC_URI="http://users.softlab.ece.ntua.gr/~thkala/projects/actkbd/files/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND=""
|
||||
|
||||
CONFIG_CHECK="~INPUT_EVDEV"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-0.2.7-amd64.patch
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake CFLAGS="${CFLAGS}" CC="$(tc-getCC)"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin actkbd
|
||||
dodoc AUTHORS ChangeLog FAQ README TODO
|
||||
docinto samples
|
||||
dodoc samples/actkbd.conf
|
||||
newconfd "${FILESDIR}/${PN}.confd" ${PN}
|
||||
newinitd "${FILESDIR}/${PN}.initd" ${PN}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog
|
||||
elog "System-wide configuration file is /etc/actkbd.conf."
|
||||
elog "Use actkbd.conf from usr/share/doc/${PF}/samples as a template."
|
||||
elog "You need to create the config and set right input device from"
|
||||
elog "/dev/input/event* in /etc/conf.d/actkbd"
|
||||
elog
|
||||
elog "To obtain keycodes for pressed combinations/keys just run:"
|
||||
elog " # actkbd -s -d /dev/input/event<MYDEVICENUMBER>"
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/actkbd/files/actkbd.confd,v 1.1 2013/03/14 19:50:09 scarabeus Exp $
|
||||
|
||||
# Configuration file
|
||||
CONFIG="/etc/actkbd.conf"
|
||||
|
||||
# Event provider providing the keypress events
|
||||
EVENT_DEVICE="/dev/input/<DEVICE>"
|
||||
|
||||
# PID
|
||||
PIDFILE="/var/run/actkbd.pid"
|
||||
|
@ -0,0 +1,32 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/actkbd/files/actkbd.initd,v 1.1 2013/03/14 19:50:09 scarabeus Exp $
|
||||
|
||||
checkconfig() {
|
||||
if [ ! -f ${CONFIG} ] ; then
|
||||
eerror "Config file \"${CONFIG}\" does not exist. Create it prior launching the daemon."
|
||||
return 1
|
||||
fi
|
||||
if [ ! -c ${EVENT_DEVICE} ] ; then
|
||||
eerror "Device \"${EVENT_DEVICE}\" is not valid pointer to input provider."
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
depend() {
|
||||
before acpid
|
||||
}
|
||||
|
||||
start() {
|
||||
checkconfig || return 1
|
||||
ebegin "Starting actkbd"
|
||||
start-stop-daemon --start --quiet --pidfile ${PIDFILE} --exec /usr/bin/actkbd -- -c "${CONFIG}" -D -q -x -l -p "${PIDFILE}" -d "${EVENT_DEVICE}"
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping actkbd"
|
||||
start-stop-daemon --stop --quiet --pidfile ${PIDFILE} --exec /usr/bin/actkbd
|
||||
eend $?
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST byobu_5.29.orig.tar.gz 328310 SHA256 12e418f9dd979bb3be045170ee851ab780fd7f3bd15625c9deeb9e157f8322df SHA512 2b45fa5a8c680137b3aa210924bbc3c2b29b4c54003f154e3a72332146a69a41c21d5121843e090bfab0ebf73677e662fd678ee801ff3d89af447244f24477a1 WHIRLPOOL d23cb861c8fb26536c95bf24886689af91011f4baae88f510e248a00133d8f9fedaa37dc4995e1580b5e391337e6d646675fddc589d58153da0fb9d20e5dbffe
|
||||
DIST byobu_5.33.orig.tar.gz 600437 SHA256 14beba36f99b96a804be2e2d8a065290266d943a0a075282ef88a1c36d64b9e5 SHA512 c508ed2edc3a8158fbd7989bade907f24a0a6e30efa92acd9d5789681bf090f4b975f9644a4cedaab6e2234847d1f94a237963cfb00ca571b1ee8d1726c55809 WHIRLPOOL c8068d893b7bc22247f30b31e7294c0264d03b2f65e41a3cff406040da4dc93159594a6838da98c498d40494f1f2123b231524df1f4e503c6ca258983027e558
|
||||
DIST byobu_5.34.orig.tar.gz 600838 SHA256 016cee28814c7d15168db6196c2d04dfacad70c390403918fa1873b7787cede9 SHA512 2bf7a16f93e0987ef75b482ac3a816503bebfbc5d19e472b696873c6186daa3ba47b59b91cfca6de9b3924937ffd897dead51ee68ed9b4edc19e00b6b9c1cd1a WHIRLPOOL 12def39bdd9116e9b7e20efb98817f70f8d8a2af77d920e00c6b70e7da33e9fd004dcb1928859ad1a0c49a0fae3a87953173c89923fd1fbf4c0e8bec5a77cbed
|
||||
|
@ -0,0 +1,39 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/byobu/byobu-5.34.ebuild,v 1.1 2013/03/15 08:12:58 radhermit Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_5,2_6,2_7} )
|
||||
|
||||
inherit python-single-r1
|
||||
|
||||
DESCRIPTION="A set of profiles for the GNU Screen console window manager (app-misc/screen)"
|
||||
HOMEPAGE="http://byobu.co"
|
||||
SRC_URI="http://launchpad.net/${PN}/trunk/${PV}/+download/${P/-/_}.orig.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="screen"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/newt
|
||||
screen? ( app-misc/screen )
|
||||
!screen? ( app-misc/tmux )"
|
||||
|
||||
src_prepare() {
|
||||
python_fix_shebang .
|
||||
|
||||
# Set default system backend to screen
|
||||
if use screen ; then
|
||||
sed -i -e 's/#\(BYOBU_BACKEND\).*/\1="screen"/' etc/byobu/backend || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
# Create symlinks for backends
|
||||
dosym ${PN} /usr/bin/${PN}-screen
|
||||
dosym ${PN} /usr/bin/${PN}-tmux
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST entropy-136.tar.bz2 1612759 SHA256 4384b251f259c868f8ee3480701beecb466ca8c5727915e6b437291d03f4c63b SHA512 3b2725de557efa76ee65f368f486ab952f49a63474b5226e7b9ce137bee1c9c1ef73074c4d255e3d8695666556923d827c9cb1e232b307c4893d76e6cc6fb948 WHIRLPOOL 222d2c292c4a7c0d465be31898c4b2bf1469b7c769b4099106ded24334f4d16dde1f95ea532cbb2a167e2b7fcc30e6f59974839c3a8019c02c962fc634556e1b
|
||||
DIST entropy-144.tar.bz2 1616075 SHA256 173825d13f4b5c5aecf4d82b4e593921baf2209496be56190babbb142ad9b75d SHA512 30ca32fdf0747530c656ec9c96aed5dad00e8fb4181bd4c2e4a4aed3c5b06427e5b07baa41db13ff03d6730f13607e86f557aad84cb6e85af5d9c49029a911c7 WHIRLPOOL a14b76a2c247e2d4db12e2c78735c64ca183a474758f8b8ab9748cd93378300cd737377888beb03cc64e0ddeff0cb201fd790489ddfee48b8cf82032429509ac
|
||||
DIST entropy-183.tar.bz2 1685003 SHA256 5b2d99ef61a68497c228c392d607faa7fef9b5debe7628f381e4facbef290f38 SHA512 95b83797fc519c5cfd12a985ee3221ffe83fe19289681ca1b0f022a7b9491bdf9b74a06fe4f010536a22db78bac4f3325fc5eab0c11243240fdee5789690e2aa WHIRLPOOL bbd6c44e5bce24e602f89075e126b5e914900aad8bd3b1ff301c733d8838f4cd1aac279a707f81c0873c24259078e5fdc9dacbf1f30d0fd5eef3aa9f9376f7c5
|
||||
|
@ -0,0 +1,29 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/magneto-loader/magneto-loader-183.ebuild,v 1.1 2013/03/14 18:26:18 lxnay Exp $
|
||||
|
||||
EAPI="2"
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="Official Sabayon Linux Entropy Notification Applet Loader"
|
||||
HOMEPAGE="http://www.sabayon.org"
|
||||
LICENSE="GPL-2"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE=""
|
||||
|
||||
SRC_URI="mirror://sabayon/sys-apps/entropy-${PV}.tar.bz2"
|
||||
S="${WORKDIR}/entropy-${PV}/magneto"
|
||||
|
||||
DEPEND="~sys-apps/magneto-core-${PV}
|
||||
~app-admin/rigo-${PV}"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_compile() {
|
||||
einfo "nothing to compile"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" LIBDIR="usr/lib" magneto-loader-install || die "make install failed"
|
||||
}
|
@ -1,317 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/icedtea/icedtea-6.1.12.3.ebuild,v 1.1 2013/02/20 09:07:52 sera Exp $
|
||||
# Build written by Andrew John Hughes (gnu_andrew@member.fsf.org)
|
||||
|
||||
# *********************************************************
|
||||
# * IF YOU CHANGE THIS EBUILD, CHANGE ICEDTEA-7.* AS WELL *
|
||||
# *********************************************************
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit java-pkg-2 java-vm-2 pax-utils prefix versionator virtualx
|
||||
|
||||
ICEDTEA_PKG=${PN}$(replace_version_separator 1 -)
|
||||
OPENJDK_BUILD="27"
|
||||
OPENJDK_DATE="26_oct_2012"
|
||||
OPENJDK_TARBALL="openjdk-6-src-b${OPENJDK_BUILD}-${OPENJDK_DATE}.tar.gz"
|
||||
JAXP_TARBALL="jaxp144_04.zip"
|
||||
JAXWS_TARBALL="jdk6-jaxws2_1_6-2011_06_13.zip"
|
||||
JAF_TARBALL="jdk6-jaf-b20.zip"
|
||||
# Download cacao and jamvm regardless for use with EXTRA_ECONF
|
||||
CACAO_TARBALL="68fe50ac34ec.tar.gz"
|
||||
JAMVM_TARBALL="jamvm-0972452d441544f7dd29c55d64f1ce3a5db90d82.tar.gz"
|
||||
|
||||
DESCRIPTION="A harness to build OpenJDK using Free Software build tools and dependencies"
|
||||
HOMEPAGE="http://icedtea.classpath.org"
|
||||
SRC_URI="
|
||||
http://icedtea.classpath.org/download/source/${ICEDTEA_PKG}.tar.gz
|
||||
http://download.java.net/openjdk/jdk6/promoted/b${OPENJDK_BUILD}/${OPENJDK_TARBALL}
|
||||
http://icedtea.classpath.org/download/drops/${JAXWS_TARBALL}
|
||||
http://icedtea.classpath.org/download/drops/${JAF_TARBALL}
|
||||
http://icedtea.classpath.org/download/drops/${JAXP_TARBALL}
|
||||
http://icedtea.classpath.org/download/drops/cacao/${CACAO_TARBALL}
|
||||
http://icedtea.classpath.org/download/drops/jamvm/${JAMVM_TARBALL}"
|
||||
|
||||
LICENSE="Apache-1.1 Apache-2.0 GPL-1 GPL-2 GPL-2-with-linking-exception LGPL-2 MPL-1.0 MPL-1.1 public-domain W3C"
|
||||
SLOT="6"
|
||||
KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86"
|
||||
|
||||
IUSE="+X +alsa cacao cjk +cups debug doc examples javascript +jbootstrap +nsplugin
|
||||
+nss pax_kernel pulseaudio +source systemtap test +webstart"
|
||||
|
||||
# Ideally the following were optional at build time.
|
||||
ALSA_COMMON_DEP="
|
||||
>=media-libs/alsa-lib-1.0"
|
||||
CUPS_COMMON_DEP="
|
||||
>=net-print/cups-1.2.12"
|
||||
X_COMMON_DEP="
|
||||
dev-libs/glib
|
||||
>=media-libs/freetype-2.3.5
|
||||
>=x11-libs/gtk+-2.8:2
|
||||
>=x11-libs/libX11-1.1.3
|
||||
>=x11-libs/libXext-1.1.1
|
||||
>=x11-libs/libXi-1.1.3
|
||||
>=x11-libs/libXrender-0.9.4
|
||||
>=x11-libs/libXtst-1.0.3"
|
||||
X_DEPEND="
|
||||
>=x11-libs/libXau-1.0.3
|
||||
>=x11-libs/libXdmcp-1.0.2
|
||||
>=x11-libs/libXinerama-1.0.2
|
||||
>=x11-libs/libXp-1.0.0
|
||||
x11-proto/inputproto
|
||||
>=x11-proto/xextproto-7.1.1
|
||||
x11-proto/xineramaproto
|
||||
x11-proto/xproto"
|
||||
|
||||
COMMON_DEP="
|
||||
>=media-libs/giflib-4.1.6
|
||||
>=media-libs/libpng-1.2
|
||||
>=sys-libs/zlib-1.2.3
|
||||
virtual/jpeg
|
||||
javascript? ( dev-java/rhino:1.6 )
|
||||
nss? ( >=dev-libs/nss-3.12.5-r1 )
|
||||
pulseaudio? ( >=media-sound/pulseaudio-0.9.11 )
|
||||
systemtap? ( >=dev-util/systemtap-1 )"
|
||||
|
||||
# media-fonts/lklug needs ppc ppc64 keywords
|
||||
RDEPEND="${COMMON_DEP}
|
||||
!dev-java/icedtea6
|
||||
X? (
|
||||
${X_COMMON_DEP}
|
||||
media-fonts/dejavu
|
||||
cjk? (
|
||||
media-fonts/arphicfonts
|
||||
media-fonts/baekmuk-fonts
|
||||
!ppc? ( !ppc64? ( media-fonts/lklug ) )
|
||||
media-fonts/lohit-fonts
|
||||
media-fonts/sazanami
|
||||
)
|
||||
)
|
||||
alsa? ( ${ALSA_COMMON_DEP} )
|
||||
cups? ( ${CUPS_COMMON_DEP} )"
|
||||
|
||||
# Only ant-core-1.8.1 has fixed ant -diagnostics when xerces+xalan are not present.
|
||||
# ca-certificates, perl and openssl are used for the cacerts keystore generation
|
||||
# xext headers have two variants depending on version - bug #288855
|
||||
# !eclipse-ecj-3.7 - bug #392587
|
||||
# autoconf - as long as we use eautoreconf, version restrictions for bug #294918
|
||||
DEPEND="${COMMON_DEP} ${ALSA_COMMON_DEP} ${CUPS_COMMON_DEP} ${X_COMMON_DEP}
|
||||
|| (
|
||||
>=dev-java/gcj-jdk-4.3
|
||||
dev-java/icedtea-bin:6
|
||||
dev-java/icedtea:6
|
||||
)
|
||||
app-arch/cpio
|
||||
app-arch/unzip
|
||||
app-arch/zip
|
||||
app-misc/ca-certificates
|
||||
>=dev-java/ant-core-1.8.1
|
||||
dev-java/ant-nodeps
|
||||
dev-lang/perl
|
||||
>=dev-libs/libxslt-1.1.26
|
||||
dev-libs/openssl
|
||||
virtual/pkgconfig
|
||||
sys-apps/lsb-release
|
||||
${X_DEPEND}
|
||||
pax_kernel? ( sys-apps/paxctl )"
|
||||
|
||||
PDEPEND="webstart? ( dev-java/icedtea-web:6 )
|
||||
nsplugin? ( dev-java/icedtea-web:6[nsplugin] )"
|
||||
|
||||
S="${WORKDIR}"/${ICEDTEA_PKG}
|
||||
|
||||
pkg_setup() {
|
||||
JAVA_PKG_WANT_BUILD_VM="
|
||||
icedtea-6 icedtea-bin-6 icedtea6 icedtea6-bin
|
||||
gcj-jdk"
|
||||
JAVA_PKG_WANT_SOURCE="1.5"
|
||||
JAVA_PKG_WANT_TARGET="1.5"
|
||||
|
||||
java-vm-2_pkg_setup
|
||||
java-pkg-2_pkg_setup
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${ICEDTEA_PKG}.tar.gz
|
||||
}
|
||||
|
||||
java_prepare() {
|
||||
# icedtea doesn't like some locales. #330433 #389717
|
||||
export LANG="C" LC_ALL="C"
|
||||
}
|
||||
|
||||
bootstrap_impossible() {
|
||||
# Fill this according to testing what works and what not
|
||||
has "${1}" # icedtea6 icedtea-6 icedtea6-bin icedtea-bin-6
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local config bootstrap enable_cacao
|
||||
local vm=$(java-pkg_get-current-vm)
|
||||
|
||||
# IcedTea6 can't be built using IcedTea7; its class files are too new
|
||||
# Whether to bootstrap
|
||||
bootstrap="disable"
|
||||
if use jbootstrap; then
|
||||
if bootstrap_impossible "${vm}"; then
|
||||
einfo "Bootstrap with ${vm} is currently not possible and thus disabled, ignoring USE=jbootstrap"
|
||||
else
|
||||
bootstrap="enable"
|
||||
fi
|
||||
fi
|
||||
|
||||
if has "${vm}" gcj-jdk; then
|
||||
# gcj-jdk ensures ecj is present.
|
||||
use jbootstrap || einfo "bootstrap is necessary when building with ${vm}, ignoring USE=\"-jbootstrap\""
|
||||
bootstrap="enable"
|
||||
fi
|
||||
|
||||
config="${config} --${bootstrap}-bootstrap"
|
||||
|
||||
# Always use HotSpot as the primary VM if available. #389521 #368669 #357633 ...
|
||||
# Otherwise use CACAO
|
||||
if ! has "${ARCH}" amd64 sparc x86; then
|
||||
enable_cacao=yes
|
||||
elif use cacao; then
|
||||
ewarn 'Enabling CACAO on an architecture with HotSpot support; issues may result.'
|
||||
ewarn 'If so, please rebuild with USE="-cacao"'
|
||||
enable_cacao=yes
|
||||
fi
|
||||
|
||||
if [[ ${enable_cacao} ]]; then
|
||||
config="${config} --enable-cacao"
|
||||
fi
|
||||
|
||||
# OpenJDK-specific parallelism support. Bug #389791, #337827
|
||||
# Implementation modified from waf-utils.eclass
|
||||
# Note that "-j" is converted to "-j1" as the system doesn't support --load-average
|
||||
local procs=$(echo -j1 ${MAKEOPTS} | sed -r "s/.*(-j\s*|--jobs=)([0-9]+).*/\2/" )
|
||||
config="${config} --with-parallel-jobs=${procs}";
|
||||
einfo "Configuring using --with-parallel-jobs=${procs}"
|
||||
|
||||
if use javascript ; then
|
||||
config="${config} --with-rhino=$(java-pkg_getjar rhino-1.6 js.jar)"
|
||||
else
|
||||
config="${config} --without-rhino"
|
||||
fi
|
||||
|
||||
unset JAVA_HOME JDK_HOME CLASSPATH JAVAC JAVACFLAGS
|
||||
|
||||
econf ${config} \
|
||||
--with-openjdk-src-zip="${DISTDIR}/${OPENJDK_TARBALL}" \
|
||||
--with-jaxp-drop-zip="${DISTDIR}/${JAXP_TARBALL}" \
|
||||
--with-jaxws-drop-zip="${DISTDIR}/${JAXWS_TARBALL}" \
|
||||
--with-jaf-drop-zip="${DISTDIR}/${JAF_TARBALL}" \
|
||||
--with-cacao-src-zip="${DISTDIR}/${CACAO_TARBALL}" \
|
||||
--with-jamvm-src-zip="${DISTDIR}/${JAMVM_TARBALL}" \
|
||||
--with-jdk-home="$(java-config -O)" \
|
||||
--with-abs-install-dir=/usr/$(get_libdir)/icedtea${SLOT} \
|
||||
--disable-downloading \
|
||||
$(use_enable !debug optimizations) \
|
||||
$(use_enable doc docs) \
|
||||
$(use_enable nss) \
|
||||
$(use_enable pulseaudio pulse-java) \
|
||||
$(use_enable systemtap) \
|
||||
$(use_with pax_kernel pax paxctl)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Would use GENTOO_VM otherwise.
|
||||
export ANT_RESPECT_JAVA_HOME=TRUE
|
||||
|
||||
# Load the least that's needed to avoid possible classpath collisions.
|
||||
export ANT_TASKS="ant-nodeps"
|
||||
|
||||
emake
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Use Xvfb for tests
|
||||
unset DISPLAY
|
||||
|
||||
Xemake check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local dest="/usr/$(get_libdir)/icedtea${SLOT}"
|
||||
local ddest="${ED}/${dest}"
|
||||
dodir "${dest}"
|
||||
|
||||
dodoc README NEWS AUTHORS THANKYOU
|
||||
dosym /usr/share/doc/${PF} /usr/share/doc/${PN}${SLOT}
|
||||
|
||||
cd openjdk.build/j2sdk-image || die
|
||||
|
||||
# Ensures HeadlessGraphicsEnvironment is used.
|
||||
if ! use X; then
|
||||
rm -r jre/lib/$(get_system_arch)/xawt || die
|
||||
fi
|
||||
|
||||
# Don't hide classes
|
||||
rm lib/ct.sym || die
|
||||
|
||||
#402507
|
||||
mkdir jre/.systemPrefs || die
|
||||
touch jre/.systemPrefs/.system.lock || die
|
||||
touch jre/.systemPrefs/.systemRootModFile || die
|
||||
|
||||
# doins can't handle symlinks.
|
||||
cp -vRP bin include jre lib man "${ddest}" || die
|
||||
|
||||
dodoc ASSEMBLY_EXCEPTION THIRD_PARTY_README
|
||||
|
||||
if use doc; then
|
||||
# java-pkg_dohtml needed for package-list #302654
|
||||
java-pkg_dohtml -r ../docs/* || die
|
||||
fi
|
||||
|
||||
if use examples; then
|
||||
dodir "${dest}/share";
|
||||
cp -vRP demo sample "${ddest}/share/" || die
|
||||
fi
|
||||
|
||||
if use source; then
|
||||
cp src.zip "${ddest}" || die
|
||||
fi
|
||||
|
||||
# Fix the permissions.
|
||||
find "${ddest}" \! -type l \( -perm /111 -exec chmod 755 {} \; -o -exec chmod 644 {} \; \) || die
|
||||
|
||||
# Needs to be done before generating cacerts
|
||||
java-vm_set-pax-markings "${ddest}"
|
||||
|
||||
# We need to generate keystore - bug #273306
|
||||
einfo "Generating cacerts file from certificates in ${EPREFIX}/usr/share/ca-certificates/"
|
||||
mkdir "${T}/certgen" && cd "${T}/certgen" || die
|
||||
cp "${FILESDIR}/generate-cacerts.pl" . && chmod +x generate-cacerts.pl || die
|
||||
for c in "${EPREFIX}"/usr/share/ca-certificates/*/*.crt; do
|
||||
openssl x509 -text -in "${c}" >> all.crt || die
|
||||
done
|
||||
./generate-cacerts.pl "${ddest}/bin/keytool" all.crt || die
|
||||
cp -vRP cacerts "${ddest}/jre/lib/security/" || die
|
||||
chmod 644 "${ddest}/jre/lib/security/cacerts" || die
|
||||
|
||||
# Bug 390663
|
||||
cp "${FILESDIR}"/fontconfig.Gentoo.properties.src "${T}"/fontconfig.Gentoo.properties || die
|
||||
eprefixify "${T}"/fontconfig.Gentoo.properties
|
||||
insinto "${dest}"/jre/lib
|
||||
doins "${T}"/fontconfig.Gentoo.properties
|
||||
|
||||
set_java_env "${FILESDIR}/icedtea.env"
|
||||
if ! use X || ! use alsa || ! use cups; then
|
||||
java-vm_revdep-mask "${dest}"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if has_version "<=dev-java/icedtea-6.1.10.4:${SLOT}"; then
|
||||
# portage would preserve the symlink otherwise, related to bug #384397
|
||||
rm -f "${EROOT}/usr/lib/jvm/icedtea6"
|
||||
elog "To unify the layout and simplify scripts, the identifier of Icedtea-6*"
|
||||
elog "has changed from 'icedtea6' to 'icedtea-6' starting from version 6.1.10.4-r1"
|
||||
elog "If you had icedtea6 as system VM, the change should be automatic, however"
|
||||
elog "build VM settings in /etc/java-config-2/build/jdk.conf are not changed"
|
||||
elog "and the same holds for any user VM settings. Sorry for the inconvenience."
|
||||
fi
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/icedtea/icedtea-6.1.12.2.ebuild,v 1.1 2013/02/13 18:56:54 sera Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/icedtea/icedtea-6.1.12.4.ebuild,v 1.1 2013/03/14 11:05:20 sera Exp $
|
||||
# Build written by Andrew John Hughes (gnu_andrew@member.fsf.org)
|
||||
|
||||
# *********************************************************
|
@ -1,3 +1,4 @@
|
||||
DIST clojure-1.2.0.zip 3586231 SHA256 1334773cb13793bdc0588de0fe5b5aec602bb98ca84858d7374b4e063864d207 SHA512 8c10533eef046d3dba1eb335d0febcdd22664cd428b24c35f860784efd7a699eba1b37808b99c0b8a584266e6c282f7c490cd49bcb7d7363c958f2499cfc41e2 WHIRLPOOL 6a325eceadd752d42b37a6e6adca7cceb4c49058c3af1e9a78e609b111e8e1cc34b53c356f04bf506b388415108209ec78934057b1de98c1d156a41f2021c09f
|
||||
DIST clojure-1.3.0.tar.gz 489200 SHA256 da719ca8600f75001362fefa6427ef14d0a64c3ddc220c79695c44abecdc4a18 SHA512 1078a94afe096bf5862ddda6bd1fccb14d2383151f575b32829e60f2252d94dda972f9e9ca76bf91bc215f51e6529bd895c3653df5d9fa65dbe69e4be519ecdd WHIRLPOOL f3182a533c8081acbafceb5cd41c8f55c053dae673cab8f52274ab357fdf2b8059a512205501f7221d540d60913e115193eeb4c5dd1b46e05ceb56223b465770
|
||||
DIST clojure-1.4.0.tar.gz 501302 SHA256 72e9b69367e5f825fe501629a7bf25d70632a6007751d2a9520be133879f42cd SHA512 618c0de641f2e718e8a0b1ce62a695e61d60a2fc52804018b4fc20caf6e7a99d88ed5af43f2e1f735fc8c19629382f0e53d010b1fca41ca1d4856cd59fadf329 WHIRLPOOL f77b0365e2f1180e0c43412dd0684e33699d7ec517b18af4694e3778cac74593a18de3843f214db5656d39c947a24839942472b5439b90c0c4391c275dd8e927
|
||||
DIST clojure-1.5.1.tar.gz 540021 SHA256 ee6cc9360e3545a35cdd6a9ae48b5f4034ef2eb2aaa19721df976078952a805b SHA512 8bc4b7098ec11a3cd4d077f32607c5d23118d5f84b88af69b2051c4dd5b17f28f092b77206fba87e23f1163d2d0f7a2c37b1b1ffa1bcfef3ad4c8f74695d71cd WHIRLPOOL e77d13a771903100a3fe6b0ade84375217c5b150498e727a7cef2d856a4004e640e0c95717fb67be6cae1fbab7611189a1f3999726f7bbec43968eef646dcb32
|
||||
|
@ -0,0 +1,33 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/clojure/clojure-1.5.1.ebuild,v 1.1 2013/03/14 16:42:57 mr_bones_ Exp $
|
||||
|
||||
EAPI=2
|
||||
JAVA_PKG_IUSE="source test"
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="Clojure is a dynamic programming language that targets the Java Virtual Machine"
|
||||
HOMEPAGE="http://clojure.org/"
|
||||
SRC_URI="https://github.com/clojure/clojure/tarball/${P} -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="EPL-1.0"
|
||||
SLOT="1.5"
|
||||
KEYWORDS="~amd64 ~x86 ~x86-linux"
|
||||
IUSE=""
|
||||
RESTRICT="test" # patches welcome to fix the test
|
||||
|
||||
RDEPEND=">=virtual/jre-1.5"
|
||||
DEPEND=">=virtual/jdk-1.5"
|
||||
|
||||
S=${WORKDIR}/clojure-clojure-22c7e75
|
||||
|
||||
src_test() {
|
||||
java-pkg-2_src_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_newjar ${P/_/-}.jar
|
||||
java-pkg_dolauncher ${PN}-${SLOT} --main clojure.main
|
||||
dodoc changes.md readme.txt || die
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST ferite-1.0.2.tar.gz 2039452 SHA256 c67fc25451070214334ba2b1ca3a9ea78f5ed79f322e62ebf8fc9462bfe0fb8e SHA512 34654ad9e54929e74167c87a79351ce7fee00d7d9f4f6084730c121570f5508b0bd0c1a0e7d5d8c58d558ad9ce8680ea6c1e90c676202eeb3e44d7cdb9fc6da3 WHIRLPOOL c45e8e68824024a38504bdd1b84fba0c5e3c922481be7090020c608bd9d736a1a34667a4de030816fcedf75c24599cff4edd3baae810c236b19d049596856c56
|
||||
DIST ferite-1.1.17.tar.gz 2174774 SHA256 d407f3db45482e17f41820fb029cf8b06e6104699b8d7340f3946f57d3f4e690 SHA512 475983b865fba492661e59b7470b7e46889f29ed8ba829b112354963fafcbed6ab4d4677579337c1c4ed730c6fe02897743f56edae335ceda6277da975d1098f WHIRLPOOL d563849e7b1ebe19657f319ecf970ad4987d10c28c29729da2868b10b7466159f5210e8bb7c065b8fccb7314ebc764dc8dbe97484c138c70ec066ecd12ebb005
|
||||
|
@ -1,77 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/ferite/ferite-1.0.2.ebuild,v 1.15 2012/11/26 22:11:54 ulm Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit autotools eutils multilib
|
||||
|
||||
DESCRIPTION="A clean, lightweight, object oriented scripting language"
|
||||
HOMEPAGE="http://www.ferite.org/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="1"
|
||||
KEYWORDS="~alpha amd64 ppc sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="
|
||||
>=dev-libs/libpcre-5
|
||||
dev-libs/libxml2"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
# use docsdir variable, install to DESTDIR
|
||||
sed \
|
||||
-e '/docsdir =/!s:$(prefix)/share/doc/ferite:$(DESTDIR)$(docsdir):' \
|
||||
-i docs/Makefile.am || die
|
||||
|
||||
# Install docs to /usr/share/doc/${PF}, not .../${PN}
|
||||
sed \
|
||||
-e "s:doc/ferite:doc/${PF}:" \
|
||||
-i Makefile.am \
|
||||
docs/Makefile.am \
|
||||
scripts/test/Makefile.am \
|
||||
scripts/test/rmi/Makefile.am || die
|
||||
|
||||
# Don't override the user's LDFLAGS
|
||||
sed \
|
||||
-e 's:_LDFLAGS = :&$(AM_LDFLAGS) :' \
|
||||
-e '/^LDFLAGS/s:^:AM_:' \
|
||||
-i modules/*/Makefile.am \
|
||||
libs/{aphex,triton}/src/Makefile.am \
|
||||
src/Makefile.am || die
|
||||
|
||||
# Only build/install shared libs for modules (can't use static anyway)
|
||||
sed -i -e '/_LDFLAGS/s:-module:& -shared:' modules/*/Makefile.am || die
|
||||
|
||||
# use LIBADD to ensure proper deps (fix parallel build)
|
||||
sed \
|
||||
-e '/^stream_la_LDFLAGS/s:-L\. -lferitestream::' \
|
||||
-e '/^stream_la_LIBADD/s:$:libferitestream.la:' \
|
||||
-i modules/stream/Makefile.am || die
|
||||
|
||||
# Make sure we install in $(get_libdir), not lib
|
||||
sed -i -e "s|\$prefix/lib|\$prefix/$(get_libdir)|g" configure.ac || die
|
||||
|
||||
# We copy feritedoc to ${T} in src_install, then patch it in-situ
|
||||
# note that this doesn't actually work right, currently - it still tries
|
||||
# to pull from / instead of ${D}, and I can't figure out how to fix that
|
||||
sed -i -e 's:$(prefix)/bin/:${T}/:' docs/Makefile.am || die
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf --libdir="${EPREFIX}/usr/$(get_libdir)"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cp tools/doc/feritedoc "${T}" || die
|
||||
sed -i -e '/^prefix/s:prefix:${T}:g' "${T}"/feritedoc || die
|
||||
sed -i -e '/^$prefix/s:$prefix/bin/ferite:'"${ED}"'usr/bin/ferite:' "${T}"/feritedoc || die
|
||||
sed -i -e 's:$library_path $library_path:${S}/tools/doc ${S}/tools/doc:' "${T}"/feritedoc || die
|
||||
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}${LD_LIBRARY_PATH:+:}${ED}usr/lib"
|
||||
emake DESTDIR="${D}" LIBDIR="${EPREFIX}"/usr/$(get_libdir) install
|
||||
prune_libtool_files
|
||||
}
|
@ -0,0 +1,903 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.3.23.ebuild,v 1.1 2013/03/15 08:55:15 olemarkus Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
|
||||
|
||||
SUHOSIN_VERSION=""
|
||||
FPM_VERSION="builtin"
|
||||
EXPECTED_TEST_FAILURES=""
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd"
|
||||
|
||||
function php_get_uri ()
|
||||
{
|
||||
case "${1}" in
|
||||
"php-pre")
|
||||
echo "http://downloads.php.net/johannes/${2}"
|
||||
;;
|
||||
"php")
|
||||
echo "http://www.php.net/distributions/${2}"
|
||||
;;
|
||||
"suhosin")
|
||||
echo "http://download.suhosin.org/${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/_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="0"
|
||||
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"
|
||||
|
||||
if [[ ${SUHOSIN_VERSION} == *-gentoo ]]; then
|
||||
# in some cases we use our own suhosin patch (very recent version,
|
||||
# patch conflicts, etc.)
|
||||
SUHOSIN_TYPE="olemarkus"
|
||||
else
|
||||
SUHOSIN_TYPE="suhosin"
|
||||
fi
|
||||
|
||||
if [[ -n ${SUHOSIN_VERSION} ]]; then
|
||||
SUHOSIN_PATCH="suhosin-patch-${SUHOSIN_VERSION}.patch";
|
||||
SUHOSIN_URI="$(php_get_uri ${SUHOSIN_TYPE} ${SUHOSIN_PATCH}.gz )"
|
||||
fi
|
||||
|
||||
SRC_URI="
|
||||
${PHP_SRC_URI}
|
||||
${PHP_PATCHSET_URI}"
|
||||
|
||||
if [[ -n ${SUHOSIN_VERSION} ]]; then
|
||||
SRC_URI="${SRC_URI}
|
||||
suhosin? ( ${SUHOSIN_URI} )"
|
||||
fi
|
||||
|
||||
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 doc
|
||||
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 mysqlnd mysqli nls
|
||||
oci8-instant-client odbc pcntl pdo +phar +posix postgres qdbm
|
||||
readline recode selinux +session sharedmem
|
||||
+simplexml snmp soap sockets spell sqlite2 sqlite ssl
|
||||
sybase-ct sysvipc tidy +tokenizer truetype unicode wddx
|
||||
+xml xmlreader xmlwriter xmlrpc xpm xsl zip zlib"
|
||||
|
||||
# Enable suhosin if available
|
||||
[[ -n $SUHOSIN_VERSION ]] && IUSE="${IUSE} suhosin"
|
||||
|
||||
DEPEND="!dev-lang/php:5
|
||||
>=app-admin/eselect-php-0.6.2
|
||||
>=dev-libs/libpcre-8.12[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
|
||||
media-libs/libpng
|
||||
sys-libs/zlib
|
||||
) )
|
||||
crypt? ( >=dev-libs/libmcrypt-2.4 )
|
||||
curl? ( >=net-misc/curl-7.10.5 )
|
||||
enchant? ( app-text/enchant )
|
||||
exif? ( !gd? (
|
||||
virtual/jpeg
|
||||
media-libs/libpng
|
||||
sys-libs/zlib
|
||||
) )
|
||||
firebird? ( dev-db/firebird )
|
||||
gd? ( virtual/jpeg media-libs/libpng 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 )
|
||||
sqlite2? ( =dev-db/sqlite-2* )
|
||||
sqlite? ( >=dev-db/sqlite-3.7.7.1 )
|
||||
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 media-libs/libpng 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
|
||||
media-libs/libpng sys-libs/zlib
|
||||
)
|
||||
xsl? ( 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 )
|
||||
xsl? ( 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}"
|
||||
|
||||
[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? ( =${CATEGORY}/${PN}-${SLOT}*[unicode] )"
|
||||
|
||||
RDEPEND="${RDEPEND} fpm? ( selinux? ( sec-policy/selinux-phpfpm ) )"
|
||||
|
||||
DEPEND="${DEPEND}
|
||||
sys-devel/flex
|
||||
>=sys-devel/m4-1.4.3
|
||||
>=sys-devel/libtool-1.5.18"
|
||||
|
||||
# They are in PDEPEND because we need PHP installed first!
|
||||
PDEPEND="doc? ( app-doc/php-docs )"
|
||||
|
||||
# No longer depend on the extension. The suhosin USE flag only installs the
|
||||
# patch
|
||||
#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
|
||||
|
||||
# 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}}"
|
||||
|
||||
# SAPI-specific handling
|
||||
if [[ "${sapi}" == "apache2" ]] ; then
|
||||
insinto "${APACHE_MODULES_CONFDIR#${EPREFIX}}"
|
||||
newins "${FILESDIR}/70_mod_php${PHP_MV}.conf-apache2" \
|
||||
"70_mod_php${PHP_MV}.conf"
|
||||
fi
|
||||
|
||||
if [[ "${sapi}" == "fpm" ]] ; then
|
||||
[[ -z ${PHP_FPM_INIT_VER} ]] && PHP_FPM_INIT_VER=3
|
||||
[[ -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
|
||||
dodir "/etc/init.d"
|
||||
insinto "/etc/init.d"
|
||||
newinitd "${FILESDIR}/php-fpm-r${PHP_FPM_INIT_VER}.init" "php-fpm"
|
||||
# dosym "${PHP_DESTDIR#${EPREFIX}}/bin/php-fpm" "/usr/bin/php-fpm"
|
||||
|
||||
# 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
|
||||
sed -re "s|^(PHP_EXTRA_VERSION=\").*(\")|\1${PHP_EXTRA_BRANDING}-pl${PR/r/}-gentoo\2|g" \
|
||||
-i configure.in || die "Unable to change PHP branding"
|
||||
|
||||
# Apply generic PHP patches
|
||||
EPATCH_SOURCE="${WORKDIR}/patches/generic" EPATCH_SUFFIX="patch" \
|
||||
EPATCH_FORCE="yes" \
|
||||
EPATCH_MULTI_MSG="Applying generic patches and fixes from upstream..." epatch
|
||||
|
||||
# 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
|
||||
|
||||
# Suhosin support
|
||||
if [[ -n $SUHOSIN_VERSION ]] ; then
|
||||
if use suhosin ; then
|
||||
epatch "${WORKDIR}/${SUHOSIN_PATCH}"
|
||||
fi
|
||||
else
|
||||
ewarn "Please note that this version of PHP does not yet come with a suhosin patch"
|
||||
fi
|
||||
|
||||
#Add user patches #357637
|
||||
epatch_user
|
||||
|
||||
# rebuild the whole autotools stuff as we are heavily patching it
|
||||
# (suhosin, fastbuild, ...)
|
||||
|
||||
# eaclocal doesn't accept --force, so we try to force re-generation
|
||||
# this way
|
||||
rm aclocal.m4
|
||||
|
||||
# work around divert() issues with newer autoconf, bug #281697
|
||||
if has_version '>=sys-devel/autoconf-2.64' ; then
|
||||
sed -i -r \
|
||||
-e 's:^((m4_)?divert)[(]([0-9]*)[)]:\1(600\3):' \
|
||||
$(grep -l divert $(find . -name '*.m4') configure.in) || die
|
||||
fi
|
||||
eautoreconf --force -W no-cross
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
addpredict /usr/share/snmp/mibs/.index
|
||||
addpredict /var/lib/net-snmp/mib_indexes
|
||||
|
||||
PHP_DESTDIR="/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 )
|
||||
$(use_enable calendar calendar )
|
||||
$(use_enable ctype ctype )
|
||||
$(use_with curl curl )
|
||||
$(use_with curlwrappers curlwrappers )
|
||||
$(use_enable xml dom )
|
||||
$(use_with enchant enchant /usr)
|
||||
$(use_enable exif exif )
|
||||
$(use_enable fileinfo fileinfo )
|
||||
$(use_enable filter filter )
|
||||
$(use_enable ftp ftp )
|
||||
$(use_with nls gettext )
|
||||
$(use_with gmp gmp )
|
||||
$(use_enable hash hash )
|
||||
$(use_with mhash mhash )
|
||||
$(use_with iconv iconv )
|
||||
$(use_enable intl intl )
|
||||
$(use_enable ipv6 ipv6 )
|
||||
$(use_enable json json )
|
||||
$(use_with kerberos kerberos /usr)
|
||||
$(use_enable xml libxml )
|
||||
$(use_enable unicode mbstring )
|
||||
$(use_with crypt mcrypt )
|
||||
$(use_with mssql mssql )
|
||||
$(use_with unicode onig /usr)
|
||||
$(use_with ssl openssl )
|
||||
$(use_with ssl openssl-dir /usr)
|
||||
$(use_enable pcntl pcntl )
|
||||
$(use_enable phar phar )
|
||||
$(use_enable pdo pdo )
|
||||
$(use_with postgres pgsql )
|
||||
$(use_enable posix posix )
|
||||
$(use_with spell pspell )
|
||||
$(use_with recode recode )
|
||||
$(use_enable simplexml simplexml )
|
||||
$(use_enable sharedmem shmop )
|
||||
$(use_with snmp snmp )
|
||||
$(use_enable soap soap )
|
||||
$(use_enable sockets sockets )"
|
||||
if version_is_at_least 5.3.16-r2; then
|
||||
my_conf+=" $(use_with sqlite2 sqlite /usr) "
|
||||
use sqlite2 && my_conf+=" $(use_enable unicode sqlite-utf8)"
|
||||
else
|
||||
my_conf+=" $(use_with sqlite sqlite /usr) "
|
||||
use sqlite && my_conf+=" $(use_enable unicode sqlite-utf8)"
|
||||
fi
|
||||
my_conf+="
|
||||
$(use_with sqlite sqlite3 /usr)
|
||||
$(use_with sybase-ct sybase-ct /usr)
|
||||
$(use_enable sysvipc sysvmsg )
|
||||
$(use_enable sysvipc sysvsem )
|
||||
$(use_enable sysvipc sysvshm )
|
||||
$(use_with tidy tidy )
|
||||
$(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 xsl xsl )
|
||||
$(use_enable zip zip )
|
||||
$(use_with zlib zlib )
|
||||
$(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 )
|
||||
$(use_enable flatfile flatfile )
|
||||
$(use_with gdbm gdbm )
|
||||
$(use_enable inifile inifile )
|
||||
$(use_with qdbm qdbm )"
|
||||
|
||||
# Support for the GD graphics library
|
||||
my_conf+="
|
||||
$(use_with truetype freetype-dir /usr)
|
||||
$(use_with truetype t1lib /usr)
|
||||
$(use_enable cjk gd-jis-conv )
|
||||
$(use_with gd jpeg-dir /usr)
|
||||
$(use_with gd png-dir /usr)
|
||||
$(use_with xpm xpm-dir /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 )
|
||||
$(use_with ssl imap-ssl )"
|
||||
fi
|
||||
|
||||
# Interbase/firebird support
|
||||
|
||||
if use firebird ; then
|
||||
my_conf+="
|
||||
$(use_with firebird interbase /usr)"
|
||||
fi
|
||||
|
||||
# LDAP support
|
||||
if use ldap ; then
|
||||
my_conf+="
|
||||
$(use_with ldap ldap )
|
||||
$(use_with ldap-sasl ldap-sasl )"
|
||||
fi
|
||||
|
||||
# MySQL support
|
||||
if use mysql ; then
|
||||
if use mysqlnd ; then
|
||||
my_conf+="
|
||||
$(use_with mysqlnd mysql mysqlnd)"
|
||||
else
|
||||
my_conf+="
|
||||
$(use_with mysql mysql /usr)"
|
||||
fi
|
||||
my_conf+="
|
||||
$(use_with mysql mysql-sock /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 /usr/bin/mysql_config)"
|
||||
fi
|
||||
|
||||
# ODBC support
|
||||
if use odbc ; then
|
||||
my_conf+="
|
||||
$(use_with odbc unixODBC /usr)"
|
||||
fi
|
||||
|
||||
if use iodbc ; then
|
||||
my_conf+="
|
||||
$(use_with iodbc iodbc /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 mysql pdo-mysql mysqlnd)"
|
||||
else
|
||||
my_conf+="
|
||||
$(use_with mysql pdo-mysql /usr)"
|
||||
fi
|
||||
my_conf+="
|
||||
$(use_with postgres pdo-pgsql )
|
||||
$(use_with sqlite pdo-sqlite /usr)
|
||||
$(use_with odbc pdo-odbc unixODBC,/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 )
|
||||
$(use_with libedit libedit )"
|
||||
|
||||
# Session support
|
||||
if use session ; then
|
||||
my_conf+="
|
||||
$(use_with sharedmem mm )"
|
||||
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=/usr --with-pcre-dir=/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=/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/mibs/.index
|
||||
|
||||
SAPI_DIR="${WORKDIR}/sapis"
|
||||
|
||||
for sapi in ${SAPIS} ; do
|
||||
use "${sapi}" || continue
|
||||
|
||||
php_sapi_build "${sapi}"
|
||||
php_sapi_copy "${sapi}"
|
||||
done
|
||||
}
|
||||
|
||||
php_sapi_build() {
|
||||
mkdir -p "${SAPI_DIR}/$1"
|
||||
|
||||
cd "${WORKDIR}/sapis-build/$1"
|
||||
emake || die "emake failed"
|
||||
}
|
||||
|
||||
php_sapi_copy() {
|
||||
local sapi="$1"
|
||||
local source=""
|
||||
|
||||
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}.so"
|
||||
;;
|
||||
|
||||
apache2)
|
||||
# apache2 is a special case; the necessary files
|
||||
# (yes, multiple) are copied by make install, not
|
||||
# by the ebuild; that's the reason, why apache2 has
|
||||
# to be the last sapi
|
||||
emake INSTALL_ROOT="${SAPI_DIR}/${sapi}/" install-sapi
|
||||
;;
|
||||
|
||||
*)
|
||||
die "unhandled sapi in php_sapi_copy"
|
||||
;;
|
||||
esac
|
||||
|
||||
if [[ "${source}" ]] ; then
|
||||
cp "$source" "${SAPI_DIR}/$sapi" || die "Unable to copy ${sapi} SAPI"
|
||||
fi
|
||||
}
|
||||
|
||||
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
|
||||
into "${PHP_DESTDIR#${EPREFIX}}"
|
||||
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"
|
||||
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
|
||||
|
||||
# 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"
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
#Do not use eblit for this because it will not get sourced when installing from
|
||||
#binary package (bug #380845)
|
||||
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 /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 /etc/make.conf"
|
||||
ewarn "Both versions of php.ini can be found in /usr/share/doc/${PF}"
|
||||
|
||||
# check for not yet migrated old style config dirs
|
||||
ls "${ROOT}"/etc/php/*-php5 &>/dev/null
|
||||
if [[ $? -eq 0 ]]; then
|
||||
ewarn "Make sure to migrate your config files, starting with php-5.3.4 and php-5.2.16 config"
|
||||
ewarn "files are now kept at ${ROOT}etc/php/{apache2,cli,cgi,fpm}-php5.x"
|
||||
fi
|
||||
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
|
||||
|
||||
if ( [[ -z SUHOSIN_VERSION ]] && use suhosin && version_is_at_least 5.3.6_rc1 ) ; then
|
||||
ewarn "The suhosin USE flag now only installs the suhosin patch!"
|
||||
ewarn "If you want the suhosin extension, make sure you install"
|
||||
ewarn " dev-php5/suhosin"
|
||||
ewarn
|
||||
fi
|
||||
}
|
@ -0,0 +1,854 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.4.13.ebuild,v 1.1 2013/03/15 08:55:15 olemarkus Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
|
||||
|
||||
SUHOSIN_VERSION=""
|
||||
FPM_VERSION="builtin"
|
||||
EXPECTED_TEST_FAILURES=""
|
||||
|
||||
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}"
|
||||
;;
|
||||
"suhosin")
|
||||
echo "http://download.suhosin.org/${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/_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"
|
||||
|
||||
if [[ ${SUHOSIN_VERSION} == *-gentoo ]]; then
|
||||
# in some cases we use our own suhosin patch (very recent version,
|
||||
# patch conflicts, etc.)
|
||||
SUHOSIN_TYPE="olemarkus"
|
||||
else
|
||||
SUHOSIN_TYPE="suhosin"
|
||||
fi
|
||||
|
||||
if [[ -n ${SUHOSIN_VERSION} ]]; then
|
||||
SUHOSIN_PATCH="suhosin-patch-${SUHOSIN_VERSION}.patch";
|
||||
SUHOSIN_URI="$(php_get_uri ${SUHOSIN_TYPE} ${SUHOSIN_PATCH}.gz )"
|
||||
fi
|
||||
|
||||
SRC_URI="
|
||||
${PHP_SRC_URI}
|
||||
${PHP_PATCHSET_URI}"
|
||||
|
||||
if [[ -n ${SUHOSIN_VERSION} ]]; then
|
||||
SRC_URI="${SRC_URI}
|
||||
suhosin? ( ${SUHOSIN_URI} )"
|
||||
fi
|
||||
|
||||
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 doc
|
||||
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 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 tidy +tokenizer truetype unicode wddx
|
||||
+xml xmlreader xmlwriter xmlrpc xpm xsl zip zlib"
|
||||
|
||||
# Enable suhosin if available
|
||||
[[ -n $SUHOSIN_VERSION ]] && IUSE="${IUSE} suhosin"
|
||||
|
||||
DEPEND="
|
||||
>=app-admin/eselect-php-0.6.2
|
||||
>=dev-libs/libpcre-8.12[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
|
||||
media-libs/libpng
|
||||
sys-libs/zlib
|
||||
) )
|
||||
crypt? ( >=dev-libs/libmcrypt-2.4 )
|
||||
curl? ( >=net-misc/curl-7.10.5 )
|
||||
enchant? ( app-text/enchant )
|
||||
exif? ( !gd? (
|
||||
virtual/jpeg
|
||||
media-libs/libpng
|
||||
sys-libs/zlib
|
||||
) )
|
||||
firebird? ( dev-db/firebird )
|
||||
gd? ( virtual/jpeg media-libs/libpng 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 media-libs/libpng 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
|
||||
media-libs/libpng sys-libs/zlib
|
||||
)
|
||||
xsl? ( 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 )
|
||||
xsl? ( 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}"
|
||||
|
||||
[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
|
||||
=${CATEGORY}/${PN}-${SLOT}*[unicode] )"
|
||||
|
||||
RDEPEND="${RDEPEND} fpm? ( selinux? ( sec-policy/selinux-phpfpm ) )"
|
||||
|
||||
DEPEND="${DEPEND}
|
||||
sys-devel/flex
|
||||
>=sys-devel/m4-1.4.3
|
||||
>=sys-devel/libtool-1.5.18"
|
||||
|
||||
# They are in PDEPEND because we need PHP installed first!
|
||||
PDEPEND="doc? ( app-doc/php-docs )"
|
||||
|
||||
# No longer depend on the extension. The suhosin USE flag only installs the
|
||||
# patch
|
||||
#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
|
||||
|
||||
# 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}}"
|
||||
|
||||
# SAPI-specific handling
|
||||
if [[ "${sapi}" == "apache2" ]] ; then
|
||||
insinto "${APACHE_MODULES_CONFDIR#${EPREFIX}}"
|
||||
newins "${FILESDIR}/70_mod_php${PHP_MV}.conf-apache2" \
|
||||
"70_mod_php${PHP_MV}.conf"
|
||||
fi
|
||||
|
||||
if [[ "${sapi}" == "fpm" ]] ; then
|
||||
[[ -z ${PHP_FPM_INIT_VER} ]] && PHP_FPM_INIT_VER=3
|
||||
[[ -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
|
||||
dodir "/etc/init.d"
|
||||
insinto "/etc/init.d"
|
||||
newinitd "${FILESDIR}/php-fpm-r${PHP_FPM_INIT_VER}.init" "php-fpm"
|
||||
# dosym "${PHP_DESTDIR#${EPREFIX}}/bin/php-fpm" "/usr/bin/php-fpm"
|
||||
|
||||
# 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
|
||||
local ver=$(get_version_component_range 4)
|
||||
sed -re "s|^(PHP_EXTRA_VERSION=\").*(\")|\1${PHP_EXTRA_BRANDING}-${ver}-pl${PR/r/}-gentoo\2|g" \
|
||||
-i configure.in || die "Unable to change PHP branding"
|
||||
|
||||
# Apply generic PHP patches
|
||||
EPATCH_SOURCE="${WORKDIR}/patches/generic" EPATCH_SUFFIX="patch" \
|
||||
EPATCH_FORCE="yes" \
|
||||
EPATCH_MULTI_MSG="Applying generic patches and fixes from upstream..." epatch
|
||||
|
||||
# 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
|
||||
|
||||
# Suhosin support
|
||||
if [[ -n $SUHOSIN_VERSION ]] ; then
|
||||
if use suhosin ; then
|
||||
epatch "${WORKDIR}/${SUHOSIN_PATCH}"
|
||||
fi
|
||||
else
|
||||
ewarn "Please note that this version of PHP does not yet come with a suhosin patch"
|
||||
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_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 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 xsl 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
|
||||
into "${PHP_DESTDIR#${EPREFIX}}"
|
||||
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"
|
||||
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
|
||||
|
||||
# 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"
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
if ( [[ -z SUHOSIN_VERSION ]] && use suhosin && version_is_at_least 5.3.6_rc1 ) ; then
|
||||
ewarn
|
||||
ewarn "The suhosin USE flag now only installs the suhosin patch!"
|
||||
ewarn "If you want the suhosin extension, make sure you install"
|
||||
ewarn " dev-php/suhosin"
|
||||
ewarn
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
local sapi
|
||||
local slot
|
||||
for sapi in ${SAPIS}; do
|
||||
slot=$(eselect php show $sapi 2> /dev/null)
|
||||
slot=${slot/php/}
|
||||
if [[ $slot == $SLOT ]]; then
|
||||
ewarn "You have removed the active version of the $sapi SAPI"
|
||||
ewarn "Fix the issue using \`eselect php\`"
|
||||
fi
|
||||
done
|
||||
}
|
@ -0,0 +1,866 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/php/php-5.5.0_alpha6.ebuild,v 1.1 2013/03/15 08:55:15 olemarkus Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils autotools flag-o-matic versionator depend.apache apache-module db-use libtool
|
||||
|
||||
SUHOSIN_VERSION=""
|
||||
FPM_VERSION="builtin"
|
||||
EXPECTED_TEST_FAILURES=""
|
||||
|
||||
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/dsp/${2}"
|
||||
;;
|
||||
"php")
|
||||
echo "http://www.php.net/distributions/${2}"
|
||||
;;
|
||||
"suhosin")
|
||||
echo "http://download.suhosin.org/${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/_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="0"
|
||||
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"
|
||||
|
||||
if [[ ${SUHOSIN_VERSION} == *-gentoo ]]; then
|
||||
# in some cases we use our own suhosin patch (very recent version,
|
||||
# patch conflicts, etc.)
|
||||
SUHOSIN_TYPE="olemarkus"
|
||||
else
|
||||
SUHOSIN_TYPE="suhosin"
|
||||
fi
|
||||
|
||||
if [[ -n ${SUHOSIN_VERSION} ]]; then
|
||||
SUHOSIN_PATCH="suhosin-patch-${SUHOSIN_VERSION}.patch";
|
||||
SUHOSIN_URI="$(php_get_uri ${SUHOSIN_TYPE} ${SUHOSIN_PATCH}.gz )"
|
||||
fi
|
||||
|
||||
SRC_URI="
|
||||
${PHP_SRC_URI}
|
||||
${PHP_PATCHSET_URI}"
|
||||
|
||||
if [[ -n ${SUHOSIN_VERSION} ]]; then
|
||||
SRC_URI="${SRC_URI}
|
||||
suhosin? ( ${SUHOSIN_URI} )"
|
||||
fi
|
||||
|
||||
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 doc
|
||||
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 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 tidy +tokenizer truetype unicode wddx
|
||||
+xml xmlreader xmlwriter xmlrpc xpm xsl zip zlib"
|
||||
|
||||
# Enable suhosin if available
|
||||
[[ -n $SUHOSIN_VERSION ]] && IUSE="${IUSE} suhosin"
|
||||
|
||||
DEPEND="
|
||||
>=app-admin/eselect-php-0.6.2
|
||||
>=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
|
||||
media-libs/libpng
|
||||
sys-libs/zlib
|
||||
) )
|
||||
crypt? ( >=dev-libs/libmcrypt-2.4 )
|
||||
curl? ( >=net-misc/curl-7.10.5 )
|
||||
enchant? ( app-text/enchant )
|
||||
exif? ( !gd? (
|
||||
virtual/jpeg
|
||||
media-libs/libpng
|
||||
sys-libs/zlib
|
||||
) )
|
||||
firebird? ( dev-db/firebird )
|
||||
gd? ( virtual/jpeg media-libs/libpng 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 media-libs/libpng 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
|
||||
media-libs/libpng sys-libs/zlib
|
||||
)
|
||||
xsl? ( 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 )
|
||||
xsl? ( 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}"
|
||||
|
||||
[[ -n $SUHOSIN_VERSION ]] && RDEPEND="${RDEPEND} suhosin? (
|
||||
=${CATEGORY}/${PN}-${SLOT}*[unicode] )"
|
||||
|
||||
RDEPEND="${RDEPEND} fpm? ( selinux? ( sec-policy/selinux-phpfpm ) )"
|
||||
|
||||
DEPEND="${DEPEND}
|
||||
sys-devel/flex
|
||||
>=sys-devel/m4-1.4.3
|
||||
>=sys-devel/libtool-1.5.18"
|
||||
|
||||
# They are in PDEPEND because we need PHP installed first!
|
||||
PDEPEND="doc? ( app-doc/php-docs )"
|
||||
|
||||
# No longer depend on the extension. The suhosin USE flag only installs the
|
||||
# patch
|
||||
#[[ -n $SUHOSIN_VERSION ]] && PDEPEND="${PDEPEND} suhosin? ( dev-php${PHP_MV}/suhosin )"
|
||||
|
||||
# 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}}"
|
||||
|
||||
# SAPI-specific handling
|
||||
if [[ "${sapi}" == "apache2" ]] ; then
|
||||
insinto "${APACHE_MODULES_CONFDIR#${EPREFIX}}"
|
||||
newins "${FILESDIR}/70_mod_php${PHP_MV}.conf-apache2" \
|
||||
"70_mod_php${PHP_MV}.conf"
|
||||
fi
|
||||
|
||||
if [[ "${sapi}" == "fpm" ]] ; then
|
||||
[[ -z ${PHP_FPM_INIT_VER} ]] && PHP_FPM_INIT_VER=3
|
||||
[[ -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
|
||||
dodir "/etc/init.d"
|
||||
insinto "/etc/init.d"
|
||||
newinitd "${FILESDIR}/php-fpm-r${PHP_FPM_INIT_VER}.init" "php-fpm"
|
||||
# dosym "${PHP_DESTDIR#${EPREFIX}}/bin/php-fpm" "/usr/bin/php-fpm"
|
||||
|
||||
# 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
|
||||
if [[ ${SLOT} == '5.2' ]]; then
|
||||
newdoc php.ini-dist php.ini-development
|
||||
newdoc php.ini-recommended php.ini-production
|
||||
fi
|
||||
|
||||
if [[ ${SLOT} == '5.3' ]]; then
|
||||
dodoc php.ini-development
|
||||
dodoc php.ini-production
|
||||
fi
|
||||
|
||||
if [[ ${SLOT} == '5.4' ]]; then
|
||||
dodoc php.ini-development
|
||||
dodoc php.ini-production
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
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
|
||||
local ver=$(get_version_component_range 3)
|
||||
sed -re "s|^(PHP_EXTRA_VERSION=\").*(\")|\1-pl${PR/r/}-gentoo\2|g" \
|
||||
-i configure.in || die "Unable to change PHP branding"
|
||||
|
||||
# Apply generic PHP patches
|
||||
EPATCH_SOURCE="${WORKDIR}/patches/generic" EPATCH_SUFFIX="patch" \
|
||||
EPATCH_FORCE="yes" \
|
||||
EPATCH_MULTI_MSG="Applying generic patches and fixes from upstream..." epatch
|
||||
|
||||
# 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
|
||||
|
||||
# Suhosin support
|
||||
if [[ -n $SUHOSIN_VERSION ]] ; then
|
||||
if use suhosin ; then
|
||||
epatch "${WORKDIR}/${SUHOSIN_PATCH}"
|
||||
fi
|
||||
else
|
||||
ewarn "Please note that this version of PHP does not yet come with a suhosin patch"
|
||||
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_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 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 xsl 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 mysql 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
|
||||
|
||||
#Build shared modules such as libphp5.so with pic support
|
||||
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
|
||||
into "${PHP_DESTDIR#${EPREFIX}}"
|
||||
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"
|
||||
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
|
||||
|
||||
# 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"
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
if ( [[ -z SUHOSIN_VERSION ]] && use suhosin && version_is_at_least 5.3.6_rc1 ) ; then
|
||||
ewarn
|
||||
ewarn "The suhosin USE flag now only installs the suhosin patch!"
|
||||
ewarn "If you want the suhosin extension, make sure you install"
|
||||
ewarn " dev-php/suhosin"
|
||||
ewarn
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
local sapi
|
||||
local slot
|
||||
for sapi in ${SAPIS}; do
|
||||
slot=$(eselect php show $sapi 2> /dev/null)
|
||||
slot=${slot/php/}
|
||||
if [[ $slot == $SLOT ]]; then
|
||||
ewarn "You have removed the active version of the $sapi SAPI"
|
||||
ewarn "Fix the issue using \`eselect php\`"
|
||||
fi
|
||||
done
|
||||
}
|
@ -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.10.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,3 +1,2 @@
|
||||
DIST 389-adminutil-1.1.10.tar.bz2 307582 SHA256 d1cccc6439439716a48ec13b676122457de10c29556640eac0ed096302229428 SHA512 3e2b38451ac32c8fd141d5e21094863bbfa5fa0c5f3897448b03d1bf5503c3b5e5fd7c270c1b578a591783eeb13f274abdafd5caa68595475acc7014bbf0f628 WHIRLPOOL f2c5e7fe753a96078896d4c305db0970cc2857f6993c6608d6c9a251b94eef8b51ca2555ef8e2bc6d058a0bce076ad57e1f7939d51b67d63a91de565824d4a9f
|
||||
DIST 389-adminutil-1.1.13.tar.bz2 309981 SHA256 942f3c01a225dbb5c5b5039df58e224e5eead5df8f9be1cf0807d319d196bbae SHA512 37c374562891f4158b1eeb1c10c7eb0873e666d5b7a54500ce25522c055b570f8bdc4f29a2f6268ca304c99af0555f31745f8bdcff5be964a6828c32a23e138b WHIRLPOOL 9ff76178e3764924858e7bb842003cfc21cba371a789938a251a733128641b17d86095c7944d3f15f128fda4000b62d83087eedaa9c47e4ccfd3bfb39897c5fb
|
||||
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
|
||||
|
@ -0,0 +1,11 @@
|
||||
--- scripts/Kbuild.install.orig 2013-03-14 09:33:32.429919267 -0400
|
||||
+++ scripts/Kbuild.install 2013-03-14 09:33:55.443820061 -0400
|
||||
@@ -95,7 +95,7 @@ header:
|
||||
$(Q)mkdir -p $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include
|
||||
$(Q)mkdir -p $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)lib
|
||||
$(Q)mkdir -p $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)bin
|
||||
- $(Q)make -C $(KLIBCKERNELSRC) ARCH=$(KLIBCARCH) INSTALL_HDR_PATH=$(INSTALLROOT)$(INSTALLDIR)/$(KCROSS) headers_install
|
||||
+ $(Q)$(MAKE) -C $(KLIBCKERNELSRC) ARCH=$(KLIBCARCH) INSTALL_HDR_PATH=$(INSTALLROOT)$(INSTALLDIR)/$(KCROSS) headers_install
|
||||
$(Q)cp -rf usr/include/. $(INSTALLROOT)$(INSTALLDIR)/$(KCROSS)include/.
|
||||
$(Q)$(install-data) $(srctree)/klcc/klcc.1 $(INSTALLROOT)$(mandir)/man1/$(KCROSS)klcc.1
|
||||
$(Q)$(install-bin) $(objtree)/klcc/$(KCROSS)klcc $(INSTALLROOT)$(bindir)
|
@ -1 +1,2 @@
|
||||
DIST mozldap-6.0.6.tar.gz 708821 SHA256 3a7b94c6698e2acb91a577decee5eb6103f183d6b9833abb169124818ba80d06 SHA512 a3f63b248201c521d962fb48a5374732de23c04920009bf108aabbc71efb83995da04401f095dff58196b5749f8e4cafb2e2b915f1927f7695cb9446e45033df WHIRLPOOL 57991fe8c406a0f5c4d6dc1856ef8f485f8831f5ac3a81c2366a8e03fb9e62a7697f4aed95e62e7fcf308707f2363400dfcc961cff640ef530dbb53f8edd982c
|
||||
DIST mozldap-6.0.7.tar.gz 674789 SHA256 ec9884b56b31961d287190323764af7f3b00ad2658d5f3005fa8dc71c637e54c SHA512 bad8005941acaf98f53a60c6c8b697a680e8efe736817b063853ff1f07f052d3257ba7c28f502e37e0c2544fe00d24d31787ccbf892deb43c5481d49ed434b71 WHIRLPOOL 30dc35de03fb99d5f2ae65b10922ee3ec05246ee77f35a37cb80811ae29552d7a347fa13c5ce0a8cb3613fd30584f3fdd6a2cadcfc7cc974a56986bf633767be
|
||||
|
@ -0,0 +1,137 @@
|
||||
diff -Nurp c-sdk.orig/configure.in c-sdk/configure.in
|
||||
--- c-sdk.orig/configure.in 2011-01-06 12:05:39.000000000 +0000
|
||||
+++ c-sdk/configure.in 2013-03-14 18:01:19.647224070 +0000
|
||||
@@ -42,7 +42,7 @@ dnl ***** END LICENSE BLOCK *****
|
||||
AC_PREREQ(2.12)
|
||||
AC_INIT(ldap/include/ldap.h)
|
||||
|
||||
-AC_CONFIG_AUX_DIR(${srcdir}/config/autoconf)
|
||||
+AC_CONFIG_AUX_DIR(./config/autoconf)
|
||||
AC_CANONICAL_SYSTEM
|
||||
|
||||
dnl ========================================================
|
||||
@@ -86,24 +86,6 @@ DLLFLAGS="${DLLFLAGS=}"
|
||||
HOST_CFLAGS="${HOST_CFLAGS=}"
|
||||
HOST_LDFLAGS="${HOST_LDFLAGS=}"
|
||||
|
||||
-case "$target" in
|
||||
-*-cygwin*|*-mingw*|*-msvc*|*-mks*)
|
||||
- # Check to see if we are really running in a msvc environemnt
|
||||
- _WIN32_MSVC=
|
||||
- AC_CHECK_PROGS(CC, cl)
|
||||
- if test "$CC" = "cl"; then
|
||||
- echo 'main() { return 0; }' > dummy.c
|
||||
- ${CC} -o dummy dummy.c >/dev/null 2>&1
|
||||
- if test $? = 0; then
|
||||
- _WIN32_MSVC=1
|
||||
- CXX=$CC
|
||||
- else
|
||||
- AC_MSG_WARN([$(CC) test failed. Using normal feature tests])
|
||||
- fi
|
||||
- rm -f dummy dummy.o dummy.obj dummy.exe dummy.c
|
||||
- fi
|
||||
- ;;
|
||||
-esac
|
||||
|
||||
if test -n "$_WIN32_MSVC"; then
|
||||
SKIP_PATH_CHECKS=1
|
||||
@@ -152,18 +134,6 @@ AC_ARG_WITH(mozilla,
|
||||
AC_DEFINE(MOZILLA_CLIENT)
|
||||
fi])
|
||||
|
||||
-AC_ARG_ENABLE(optimize,
|
||||
- [ --enable-optimize(=val) Enable code optimizations (val, ie. -O2) ],
|
||||
- [ if test "$enableval" != "no"; then
|
||||
- MOZ_OPTIMIZE=1
|
||||
- if test -n "$enableval" && test "$enableval" != "yes"; then
|
||||
- _OPTIMIZE_FLAGS=`echo $enableval | sed -e 's|\\\ | |g'`
|
||||
- _SAVE_OPTIMIZE_FLAGS=$_OPTIMIZE_FLAGS
|
||||
- fi
|
||||
- else
|
||||
- MOZ_OPTIMIZE=
|
||||
- fi ])
|
||||
-
|
||||
AC_ARG_ENABLE(debug,
|
||||
[ --enable-debug(=val) Enable debugging (debug flags val)],
|
||||
[ if test "$enableval" != "no"; then
|
||||
@@ -176,26 +146,6 @@ AC_ARG_ENABLE(debug,
|
||||
MOZ_DEBUG=
|
||||
fi])
|
||||
|
||||
-AC_ARG_ENABLE(win32-target,
|
||||
- [ --enable-win32-target=\$t
|
||||
- Specify win32 flavor. (WIN95 or WINNT)],
|
||||
- OS_TARGET=`echo $enableval | tr a-z A-Z`,
|
||||
- OS_TARGET=)
|
||||
-
|
||||
-AC_ARG_ENABLE(debug-rtl,
|
||||
- [ --enable-debug-rtl Use the MSVC debug runtime library],
|
||||
- [ if test "$enableval" = "yes"; then
|
||||
- USE_DEBUG_RTL=1
|
||||
- fi ])
|
||||
-
|
||||
-AC_ARG_ENABLE(n32,
|
||||
- [ --enable-n32 Enable n32 ABI support (IRIX only)],
|
||||
- [ if test "$enableval" = "yes"; then
|
||||
- USE_N32=1
|
||||
- else if test "$enableval" = "no"; then
|
||||
- USE_N32=
|
||||
- fi
|
||||
- fi ])
|
||||
|
||||
AC_ARG_ENABLE(64bit,
|
||||
[ --enable-64bit Enable 64-bit support (on certain platforms)],
|
||||
@@ -261,10 +211,6 @@ dnl svrcore implies both nspr and nss
|
||||
if test -z "$SVRCORE_CFLAGS" -o -z "$SVRCORE_LIBS" ; then
|
||||
if test -n "$_SYSTEM_SVRCORE"; then
|
||||
AM_PATH_SVRCORE(4.0.1, [MOZ_NATIVE_SVRCORE=1], [MOZ_NATIVE_SVRCORE=])
|
||||
- else
|
||||
- dnl see if we are being built in the same build tree as svrcore
|
||||
- AM_PATH_INTREE_SVRCORE(../../dist)
|
||||
- dnl failing that, see if we can find svrcore-config or pkg-config svrcore
|
||||
if test -z "$SVRCORE_CFLAGS" -o -z "$SVRCORE_LIBS"; then
|
||||
AM_PATH_SVRCORE(4.0.1, [MOZ_NATIVE_SVRCORE=1], [MOZ_NATIVE_SVRCORE=])
|
||||
fi
|
||||
@@ -294,9 +240,6 @@ dnl nss requires nspr
|
||||
_SYSTEM_NSS=no
|
||||
fi], _SYSTEM_NSS= )
|
||||
|
||||
-if test "$_WIN32_MSVC"; then
|
||||
- _SYSTEM_NSS=
|
||||
-fi
|
||||
|
||||
dnl first, see if user has specified explicit NSPR include and lib paths,
|
||||
dnl of if the user has explicitly disabled the use of nss
|
||||
@@ -308,10 +251,6 @@ dnl next, see if user explicitly said to
|
||||
if test -n "$USE_NSS" -a -z "$NSS_CFLAGS" -a -z "$NSS_LIBS" ; then
|
||||
dnl nss requires nspr
|
||||
no_nspr=no
|
||||
- if test -z "$_SYSTEM_NSS" -o "$_SYSTEM_NSS" = "no" ; then
|
||||
-dnl see if we are being built in the same build tree as nss
|
||||
- AM_PATH_INTREE_NSS(../../dist)
|
||||
- fi
|
||||
dnl failing that, see if we can find nss-config or pkg-config nss
|
||||
if test -z "$NSS_CFLAGS" -a "$_SYSTEM_NSS" != "no" ; then
|
||||
AM_PATH_NSS(3.9.0, [MOZ_NATIVE_NSS=1], [MOZ_NATIVE_NSS=])
|
||||
@@ -348,10 +287,6 @@ fi
|
||||
|
||||
dnl next, look for in-tree nspr if user did not specify explicit system nspr
|
||||
if test "$no_nspr" = "no" -a -z "$NSPR_CFLAGS" -a -z "$NSPR_LIBS" ; then
|
||||
- if test -z "$_SYSTEM_NSPR" -o "$_SYSTEM_NSPR" = "no" ; then
|
||||
-dnl see if we are being built in the same build tree as nspr
|
||||
- AM_PATH_INTREE_NSPR(../../dist)
|
||||
- fi
|
||||
dnl failing that, see if we can find nspr-config or pkg-config nspr
|
||||
if test -z "$NSPR_CFLAGS" -a "$_SYSTEM_NSPR" != "no" ; then
|
||||
AM_PATH_NSPR(4.0.0, [MOZ_NATIVE_NSPR=1], [MOZ_NATIVE_NSPR=])
|
||||
@@ -1520,9 +1455,7 @@ tools are selected during the Xcode/Deve
|
||||
;;
|
||||
|
||||
*-linux*)
|
||||
- if test -z "$USE_NSPR_THREADS"; then
|
||||
- USE_PTHREADS=1
|
||||
- fi
|
||||
+ USE_PTHREADS=1
|
||||
AC_DEFINE(XP_UNIX)
|
||||
AC_DEFINE(_POSIX_SOURCE)
|
||||
AC_DEFINE(_BSD_SOURCE)
|
@ -0,0 +1,119 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/mozldap/mozldap-6.0.7.ebuild,v 1.1 2013/03/14 17:08:10 lxnay Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
WANT_AUTOCONF="2.1"
|
||||
|
||||
inherit eutils multilib versionator autotools
|
||||
|
||||
DESCRIPTION="Mozilla LDAP C SDK"
|
||||
HOMEPAGE="http://wiki.mozilla.org/LDAP_C_SDK"
|
||||
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/directory/c-sdk/releases/v${PV}/src/${P}.tar.gz"
|
||||
|
||||
LICENSE="MPL-1.1 GPL-2 LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="ipv6 debug +sasl"
|
||||
|
||||
COMMON_DEPEND=">=dev-libs/nss-3.11.4
|
||||
>=dev-libs/nspr-4.0.1
|
||||
>=dev-libs/svrcore-4.0.0
|
||||
sasl? ( dev-libs/cyrus-sasl )"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
virtual/pkgconfig"
|
||||
RDEPEND="${COMMON_DEPEND}"
|
||||
|
||||
S="${WORKDIR}/${P}/c-sdk"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-6.0.4-pkgconfig.patch
|
||||
epatch "${FILESDIR}"/${P}-configure.in.patch
|
||||
epatch "${FILESDIR}"/nss-m4.patch
|
||||
epatch "${FILESDIR}"/nspr-m4.patch
|
||||
epatch "${FILESDIR}"/${PN}-6.0.6-ldflags.patch
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf="--libdir=/usr/$(get_libdir)/mozldap"
|
||||
econf $(use_enable debug) \
|
||||
$(use_enable ipv6) \
|
||||
$(use_enable amd64 64bit) \
|
||||
$(use_with sasl) \
|
||||
--with-svrcore-inc=/usr/include/svrcore \
|
||||
--with-svrcore-lib=/usr/$(get_libdir)/svrcore \
|
||||
--enable-clu \
|
||||
--enable-optimize \
|
||||
${myconf} || die "econf failed"
|
||||
}
|
||||
|
||||
src_install () {
|
||||
# Their build system is royally fucked, as usual
|
||||
sed -e "s,%libdir%,\$\{exec_prefix\}/$(get_libdir)/${PN},g" \
|
||||
-e "s,%prefix%,/usr,g" \
|
||||
-e "s,%major%,$(get_major_version ${PV}),g" \
|
||||
-e "s,%minor%,$(get_version_component_range 2 ${PV}),g" \
|
||||
-e "s,%submin%,$(get_version_component_range 3 ${PV}),g" \
|
||||
-e "s,%libsuffix%,$(get_major_version ${PV})$(get_version_component_range 2 ${PV}),g" \
|
||||
-e "s,%bindir%,\$\{exec_prefix\}/$(get_libdir)/${PN},g" \
|
||||
-e "s,%exec_prefix%,\$\{prefix\},g" \
|
||||
-e "s,%includedir%,\$\{exec_prefix\}/include/${PN},g" \
|
||||
-e "s,%NSPR_VERSION%,$(pkg-config --modversion nspr),g" \
|
||||
-e "s,%NSS_VERSION%,$(pkg-config --modversion nss),g" \
|
||||
-e "s,%SVRCORE_VERSION%,$(pkg-config --modversion svrcore),g" \
|
||||
-e "s,%MOZLDAP_VERSION%,${PV},g" \
|
||||
"${S}"/"${PN}".pc.in > "${S}"/"${PN}".pc || die "sed in install failed"
|
||||
|
||||
emake install || die "make failed"
|
||||
local MY_S="${WORKDIR}"/"${P}"/mozilla/dist/
|
||||
|
||||
rm -rf "${MY_S}/bin/"lib*.so
|
||||
rm -rf "${MY_S}/public/ldap-private"
|
||||
|
||||
exeinto /usr/$(get_libdir)/mozldap
|
||||
doexe "${MY_S}"/lib/*so*
|
||||
doexe "${MY_S}"/lib/*.a
|
||||
doexe "${MY_S}"/bin/*
|
||||
|
||||
#create compatibility PATH link
|
||||
|
||||
for i in ldapcmp ldapcompare ldapdelete ldapmodify \
|
||||
ldappasswd ldapsearch;do
|
||||
dosym /usr/$(get_libdir)/mozldap/$i /usr/bin/moz"${i}" || die
|
||||
# compat for 389-project
|
||||
dosym /usr/$(get_libdir)/mozldap/$i /usr/bin/389-"${i}" || die
|
||||
done
|
||||
|
||||
# move the headers around
|
||||
insinto /usr/include/mozldap
|
||||
doins "${MY_S}/public/ldap/"*.h
|
||||
|
||||
# add sample config
|
||||
insinto /usr/share/mozldap
|
||||
doins "${MY_S}"/etc/*.conf
|
||||
|
||||
#and while at it move them to files with versions-ending
|
||||
#and link them back :)
|
||||
cd "${D}"/usr/$(get_libdir)/mozldap
|
||||
|
||||
#create compatibility Link
|
||||
ln -sf libldap$(get_major_version ${PV})$(get_version_component_range 2 ${PV}).so \
|
||||
liblber$(get_major_version ${PV})$(get_version_component_range 2 ${PV}).so || die
|
||||
#so lets move
|
||||
for file in *.so; do
|
||||
mv ${file} ${file}.$(get_major_version ${PV}).$(get_version_component_range 2 ${PV}) || die
|
||||
ln -sf ${file}.$(get_major_version ${PV}).$(get_version_component_range 2 ${PV}) ${file} || die
|
||||
ln -sf ${file}.$(get_major_version ${PV}).$(get_version_component_range 2 ${PV}) \
|
||||
${file}.$(get_major_version ${PV}) || die
|
||||
done
|
||||
|
||||
# cope with libraries being in /usr/lib/mozldap
|
||||
dodir /etc/env.d
|
||||
echo "LDPATH=/usr/$(get_libdir)/mozldap" > "${D}"/etc/env.d/08mozldap
|
||||
|
||||
# create pkg-config file
|
||||
insinto /usr/$(get_libdir)/pkgconfig/
|
||||
doins "${S}"/mozldap.pc
|
||||
}
|
@ -1,139 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lisp/gcl/gcl-2.6.8_pre20090419.ebuild,v 1.3 2012/06/07 18:59:25 zmedico Exp $
|
||||
|
||||
EAPI=1
|
||||
|
||||
#removing flag-o-matic results in make install failing due to a segfault
|
||||
inherit elisp-common eutils flag-o-matic
|
||||
|
||||
DESCRIPTION="GNU Common Lisp"
|
||||
HOMEPAGE="http://www.gnu.org/software/gcl/gcl.html"
|
||||
SRC_URI="mirror://gentoo/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~sparc x86"
|
||||
IUSE="+ansi debug doc emacs +readline tk X"
|
||||
|
||||
# See bug #205803
|
||||
RESTRICT="strip"
|
||||
|
||||
RDEPEND="emacs? ( virtual/emacs )
|
||||
readline? ( sys-libs/readline )
|
||||
>=dev-libs/gmp-4.1
|
||||
tk? ( dev-lang/tk )
|
||||
X? ( x11-libs/libXt x11-libs/libXext x11-libs/libXmu x11-libs/libXaw )
|
||||
virtual/latex-base"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( virtual/texi2dvi )
|
||||
>=app-text/texi2html-1.64
|
||||
>=sys-devel/autoconf-2.52"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
|
||||
# The LANG vars aren't reset early enough so when sed tries to use [a-zA-Z] in
|
||||
# option parsing, it may break.
|
||||
epatch "${FILESDIR}"/${P}-configure.patch
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local myconfig=""
|
||||
if use tk; then
|
||||
myconfig="${myconfig} --enable-tkconfig=/usr/lib --enable-tclconfig=/usr/lib"
|
||||
fi
|
||||
myconfig="${myconfig} \
|
||||
--enable-emacsdir=/usr/share/emacs/site-lisp/gcl \
|
||||
--enable-dynsysgmp \
|
||||
--disable-xdr
|
||||
$(use_enable readline) \
|
||||
$(use_with X x) \
|
||||
$(use_enable debug) \
|
||||
$(use_enable ansi)"
|
||||
|
||||
einfo "Configuring with the following:
|
||||
${myconfig}"
|
||||
econf ${myconfig}
|
||||
make || die "make failed"
|
||||
sed -e 's,@EXT@,,g' debian/in.gcl.1 >gcl.1
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local make_ansi_tests_clean="rm -f test.out *.fasl *.o \
|
||||
*.so *~ *.fn *.x86f *.fasl *.ufsl"
|
||||
if use ansi; then
|
||||
cd ansi-tests
|
||||
|
||||
( make clean && make test-unixport ) \
|
||||
|| die "make ansi-tests failed!"
|
||||
|
||||
cat "${FILESDIR}/bootstrap-gcl" \
|
||||
| ../unixport/saved_ansi_gcl
|
||||
|
||||
cat "${FILESDIR}/bootstrap-gcl" \
|
||||
|sed s/bootstrapped_ansi_gcl/bootstrapped_r_ansi_gcl/g \
|
||||
| ./bootstrapped_ansi_gcl
|
||||
|
||||
( ${make_ansi_tests_clean} && \
|
||||
echo "(load \"gclload.lsp\")" \
|
||||
| ./bootstrapped_r_ansi_gcl ) \
|
||||
|| die "Phase 2, bootstraped compiler failed in tests"
|
||||
|
||||
else
|
||||
|
||||
ewarn "Upstream provides tests only for ansi-gcl."
|
||||
ewarn "Please emerge with ansi USE flag enabled"
|
||||
ewarn "if you wnat to run the ansi tests."
|
||||
|
||||
cat "${FILESDIR}/bootstrap-gcl" \
|
||||
| sed s/bootstrapped_ansi_gcl/bootstrapped_gcl/g \
|
||||
| unixport/saved_gcl
|
||||
|
||||
cat "${FILESDIR}/bootstrap-gcl" \
|
||||
| sed s/bootstrapped_ansi_gcl/bootstrapped_r_gcl/g \
|
||||
| ./bootstrapped_gcl
|
||||
|
||||
for x in "./bootstrapped_r_gcl" "unixport/saved_gcl" ; do
|
||||
echo "(compiler::emit-fn t)" \
|
||||
| ${x} \
|
||||
|| die "Phase 2, bootstraped compiler failed in tests"
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="${D}" install || die "make install failed"
|
||||
rm -rf "${D}"usr/share/doc/${PN}-si "${D}"usr/share/doc/${PN}-tk
|
||||
|
||||
dosed /usr/bin/gcl
|
||||
fperms 0755 /usr/bin/gcl
|
||||
|
||||
dodoc readme* RELEASE* ChangeLog* doc/*
|
||||
doman gcl.1
|
||||
doinfo info/*.info*
|
||||
|
||||
if use emacs; then
|
||||
mv "${D}"usr/share/emacs/site-lisp/${PN}/add-default.el "${T}"/50${PN}-gentoo.el
|
||||
elisp-site-file-install "${T}"/50${PN}-gentoo.el
|
||||
elisp-install ${PN} elisp/*
|
||||
fperms 0644 /usr/share/emacs/site-lisp/gcl/*
|
||||
else
|
||||
rm -rf "${D}"usr/share/emacs
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
mv "${D}"usr/share/doc/*.dvi "${D}"usr/share/doc/dwdoc* "${D}"usr/share/doc/${PF}/
|
||||
else
|
||||
rm -rf "${D}"usr/share/doc/*.dvi "${D}"usr/share/doc/dwdoc*
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use emacs && elisp-site-regen
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use emacs && elisp-site-regen
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST amqp-1.0.9.tgz 40693 SHA256 82d3dd875261ae0a983c8a24092cc14aebb291b584a7f0ad233df920e2cb4f0f SHA512 52db33f4e938d056b1e3c19973a05276d5dbf4c50decbf248783277b1478a99c855698810b9de5ae0b69aafc05899f3e212613ef817ad2ae046d0f156ba3e4c2 WHIRLPOOL f1dcf9ed0006a2a88edec8a82d4823051fc6de041d9951363b4d5a7133d5470de846827e241aa1974b9a33986359c58244a4a6f076f14bcf63aed9be31c572e6
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>php</herd>
|
||||
<longdescription lang="en">
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
||||
|
@ -0,0 +1,19 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-php/pecl-amqp/pecl-amqp-1.0.9.ebuild,v 1.1 2013/03/14 18:52:16 olemarkus Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
USE_PHP="php5-3 php5-4"
|
||||
|
||||
inherit php-ext-pecl-r2
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
DESCRIPTION="PHP Bindings for AMQP 0-9-1 compatible brokers."
|
||||
LICENSE="PHP-3.01"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="net-libs/rabbitmq-c"
|
||||
RDEPEND="${DEPEND}"
|
@ -0,0 +1,43 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/astng/astng-0.24.2.ebuild,v 1.1 2013/03/14 16:34:13 idella4 Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_6,2_7,3_2} pypy{1_9,2_0} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Abstract Syntax Tree for logilab packages"
|
||||
HOMEPAGE="http://www.logilab.org/project/logilab-astng http://pypi.python.org/pypi/logilab-astng"
|
||||
SRC_URI="ftp://ftp.logilab.org/pub/astng/logilab-${P}.tar.gz mirror://pypi/l/logilab-astng/logilab-${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x64-macos ~x86-macos"
|
||||
IUSE="test"
|
||||
|
||||
# Version specified in __pkginfo__.py.
|
||||
RDEPEND=">=dev-python/logilab-common-0.53.0[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? ( >=dev-python/egenix-mx-base-3.0.0[$(python_gen_usedep python2*)] )"
|
||||
|
||||
S="${WORKDIR}/logilab-${P}"
|
||||
|
||||
python_test() {
|
||||
# Make sure that the tests use correct modules & paths, for now at least
|
||||
# python3 currently doesn't pass all tests on std testing
|
||||
|
||||
cd "${BUILD_DIR}"/lib || die
|
||||
[[ "${EPYTHON:6:1}" == '3' ]] && return
|
||||
pushd logilab/astng > /dev/null || return 1
|
||||
pytest $(find . -name test) || die "Tests fail with ${EPYTHON}"
|
||||
popd > /dev/null || return 1
|
||||
}
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install
|
||||
|
||||
rm "${D}$(python_get_sitedir)/logilab/__init__.py" || die
|
||||
}
|
@ -0,0 +1,56 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/urwid/urwid-1.1.1-r1.ebuild,v 1.1 2013/03/14 19:25:55 radhermit Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_5,2_6,2_7,3_1,3_2,3_3} )
|
||||
PYTHON_REQ_USE="ncurses"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Urwid is a curses-based user interface library for Python"
|
||||
HOMEPAGE="http://excess.org/urwid/ http://pypi.python.org/pypi/urwid"
|
||||
SRC_URI="http://excess.org/urwid/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux"
|
||||
IUSE="doc examples test"
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
||||
test? ( dev-python/twisted )"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PN}-1.1.0-sphinx.patch )
|
||||
|
||||
python_compile_all() {
|
||||
if use doc ; then
|
||||
if [[ ${EPYTHON} == python3* ]] ; then
|
||||
2to3 -nw --no-diffs docs/conf.py || die
|
||||
fi
|
||||
cd docs
|
||||
sphinx-build . _build/html || die
|
||||
fi
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
if [[ ${EPYTHON} == python2* ]] ; then
|
||||
local CFLAGS="${CFLAGS} -fno-strict-aliasing"
|
||||
export CFLAGS
|
||||
fi
|
||||
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
|
||||
python_test() {
|
||||
esetup.py test
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && dohtml -r docs/_build/html/*
|
||||
|
||||
if use examples ; then
|
||||
dodoc -r examples
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
fi
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/yolk/yolk-0.4.3-r1.ebuild,v 1.1 2013/03/14 17:04:09 idella4 Exp $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python{2_5,2_6,2_7} pypy{1_9,2_0} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Tool and library for querying PyPI and locally installed Python packages"
|
||||
HOMEPAGE="http://pypi.python.org/pypi/yolk"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="examples"
|
||||
|
||||
DEPEND="dev-python/setuptools
|
||||
dev-python/yolk-portage"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
python_install_all() {
|
||||
if use examples; then
|
||||
docinto examples/plugins
|
||||
dodoc -r examples/plugins/*
|
||||
fi
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST mail-2.3.3-git.tar.gz 668618 SHA256 1adb276d2de312bd95fbe5552b9df2c3b802eedbdaaf25dbbbcd4cf45b5951e0 SHA512 b6478f9b63fe6855ff857443aab718ff9a66b6b603aa203f6cf6cc2a32ccd3c3b52d0ce8697c84285a209fd2cf30c31e12addffe1b7eb5326c806553817f0523 WHIRLPOOL 7a8f020c89d38343ce6305a6f926f709298093198a285dd5d7ae1d9f7bd728e19c3119abc293ede81aee63dde254cfa387972cffdc5df48c887fe7102a0585e1
|
||||
DIST mail-2.4.4.tar.gz 677102 SHA256 2195c789c5178388f3ed5094ddad93683bac601fe3d9ecb13a3a9f9e7d97ba87 SHA512 aeb0075950d5938e1a972c9195ec836160c6c9f600aaa2c0e78c715aabf4000074bde311cc0c87a1f3edf237e5a6835299c23f3b903541a043134139472eae82 WHIRLPOOL e75e9e62602ca13658e16d096cc48921307c9035e1b42700eaee77d38c4f10891731d34e0984c8eb98d2d30320ac87fb64b5cf03bc1c88eeb11be5d172a594d8
|
||||
DIST mail-2.5.3-git.tar.gz 828104 SHA256 6608c1c5dd9fc58f8a167c834d14d272dfb721eac7356983cb9f64ce934048ab SHA512 210e8eb7c10b8636747980fbaef09a444a80fdba38fced326e6f9fcab6dc41e99a685c3a1472f887f22d875f4a5691364246e4975efe2a608cec657e3ad67bcf WHIRLPOOL 38ebe1ed453c2e01d22e170bf24f527aab65ef6a65c74448e6d9888d0b49a10bde406a1f9824806b42569c118b9efcc1f1a2ab598c4517f665ca21fb40de725f
|
||||
|
@ -0,0 +1,21 @@
|
||||
commit 819c4767cea5c8523938b27a29e48a7ab82b503d
|
||||
Author: kennyj <kennyj@gmail.com>
|
||||
Date: Fri Nov 30 00:22:08 2012 +0900
|
||||
|
||||
Fix build on Ruby18. We should specify endian for UTF16/32.
|
||||
|
||||
diff --git a/lib/mail/version_specific/ruby_1_8.rb b/lib/mail/version_specific/ruby_1_8.rb
|
||||
index cb2bae6..f7c65bb 100644
|
||||
--- a/lib/mail/version_specific/ruby_1_8.rb
|
||||
+++ b/lib/mail/version_specific/ruby_1_8.rb
|
||||
@@ -107,6 +107,10 @@ module Mail
|
||||
case encoding.upcase
|
||||
when 'UTF8'
|
||||
'UTF-8'
|
||||
+ when 'UTF16', 'UTF-16'
|
||||
+ 'UTF-16BE'
|
||||
+ when 'UTF32', 'UTF-32'
|
||||
+ 'UTF-32BE'
|
||||
else
|
||||
encoding
|
||||
end
|
@ -0,0 +1,42 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mail/mail-2.5.3.ebuild,v 1.1 2013/03/15 07:01:02 graaff Exp $
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby18 ruby19 ree18"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_TEST="rspec"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.rdoc README.md ROADMAP TODO.rdoc"
|
||||
|
||||
RUBY_FAKEGEM_GEMSPEC="mail.gemspec"
|
||||
|
||||
inherit ruby-fakegem versionator
|
||||
|
||||
GITHUB_USER="mikel"
|
||||
COMMIT="e8ec8d53c4f5c889691630d0422b9dc044762f1b"
|
||||
|
||||
DESCRIPTION="An email handling library"
|
||||
HOMEPAGE="https://github.com/mikel/mail"
|
||||
SRC_URI="https://github.com/${GITHUB_USER}/mail/archive/${PV}.tar.gz -> ${P}-git.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="$(get_version_component_range 1-2)"
|
||||
KEYWORDS="~amd64 ~arm ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
RUBY_PATCHES=( "${P}-utf8-ruby18.patch" )
|
||||
|
||||
ruby_add_rdepend "
|
||||
>=dev-ruby/i18n-0.4.0
|
||||
>=dev-ruby/mime-types-1.16
|
||||
>=dev-ruby/treetop-1.4.8"
|
||||
|
||||
all_ruby_prepare() {
|
||||
rm Gemfile || die
|
||||
sed -i -e '/[Bb]undle/d' -e '6d' Rakefile || die "Unable to remove Bundler code."
|
||||
|
||||
# Fix up dependencies to match our own.
|
||||
sed -i -e 's/~>/>=/' mail.gemspec || die "Unable to fix up dependencies."
|
||||
}
|
@ -1,3 +1,2 @@
|
||||
DIST hevea-2.00.tar.gz 411092 SHA256 bb32c6207a33685eca37330794649c654837f8d795010e7b1385619320833cbf SHA512 d24e35deafbb04b3a6f7248950a02d1dbb2d92fc7e8b7b69f4395e0265af0a09832163043108fc28c5ea166eacae42544128ef9395c300b5d3273861a386800f WHIRLPOOL b1e31d41e56ba4049a79c7e639c058a52d8ac1a2261d8547668adff3ba04aa86545b81323d7a88f96c9b7778ff4338daff3f3ab3e068675030dfdacfb8d62ed4
|
||||
DIST hevea-2.02.tar.gz 410332 SHA256 406683222913713ed3b81c153d1a84c0347f6e49181bb178636877c4f410fd6c SHA512 2e68a6f6aa046839e63fb64cfd8adbb14f4f6642c16af72f104a2f8048310951bf9e66295b3ad6cedd4eafd20db7183ebecb27859ab0de8d8863e60aa5e26d78 WHIRLPOOL 9bdd2c03fab710ddb73b4083ff0dd6b279d7348b433b5475d4e9f0fdf5419dd864b127bcc93d11a2c59e75a669fdb5863fae080eff537808fc827c05247880ab
|
||||
DIST hevea-2.03.tar.gz 385865 SHA256 d927f538b47935f8b6cf34a817071195dfeb5da05debfd55ab47253c7868dab5 SHA512 dcb30992ff74935d92e6fdc4710bf8ee3b555e094673557e697531c3bff7155d6577349e2d80de21180abe5ea8d0ac1b4eaffcf217736477a33d8895ebd1aacc WHIRLPOOL 9d5c7a8cfb3f2fcffb90c09c0bfb43d50c0a7cd4cad8073de2b9640365e16613b202c76e8b35993f1a5dcecd7a215091597587a854fc8a8ff742ad0e04656e8e
|
||||
|
@ -1,57 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-tex/hevea/hevea-2.00.ebuild,v 1.5 2012/12/29 14:35:15 ago Exp $
|
||||
|
||||
EAPI="2"
|
||||
|
||||
inherit eutils multilib
|
||||
|
||||
IUSE="+ocamlopt"
|
||||
|
||||
DESCRIPTION="HeVeA is a quite complete and fast LaTeX to HTML translator"
|
||||
HOMEPAGE="http://hevea.inria.fr/"
|
||||
SRC_URI="http://hevea.inria.fr/distri/${P}.tar.gz"
|
||||
|
||||
LICENSE="QPL"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc ~ppc64 sparc x86"
|
||||
|
||||
DEPEND=">=dev-lang/ocaml-3.10.2[ocamlopt?]"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_compile() {
|
||||
rm -f config.sh
|
||||
emake PREFIX=/usr DESTDIR="${D}" LIBDIR="/usr/$(get_libdir)/hevea" LATEXLIBDIR="/usr/share/texmf-site/tex/latex/hevea" config.sh || die "Failed to create config.sh"
|
||||
if use ocamlopt; then
|
||||
emake PREFIX=/usr || die "Failed to build native code binaries"
|
||||
else
|
||||
emake PREFIX=/usr TARGET=byte || die "Failed to build bytecode binaries"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if use ocamlopt; then
|
||||
emake DESTDIR="${D}" PREFIX=/usr install || die "Install failed"
|
||||
else
|
||||
emake DESTDIR="${D}" PREFIX=/usr TARGET=byte install || die "Install failed"
|
||||
fi
|
||||
|
||||
dodoc README CHANGES
|
||||
}
|
||||
|
||||
# If texmf-update is present this means we have a latex install; update it so
|
||||
# that hevea.sty can be found
|
||||
# Do not (r)depend on latex though because hevea does not need it itself
|
||||
# If latex is installed later, it will see hevea.sty
|
||||
|
||||
pkg_postinst() {
|
||||
if [ "$ROOT" = "/" ] && [ -x /usr/sbin/texmf-update ] ; then
|
||||
/usr/sbin/texmf-update
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
if [ "$ROOT" = "/" ] && [ -x /usr/sbin/texmf-update ] ; then
|
||||
/usr/sbin/texmf-update
|
||||
fi
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST cloc-1.55.pl 309536 SHA256 8dd6893c450f3be6a461ef2068cd853181eb21015b3cfa92c360dc2b4b897479 SHA512 05c84c730c1222fd544debeef985f0b7bf370a3d0c62766c3b606c27f8320bb6429700e5e51a92770249876b263447213e1eb956957255a0ab4863ef57ec5c6d WHIRLPOOL f022749f511ea71f4432b0b03b7889e06b48ac1259fd7a309afbca5ab6f27079c3f78bc0e079b800f09c4b60de6d6b69876dc6d23e3162e62ea39fcbddb37d6c
|
||||
DIST cloc-1.56.pl 320786 SHA256 f525906def12195df1ed61a6aa0584c401b10509c7770900b31026c91868acd2 SHA512 6bbd74c79bc6c905bc20be1d5d4b75efdb01d5b395e5f163e0ea1358b5da2b41ae7c7f27fc0487a37c3144fd3ac81d7242e31245994e257bd09e313837f50979 WHIRLPOOL 57ae1f883446668da9d0c42ba590c42482cdc04067c4a2e6fdb4c9815121e7e0c78b41b8bdf4a00e5b51127e7818f0ff80767fbc52b3713ec60e3d087f20ab68
|
||||
DIST cloc-1.58.pl 336446 SHA256 4a484496ee05be4e5b3a6bef8f3337d7f6733c731bbc58dc7d00f5c3eb714f68 SHA512 5f189545e97d132888948a8a7f60dc551e4a0700af4a37c949f5311da326d9ada6780f2faee7fbb4b02545f9fa3afe2caf01c7bf3a8eedbde0155ab797b29f55 WHIRLPOOL b74cfc99159101cd465a9721893719e81f7caa2156848b52ad3e0b2f6879ff1b8711a9f904a64690d29ffe813cfb45b059f9ecfa3628a62da310d7239af4d321
|
||||
DIST cloc.1.pod 12468 SHA256 0e6890acd5836ec43aabed1476e2a1417ea4d454968297c68c1b782e818f979b SHA512 50b4085704c7936de9993476195570957c9c5e864f4a2dbac114ff148a813b50ccba0c6e29d5bda4c4e5cd7c7a09e314233438ddd28f0e0585db54975e602659 WHIRLPOOL 25d9b78a7a0fb88f2ff1192afd8cd5963ab61b06883874b8339a1d4fefbeac4b080d413107f06b34975cd2e7ea92e4313767f2c2aebf39e21ef7cd408bf152ae
|
||||
|
@ -0,0 +1,35 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-util/cloc/cloc-1.58.ebuild,v 1.1 2013/03/15 03:44:04 radhermit Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
DESCRIPTION="Count Lines of Code"
|
||||
HOMEPAGE="http://cloc.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.pl mirror://sourceforge/${PN}/${PN}.1.pod"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
|
||||
|
||||
DEPEND=">=dev-lang/perl-5.6"
|
||||
RDEPEND="${DEPEND}
|
||||
dev-perl/Algorithm-Diff
|
||||
dev-perl/regexp-common
|
||||
virtual/perl-Digest-MD5
|
||||
virtual/perl-Getopt-Long
|
||||
virtual/perl-File-Spec
|
||||
virtual/perl-File-Temp"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
src_unpack() { :; }
|
||||
|
||||
src_prepare() {
|
||||
pod2man "${DISTDIR}"/${PN}.1.pod > ${PN}.1 || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
doman ${PN}.1
|
||||
newbin "${DISTDIR}"/${P}.pl ${PN}
|
||||
}
|
@ -1,2 +1,2 @@
|
||||
DIST mdds_0.6.1.tar.bz2 128115 SHA256 4381b38db6ee807090c6f352d62575ea8ce9768701ad95f01afbcda497e69960 SHA512 9b53ddfe5330f276a3e3d9febf6e6749957915f2997cd81059f060221f2dcb6ba53576f9b3b01d10289143e98a0f80bcee29654bebc3c96ddf9b0a32c411dfd2 WHIRLPOOL 51b60a028b1f75f9167903aa0395876e7a8c7c96d21d619aca280ac485197b387dca55f55c61c98f7203b16ad1989c6d2c4eab8f8eb113cbec8af929ddafbb63
|
||||
DIST mdds_0.7.0.tar.bz2 137114 SHA256 092b8ab9cdd4738f46f3a34fb6ecf44a81049910e545eabe031bd0e1b7261c88 SHA512 de971443715cb70b4951473f713e78ad9f8d2518e24f0e38c67361a4802230ea3d7281597d8aa1e104da2dd2ad064686254b469847141761025c54a2fe89bc2a WHIRLPOOL 304e07067d4fd3da1ec4ec11f7de80a845e6814c68669376b9d3e09a886b16d84745438c20bc016318d51944d6a4003b22809c7c4d44aab900a09bae2b06efbb
|
||||
DIST mdds_0.7.1.tar.bz2 134376 SHA256 fe7bc2805bb1b74cac821723fd1d50bcc2a0ecaa5445262262765e02eae9197e SHA512 0a501af19280b34f038e31e5a6a0625631a95328cba7a2e2e4c308eb0ea2ead6c0aa4db90bc65897ae1319df89ede124931b4ab7902368ed2ca9d1fff4c883ef WHIRLPOOL a24ed89d6b30812885f2359d240b09074949021e060a7ca8cbf55286b9fd4b387f4b0078282b0430f53998c43ffade261b26472c22af12b806a5edb1bfcd4c85
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-util/mdds/mdds-0.7.0.ebuild,v 1.3 2013/03/07 08:18:17 scarabeus Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-util/mdds/mdds-0.7.1.ebuild,v 1.1 2013/03/14 20:02:11 scarabeus Exp $
|
||||
|
||||
EAPI=5
|
||||
|
@ -0,0 +1 @@
|
||||
DIST umockdev-0.2.1.tar.xz 363652 SHA256 38972c7b8f2bf8acc28f13a6ed99d56557204600400288acdda69b05b25573a4 SHA512 a65e5dc6cc8d7fe0948f07e34379050a0b3640523f7f60393d81a2e1615bb4029a3c107f29b26425df59c5e34e9f69a5f3bf2683608e787b5e9b1ae70807dbb5 WHIRLPOOL 23a195bbf54dd3a4978718b817be6938c371793d779bace18c01b855bf7d63a78a19682cdf82156d0a973d589e3d52fd5a828ac92ee396f02d24f63385af5df5
|
@ -0,0 +1,38 @@
|
||||
--- umockdev-0.2.1/Makefile.am
|
||||
+++ umockdev-0.2.1/Makefile.am
|
||||
@@ -41,21 +41,7 @@
|
||||
# use this for running Python tests
|
||||
PYTEST = $(TESTS_ENVIRONMENT) $(PYTHON) -Wd -Werror::PendingDeprecationWarning -Werror::DeprecationWarning
|
||||
|
||||
-AM_CFLAGS = \
|
||||
- -Werror=missing-prototypes \
|
||||
- -Werror=strict-prototypes \
|
||||
- -Werror=nested-externs \
|
||||
- -Werror=pointer-arith \
|
||||
- -Werror=implicit-function-declaration \
|
||||
- -Werror=pointer-arith \
|
||||
- -Werror=init-self \
|
||||
- -Werror=format-security \
|
||||
- -Werror=format=2 \
|
||||
- -Werror=missing-include-dirs \
|
||||
- -Werror=unused-variable \
|
||||
- -Werror=return-type \
|
||||
- -Werror=uninitialized \
|
||||
- -Wall
|
||||
+AM_CFLAGS = -Wall
|
||||
|
||||
# this allows us to use regexp literals without warnings
|
||||
AM_VALAFLAGS = --enable-experimental
|
||||
@@ -82,9 +68,9 @@
|
||||
|
||||
# this is an LD_PRELOAD library, so remove static library and libtool wrappers
|
||||
libumockdev-preload-install-hook:
|
||||
- rm $(DESTDIR)$(libdir)/libumockdev-preload.a
|
||||
- rm $(DESTDIR)$(libdir)/libumockdev-preload.so
|
||||
- rm $(DESTDIR)$(libdir)/libumockdev-preload.la
|
||||
+ rm -f $(DESTDIR)$(libdir)/libumockdev-preload.a
|
||||
+ rm -f $(DESTDIR)$(libdir)/libumockdev-preload.so
|
||||
+ rm -f $(DESTDIR)$(libdir)/libumockdev-preload.la
|
||||
|
||||
libumockdev-preload-uninstall-hook:
|
||||
rm $(DESTDIR)$(libdir)/libumockdev-preload.so.*
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue