parent
75347304bb
commit
2e342b6503
@ -1,2 +1,3 @@
|
||||
DIST httpd-2.2.22.tar.bz2 5378934 SHA256 dcdc9f1dc722f84798caf69d69dca78daa5e09a4269060045aeca7e4f44cb231 SHA512 b6901453aaef3cac31cf763f7748e06a2492e1f72e4158627f38e45423a9bcd9bea1f74ba1a1ec9a5c7fc554eb062ea61b944e2001f19825def2e530ce8a42bc WHIRLPOOL 32a03d638f82d791effdce888a02e66189d6fe87c2179ab9f3de034fbf5c8311d24835f28e9a18addb847aa6859ed817bf2e11833e315285474eefcea6f56891
|
||||
DIST httpd-2.4.2.tar.bz2 4132105 SHA256 5382f9c507d3d02706e33d6308ea041f39e8511b5948aef0ca188df8f90159b8 SHA512 1036341eeeae36b032ec9f5077bf97a02bc4cb7eceef4b64f8a7e7809065afaeafafbda8a3547f48f34b49ac695ef39b15ba79aec917160b373cc2c1100460f8 WHIRLPOOL 2244a6c3e054c7babb30102e5ceb65239be4f3785ca739ec2c6230477c6c40f464a55cd68963fd4a8b8519fcb7a09aa039ecace15ee239cae07b69aa1c51ee51
|
||||
DIST httpd-2.2.23.tar.bz2 5485205 SHA256 14fe79bd6edd957c02cb41f4175e132c08e6ff74a7d08dc1858dd8224e351c34 SHA512 69b3bc942b2a91cdb57356a5c57078794db2d8404a23080a2621cdf33ae2d9bdbbacd0f6e95fd6e71fbfa87e94942be0a014c3e8709148f991e391d03aa6dee2 WHIRLPOOL 8d00184aff654b2d7f1c5ebd471f19ffcb57107ea37179fa05c424424d7b70ff0c9abf3be68ed9f0d091b3c057f1ba24cb989937e35087c3199f82e3dddbbd4f
|
||||
DIST httpd-2.4.3.tar.bz2 4559279 SHA256 d82102b9c111f1892fb20a2bccf4370de579c6521b2f172ed0b36f2759fb249e SHA512 d4501ae69aacb75d960bc8cb61c9e1ff52e6e42a37c37ca84c839262e183ca2f305794da28266aa2119d211ba0f4531705f66330079ab594c05e92ae8196d1ab WHIRLPOOL 4ffb7dc8057200f676557a70591d6938e92a8990d88dc88237d278f185290d260312dd8cfdd08994ffd7b7280502b3debea0f3e02acc718dd9db613222b6d2ae
|
||||
|
@ -0,0 +1,89 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/apache-tools/apache-tools-2.2.23.ebuild,v 1.1 2012/10/12 05:35:02 patrick Exp $
|
||||
|
||||
EAPI="4"
|
||||
inherit flag-o-matic eutils
|
||||
|
||||
DESCRIPTION="Useful Apache tools - htdigest, htpasswd, ab, htdbm"
|
||||
HOMEPAGE="http://httpd.apache.org/"
|
||||
SRC_URI="mirror://apache/httpd/httpd-${PV}.tar.bz2"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="ssl"
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="=dev-libs/apr-1*
|
||||
=dev-libs/apr-util-1*
|
||||
dev-libs/libpcre
|
||||
ssl? ( dev-libs/openssl )
|
||||
!<www-servers/apache-2.2.4"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/libtool"
|
||||
|
||||
S="${WORKDIR}/httpd-${PV}"
|
||||
|
||||
src_prepare() {
|
||||
# Apply these patches:
|
||||
# (1) apache-tools-2.2.20-Makefile.patch:
|
||||
# - fix up the `make install' for support/
|
||||
# - remove envvars from `make install'
|
||||
epatch "${FILESDIR}"/${PN}-2.2.20-Makefile.patch
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=""
|
||||
|
||||
# Instead of filtering --as-needed (bug #128505), append --no-as-needed
|
||||
append-ldflags $(no-as-needed)
|
||||
|
||||
use ssl && myconf+=" --with-ssl=/usr --enable-ssl"
|
||||
|
||||
# econf overwrites the stuff from config.layout, so we have to put them into
|
||||
# our myconf line too
|
||||
econf \
|
||||
--sbindir=/usr/sbin \
|
||||
--with-z=/usr \
|
||||
--with-apr=/usr \
|
||||
--with-apr-util=/usr \
|
||||
--with-pcre=/usr \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cd support || die
|
||||
emake
|
||||
}
|
||||
|
||||
src_install () {
|
||||
cd support || die
|
||||
|
||||
make DESTDIR="${D}" install
|
||||
|
||||
# install manpages
|
||||
doman "${S}"/docs/man/{dbmmanage,htdigest,htpasswd,htdbm}.1 \
|
||||
"${S}"/docs/man/{htcacheclean,rotatelogs,ab,logresolve}.8
|
||||
|
||||
# Providing compatiblity symlinks for #177697 (which we'll stop to install
|
||||
# at some point).
|
||||
pushd "${D}"/usr/sbin/ >/dev/null
|
||||
for i in *; do
|
||||
dosym /usr/sbin/${i} /usr/sbin/${i}2
|
||||
done
|
||||
popd "${D}"/usr/sbin/ >/dev/null
|
||||
|
||||
# Provide a symlink for ab-ssl
|
||||
if use ssl; then
|
||||
dosym /usr/sbin/ab /usr/sbin/ab-ssl
|
||||
dosym /usr/sbin/ab /usr/sbin/ab2-ssl
|
||||
fi
|
||||
|
||||
# make htpasswd accessible for non-root users
|
||||
dosym /usr/sbin/htpasswd /usr/bin/htpasswd
|
||||
dosym /usr/sbin/htdigest /usr/bin/htdigest
|
||||
|
||||
dodoc "${S}"/CHANGES
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST emacs-updater-1.10.tar.xz 6444 SHA256 6519597ee64e95bcaa1145e6b3f88e15d4de64da7764f20a02d0de55dcae34c8 SHA512 2cbbb6a12ebc72af68056c0dadbbe82afb34dd565ab659085cee5e497441444ee53c9bcea288b1bf29c4720fa12849f9f144816769ccb03a7eb11aff3010d9f3 WHIRLPOOL 9fd4967f2ec8f1f831282dcea0b8d869b2576e1c659b4f4858b15a440ab1db47032cccfc792b84c4153977bba2c7f43a48b7931fe4c5d73ec18573b1a5ea2d2b
|
||||
DIST emacs-updater-1.9.tar.bz2 6445 SHA256 3d1957b42adbdbd9d2736942b7c8a7f281868cd4d413406761c62f2093e970c0 SHA512 aac069a9e06d10bf44d6e62a63094207488c1ab44dbe9234d2c9b315dcee9a1b4eab80058594fd8a191ae20a379d8a8cf4609c5971525f695508a80fe20618e7 WHIRLPOOL 8ae3046709141f9b9172998f1ccee8db2afa4c4217d4fddba0252eba88fe911f905470e40ecd63c248cebb7c53095d69a549b52158bf313a7fcd1910b0178171
|
||||
|
@ -0,0 +1,31 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-admin/emacs-updater/emacs-updater-1.10.ebuild,v 1.1 2012/10/11 15:56:09 ulm Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
DESCRIPTION="Rebuild Emacs packages"
|
||||
HOMEPAGE="http://www.gentoo.org/proj/en/lisp/emacs/"
|
||||
SRC_URI="mirror://gentoo/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x86-macos"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="app-arch/xz-utils"
|
||||
RDEPEND=">=app-portage/portage-utils-0.3
|
||||
virtual/emacs"
|
||||
|
||||
src_prepare() {
|
||||
if [ -n "${EPREFIX}" ]; then
|
||||
sed -i -e "1s:/:${EPREFIX%/}/:" \
|
||||
-e "s:^\(EMACS\|SITELISP\)=:&${EPREFIX%/}:" \
|
||||
emacs-updater || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dosbin emacs-updater
|
||||
doman emacs-updater.8
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
diff -urN obnam-1.2.orig/obnamlib/plugins/show_plugin.py obnam-1.2/obnamlib/plugins/show_plugin.py
|
||||
--- obnam-1.2.orig/obnamlib/plugins/show_plugin.py 2012-10-06 18:45:31.000000000 +0200
|
||||
+++ obnam-1.2/obnamlib/plugins/show_plugin.py 2012-10-11 09:54:28.757951340 +0200
|
||||
@@ -234,6 +234,7 @@
|
||||
self.show_diff_for_file(gen2, full, '+')
|
||||
for basename in sorted(set1):
|
||||
# This was only in gen1 - it got removed
|
||||
+ full = os.path.join(dirname, basename)
|
||||
self.show_diff_for_file(gen1, full, '-')
|
||||
|
||||
for subdir in subdirs:
|
@ -0,0 +1,18 @@
|
||||
diff -urN obnam-1.2.orig/obnam.1.in obnam-1.2/obnam.1.in
|
||||
--- obnam-1.2.orig/obnam.1.in 2012-10-06 18:45:31.000000000 +0200
|
||||
+++ obnam-1.2/obnam.1.in 2012-10-11 10:18:55.991780255 +0200
|
||||
@@ -59,6 +59,14 @@
|
||||
lists every backup generation for a given client,
|
||||
plus some metadata about the generation.
|
||||
.IP \(bu
|
||||
+.B diff
|
||||
+compares two generations and lists files differing between them. Every output
|
||||
+line will be prefixed either by a plus sign (+) for files that were added, a
|
||||
+minus sign (-) for files that have been removed or an asterisk (*) for files
|
||||
+that have changed. If only one generation ID is specified on the command line
|
||||
+that generation will be compared with its direct predecessor. If two IDs have
|
||||
+been specified, all changes between those two generations will be listed.
|
||||
+.IP \(bu
|
||||
.B genids
|
||||
lists the identifier for every backup generation for a given client.
|
||||
No other information is shown.
|
@ -0,0 +1,53 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-backup/obnam/obnam-1.2-r1.ebuild,v 1.2 2012/10/11 08:25:40 mschiff Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
PYTHON_DEPEND="2:2.6:2.7"
|
||||
PYTHON_MODNAME="${PN}lib"
|
||||
MY_P="${PN}_${PV}.orig"
|
||||
|
||||
inherit eutils distutils python
|
||||
|
||||
DESCRIPTION="A backup program that supports encryption and deduplication"
|
||||
HOMEPAGE="http://liw.fi/obnam/"
|
||||
SRC_URI="http://code.liw.fi/debian/pool/main/o/${PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=">=dev-python/cliapp-1.20120630
|
||||
dev-python/larch
|
||||
dev-python/paramiko
|
||||
dev-python/tracing
|
||||
>=dev-python/ttystatus-0.19
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
# S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_prepare() {
|
||||
distutils_src_prepare
|
||||
epatch "${FILESDIR}/${P}_diff_fix.patch"
|
||||
epatch "${FILESDIR}/${P}_man_diff_fix.patch"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
distutils_src_install
|
||||
rm "${D}"/usr/bin/obnam-{benchmark,viewprof}
|
||||
rm "${D}"/usr/share/man/man1/obnam-benchmark*
|
||||
insinto /etc
|
||||
doins "${FILESDIR}"/obnam.conf
|
||||
keepdir /var/log/obnam
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ $REPLACING_VERSIONS < "1.2" ]]; then
|
||||
elog "You will need to setup a config file before running obnam for the first time."
|
||||
elog "For details, please see the obnam(1) manual page."
|
||||
elog "An example file has been installed as /etc/obnam.conf for your convenience."
|
||||
fi
|
||||
}
|
@ -0,0 +1,60 @@
|
||||
--- yatex1.76-orig/docs/yahtmle.tex
|
||||
+++ yatex1.76/docs/yahtmle.tex
|
||||
@@ -1,9 +1,10 @@
|
||||
\def\lang{eng} % -*- texinfo -*- for Texinfo V.3.1
|
||||
\input texinfo
|
||||
-@setfilename yahtmle
|
||||
+@setfilename yahtml.info
|
||||
@settitle Yet Another html-mode for Emacs
|
||||
+@dircategory Emacs
|
||||
@direntry
|
||||
-* yahtml-e: (yahtmle). Yet Another html-mode for Emacs (English).
|
||||
+* yahtml: (yahtml). Yet Another html-mode for Emacs (English).
|
||||
@end direntry
|
||||
|
||||
@iftex
|
||||
--- yatex1.76-orig/docs/yahtmlj.tex
|
||||
+++ yatex1.76/docs/yahtmlj.tex
|
||||
@@ -1,9 +1,10 @@
|
||||
\def\lang{jp} % -*- texinfo -*- for Texinfo V.3.1
|
||||
\input texinfo
|
||||
-@setfilename yahtmlj
|
||||
+@setfilename yahtml-ja.info
|
||||
@settitle Yet Another html-mode for Emacs
|
||||
+@dircategory Emacs
|
||||
@direntry
|
||||
-* yahtml: (yahtmlj). Yet Another html-mode for Emacs (Japanese).
|
||||
+* yahtml-ja: (yahtml-ja). Yet Another html-mode for Emacs (Japanese).
|
||||
@end direntry
|
||||
|
||||
@iftex
|
||||
--- yatex1.76-orig/docs/yatexe.tex
|
||||
+++ yatex1.76/docs/yatexe.tex
|
||||
@@ -1,9 +1,10 @@
|
||||
\def\lang{jp} % -*- texinfo -*-
|
||||
\input texinfo.tex
|
||||
-@setfilename yatexe
|
||||
+@setfilename yatex.info
|
||||
@settitle Yet Another tex-mode for Emacs
|
||||
+@dircategory Emacs
|
||||
@direntry
|
||||
-* YaTeX-e: (yatexe). Yet Another tex-mode for Emacs (English).
|
||||
+* YaTeX: (yatex). Yet Another tex-mode for Emacs (English).
|
||||
@end direntry
|
||||
|
||||
@iftex
|
||||
--- yatex1.76-orig/docs/yatexj.tex
|
||||
+++ yatex1.76/docs/yatexj.tex
|
||||
@@ -1,9 +1,10 @@
|
||||
\def\lang{jp} % -*- texinfo -*- for Texinfo V.3.1
|
||||
\input texinfo
|
||||
-@setfilename yatexj
|
||||
+@setfilename yatex-ja.info
|
||||
@settitle Yet Another tex-mode for Emacs
|
||||
+@dircategory Emacs
|
||||
@direntry
|
||||
-* YaTeX: (yatexj). Yet Another tex-mode for Emacs (Japanese).
|
||||
+* YaTeX-ja: (yatex-ja). Yet Another tex-mode for Emacs (Japanese).
|
||||
@end direntry
|
||||
|
||||
@iftex
|
@ -0,0 +1,18 @@
|
||||
Fixes link failure due to missing piix symbols.
|
||||
|
||||
LINK mips-softmmu/qemu-system-mips
|
||||
hw/mips/../mips_malta.o: In function `mips_malta_init':
|
||||
mips_malta.c:(.text+0x2314): undefined reference to `piix4_pm_init'
|
||||
collect2: error: ld returned 1 exit status
|
||||
diff --git a/hw/mips/Makefile.objs b/hw/mips/Makefile.objs
|
||||
index 29a5d0d..89af0e9 100644
|
||||
--- a/hw/mips/Makefile.objs
|
||||
+++ b/hw/mips/Makefile.objs
|
||||
@@ -1,6 +1,7 @@
|
||||
obj-y = mips_r4k.o mips_jazz.o mips_malta.o mips_mipssim.o
|
||||
obj-y += mips_addr.o mips_timer.o mips_int.o
|
||||
obj-y += gt64xxx.o mc146818rtc.o
|
||||
+obj-y += acpi.o acpi_piix4.o
|
||||
obj-$(CONFIG_FULONG) += bonito.o vt82c686.o mips_fulong2e.o
|
||||
|
||||
obj-y := $(addprefix ../,$(obj-y))
|
@ -1,8 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer>
|
||||
<email>maintainer-needed@gentoo.org</email>
|
||||
</maintainer>
|
||||
<maintainer>
|
||||
<email>pinkbyte@gentoo.org</email>
|
||||
<name>Sergey Popov</name>
|
||||
</maintainer>
|
||||
<longdescription></longdescription>
|
||||
</pkgmetadata>
|
||||
|
@ -0,0 +1,37 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-shells/rrs/rrs-1.70-r1.ebuild,v 1.2 2012/10/11 09:26:19 pinkbyte Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="Reverse Remote Shell"
|
||||
HOMEPAGE="http://freecode.com/projects/rrs"
|
||||
SRC_URI="http://www.cycom.se/uploads/36/19/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE="ssl"
|
||||
|
||||
DEPEND="ssl? ( dev-libs/openssl )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/"${P}"-asneeded.patch
|
||||
sed -i -e "s/-s //g" Makefile || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local target=""
|
||||
use ssl || target="-nossl"
|
||||
|
||||
emake generic${target} CFLAGS="${CFLAGS}" LDEXTRA="${LDFLAGS}" CC="$(tc-getCC)"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin rrs
|
||||
dodoc CHANGES README
|
||||
doman rrs.1
|
||||
}
|
@ -1,3 +1,2 @@
|
||||
DIST calibre-0.8.62.tar.xz 25090932 SHA256 5da54282959e86f288dbb3e275ab403db5a66c74c7ab384adeeb24c459612159 SHA512 2d129b49b3b6daa2a5c85c02a57e70c8ac1ca8b102bca6f708c9094b9f04fb97abed62b4b00e2876473e887492cffbda3247be6021dfb6fe869f878b335c213d WHIRLPOOL c2b90f76b21dda70902dfcdda7fc698f1dcdb5397724f409745530be3f891e556806aab10a3d9328ad695455a6e0ad04084182f63af55fb4328ba60fab228cfc
|
||||
DIST calibre-0.9.0.tar.xz 26954808 SHA256 2eef13a1b2857883bc552ce3b45bbd58135cdbae9a37bc162f4bf6cbaeed9b07 SHA512 32017f16c24dc14151d4b1e64a6e5da88210aa7b8ac6ca5501878ddcb216e07f0248888ac31c8cdddf14cccc9fa51cfd1059fb0270308d0ec370664a8e37a359 WHIRLPOOL 546d45922180d85de846cc177d00daccf96223642d6b6964feaa4d48abbea36c50dfc9040c5fd87ca525864c4dae567d05c0640de26d0f2dc20b754f1145c184
|
||||
DIST calibre-0.9.1.tar.xz 27084512 SHA256 c4d32577133769dd8db7a75d1293c2762a8dd876f1203557d33be7a61fed89b3 SHA512 7d770a1e1793a7110c59995c12497092e214662bf47a2196feab296c147f538a0dc19617919cdb8606fb43fb10668f7c8d7009ff1a96f9221a36ab0b363877f5 WHIRLPOOL c51914f30995a0b740e2a67bf77893ac676310c37844175f1aaff717bbc4b24dedd70183bf84d0742a470a302ce8f6965cffd4d39b1ee71ce263a46552a90add
|
||||
DIST calibre-0.9.2.tar.xz 27118940 SHA256 a9347dbe08a331e46a8db88cce8bd72bb8d06c582922a01ffa6b0345bd441c75 SHA512 f06dc3bf54e48972c2cd3fc2c6f9d377783e68393eeca782100049a1813314f981b1a5ae685189039c49dd38ab20d4ca5c0dccc2314c40ec16af9f52f4585ec0 WHIRLPOOL f7e201ab871a16994dec58cc4f1cb1d8c4a4c555d1cee16ef7b977ec1b41b639d3d669b426f19c30b3a7f9a33437804c51f8ad8e41761beea7fa470a4f329073
|
||||
|
@ -1,173 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/calibre-0.8.62.ebuild,v 1.4 2012/09/09 17:30:17 zmedico Exp $
|
||||
|
||||
EAPI=4
|
||||
PYTHON_DEPEND=2:2.7
|
||||
PYTHON_USE_WITH="ssl sqlite"
|
||||
|
||||
inherit python distutils eutils fdo-mime bash-completion-r1 multilib
|
||||
|
||||
DESCRIPTION="Ebook management application."
|
||||
HOMEPAGE="http://calibre-ebook.com/"
|
||||
SRC_URI="http://sourceforge.net/projects/calibre/files/${PV}/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
|
||||
KEYWORDS="amd64 x86"
|
||||
|
||||
SLOT="0"
|
||||
|
||||
IUSE="+udisks"
|
||||
|
||||
COMMON_DEPEND="
|
||||
>=app-text/podofo-0.8.2
|
||||
>=app-text/poppler-0.12.3-r3[qt4,xpdf-headers(+)]
|
||||
>=dev-libs/chmlib-0.40
|
||||
>=dev-libs/icu-4.4
|
||||
>=dev-python/beautifulsoup-3.0.5:python-2
|
||||
dev-python/python-dateutil
|
||||
>=dev-python/dnspython-1.6.0
|
||||
>=dev-python/cssutils-0.9.9
|
||||
>=dev-python/dbus-python-0.82.2
|
||||
>=dev-python/imaging-1.1.6
|
||||
>=dev-python/lxml-2.2.1
|
||||
>=dev-python/mechanize-0.1.11
|
||||
>=dev-python/python-dateutil-1.4.1
|
||||
>=dev-python/PyQt4-4.9.1[X,svg,webkit]
|
||||
>=media-gfx/imagemagick-6.5.9[jpeg,png]
|
||||
>=media-libs/libwmf-0.2.8
|
||||
virtual/libusb:1
|
||||
x11-libs/qt-dbus:4
|
||||
x11-libs/qt-svg:4
|
||||
>=x11-misc/xdg-utils-1.0.2-r2"
|
||||
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
udisks? ( sys-fs/udisks:0 )"
|
||||
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
>=dev-python/setuptools-0.6_rc5"
|
||||
|
||||
S=${WORKDIR}/${PN}
|
||||
|
||||
pkg_setup() {
|
||||
python_set_active_version 2.7
|
||||
python_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Fix outdated version constant.
|
||||
#sed -e "s#\\(^numeric_version =\\).*#\\1 (${PV//./, })#" \
|
||||
# -i src/calibre/constants.py || \
|
||||
# die "sed failed to patch constants.py"
|
||||
|
||||
# Avoid sandbox violation in /usr/share/gnome/apps when linux.py
|
||||
# calls xdg-* (bug #258938).
|
||||
sed -e "s|'xdg-desktop-menu', 'install'|\\0, '--mode', 'user'|" \
|
||||
-e "s|check_call(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \
|
||||
-e "s|\\(CurrentDir(tdir)\\), \\\\\$|\\1:|" \
|
||||
-e "s|PreserveMIMEDefaults():||" \
|
||||
-e "s|xdg-icon-resource install|\\0 --mode user|" \
|
||||
-e "s|cc(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \
|
||||
-e "s|xdg-mime install|\\0 --mode user|" \
|
||||
-i src/calibre/linux.py || die "sed failed to patch linux.py"
|
||||
|
||||
# Disable unnecessary privilege dropping for bug #287067.
|
||||
sed -e "s:if os.geteuid() == 0:if False and os.geteuid() == 0:" \
|
||||
-i setup/install.py || die "sed failed to patch install.py"
|
||||
|
||||
sed -e "/^ self\\.check_call(qmc + \\[.*\\.pro'\\])$/a\
|
||||
\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ self.check_call(['sed', \
|
||||
'-e', 's|^CFLAGS .*|\\\\\\\\0 ${CFLAGS}|', \
|
||||
'-e', 's|^CXXFLAGS .*|\\\\\\\\0 ${CXXFLAGS}|', \
|
||||
'-e', 's|^LFLAGS .*|\\\\\\\\0 ${LDFLAGS}|', \
|
||||
'-i', 'Makefile'])" \
|
||||
-i setup/extensions.py || die "sed failed to patch extensions.py"
|
||||
|
||||
distutils_src_prepare
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
||||
# Bypass kbuildsycoca and update-mime-database in order to
|
||||
# avoid sandbox violations if xdg-mime tries to call them.
|
||||
cat - > "${T}/kbuildsycoca" <<-EOF
|
||||
#!${BASH}
|
||||
exit 0
|
||||
EOF
|
||||
|
||||
cp "${T}"/{kbuildsycoca,update-mime-database}
|
||||
chmod +x "${T}"/{kbuildsycoca,update-mime-database}
|
||||
|
||||
# Unset DISPLAY in order to prevent xdg-mime from triggering a sandbox
|
||||
# violation with kbuildsycoca as in bug #287067, comment #13.
|
||||
export -n DISPLAY
|
||||
|
||||
# Bug #352625 - Some LANGUAGE values can trigger the following ValueError:
|
||||
# File "/usr/lib/python2.6/locale.py", line 486, in getdefaultlocale
|
||||
# return _parse_localename(localename)
|
||||
# File "/usr/lib/python2.6/locale.py", line 418, in _parse_localename
|
||||
# raise ValueError, 'unknown locale: %s' % localename
|
||||
#ValueError: unknown locale: 46
|
||||
export -n LANGUAGE
|
||||
|
||||
# Bug #295672 - Avoid sandbox violation in ~/.config by forcing
|
||||
# variables to point to our fake temporary $HOME.
|
||||
export HOME="${T}/fake_homedir"
|
||||
export XDG_CONFIG_HOME="${HOME}/.config"
|
||||
export XDG_DATA_HOME="${HOME}/.local/share"
|
||||
export CALIBRE_CONFIG_DIRECTORY="${XDG_CONFIG_HOME}/calibre"
|
||||
mkdir -p "${XDG_CONFIG_HOME}" "${CALIBRE_CONFIG_DIRECTORY}"
|
||||
|
||||
# Bug #334243 - respect LDFLAGS when building calibre-mount-helper
|
||||
export OVERRIDE_CFLAGS="$CFLAGS" OVERRIDE_LDFLAGS="$LDFLAGS"
|
||||
local libdir=$(get_libdir)
|
||||
[[ -n $libdir ]] || die "get_libdir returned an empty string"
|
||||
|
||||
dodir "$(python_get_sitedir)" # for init_calibre.py
|
||||
PATH=${T}:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \
|
||||
distutils_src_install \
|
||||
--prefix="${EPREFIX}/usr" \
|
||||
--libdir="${EPREFIX}/usr/${libdir}" \
|
||||
--staging-root="${ED}usr" \
|
||||
--staging-libdir="${ED}usr/${libdir}"
|
||||
|
||||
grep -rlZ "${ED}" "${ED}" | xargs -0 sed -e "s:${D}:/:g" -i ||
|
||||
die "failed to fix harcoded \$D in paths"
|
||||
|
||||
# Remove dummy calibre-mount-helper which is unused since calibre-0.8.25
|
||||
# due to bug #389515 (instead, calibre now calls udisks via dbus).
|
||||
rm "${ED}usr/bin/calibre-mount-helper" || die
|
||||
|
||||
# The menu entries end up here due to '--mode user' being added to
|
||||
# xdg-* options in src_prepare.
|
||||
dodir /usr/share/mime/packages
|
||||
chmod -fR a+rX,u+w,g-w,o-w "${HOME}"/.local
|
||||
mv "${HOME}"/.local/share/mime/packages/* "${ED}"usr/share/mime/packages/ ||
|
||||
die "failed to register mime types"
|
||||
dodir /usr/share/icons
|
||||
mv "${HOME}"/.local/share/icons/* "${ED}"usr/share/icons/ ||
|
||||
die "failed to install icon files"
|
||||
|
||||
domenu "${HOME}"/.local/share/applications/*.desktop ||
|
||||
die "failed to install .desktop menu files"
|
||||
|
||||
dobashcomp "${ED}"usr/etc/bash_completion.d/calibre
|
||||
rm -r "${ED}"usr/etc/bash_completion.d
|
||||
find "${ED}"usr/etc -type d -empty -delete
|
||||
|
||||
python_convert_shebangs -r $(python_get_version) "${ED}"
|
||||
|
||||
newinitd "${FILESDIR}"/calibre-server.init calibre-server
|
||||
newconfd "${FILESDIR}"/calibre-server.conf calibre-server
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
fdo-mime_desktop_database_update
|
||||
fdo-mime_mime_database_update
|
||||
python_mod_optimize /usr/$(get_libdir)/${PN}
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
python_mod_cleanup /usr/$(get_libdir)/${PN}
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/calibre-0.9.0.ebuild,v 1.1 2012/09/28 16:15:16 zmedico Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/calibre-0.9.2.ebuild,v 1.1 2012/10/11 11:32:06 zmedico Exp $
|
||||
|
||||
EAPI=4
|
||||
PYTHON_DEPEND=2:2.7
|
@ -1,3 +1,4 @@
|
||||
DIST lcdf-typetools-2.91.tar.gz 614362 SHA256 5b8fd4bec23c6e584c2d5289ff5b84c859f5b9836aac9704da8b33eec6a35aa1 SHA512 764030c95309ee1b746c373ce6b673738ce8f54c9258591470b3d096e18e7677d37afa223ceaf01d618884fffbaf3cb46dc0dfe109bc6bc93f002bd30b1dba13 WHIRLPOOL 472eaa7c60cb8c5426d1c8b9cde520b669afea42c2f25d741e406bf9d81915a312a8d4148ab4956fb1eac1c7a2996e717bff5af266c4ef126e3866b6e1ca94f7
|
||||
DIST lcdf-typetools-2.92.tar.gz 588653 SHA256 a7a9eeab572f4f392870f6e70e291235af18633b30ac179342efb5e99b426860 SHA512 b8d8812d09375fc6879ac523cd48c4f18f08af0dfbac6c5e920c1bf53a8d5c4ce187f7dba0001995f62ded3e41129d82302465dcd23bcf432bb66b976de0ab76 WHIRLPOOL eb0688160b4aff434cb8fee2190d3970598a46efd23d158aa123ded05cb9d2d0bcc420ce5f9b58e164b8abcaab58ed74ac46cc8ff6bae67f3b3fe18bdd6e9deb
|
||||
DIST lcdf-typetools-2.94.tar.gz 617639 SHA256 0d66e64fa59aed1722cf45a862f63e2d7d5b47915528abe76c29441d12fca29f SHA512 dd8c6c277fb247b9cad636ea3dd93b5d99c879b710117a1c06e874f826bc361e47e61564e9bc45a33a148a630707df824c572e23be433f36c6348b303ce25ebc WHIRLPOOL 32a1cd769a8e55175fb716e23f52280f5d6112ba60809ee3f49bd448ea072e9698b3ea9dba672504e09cbaebecab658912eb06ab4645dc11f2edefbedd39f8e8
|
||||
DIST lcdf-typetools-2.95.tar.gz 620404 SHA256 4fad43cd22d3e5f2aa9953d1619f6491abd99d4f52a28be49f5944d5d22b2ec2 SHA512 600b2c6b65238885bbf5d85f23f8fa232c59c8ac5bc7bac5490f5d2079df8b0fa45e19ad66b1a69b9135901a9bee235a7b8d0575f40e47d52a1686a5db49594b WHIRLPOOL d37a459f75895b6d372c2cd2ccaf86005af8d897db53a19ac7d83d1aa68345c4eb0847fd2711009cdf10b587915647c0e12a20d7fd14ee183f1ec099fb241623
|
||||
|
@ -0,0 +1,25 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/lcdf-typetools/lcdf-typetools-2.95.ebuild,v 1.1 2012/10/11 11:29:51 aballier Exp $
|
||||
|
||||
EAPI=2
|
||||
|
||||
DESCRIPTION="Font utilities for eg manipulating OTF"
|
||||
SRC_URI="http://www.lcdf.org/type/${P}.tar.gz"
|
||||
HOMEPAGE="http://www.lcdf.org/type/#typetools"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
SLOT="0"
|
||||
LICENSE="GPL-2"
|
||||
IUSE="+kpathsea"
|
||||
|
||||
DEPEND="kpathsea? ( virtual/tex-base )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_configure() {
|
||||
econf $(use_with kpathsea)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die "emake install failed"
|
||||
dodoc NEWS README ONEWS
|
||||
}
|
@ -1,4 +1,3 @@
|
||||
DIST poppler-0.18.4.tar.gz 1992993 SHA256 33421148cdc8e043da291dece2cce1cea6220d49a50c00c56d56d6435501d42e SHA512 dc7a8f059b6d0b1a73160a40226efc7b9d058806cc62c7b59e868453fef679dd92095629d26462f3697e96e6b16f95ce5425b7b96985f04b4d2db83e432e5216 WHIRLPOOL af4b8889aa0005dff5d4dae0414e2c1468e9a5bf58365425dae5cc96ae6afa8c2943cfc632a23781ac558df54e71f55d3195e8219f1410f026aebaf7cb62ba23
|
||||
DIST poppler-0.20.2.tar.gz 2146312 SHA256 2debc5034e0e85402957d84fb2674737658a3dbe8a3c631e1792e3f8c88ce369 SHA512 7a9a9e94298be025d8ee2dcba2be61c9d6bf167cee238a2599e211999ce0dcb59b5ef3418c5f3a6ddc8f1600e7ef2954c53f4a4149742a8a87879b1c58e77bed WHIRLPOOL 3c614eec3e054439a0733d00904fb27788c09ad41735397a5283ca74be0ec80b4f5ea77cf02a1a6706a2d0adf7cef2835eefe0e84f976aefcc8bbedd2e7e0430
|
||||
DIST poppler-0.20.3.tar.gz 2144857 SHA256 2ffef576f6de800285e0164f244bb0ca4f02d57f36540d4449a69e8fb8b72923 SHA512 a55bffdfe01196e93edcfd8a6b9ab832b998ec9e16975a8c92055a73fa283abae4c58f60270b5f8152e741d96c55ae6ef489bb688a278caa112068eb66e3adbd WHIRLPOOL 264c97160969fd8968669d4f475c24bb76136c2eae3bed1f2079fe2cfba12326327efba42092f304b2239e9069f87137988c45a604241f1d2e95a2479528ba7e
|
||||
DIST poppler-0.20.4.tar.gz 2154257 SHA256 bdb9b2579bc43f034a69612fc1eebead0c468767c949c6c6548ee71b71abd72a SHA512 3e0603cae90667fec11cbd4e2778d779d56a7b38f621c47cabba8be31fb1cdac8dcbf936295560528098838aa0db516baaeb4234dd585947413816db344bb778 WHIRLPOOL 8c56d7da64f9e86290142efd6364b458f449ff9f306b170348c4d5965100c17470ae4069bcea1033d65f62870aaf144fc7fb2b53d3044f1bc0b0c483f0deffa4
|
||||
DIST poppler-0.20.5.tar.gz 2158387 SHA256 c6d7048a5f011dbde1f579d21bcfdd652b472d9d1c607dde9aa89eff960454b6 SHA512 2c9245d8a43c1daedcedc7916540cb5e9def8429382e9b3f3992d4a1fad081c035a9fc07d63998e210257d3dfd0b3b754e31be8f75fd2d94a8e50c7efbd1bb01 WHIRLPOOL cab7068d0b1b678797b9d63aa71e42bb3b70fd6d3f956a43b093734f445ce577a75638ebc4c2a2786ac592c2860f1090db22743cf01da8dab65ceb9a16ebc136
|
||||
|
@ -1,46 +0,0 @@
|
||||
From 36481939e3064de920e49d9d1742a85473a50963 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Freitag <Thomas.Freitag@alfa.de>
|
||||
Date: Sun, 22 Jul 2012 16:40:46 +0000
|
||||
Subject: Make sure xScale and yScale are always initialized
|
||||
|
||||
Bug #52215
|
||||
---
|
||||
diff --git a/poppler/PSOutputDev.cc b/poppler/PSOutputDev.cc
|
||||
index a01a4b3..e15c2e9 100644
|
||||
--- a/poppler/PSOutputDev.cc
|
||||
+++ b/poppler/PSOutputDev.cc
|
||||
@@ -3521,6 +3521,7 @@ void PSOutputDev::startPage(int pageNum, GfxState *state) {
|
||||
saveState(NULL);
|
||||
}
|
||||
|
||||
+ xScale = yScale = 1;
|
||||
switch (mode) {
|
||||
|
||||
case psModePSOrigPageSizes:
|
||||
@@ -3631,8 +3632,6 @@ void PSOutputDev::startPage(int pageNum, GfxState *state) {
|
||||
} else {
|
||||
yScale = xScale;
|
||||
}
|
||||
- } else {
|
||||
- xScale = yScale = 1;
|
||||
}
|
||||
// deal with odd bounding boxes or clipping
|
||||
if (clipLLX0 < clipURX0 && clipLLY0 < clipURY0) {
|
||||
@@ -3694,7 +3693,6 @@ void PSOutputDev::startPage(int pageNum, GfxState *state) {
|
||||
if (tx != 0 || ty != 0) {
|
||||
writePSFmt("{0:.6g} {1:.6g} translate\n", tx, ty);
|
||||
}
|
||||
- xScale = yScale = 1;
|
||||
break;
|
||||
|
||||
case psModeForm:
|
||||
@@ -3702,7 +3700,6 @@ void PSOutputDev::startPage(int pageNum, GfxState *state) {
|
||||
writePS("begin xpdf begin\n");
|
||||
writePS("pdfStartPage\n");
|
||||
tx = ty = 0;
|
||||
- xScale = yScale = 1;
|
||||
rotate = 0;
|
||||
break;
|
||||
}
|
||||
--
|
||||
cgit v0.9.0.2-2-gbebe
|
@ -1,102 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/poppler/poppler-0.20.2-r2.ebuild,v 1.1 2012/08/08 16:51:59 dilfridge Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit cmake-utils
|
||||
|
||||
DESCRIPTION="PDF rendering library based on the xpdf-3.0 code base"
|
||||
HOMEPAGE="http://poppler.freedesktop.org/"
|
||||
SRC_URI="http://poppler.freedesktop.org/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
SLOT="0"
|
||||
IUSE="cairo cjk curl cxx debug doc +introspection jpeg jpeg2k +lcms png qt4 tiff +utils"
|
||||
|
||||
# No test data provided
|
||||
RESTRICT="test"
|
||||
|
||||
COMMON_DEPEND="
|
||||
>=media-libs/fontconfig-2.6.0
|
||||
>=media-libs/freetype-2.3.9
|
||||
sys-libs/zlib
|
||||
cairo? (
|
||||
dev-libs/glib:2
|
||||
>=x11-libs/cairo-1.10.0
|
||||
introspection? ( >=dev-libs/gobject-introspection-1.32.1 )
|
||||
)
|
||||
curl? ( net-misc/curl )
|
||||
jpeg? ( virtual/jpeg )
|
||||
jpeg2k? ( media-libs/openjpeg )
|
||||
lcms? ( media-libs/lcms:2 )
|
||||
png? ( >=media-libs/libpng-1.4:0 )
|
||||
qt4? (
|
||||
x11-libs/qt-core:4
|
||||
x11-libs/qt-gui:4
|
||||
)
|
||||
tiff? ( media-libs/tiff:0 )
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
virtual/pkgconfig
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
!dev-libs/poppler
|
||||
!dev-libs/poppler-glib
|
||||
!dev-libs/poppler-qt3
|
||||
!dev-libs/poppler-qt4
|
||||
!app-text/poppler-utils
|
||||
cjk? ( >=app-text/poppler-data-0.4.4 )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-0.20.1-lcms-automagic.patch"
|
||||
"${FILESDIR}/${PN}-0.20.2-xyscale.patch"
|
||||
)
|
||||
|
||||
DOCS=(AUTHORS ChangeLog NEWS README README-XPDF TODO)
|
||||
|
||||
src_configure() {
|
||||
mycmakeargs=(
|
||||
-DBUILD_GTK_TESTS=OFF
|
||||
-DBUILD_QT4_TESTS=OFF
|
||||
-DBUILD_CPP_TESTS=OFF
|
||||
-DENABLE_SPLASH=ON
|
||||
-DENABLE_ZLIB=ON
|
||||
-DENABLE_XPDF_HEADERS=ON
|
||||
$(cmake-utils_use_enable curl LIBCURL)
|
||||
$(cmake-utils_use_enable cxx CPP)
|
||||
$(cmake-utils_use_enable jpeg2k LIBOPENJPEG)
|
||||
$(cmake-utils_use_enable utils)
|
||||
$(cmake-utils_use_with cairo)
|
||||
$(cmake-utils_use_with introspection GObjectIntrospection)
|
||||
$(cmake-utils_use_with jpeg)
|
||||
$(cmake-utils_use_with png)
|
||||
$(cmake-utils_use_with qt4)
|
||||
$(cmake-utils_use_with tiff)
|
||||
)
|
||||
if use lcms; then
|
||||
mycmakeargs+=(-DENABLE_CMS=lcms2)
|
||||
else
|
||||
mycmakeargs+=(-DENABLE_CMS=)
|
||||
fi
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
|
||||
if use cairo && use doc; then
|
||||
# For now install gtk-doc there
|
||||
insinto /usr/share/gtk-doc/html/poppler
|
||||
doins -r "${S}"/glib/reference/html/* || die 'failed to install API documentation'
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ewarn "After upgrading app-text/poppler you may need to reinstall packages"
|
||||
ewarn "linking to it. If you're not a portage-2.2_rc user, you're advised"
|
||||
ewarn "to run revdep-rebuild"
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/poppler/poppler-0.20.3.ebuild,v 1.1 2012/08/12 23:28:56 reavertm Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/poppler/poppler-0.20.5.ebuild,v 1.1 2012/10/11 18:38:29 reavertm Exp $
|
||||
|
||||
EAPI=4
|
||||
|
@ -0,0 +1,15 @@
|
||||
Parallel build error: all-tree.def: No such file or directory
|
||||
|
||||
http://gcc.gnu.org/PR46173
|
||||
|
||||
--- a/gcc/gcc/Makefile.in
|
||||
+++ b/gcc/gcc/Makefile.in
|
||||
@@ -3421,7 +3421,7 @@ build/genattrtab.o : genattrtab.c $(RTL_BASE_H) $(OBSTACK_H) \
|
||||
build/genautomata.o : genautomata.c $(RTL_BASE_H) $(OBSTACK_H) \
|
||||
$(BCONFIG_H) $(SYSTEM_H) coretypes.h $(GTM_H) errors.h vec.h \
|
||||
$(HASHTAB_H) gensupport.h
|
||||
-build/gencheck.o : gencheck.c tree.def $(BCONFIG_H) $(GTM_H) \
|
||||
+build/gencheck.o : gencheck.c all-tree.def $(BCONFIG_H) $(GTM_H) \
|
||||
$(SYSTEM_H) coretypes.h $(lang_tree_files) gimple.def
|
||||
build/genchecksum.o : genchecksum.c $(BCONFIG_H) $(SYSTEM_H) $(MD5_H)
|
||||
build/gencodes.o : gencodes.c $(RTL_BASE_H) $(BCONFIG_H) $(SYSTEM_H) \
|
@ -1,5 +1,3 @@
|
||||
DIST v8-3.12.19.11.tar.bz2 10184024 SHA256 070b89121f38efef175d435eb087dea6d17ce80de3ced5e984579ce77da9bb77 SHA512 f6dc842e5a36e5b21cfd76118397f983256a8dd5748cc4bdec57969187b0aec014ed46c48e580a4df15bbf1c86bcedd19ac1adc05aa0dae5d1cf0f941982bd92 WHIRLPOOL aced79b3642634008d255972a1ecbe4d6a5138d4818464ea0283529b8ab2a4254d794d5d0541b338b788ab7aec9d5a02984186c1f77fe9bfe7734b211f2d2507
|
||||
DIST v8-3.12.19.13.tar.bz2 10183672 SHA256 838f4521650486a8fc26ed24ab1c0b6210688f62e2365cfde3a8ac96f97da9e1 SHA512 05517982372b262d78e4ae4b5ce9baf4468d560e0e340820dc3e46ffb186da7b380848bb067bc29386275be8101e48655831c42c853160290dd5d92fbc2e9e12 WHIRLPOOL 4368b39061ff37c7085692482fc086d0d640803f2e5df4b2b4e71e477e5547fab41a7699b85b87c1bccee69d401163eb321dcd4a37cad49084a6ea25cd2111ac
|
||||
DIST v8-3.12.19.15.tar.bz2 10184474 SHA256 5f8f0a700a88250170118b5994aacf57f6527a6c0017096b5cb322ecbad6e187 SHA512 40c1bbc4dc48331c5f6cfeb4a0168abd47b8c11d68be64bef25a094439898f197920f3bb5b7be2c795a9906a5789239f843702ae6f65439bb6b1f958fb40297d WHIRLPOOL 65e145a8b866213790e03d97293d7911754169f33c497007f5f1806e9ab32f1fe9a257a3966a8814972c8b0d08361f81548ec01c0fbd3f6dcc742bbf13f1c868
|
||||
DIST v8-3.13.7.1.tar.bz2 10201729 SHA256 6c903410651d87f67e7c5b35321e8a6709b2e442fa6e283ac2def898fdc4d4a7 SHA512 015285af38b9e9259abb0f1fe2f1c1c24b7280c3a2424c119d9dc64b1d213942a30f6eec8e7517a6badad88e455b8fc97d8ea074d991153853529a29d942a5cf WHIRLPOOL b2f002e5dfc3e9c344dced70c9f0999fa2087636842053df25168af324d71ec3ecffd4d506d924f7d8a6e4303d691cb18bc6af7ccbb49452d38a3b34fa63b581
|
||||
DIST v8-3.13.7.2.tar.bz2 10202585 SHA256 ff5761dcd52c4479237e39e6e20fcfcc511764ece69109541a9b461c6a5dad5a SHA512 987e06f34d2f45ece40a3fd6957a827cb971adc44c52380b4cf9086f075885c4dcf42edb407c89b14652f4e824fb840ed8c21429230fe2d279d158b170fa0d96 WHIRLPOOL e38dd3f8f53cdfc86b4af88a47bce523ec045866d6a88c6e5f7b8caf9e5e8ab383a7428091c3048e92687df89a1718bce9fc72997ae23e503db68192b2676b9c
|
||||
|
@ -1,133 +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/v8/v8-3.12.19.11.ebuild,v 1.3 2012/09/26 10:51:51 ago Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
PYTHON_DEPEND="2:2.6"
|
||||
|
||||
inherit eutils multilib pax-utils python toolchain-funcs versionator
|
||||
|
||||
DESCRIPTION="Google's open source JavaScript engine"
|
||||
HOMEPAGE="http://code.google.com/p/v8"
|
||||
SRC_URI="http://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.bz2"
|
||||
LICENSE="BSD"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86 ~x86-fbsd ~x64-macos ~x86-macos"
|
||||
IUSE=""
|
||||
|
||||
pkg_setup() {
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-3.10.8.10-freebsd9.patch
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export AR CC CXX RANLIB
|
||||
export LINK=${CXX}
|
||||
|
||||
# Use target arch detection logic from bug #354601.
|
||||
case ${CHOST} in
|
||||
i?86-*) myarch=ia32 ;;
|
||||
x86_64-*)
|
||||
if [[ $ABI = x86 ]] ; then
|
||||
myarch=ia32
|
||||
else
|
||||
myarch=x64
|
||||
fi ;;
|
||||
arm*-*) myarch=arm ;;
|
||||
*) die "Unrecognized CHOST: ${CHOST}"
|
||||
esac
|
||||
mytarget=${myarch}.release
|
||||
|
||||
soname_version="$(get_version_component_range 1-3)"
|
||||
|
||||
local snapshot=on
|
||||
host-is-pax && snapshot=off
|
||||
|
||||
# TODO: Add console=readline option once implemented upstream
|
||||
# http://code.google.com/p/v8/issues/detail?id=1781
|
||||
|
||||
emake V=1 \
|
||||
library=shared \
|
||||
werror=no \
|
||||
soname_version=${soname_version} \
|
||||
snapshot=${snapshot} \
|
||||
${mytarget} || die
|
||||
|
||||
pax-mark m out/${mytarget}/{cctest,d8,shell} || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local arg testjobs
|
||||
for arg in ${MAKEOPTS}; do
|
||||
case ${arg} in
|
||||
-j*) testjobs=${arg#-j} ;;
|
||||
--jobs=*) testjobs=${arg#--jobs=} ;;
|
||||
esac
|
||||
done
|
||||
|
||||
tools/test-wrapper-gypbuild.py \
|
||||
-j${testjobs:-1} \
|
||||
--arch-and-mode=${mytarget} \
|
||||
--no-presubmit \
|
||||
--progress=dots || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /usr
|
||||
doins -r include || die
|
||||
|
||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||
# buildsystem is too horrific to get this built correctly
|
||||
mkdir -p out/${mytarget}/lib.target
|
||||
mv out/${mytarget}/libv8.so.${soname_version} \
|
||||
out/${mytarget}/lib.target/libv8$(get_libname ${soname_version}) || die
|
||||
install_name_tool \
|
||||
-id "${EPREFIX}"/usr/$(get_libdir)/libv8$(get_libname) \
|
||||
out/${mytarget}/lib.target/libv8$(get_libname ${soname_version}) \
|
||||
|| die
|
||||
install_name_tool \
|
||||
-change \
|
||||
"${S}"/out/${mytarget}/libv8.so.${soname_version} \
|
||||
"${EPREFIX}"/usr/$(get_libdir)/libv8$(get_libname) \
|
||||
out/${mytarget}/d8 || die
|
||||
fi
|
||||
|
||||
dobin out/${mytarget}/d8 || die
|
||||
|
||||
dolib out/${mytarget}/lib.target/libv8$(get_libname ${soname_version}) || die
|
||||
dosym libv8$(get_libname ${soname_version}) /usr/$(get_libdir)/libv8$(get_libname) || die
|
||||
|
||||
dodoc AUTHORS ChangeLog || die
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
preserved_libs=()
|
||||
local baselib candidate
|
||||
|
||||
eshopts_push -s nullglob
|
||||
|
||||
for candidate in "${EROOT}usr/$(get_libdir)"/libv8$(get_libname).*; do
|
||||
baselib=${candidate##*/}
|
||||
if [[ ! -e "${ED}usr/$(get_libdir)/${baselib}" ]]; then
|
||||
preserved_libs+=( "${EPREFIX}/usr/$(get_libdir)/${baselib}" )
|
||||
fi
|
||||
done
|
||||
|
||||
eshopts_pop
|
||||
|
||||
if [[ ${#preserved_libs[@]} -gt 0 ]]; then
|
||||
preserve_old_lib "${preserved_libs[@]}"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ ${#preserved_libs[@]} -gt 0 ]]; then
|
||||
preserve_old_lib_notify "${preserved_libs[@]}"
|
||||
fi
|
||||
}
|
@ -1,133 +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/v8/v8-3.12.19.13.ebuild,v 1.1 2012/09/27 01:15:34 floppym Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
PYTHON_DEPEND="2:2.6"
|
||||
|
||||
inherit eutils multilib pax-utils python toolchain-funcs versionator
|
||||
|
||||
DESCRIPTION="Google's open source JavaScript engine"
|
||||
HOMEPAGE="http://code.google.com/p/v8"
|
||||
SRC_URI="http://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.bz2"
|
||||
LICENSE="BSD"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~x86-fbsd ~x64-macos ~x86-macos"
|
||||
IUSE=""
|
||||
|
||||
pkg_setup() {
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-3.10.8.10-freebsd9.patch
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export AR CC CXX RANLIB
|
||||
export LINK=${CXX}
|
||||
|
||||
# Use target arch detection logic from bug #354601.
|
||||
case ${CHOST} in
|
||||
i?86-*) myarch=ia32 ;;
|
||||
x86_64-*)
|
||||
if [[ $ABI = x86 ]] ; then
|
||||
myarch=ia32
|
||||
else
|
||||
myarch=x64
|
||||
fi ;;
|
||||
arm*-*) myarch=arm ;;
|
||||
*) die "Unrecognized CHOST: ${CHOST}"
|
||||
esac
|
||||
mytarget=${myarch}.release
|
||||
|
||||
soname_version="$(get_version_component_range 1-3)"
|
||||
|
||||
local snapshot=on
|
||||
host-is-pax && snapshot=off
|
||||
|
||||
# TODO: Add console=readline option once implemented upstream
|
||||
# http://code.google.com/p/v8/issues/detail?id=1781
|
||||
|
||||
emake V=1 \
|
||||
library=shared \
|
||||
werror=no \
|
||||
soname_version=${soname_version} \
|
||||
snapshot=${snapshot} \
|
||||
${mytarget} || die
|
||||
|
||||
pax-mark m out/${mytarget}/{cctest,d8,shell} || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local arg testjobs
|
||||
for arg in ${MAKEOPTS}; do
|
||||
case ${arg} in
|
||||
-j*) testjobs=${arg#-j} ;;
|
||||
--jobs=*) testjobs=${arg#--jobs=} ;;
|
||||
esac
|
||||
done
|
||||
|
||||
tools/test-wrapper-gypbuild.py \
|
||||
-j${testjobs:-1} \
|
||||
--arch-and-mode=${mytarget} \
|
||||
--no-presubmit \
|
||||
--progress=dots || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /usr
|
||||
doins -r include || die
|
||||
|
||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||
# buildsystem is too horrific to get this built correctly
|
||||
mkdir -p out/${mytarget}/lib.target
|
||||
mv out/${mytarget}/libv8.so.${soname_version} \
|
||||
out/${mytarget}/lib.target/libv8$(get_libname ${soname_version}) || die
|
||||
install_name_tool \
|
||||
-id "${EPREFIX}"/usr/$(get_libdir)/libv8$(get_libname) \
|
||||
out/${mytarget}/lib.target/libv8$(get_libname ${soname_version}) \
|
||||
|| die
|
||||
install_name_tool \
|
||||
-change \
|
||||
"${S}"/out/${mytarget}/libv8.so.${soname_version} \
|
||||
"${EPREFIX}"/usr/$(get_libdir)/libv8$(get_libname) \
|
||||
out/${mytarget}/d8 || die
|
||||
fi
|
||||
|
||||
dobin out/${mytarget}/d8 || die
|
||||
|
||||
dolib out/${mytarget}/lib.target/libv8$(get_libname ${soname_version}) || die
|
||||
dosym libv8$(get_libname ${soname_version}) /usr/$(get_libdir)/libv8$(get_libname) || die
|
||||
|
||||
dodoc AUTHORS ChangeLog || die
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
preserved_libs=()
|
||||
local baselib candidate
|
||||
|
||||
eshopts_push -s nullglob
|
||||
|
||||
for candidate in "${EROOT}usr/$(get_libdir)"/libv8$(get_libname).*; do
|
||||
baselib=${candidate##*/}
|
||||
if [[ ! -e "${ED}usr/$(get_libdir)/${baselib}" ]]; then
|
||||
preserved_libs+=( "${EPREFIX}/usr/$(get_libdir)/${baselib}" )
|
||||
fi
|
||||
done
|
||||
|
||||
eshopts_pop
|
||||
|
||||
if [[ ${#preserved_libs[@]} -gt 0 ]]; then
|
||||
preserve_old_lib "${preserved_libs[@]}"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ ${#preserved_libs[@]} -gt 0 ]]; then
|
||||
preserve_old_lib_notify "${preserved_libs[@]}"
|
||||
fi
|
||||
}
|
@ -0,0 +1,464 @@
|
||||
diff -ur a/Makefile.PL b/Makefile.PL
|
||||
--- a/Makefile.PL 2010-05-29 02:43:06.000000000 -0400
|
||||
+++ b/Makefile.PL 2012-10-11 14:56:18.000000000 -0400
|
||||
@@ -12,6 +12,7 @@
|
||||
######################################################################
|
||||
|
||||
use ExtUtils::MakeMaker;
|
||||
+use ExtUtils::PkgConfig;
|
||||
use Getopt::Long;
|
||||
|
||||
# Get the right lib and include dirs for different platforms
|
||||
@@ -37,7 +38,7 @@
|
||||
"/usr/lib/firefox" => "/usr/include/firefox",
|
||||
);
|
||||
|
||||
-my ($JS_LIB_DIR, @JS_INCL_DIRS, $JS_LIB_NAME);
|
||||
+my ($JS_LIB_DIR, @JS_INCL_DIRS, $JS_LIB_NAME, $JS_LIBS, $JS_INCLUDES);
|
||||
|
||||
#### Determine compile options
|
||||
##############################
|
||||
@@ -57,6 +58,19 @@
|
||||
"JS_LIB_DIR=s" => \$JS_LIB_DIR,
|
||||
"JS_LIB_NAME=s" => \$JS_LIB_NAME,
|
||||
);
|
||||
+
|
||||
+# try to find spidermonkey via pkg-config first
|
||||
+
|
||||
+$JS_LIBS = ExtUtils::PkgConfig->libs ('mozjs187');
|
||||
+if ("".$JS_LIBS ne "") {
|
||||
+ $JS_INCLUDES = ExtUtils::PkgConfig->cflags ('mozjs187');
|
||||
+} else {
|
||||
+ $JS_LIBS = ExtUtils::PkgConfig->libs ('mozjs185');
|
||||
+ if ("".$JS_LIBS ne "") {
|
||||
+ $JS_INCLUDES = ExtUtils::PkgConfig->cflags ('mozjs185');
|
||||
+ } else {
|
||||
+
|
||||
+# pkg-config did not work, use the old (direct) way to find older libs
|
||||
if ($JS_LIB_DIR) {
|
||||
push @JS_INCL_DIRS, $JS_LIB_DIR;
|
||||
}
|
||||
@@ -78,13 +92,15 @@
|
||||
}
|
||||
}
|
||||
if (scalar(@JS_INCL_DIRS) == scalar(@c_header_files)) {
|
||||
- $JS_LIB_DIR = $libfile;
|
||||
+ $JS_LIB_DIR = "-L".$libfile;
|
||||
$JS_LIB_DIR =~ s/$possible_lib$//;
|
||||
|
||||
$JS_LIB_NAME = $possible_lib;
|
||||
$JS_LIB_NAME =~ s/\.(a|so|dll)$//;
|
||||
$JS_LIB_NAME =~ s/^lib//;
|
||||
|
||||
+ $JS_LIBS = "-l".$JS_LIB_NAME;
|
||||
+
|
||||
last;
|
||||
} else {
|
||||
@JS_INCL_DIRS = ();
|
||||
@@ -94,15 +110,22 @@
|
||||
}
|
||||
last if $JS_LIB_DIR;
|
||||
}
|
||||
+foreach my $include_dir(@JS_INCL_DIRS) {
|
||||
+ $JS_INCLUDES.=" -I".$include_dir;
|
||||
+}
|
||||
|
||||
if ($JS_INCL_DIRS[0] eq $JS_INCL_DIRS[1]) {
|
||||
shift @JS_INCL_DIRS;
|
||||
}
|
||||
|
||||
+} # end of pkgcfg mozjs185
|
||||
+} # end of pkgcfg mozjs187
|
||||
+
|
||||
+
|
||||
## If no SpiderMonkey library found report that and exit.
|
||||
## Otherwise print lib and include paths.
|
||||
|
||||
-if (!$JS_LIB_DIR) {
|
||||
+if (!$JS_LIBS) {
|
||||
print <<EOT;
|
||||
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
@@ -111,17 +134,13 @@
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
|
||||
EOT
|
||||
- exit 0;
|
||||
+ exit 1;
|
||||
} else {
|
||||
- print "JS_LIB_DIR: $JS_LIB_DIR\n";
|
||||
- foreach my $include_dir(@JS_INCL_DIRS) {
|
||||
- print "JS_INCL_DIR: $include_dir\n";
|
||||
- }
|
||||
- print "JS_LIB_NAME: $JS_LIB_NAME\n";
|
||||
+ print "JS_LIBS: $JS_LIBS\n";
|
||||
+ print "JS_INCLUDES: $include_dir\n";
|
||||
}
|
||||
|
||||
|
||||
-
|
||||
## Determine library name and system-related defines
|
||||
if ($^O ne 'MSWin32') {
|
||||
$JS_DEFINE = '-DXP_UNIX';
|
||||
@@ -160,10 +179,11 @@
|
||||
($] >= 5.005 ? ## Add these new keywords supported since 5.005
|
||||
(ABSTRACT_FROM => 'SpiderMonkey.pm', # retrieve abstract from module
|
||||
AUTHOR => 'Mike Schilli <m@perlmeister.com>') : ()),
|
||||
- 'LIBS' => ["-L$JS_LIB_DIR -l$JS_LIB_NAME"],
|
||||
+ 'LIBS' => ["$JS_LIB_DIR $JS_LIBS"],
|
||||
'DEFINE' => $JS_DEFINE, # e.g., '-DHAVE_SOMETHING'
|
||||
# Insert -I. if you add *.h files later:
|
||||
- 'INC' => "-I".join " -I", @JS_INCL_DIRS,
|
||||
+# 'INC' => "-I".join " -I", @JS_INCL_DIRS,
|
||||
+ 'INC' => $JS_INCLUDES,
|
||||
# Un-comment this if you add C files to link with later:
|
||||
# 'OBJECT' => '$(O_FILES)', # link all the C files too
|
||||
);
|
||||
diff -ur a/SpiderMonkey.pm b/SpiderMonkey.pm
|
||||
--- a/SpiderMonkey.pm 2010-05-29 02:49:31.000000000 -0400
|
||||
+++ b/SpiderMonkey.pm 2012-10-11 14:56:18.000000000 -0400
|
||||
@@ -161,9 +161,8 @@
|
||||
$self->{global_class} =
|
||||
JavaScript::SpiderMonkey::JS_GlobalClass();
|
||||
$self->{global_object} =
|
||||
- JavaScript::SpiderMonkey::JS_NewObject(
|
||||
- $self->{context}, $self->{global_class},
|
||||
- $self->{global_class}, $self->{global_class});
|
||||
+ JavaScript::SpiderMonkey::JS_NewCompartmentAndGlobalObject(
|
||||
+ $self->{context}, $self->{global_class});
|
||||
|
||||
JavaScript::SpiderMonkey::JS_InitStandardClasses($self->{context},
|
||||
$self->{global_object});
|
||||
diff -ur a/SpiderMonkey.xs b/SpiderMonkey.xs
|
||||
--- a/SpiderMonkey.xs 2010-05-29 02:49:31.000000000 -0400
|
||||
+++ b/SpiderMonkey.xs 2012-10-11 14:56:18.000000000 -0400
|
||||
@@ -20,10 +20,13 @@
|
||||
#define snprintf _snprintf
|
||||
#endif
|
||||
|
||||
+#ifndef JSCLASS_GLOBAL_FLAGS
|
||||
+#define JSCLASS_GLOBAL_FLAGS 0
|
||||
+#endif
|
||||
/* JSRuntime needs this global class */
|
||||
static
|
||||
JSClass global_class = {
|
||||
- "Global", 0,
|
||||
+ "Global", JSCLASS_GLOBAL_FLAGS,
|
||||
JS_PropertyStub, JS_PropertyStub, JS_PropertyStub, JS_PropertyStub,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, JS_FinalizeStub
|
||||
};
|
||||
@@ -67,10 +70,18 @@
|
||||
* I hope all reasonable machines can hold an address in
|
||||
* an int.
|
||||
*/
|
||||
- XPUSHs(sv_2mortal(newSViv((int)obj)));
|
||||
+ XPUSHs(sv_2mortal(newSViv(PTR2IV(obj))));
|
||||
+#if JS_VERSION < 185
|
||||
XPUSHs(sv_2mortal(newSVpv(JS_GetStringBytes(JSVAL_TO_STRING(id)), 0)));
|
||||
+#else
|
||||
+ XPUSHs(sv_2mortal(newSVpv(JS_EncodeString(cx, JSVAL_TO_STRING(id)), 0)));
|
||||
+#endif
|
||||
XPUSHs(sv_2mortal(newSVpv(what, 0)));
|
||||
+#if JS_VERSION < 185
|
||||
XPUSHs(sv_2mortal(newSVpv(JS_GetStringBytes(JSVAL_TO_STRING(*vp)), 0)));
|
||||
+#else
|
||||
+ XPUSHs(sv_2mortal(newSVpv(JS_EncodeString(cx, JSVAL_TO_STRING(*vp)), 0)));
|
||||
+#endif
|
||||
PUTBACK;
|
||||
call_pv("JavaScript::SpiderMonkey::getsetter_dispatcher", G_DISCARD);
|
||||
FREETMPS;
|
||||
@@ -83,10 +94,21 @@
|
||||
JSBool getter_dispatcher(
|
||||
JSContext *cx,
|
||||
JSObject *obj,
|
||||
+#if JS_VERSION < 185
|
||||
jsval id,
|
||||
+#else
|
||||
+ jsid iid,
|
||||
+#endif
|
||||
jsval *vp
|
||||
/* --------------------------------------------------------------------- */
|
||||
) {
|
||||
+#if JS_VERSION >= 185
|
||||
+ jsval id;
|
||||
+ if (!JS_IdToValue(cx,iid,&id)) {
|
||||
+ fprintf(stderr, "getter_dispatcher: JS_IdToValue failed.\n");
|
||||
+ return JS_FALSE;
|
||||
+ }
|
||||
+#endif
|
||||
return getsetter_dispatcher(cx, obj, id, vp, "getter");
|
||||
}
|
||||
|
||||
@@ -94,10 +116,22 @@
|
||||
JSBool setter_dispatcher(
|
||||
JSContext *cx,
|
||||
JSObject *obj,
|
||||
+#if JS_VERSION < 185
|
||||
jsval id,
|
||||
+#else
|
||||
+ jsid iid,
|
||||
+ JSBool strict,
|
||||
+#endif
|
||||
jsval *vp
|
||||
/* --------------------------------------------------------------------- */
|
||||
) {
|
||||
+#if JS_VERSION >= 185
|
||||
+ jsval id;
|
||||
+ if (!JS_IdToValue(cx,iid,&id)) {
|
||||
+ fprintf(stderr, "setter_dispatcher: JS_IdToValue failed.\n");
|
||||
+ return JS_FALSE;
|
||||
+ }
|
||||
+#endif
|
||||
return getsetter_dispatcher(cx, obj, id, vp, "setter");
|
||||
}
|
||||
|
||||
@@ -128,10 +162,19 @@
|
||||
|
||||
/* --------------------------------------------------------------------- */
|
||||
static JSBool
|
||||
+#if JS_VERSION < 185
|
||||
FunctionDispatcher(JSContext *cx, JSObject *obj, uintN argc,
|
||||
jsval *argv, jsval *rval) {
|
||||
+#else
|
||||
+FunctionDispatcher(JSContext *cx, uintN argc, jsval *vp) {
|
||||
+#endif
|
||||
/* --------------------------------------------------------------------- */
|
||||
dSP;
|
||||
+#if JS_VERSION >= 185
|
||||
+ JSObject *obj = JS_THIS_OBJECT(cx,vp);
|
||||
+ jsval *argv = JS_ARGV(cx,vp);
|
||||
+ jsval rval;
|
||||
+#endif
|
||||
SV *sv;
|
||||
char *n_jstr;
|
||||
int n_jnum;
|
||||
@@ -149,12 +192,20 @@
|
||||
ENTER ;
|
||||
SAVETMPS ;
|
||||
PUSHMARK(SP);
|
||||
- XPUSHs(sv_2mortal(newSViv((int)obj)));
|
||||
+ XPUSHs(sv_2mortal(newSViv(PTR2IV(obj))));
|
||||
XPUSHs(sv_2mortal(newSVpv(
|
||||
- JS_GetFunctionName(fun), 0)));
|
||||
+#if JS_VERSION < 185
|
||||
+ JS_GetStringBytes(JS_GetFunctionId(fun)), 0)));
|
||||
+#else
|
||||
+ JS_EncodeString(cx, JS_GetFunctionId(fun)), 0)));
|
||||
+#endif
|
||||
for(i=0; i<argc; i++) {
|
||||
XPUSHs(sv_2mortal(newSVpv(
|
||||
+#if JS_VERSION < 185
|
||||
JS_GetStringBytes(JS_ValueToString(cx, argv[i])), 0)));
|
||||
+#else
|
||||
+ JS_EncodeString(cx, JS_ValueToString(cx, argv[i])), 0)));
|
||||
+#endif
|
||||
}
|
||||
PUTBACK;
|
||||
count = call_pv("JavaScript::SpiderMonkey::function_dispatcher", G_SCALAR);
|
||||
@@ -174,7 +225,11 @@
|
||||
|
||||
if(Debug)
|
||||
fprintf(stderr, "DEBUG: %lx is a ref!\n", (long) sv);
|
||||
- *rval = OBJECT_TO_JSVAL(SvIV(SvRV(sv)));
|
||||
+#if JS_VERSION < 185
|
||||
+ *rval = OBJECT_TO_JSVAL(INT2PTR(JSObject *,SvIV(SvRV(sv))));
|
||||
+#else
|
||||
+ JS_SET_RVAL(cx,vp,OBJECT_TO_JSVAL(INT2PTR(JSObject *,SvIV(SvRV(sv)))));
|
||||
+#endif
|
||||
}
|
||||
else if(SvIOK(sv)) {
|
||||
/* It appears that we have been sent an int return
|
||||
@@ -183,7 +238,11 @@
|
||||
n_jnum=SvIV(sv);
|
||||
if(Debug)
|
||||
fprintf(stderr, "DEBUG: %lx is an int (%d)\n", (long) sv,n_jnum);
|
||||
+#if JS_VERSION < 185
|
||||
*rval = INT_TO_JSVAL(n_jnum);
|
||||
+#else
|
||||
+ JS_SET_RVAL(cx,vp,INT_TO_JSVAL(n_jnum));
|
||||
+#endif
|
||||
} else if(SvNOK(sv)) {
|
||||
/* It appears that we have been sent an double return
|
||||
* value. Thats fine we can give javascript an double
|
||||
@@ -192,11 +251,20 @@
|
||||
|
||||
if(Debug)
|
||||
fprintf(stderr, "DEBUG: %lx is a double(%f)\n", (long) sv,n_jdbl);
|
||||
+#if JS_VERSION < 185
|
||||
*rval = DOUBLE_TO_JSVAL(JS_NewDouble(cx, n_jdbl));
|
||||
+#else
|
||||
+ JS_NewNumberValue(cx, n_jdbl, &rval);
|
||||
+ JS_SET_RVAL(cx,vp,rval);
|
||||
+#endif
|
||||
} else if(SvPOK(sv)) {
|
||||
n_jstr = SvPV(sv, PL_na);
|
||||
//warn("DEBUG: %s (%d)\n", n_jstr);
|
||||
+#if JS_VERSION < 185
|
||||
*rval = STRING_TO_JSVAL(JS_NewStringCopyZ(cx, n_jstr));
|
||||
+#else
|
||||
+ JS_SET_RVAL(cx,vp,STRING_TO_JSVAL(JS_NewStringCopyZ(cx, n_jstr)));
|
||||
+#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -240,8 +308,13 @@
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------- */
|
||||
+#if JS_VERSION < 181
|
||||
static JSBool
|
||||
BranchHandler(JSContext *cx, JSScript *script) {
|
||||
+#else
|
||||
+static JSBool
|
||||
+BranchHandler(JSContext *cx) {
|
||||
+#endif
|
||||
/* --------------------------------------------------------------------- */
|
||||
PJS_Context* pcx = (PJS_Context*) JS_GetContextPrivate(cx);
|
||||
|
||||
@@ -374,11 +447,46 @@
|
||||
JSObject *obj;
|
||||
CODE:
|
||||
{
|
||||
+#ifdef JS_THREADSAFE
|
||||
+ JS_BeginRequest(cx);
|
||||
+#endif
|
||||
obj = JS_NewObject(cx, class, NULL, NULL);
|
||||
if(!obj) {
|
||||
XSRETURN_UNDEF;
|
||||
}
|
||||
RETVAL = obj;
|
||||
+#ifdef JS_THREADSAFE
|
||||
+ JS_EndRequest(cx);
|
||||
+#endif
|
||||
+ }
|
||||
+ OUTPUT:
|
||||
+ RETVAL
|
||||
+
|
||||
+######################################################################
|
||||
+JSObject *
|
||||
+JS_NewCompartmentAndGlobalObject(cx, class)
|
||||
+ JSContext * cx
|
||||
+ JSClass * class
|
||||
+######################################################################
|
||||
+ PREINIT:
|
||||
+ JSObject *obj;
|
||||
+ CODE:
|
||||
+ {
|
||||
+#ifdef JS_THREADSAFE
|
||||
+ JS_BeginRequest(cx);
|
||||
+#endif
|
||||
+#if JS_VERSION < 185
|
||||
+ obj = JS_NewObject(cx, class, NULL, NULL);
|
||||
+#else
|
||||
+ obj = JS_NewCompartmentAndGlobalObject(cx, class, NULL);
|
||||
+#endif
|
||||
+ if(!obj) {
|
||||
+ XSRETURN_UNDEF;
|
||||
+ }
|
||||
+ RETVAL = obj;
|
||||
+#ifdef JS_THREADSAFE
|
||||
+ JS_EndRequest(cx);
|
||||
+#endif
|
||||
}
|
||||
OUTPUT:
|
||||
RETVAL
|
||||
@@ -404,6 +512,9 @@
|
||||
na = (uintN) nargs;
|
||||
CODE:
|
||||
{
|
||||
+#ifdef JS_THREADSAFE
|
||||
+ JS_BeginRequest(cx);
|
||||
+#endif
|
||||
obj = JS_InitClass(cx, iobj, parent_proto, clasp,
|
||||
constructor, nargs, ps, fs, static_ps,
|
||||
static_fs);
|
||||
@@ -411,6 +522,9 @@
|
||||
XSRETURN_UNDEF;
|
||||
}
|
||||
RETVAL = obj;
|
||||
+#ifdef JS_THREADSAFE
|
||||
+ JS_EndRequest(cx);
|
||||
+#endif
|
||||
}
|
||||
OUTPUT:
|
||||
RETVAL
|
||||
@@ -469,11 +583,17 @@
|
||||
JSBool rc;
|
||||
CODE:
|
||||
{
|
||||
+#ifdef JS_THREADSAFE
|
||||
+ JS_BeginRequest(cx);
|
||||
+#endif
|
||||
rc = JS_InitStandardClasses(cx, gobj);
|
||||
if(!rc) {
|
||||
XSRETURN_UNDEF;
|
||||
}
|
||||
RETVAL = (int) rc;
|
||||
+#ifdef JS_THREADSAFE
|
||||
+ JS_BeginRequest(cx);
|
||||
+#endif
|
||||
}
|
||||
OUTPUT:
|
||||
RETVAL
|
||||
@@ -582,10 +702,18 @@
|
||||
rc = JS_GetProperty(cx, obj, name, &vp);
|
||||
if(rc) {
|
||||
str = JS_ValueToString(cx, vp);
|
||||
+#if JS_VERSION < 185
|
||||
if(strcmp(JS_GetStringBytes(str), "undefined") == 0) {
|
||||
+#else
|
||||
+ if(strcmp(JS_EncodeString(cx, str), "undefined") == 0) {
|
||||
+#endif
|
||||
sv = &PL_sv_undef;
|
||||
} else {
|
||||
+#if JS_VERSION < 185
|
||||
sv_setpv(sv, JS_GetStringBytes(str));
|
||||
+#else
|
||||
+ sv_setpv(sv, JS_EncodeString(cx, str));
|
||||
+#endif
|
||||
}
|
||||
} else {
|
||||
sv = &PL_sv_undef;
|
||||
@@ -675,10 +803,18 @@
|
||||
rc = JS_GetElement(cx, obj, idx, &vp);
|
||||
if(rc) {
|
||||
str = JS_ValueToString(cx, vp);
|
||||
+#if JS_VERSION < 185
|
||||
if(strcmp(JS_GetStringBytes(str), "undefined") == 0) {
|
||||
+#else
|
||||
+ if(strcmp(JS_EncodeString(cx, str), "undefined") == 0) {
|
||||
+#endif
|
||||
sv = &PL_sv_undef;
|
||||
} else {
|
||||
+#if JS_VERSION < 185
|
||||
sv_setpv(sv, JS_GetStringBytes(str));
|
||||
+#else
|
||||
+ sv_setpv(sv, JS_EncodeString(cx, str));
|
||||
+#endif
|
||||
}
|
||||
} else {
|
||||
sv = &PL_sv_undef;
|
||||
@@ -718,7 +854,11 @@
|
||||
PJS_Context* pcx = (PJS_Context *) JS_GetContextPrivate(cx);
|
||||
pcx->branch_count = 0;
|
||||
pcx->branch_max = max_branch_operations;
|
||||
+#if JS_VERSION < 181
|
||||
JS_SetBranchCallback(cx, BranchHandler);
|
||||
+#else
|
||||
+ JS_SetOperationCallback(cx, BranchHandler);
|
||||
+#endif
|
||||
}
|
||||
OUTPUT:
|
||||
|
||||
diff -ur a/t/error.t b/t/error.t
|
||||
--- a/t/error.t 2010-05-28 13:02:43.000000000 -0400
|
||||
+++ b/t/error.t 2012-10-11 14:56:18.000000000 -0400
|
||||
@@ -9,7 +9,7 @@
|
||||
$js1->init ();
|
||||
ok (!$js1->eval ($jscode1));
|
||||
ok ($@ !~ "\n");
|
||||
-ok ($@ =~ "SyntaxError");
|
||||
+ok ($@ =~ "SyntaxError" || $@ =~ "ReferenceError: invalid assignment left-hand side");
|
||||
#print "$@\n";
|
||||
my $jscode2 =<<EOF;
|
||||
var fruit = non_existant_function ();
|
@ -1 +1,2 @@
|
||||
DIST flexmock-0.9.0.gem 76800 SHA256 d8264facc436b02d8f535c67f41661656c620f6fb8e2a0817b4db28882204a27 SHA512 a0a259240482488958c656660303429ecf9a29c1769a3032e21f903628c6a6dbe7a72d5a345f42d54c5c92e19d3bcfdc3710526a5b796630078f86dbdd563472 WHIRLPOOL b7cc14e4ce3693af8d00424d722616e32aa57e253e421146a2535ee9e52d798cf7b250c14c09a57a560aa95d5ae05ade8c791127ab8d8f3289cd5c0d98acedc0
|
||||
DIST flexmock-1.0.3.gem 140800 SHA256 db0040b32aa39cd87c4cb69144e4c6937c02fb8219bf792ab358976ba3a8c4b6 SHA512 4c743a9b8e121fa14fa853ac1d1add6ca457fbc54dfd23b5e7f52e2a7fe563875a816cbe7f82fd0228ad0f505aa2bff530c21a5feb16689268ae936f2e4507da WHIRLPOOL c39d5835e64aeaee3ce6178fa6c32ebd4f52f8e11972ff71ffd587e6ce294a85da0d93883022fb4c820aa27fa80d3400154367a069d49508e4bbf1bdd06d55bc
|
||||
|
@ -0,0 +1,24 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/flexmock/flexmock-1.0.3.ebuild,v 1.1 2012/10/11 06:38:15 graaff Exp $
|
||||
|
||||
EAPI=4
|
||||
USE_RUBY="ruby18 ruby19 jruby ree18"
|
||||
|
||||
RUBY_FAKEGEM_DOCDIR="html"
|
||||
RUBY_FAKEGEM_EXTRADOC="CHANGES README.rdoc doc/*.rdoc doc/releases/*"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="Simple mock object library for Ruby unit testing"
|
||||
HOMEPAGE="http://${PN}.rubyforge.org/"
|
||||
|
||||
LICENSE="as-is"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Custom template not found in package
|
||||
sed -i -e '/jamis/d' Rakefile || die
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST httpauth-0.1.gem 15872 SHA256 18d4b8b9048932303e1c22580c8391dff6a6ec24f92b7b8e6d436b621a85d9f1 SHA512 981f0d6d7bbd21b80ce143c87a961e18702925c46a974febcd06f7fd7d856d827bea199c02276e16a863728ab609cf9d0350a0e107f35b8a42cd727fe4d06c21 WHIRLPOOL 428aa6d21fb77420bd7f17aab67e8ac78e19d73a90d2315c7a6e55a01a8d6039005e8caf57338fc8f936951ac1a8ed82cd614c74017784841939d9e1befb7d22
|
||||
DIST httpauth-0.2.0.gem 13824 SHA256 61693bd3849f348c075861a014c95af777a89581e04cae231641c56fc2a9e21f SHA512 bd7a3fc9bd0e9b65d7d1eb99b6e1a8bf5cc9961177c0c8067a626a3c8b501feb69e286cfe65bafbd53e99cc9695a3cd1e83f0ec48702984f2e8c56a057ca818e WHIRLPOOL d8d39d425e396573e9d9295cd0d9fbd31152510fe9540c05c6aac1a78b38b64b9e8b831c9d0447873b27d1a1a26e7fb0d6a616412e4c3d20140dfd966bcbb491
|
||||
|
@ -0,0 +1,22 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/httpauth/httpauth-0.2.0.ebuild,v 1.1 2012/10/12 05:10:43 graaff Exp $
|
||||
|
||||
EAPI=4
|
||||
USE_RUBY="ruby18 ree18 ruby19"
|
||||
|
||||
# There are tests in the upstream SVN rubyforge repo.
|
||||
RUBY_FAKEGEM_TASK_TEST=""
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_EXTRADOC="README.md"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="A library supporting the full HTTP Authentication protocol as specified in RFC 2617."
|
||||
HOMEPAGE="http://httpauth.rubyforge.org/"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
@ -1 +1,2 @@
|
||||
DIST inifile-1.1.0.gem 13824 SHA256 faed6e8f0ef3a7bee3416c47dc90a56648f614f0217f6b297103dd1c483669b3 SHA512 c5508b92e4962ae74d306727816da3f11a4117b17440c3e58224d8ba9c900096950ed3e63f8b4f51e048646389938eec288ea211afc6c8c1b920762c27f83038 WHIRLPOOL 9be8930d2a56b4a7738413faaff33c9c49f9f5e40f4b90a9a35b596438dba42abe752327e959c6d462e1dd979f4b46415a3eeb12c6b15f65db1f7fe392484078
|
||||
DIST inifile-2.0.2.gem 15360 SHA256 454c96efe281df380b6571aad5e642252916933087c12f1a943ada6c3b53370f SHA512 769b4cab1d91ff70f49a97fdb1707db4c5c1f38a695b2d47adc60dfb6cf60dd86a34f67f33ebe32f5a74af901180d90d91616ef7667bcf3b403d4edfc253267a WHIRLPOOL bebd62caedf9b53003ded3b2bb5d361a4e670caf77cb6ff9aea736e6de7b2893fc34c8fecc61ecf4c49735c823d4178d5919ea5b4a09f6c9035c146470a9cd13
|
||||
|
@ -0,0 +1,27 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/inifile/inifile-2.0.2.ebuild,v 1.1 2012/10/12 05:23:15 graaff Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
USE_RUBY="ruby18 ree18 ruby19 jruby"
|
||||
|
||||
RUBY_FAKEGEM_TASK_TEST="test"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_DOC="rdoc"
|
||||
RUBY_FAKEGEM_DOCDIR="doc"
|
||||
RUBY_FAKEGEM_EXTRADOC="README.md History.txt"
|
||||
|
||||
inherit ruby-fakegem eutils
|
||||
|
||||
DESCRIPTION="Native Ruby package for reading and writing INI files."
|
||||
HOMEPAGE="https://github.com/TwP/inifile"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
each_ruby_test() {
|
||||
${RUBY} -S testrb test/test_*.rb || die
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST listen-0.4.7-git.tgz 30194 SHA256 d2b2a6ceb85f888689cd76710352ceda4462798e474819178044565b73e5ea94 SHA512 03a403b66f3b6c033988375b3d2b4835274a0d1d4fae3d1e05da8a4d659c51d945b3a8fb952ddad9123ed43be0cac96133204f51c7db1792fce0afc5bbc265f2 WHIRLPOOL 63b321041d9a2d9268701d8e0b808758ac5fa27739d745e708641aa4b3beb4872e290bd2da9cf2d18eaff0946fb88305381144dd6fe0fe94aa79c9d79ae1a988
|
||||
DIST listen-0.5.0-git.tgz 32371 SHA256 966e0f10cd9651c02dea8de5d3b8d96204ef424c528c8b586cca92e986a8dc83 SHA512 9801b16be5ca88a9d7cdddba4759271232d6f47540eb3f48f36370ceba6a3ce715c066ddf2e0701fa00e312d595d84ff75397bdbd4bbcb0f27a3776b3cd9784e WHIRLPOOL 325bf23867d3255d82445e4846c097fcaea098926814757b2afa22f7932e7fd9276dfd6eb98d2ec9bc8a28129a2e0dda15924d1211ec54d54bf518107fbeae38
|
||||
DIST listen-0.5.2-git.tgz 33058 SHA256 3428d0f6202dd12180dd0c724f415f7c80bd9b9233257971ffe16622cb730eec SHA512 58f44e0e343d79ab2d28b7ac8e77969c370b2c2131b5284a37d9af874ff455cfdb9bc7e87f333fda7a6e9c43042f0cd32642603ca771ba0ade7e0a3a89a22639 WHIRLPOOL 89830b7e8c225d6620fc474df85c71e5fc1c34d47bdfd9c09951d13d7a9f9a8aab1b154f13a3b7ea1a1f67eaa7a090ed4bbb33ef1d77908d266e8cccb08e39f1
|
||||
DIST listen-0.5.3-git.tgz 33251 SHA256 aba0e2f46ae748dee050ca45d6c6f7af5f842fd3d07a290138945f75517b5d31 SHA512 ff942de12c61fec2183c4a80f11b71855e63a64e096f554a7b2f006682aebbd310d07e7203519fa19b28baef193d838e1592f4dd5d5c334bbd7f2403b504d361 WHIRLPOOL ac6c4ed8aeed75b7e984ee83b2928a6950afb715513fec96a131c6679050c0162e4a705dc5c1b4e8095d5906b61f156011b13e82083cb9200f053f33d2262433
|
||||
|
@ -0,0 +1,28 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/listen/listen-0.5.3.ebuild,v 1.1 2012/10/12 05:50:10 graaff Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
USE_RUBY="ruby18 ruby19 ree18 jruby"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_TEST="rspec"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
|
||||
|
||||
RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="Listens to file modifications and notifies you about the changes."
|
||||
HOMEPAGE="https://github.com/guard/listen"
|
||||
SRC_URI="https://github.com/guard/listen/tarball/v${PV} -> ${P}-git.tgz"
|
||||
RUBY_S="guard-listen-*"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x64-macos"
|
||||
IUSE=""
|
||||
|
||||
ruby_add_rdepend ">=dev-ruby/rb-inotify-0.8.8"
|
@ -0,0 +1,525 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-vcs/git/git-1.7.12.3-r1.ebuild,v 1.1 2012/10/11 18:17:09 robbat2 Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
GENTOO_DEPEND_ON_PERL=no
|
||||
|
||||
# bug #329479: git-remote-testgit is not multiple-version aware
|
||||
PYTHON_DEPEND="python? 2"
|
||||
[[ ${PV} == *9999 ]] && SCM="git-2"
|
||||
EGIT_REPO_URI="git://git.kernel.org/pub/scm/git/git.git"
|
||||
|
||||
inherit toolchain-funcs eutils elisp-common perl-module bash-completion-r1 python ${SCM}
|
||||
|
||||
MY_PV="${PV/_rc/.rc}"
|
||||
MY_P="${PN}-${MY_PV}"
|
||||
|
||||
DOC_VER=${MY_PV}
|
||||
|
||||
DESCRIPTION="GIT - the stupid content tracker, the revision control system heavily used by the Linux kernel team"
|
||||
HOMEPAGE="http://www.git-scm.com/"
|
||||
if [[ ${PV} != *9999 ]]; then
|
||||
SRC_URI_SUFFIX="gz"
|
||||
SRC_URI_GOOG="http://git-core.googlecode.com/files"
|
||||
SRC_URI_KORG="mirror://kernel/software/scm/git"
|
||||
SRC_URI="${SRC_URI_GOOG}/${MY_P}.tar.${SRC_URI_SUFFIX}
|
||||
${SRC_URI_KORG}/${MY_P}.tar.${SRC_URI_SUFFIX}
|
||||
${SRC_URI_GOOG}/${PN}-manpages-${DOC_VER}.tar.${SRC_URI_SUFFIX}
|
||||
${SRC_URI_KORG}/${PN}-manpages-${DOC_VER}.tar.${SRC_URI_SUFFIX}
|
||||
doc? (
|
||||
${SRC_URI_KORG}/${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX}
|
||||
${SRC_URI_GOOG}/${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX}
|
||||
)"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
else
|
||||
SRC_URI=""
|
||||
KEYWORDS=""
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="+blksha1 +curl cgi doc emacs +gpg gtk highlight +iconv +nls +pcre +perl +python ppcsha1 tk +threads +webdav xinetd cvs subversion test"
|
||||
|
||||
# Common to both DEPEND and RDEPEND
|
||||
CDEPEND="
|
||||
dev-libs/openssl
|
||||
sys-libs/zlib
|
||||
pcre? ( dev-libs/libpcre )
|
||||
perl? ( dev-lang/perl[-build] )
|
||||
tk? ( dev-lang/tk )
|
||||
curl? (
|
||||
net-misc/curl
|
||||
webdav? ( dev-libs/expat )
|
||||
)
|
||||
emacs? ( virtual/emacs )"
|
||||
|
||||
RDEPEND="${CDEPEND}
|
||||
gpg? ( app-crypt/gnupg )
|
||||
perl? ( dev-perl/Error
|
||||
dev-perl/Net-SMTP-SSL
|
||||
dev-perl/Authen-SASL
|
||||
cgi? ( virtual/perl-CGI highlight? ( app-text/highlight ) )
|
||||
cvs? ( >=dev-vcs/cvsps-2.1 dev-perl/DBI dev-perl/DBD-SQLite )
|
||||
subversion? ( dev-vcs/subversion[-dso,perl] dev-perl/libwww-perl dev-perl/TermReadKey )
|
||||
)
|
||||
python? ( gtk?
|
||||
(
|
||||
>=dev-python/pygtk-2.8
|
||||
dev-python/pygtksourceview:2
|
||||
) )"
|
||||
|
||||
# This is how info docs are created with Git:
|
||||
# .txt/asciidoc --(asciidoc)---------> .xml/docbook
|
||||
# .xml/docbook --(docbook2texi.pl)--> .texi
|
||||
# .texi --(makeinfo)---------> .info
|
||||
DEPEND="${CDEPEND}
|
||||
app-arch/cpio
|
||||
doc? (
|
||||
app-text/asciidoc
|
||||
app-text/docbook2X
|
||||
sys-apps/texinfo
|
||||
)
|
||||
test? (
|
||||
app-crypt/gnupg
|
||||
)"
|
||||
|
||||
# Live ebuild builds man pages and HTML docs, additionally
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
DEPEND="${DEPEND}
|
||||
app-text/asciidoc
|
||||
app-text/xmlto"
|
||||
fi
|
||||
|
||||
SITEFILE=50${PN}-gentoo.el
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
REQUIRED_USE="
|
||||
cgi? ( perl )
|
||||
cvs? ( perl )
|
||||
subversion? ( perl )
|
||||
webdav? ( curl )
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
if use subversion && has_version dev-vcs/subversion && built_with_use --missing false dev-vcs/subversion dso ; then
|
||||
ewarn "Per Gentoo bugs #223747, #238586, when subversion is built"
|
||||
ewarn "with USE=dso, there may be weird crashes in git-svn. You"
|
||||
ewarn "have been warned."
|
||||
fi
|
||||
if use python ; then
|
||||
python_set_active_version 2
|
||||
python_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
# This is needed because for some obscure reasons future calls to make don't
|
||||
# pick up these exports if we export them in src_unpack()
|
||||
exportmakeopts() {
|
||||
local myopts
|
||||
|
||||
if use blksha1 ; then
|
||||
myopts="${myopts} BLK_SHA1=YesPlease"
|
||||
elif use ppcsha1 ; then
|
||||
myopts="${myopts} PPC_SHA1=YesPlease"
|
||||
fi
|
||||
|
||||
if use curl ; then
|
||||
use webdav || myopts="${myopts} NO_EXPAT=YesPlease"
|
||||
else
|
||||
myopts="${myopts} NO_CURL=YesPlease"
|
||||
fi
|
||||
|
||||
# broken assumptions, because of broken build system ...
|
||||
myopts="${myopts} NO_FINK=YesPlease NO_DARWIN_PORTS=YesPlease"
|
||||
myopts="${myopts} INSTALL=install TAR=tar"
|
||||
myopts="${myopts} SHELL_PATH=${EPREFIX}/bin/sh"
|
||||
myopts="${myopts} SANE_TOOL_PATH="
|
||||
myopts="${myopts} OLD_ICONV="
|
||||
myopts="${myopts} NO_EXTERNAL_GREP="
|
||||
|
||||
# can't define this to null, since the entire makefile depends on it
|
||||
sed -i -e '/\/usr\/local/s/BASIC_/#BASIC_/' Makefile
|
||||
|
||||
use iconv \
|
||||
|| myopts="${myopts} NO_ICONV=YesPlease"
|
||||
use nls \
|
||||
|| myopts="${myopts} NO_GETTEXT=YesPlease"
|
||||
use tk \
|
||||
|| myopts="${myopts} NO_TCLTK=YesPlease"
|
||||
use pcre \
|
||||
&& myopts="${myopts} USE_LIBPCRE=yes"
|
||||
use perl \
|
||||
&& myopts="${myopts} INSTALLDIRS=vendor" \
|
||||
|| myopts="${myopts} NO_PERL=YesPlease"
|
||||
use python \
|
||||
|| myopts="${myopts} NO_PYTHON=YesPlease"
|
||||
use subversion \
|
||||
|| myopts="${myopts} NO_SVN_TESTS=YesPlease"
|
||||
use threads \
|
||||
&& myopts="${myopts} THREADED_DELTA_SEARCH=YesPlease"
|
||||
use cvs \
|
||||
|| myopts="${myopts} NO_CVS=YesPlease"
|
||||
# Disabled until ~m68k-mint can be keyworded again
|
||||
# if [[ ${CHOST} == *-mint* ]] ; then
|
||||
# myopts="${myopts} NO_MMAP=YesPlease"
|
||||
# myopts="${myopts} NO_IPV6=YesPlease"
|
||||
# myopts="${myopts} NO_STRLCPY=YesPlease"
|
||||
# myopts="${myopts} NO_MEMMEM=YesPlease"
|
||||
# myopts="${myopts} NO_MKDTEMP=YesPlease"
|
||||
# myopts="${myopts} NO_MKSTEMPS=YesPlease"
|
||||
# fi
|
||||
if [[ ${CHOST} == ia64-*-hpux* ]]; then
|
||||
myopts="${myopts} NO_NSEC=YesPlease"
|
||||
fi
|
||||
if [[ ${CHOST} == *-*-aix* ]]; then
|
||||
myopts="${myopts} NO_FNMATCH_CASEFOLD=YesPlease"
|
||||
fi
|
||||
|
||||
has_version '>=app-text/asciidoc-8.0' \
|
||||
&& myopts="${myopts} ASCIIDOC8=YesPlease"
|
||||
myopts="${myopts} ASCIIDOC_NO_ROFF=YesPlease"
|
||||
|
||||
# Bug 290465:
|
||||
# builtin-fetch-pack.c:816: error: 'struct stat' has no member named 'st_mtim'
|
||||
[[ "${CHOST}" == *-uclibc* ]] && \
|
||||
myopts="${myopts} NO_NSEC=YesPlease"
|
||||
|
||||
export MY_MAKEOPTS="${myopts}"
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} != *9999 ]]; then
|
||||
unpack ${MY_P}.tar.${SRC_URI_SUFFIX}
|
||||
cd "${S}"
|
||||
unpack ${PN}-manpages-${DOC_VER}.tar.${SRC_URI_SUFFIX}
|
||||
use doc && \
|
||||
cd "${S}"/Documentation && \
|
||||
unpack ${PN}-htmldocs-${DOC_VER}.tar.${SRC_URI_SUFFIX}
|
||||
cd "${S}"
|
||||
else
|
||||
git-2_src_unpack
|
||||
cd "${S}"
|
||||
#cp "${FILESDIR}"/GIT-VERSION-GEN .
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# bug #418431 - stated for upstream 1.7.13. Developed by Michael Schwern,
|
||||
# funded as a bounty by the Gentoo Foundation.
|
||||
epatch "${FILESDIR}"/git-1.7.12-git-svn-backport.patch
|
||||
|
||||
# bug #350330 - automagic CVS when we don't want it is bad.
|
||||
epatch "${FILESDIR}"/git-1.7.12-optional-cvs.patch
|
||||
|
||||
sed -i \
|
||||
-e 's:^\(CFLAGS =\).*$:\1 $(OPTCFLAGS) -Wall:' \
|
||||
-e 's:^\(LDFLAGS =\).*$:\1 $(OPTLDFLAGS):' \
|
||||
-e 's:^\(CC = \).*$:\1$(OPTCC):' \
|
||||
-e 's:^\(AR = \).*$:\1$(OPTAR):' \
|
||||
-e "s:\(PYTHON_PATH = \)\(.*\)$:\1${EPREFIX}\2:" \
|
||||
-e "s:\(PERL_PATH = \)\(.*\)$:\1${EPREFIX}\2:" \
|
||||
Makefile || die "sed failed"
|
||||
|
||||
# Never install the private copy of Error.pm (bug #296310)
|
||||
sed -i \
|
||||
-e '/private-Error.pm/s,^,#,' \
|
||||
perl/Makefile.PL
|
||||
|
||||
# Fix docbook2texi command
|
||||
sed -i 's/DOCBOOK2X_TEXI=docbook2x-texi/DOCBOOK2X_TEXI=docbook2texi.pl/' \
|
||||
Documentation/Makefile || die "sed failed"
|
||||
}
|
||||
|
||||
git_emake() {
|
||||
# bug #326625: PERL_PATH, PERL_MM_OPT
|
||||
# bug #320647: PYTHON_PATH
|
||||
PYTHON_PATH=""
|
||||
use python && PYTHON_PATH="$(PYTHON -a)"
|
||||
emake ${MY_MAKEOPTS} \
|
||||
DESTDIR="${D}" \
|
||||
OPTCFLAGS="${CFLAGS}" \
|
||||
OPTLDFLAGS="${LDFLAGS}" \
|
||||
OPTCC="$(tc-getCC)" \
|
||||
OPTAR="$(tc-getAR)" \
|
||||
prefix="${EPREFIX}"/usr \
|
||||
htmldir="${EPREFIX}"/usr/share/doc/${PF}/html \
|
||||
sysconfdir="${EPREFIX}"/etc \
|
||||
PYTHON_PATH="${PYTHON_PATH}" \
|
||||
PERL_MM_OPT="" \
|
||||
GIT_TEST_OPTS="--no-color" \
|
||||
"$@"
|
||||
# This is the fix for bug #326625, but it also causes breakage, see bug
|
||||
# #352693.
|
||||
# PERL_PATH="${EPREFIX}/usr/bin/env perl" \
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
exportmakeopts
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if use perl ; then
|
||||
git_emake perl/PM.stamp || die "emake perl/PM.stamp failed"
|
||||
git_emake perl/perl.mak || die "emake perl/perl.mak failed"
|
||||
fi
|
||||
git_emake || die "emake failed"
|
||||
|
||||
if use emacs ; then
|
||||
elisp-compile contrib/emacs/git{,-blame}.el \
|
||||
|| die "emacs modules failed"
|
||||
fi
|
||||
|
||||
if use perl && use cgi ; then
|
||||
git_emake \
|
||||
gitweb/gitweb.cgi \
|
||||
|| die "emake gitweb/gitweb.cgi failed"
|
||||
fi
|
||||
|
||||
if [[ ${CHOST} == *-darwin* ]]; then
|
||||
cd "${S}"/contrib/credential/osxkeychain || die "cd credential/osxkeychain"
|
||||
git_emake || die "email credential-osxkeychain"
|
||||
fi
|
||||
|
||||
cd "${S}"/Documentation
|
||||
if [[ ${PV} == *9999 ]] ; then
|
||||
git_emake man \
|
||||
|| die "emake man failed"
|
||||
if use doc ; then
|
||||
git_emake info html \
|
||||
|| die "emake info html failed"
|
||||
fi
|
||||
else
|
||||
if use doc ; then
|
||||
git_emake info \
|
||||
|| die "emake info html failed"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
git_emake \
|
||||
install || \
|
||||
die "make install failed"
|
||||
|
||||
if [[ ${CHOST} == *-darwin* ]]; then
|
||||
dobin contrib/credential/osxkeychain/git-credential-osxkeychain
|
||||
fi
|
||||
|
||||
# Depending on the tarball and manual rebuild of the documentation, the
|
||||
# manpages may exist in either OR both of these directories.
|
||||
find man?/*.[157] >/dev/null 2>&1 && doman man?/*.[157]
|
||||
find Documentation/*.[157] >/dev/null 2>&1 && doman Documentation/*.[157]
|
||||
|
||||
dodoc README Documentation/{SubmittingPatches,CodingGuidelines}
|
||||
use doc && dodir /usr/share/doc/${PF}/html
|
||||
for d in / /howto/ /technical/ ; do
|
||||
docinto ${d}
|
||||
dodoc Documentation${d}*.txt
|
||||
use doc && dohtml -p ${d} Documentation${d}*.html
|
||||
done
|
||||
docinto /
|
||||
# Upstream does not ship this pre-built :-(
|
||||
use doc && doinfo Documentation/{git,gitman}.info
|
||||
|
||||
newbashcomp contrib/completion/git-completion.bash ${PN}
|
||||
newbashcomp contrib/completion/git-prompt.sh ${PN}-prompt
|
||||
|
||||
if use emacs ; then
|
||||
elisp-install ${PN} contrib/emacs/git.{el,elc} || die
|
||||
elisp-install ${PN} contrib/emacs/git-blame.{el,elc} || die
|
||||
#elisp-install ${PN}/compat contrib/emacs/vc-git.{el,elc} || die
|
||||
# don't add automatically to the load-path, so the sitefile
|
||||
# can do a conditional loading
|
||||
touch "${ED}${SITELISP}/${PN}/compat/.nosearch"
|
||||
elisp-site-file-install "${FILESDIR}"/${SITEFILE} || die
|
||||
fi
|
||||
|
||||
if use python && use gtk ; then
|
||||
dobin "${S}"/contrib/gitview/gitview
|
||||
python_convert_shebangs ${PYTHON_ABI} "${ED}"/usr/bin/gitview
|
||||
dodoc "${S}"/contrib/gitview/gitview.txt
|
||||
fi
|
||||
|
||||
#dobin contrib/fast-import/git-p4 # Moved upstream
|
||||
#dodoc contrib/fast-import/git-p4.txt # Moved upstream
|
||||
newbin contrib/fast-import/import-tars.perl import-tars
|
||||
newbin contrib/git-resurrect.sh git-resurrect
|
||||
|
||||
dodir /usr/share/${PN}/contrib
|
||||
# The following are excluded:
|
||||
# completion - installed above
|
||||
# emacs - installed above
|
||||
# examples - these are stuff that is not used in Git anymore actually
|
||||
# gitview - installed above
|
||||
# p4import - excluded because fast-import has a better one
|
||||
# patches - stuff the Git guys made to go upstream to other places
|
||||
# svnimport - use git-svn
|
||||
# thunderbird-patch-inline - fixes thunderbird
|
||||
for i in \
|
||||
blameview buildsystems ciabot continuous convert-objects fast-import \
|
||||
hg-to-git hooks remotes2config.sh remotes2config.sh rerere-train.sh \
|
||||
stats svn-fe vim workdir \
|
||||
; do
|
||||
cp -rf \
|
||||
"${S}"/contrib/${i} \
|
||||
"${ED}"/usr/share/${PN}/contrib \
|
||||
|| die "Failed contrib ${i}"
|
||||
done
|
||||
|
||||
if use perl && use cgi ; then
|
||||
# We used to install in /usr/share/${PN}/gitweb
|
||||
# but upstream installs in /usr/share/gitweb
|
||||
# so we will install a symlink and use their location for compat with other
|
||||
# distros
|
||||
dosym /usr/share/gitweb /usr/share/${PN}/gitweb
|
||||
|
||||
# INSTALL discusses configuration issues, not just installation
|
||||
docinto /
|
||||
newdoc "${S}"/gitweb/INSTALL INSTALL.gitweb
|
||||
newdoc "${S}"/gitweb/README README.gitweb
|
||||
|
||||
find "${ED}"/usr/lib64/perl5/ \
|
||||
-name .packlist \
|
||||
-exec rm \{\} \;
|
||||
else
|
||||
rm -rf "${ED}"/usr/share/gitweb
|
||||
fi
|
||||
|
||||
if ! use subversion ; then
|
||||
rm -f "${ED}"/usr/libexec/git-core/git-svn \
|
||||
"${ED}"/usr/share/man/man1/git-svn.1*
|
||||
fi
|
||||
|
||||
if use xinetd ; then
|
||||
insinto /etc/xinetd.d
|
||||
newins "${FILESDIR}"/git-daemon.xinetd git-daemon
|
||||
fi
|
||||
|
||||
newinitd "${FILESDIR}"/git-daemon.initd git-daemon
|
||||
newconfd "${FILESDIR}"/git-daemon.confd git-daemon
|
||||
|
||||
fixlocalpod
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local disabled=""
|
||||
local tests_cvs="t9200-git-cvsexportcommit.sh \
|
||||
t9400-git-cvsserver-server.sh \
|
||||
t9401-git-cvsserver-crlf.sh \
|
||||
t9600-cvsimport.sh \
|
||||
t9601-cvsimport-vendor-branch.sh \
|
||||
t9602-cvsimport-branches-tags.sh \
|
||||
t9603-cvsimport-patchsets.sh"
|
||||
local tests_perl="t5502-quickfetch.sh \
|
||||
t5512-ls-remote.sh \
|
||||
t5520-pull.sh"
|
||||
# Bug #225601 - t0004 is not suitable for root perm
|
||||
# Bug #219839 - t1004 is not suitable for root perm
|
||||
# t0001-init.sh - check for init notices EPERM* fails
|
||||
local tests_nonroot="t0001-init.sh \
|
||||
t0004-unwritable.sh \
|
||||
t0070-fundamental.sh \
|
||||
t1004-read-tree-m-u-wf.sh \
|
||||
t3700-add.sh \
|
||||
t7300-clean.sh"
|
||||
# t9100 still fails with symlinks in SVN 1.7
|
||||
local test_svn="t9100-git-svn-basic.sh"
|
||||
|
||||
# Unzip is used only for the testcase code, not by any normal parts of Git.
|
||||
if ! has_version app-arch/unzip ; then
|
||||
einfo "Disabling tar-tree tests"
|
||||
disabled="${disabled} t5000-tar-tree.sh"
|
||||
fi
|
||||
|
||||
cvs=0
|
||||
use cvs && let cvs=$cvs+1
|
||||
if [[ ${EUID} -eq 0 ]]; then
|
||||
if [[ $cvs -eq 1 ]]; then
|
||||
ewarn "Skipping CVS tests because CVS does not work as root!"
|
||||
ewarn "You should retest with FEATURES=userpriv!"
|
||||
disabled="${disabled} ${tests_cvs}"
|
||||
fi
|
||||
einfo "Skipping other tests that require being non-root"
|
||||
disabled="${disabled} ${tests_nonroot}"
|
||||
else
|
||||
[[ $cvs -gt 0 ]] && \
|
||||
has_version dev-vcs/cvs && \
|
||||
let cvs=$cvs+1
|
||||
[[ $cvs -gt 1 ]] && \
|
||||
built_with_use dev-vcs/cvs server && \
|
||||
let cvs=$cvs+1
|
||||
if [[ $cvs -lt 3 ]]; then
|
||||
einfo "Disabling CVS tests (needs dev-vcs/cvs[USE=server])"
|
||||
disabled="${disabled} ${tests_cvs}"
|
||||
fi
|
||||
fi
|
||||
|
||||
if ! use perl ; then
|
||||
einfo "Disabling tests that need Perl"
|
||||
disabled="${disabled} ${tests_perl}"
|
||||
fi
|
||||
|
||||
einfo "Disabling tests that fail with SVN 1.7"
|
||||
disabled="${disabled} ${test_svn}"
|
||||
|
||||
# Reset all previously disabled tests
|
||||
cd "${S}/t"
|
||||
for i in *.sh.DISABLED ; do
|
||||
[[ -f "${i}" ]] && mv -f "${i}" "${i%.DISABLED}"
|
||||
done
|
||||
einfo "Disabled tests:"
|
||||
for i in ${disabled} ; do
|
||||
[[ -f "${i}" ]] && mv -f "${i}" "${i}.DISABLED" && einfo "Disabled $i"
|
||||
done
|
||||
|
||||
# Avoid the test system removing the results because we want them ourselves
|
||||
sed -e '/^[[:space:]]*$(MAKE) clean/s,^,#,g' \
|
||||
-i "${S}"/t/Makefile
|
||||
|
||||
# Clean old results first, must always run
|
||||
cd "${S}/t"
|
||||
nonfatal git_emake clean
|
||||
|
||||
# Now run the tests, keep going if we hit an error, and don't terminate on
|
||||
# failure
|
||||
cd "${S}"
|
||||
einfo "Start test run"
|
||||
#MAKEOPTS=-j1
|
||||
nonfatal git_emake --keep-going test
|
||||
rc=$?
|
||||
|
||||
# Display nice results, now print the results
|
||||
cd "${S}/t"
|
||||
nonfatal git_emake aggregate-results
|
||||
|
||||
# And bail if there was a problem
|
||||
[ $rc -eq 0 ] || die "tests failed. Please file a bug."
|
||||
}
|
||||
|
||||
showpkgdeps() {
|
||||
local pkg=$1
|
||||
shift
|
||||
elog " $(printf "%-17s:" ${pkg}) ${@}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
use emacs && elisp-site-regen
|
||||
use python && python_mod_optimize git_remote_helpers
|
||||
einfo "Please read /usr/share/bash-completion/git for Git bash command completion"
|
||||
einfo "Please read /usr/share/bash-completion/git-prompt for Git bash prompt"
|
||||
einfo "Note that the prompt bash code is now in the seperate script"
|
||||
elog "These additional scripts need some dependencies:"
|
||||
echo
|
||||
showpkgdeps git-quiltimport "dev-util/quilt"
|
||||
showpkgdeps git-instaweb \
|
||||
"|| ( www-servers/lighttpd www-servers/apache )"
|
||||
echo
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
use emacs && elisp-site-regen
|
||||
use python && python_mod_cleanup git_remote_helpers
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue