parent
106d88cc86
commit
72bb74ad5f
@ -0,0 +1,184 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-misc/ca-certificates/ca-certificates-20140325.3.16.3.ebuild,v 1.1 2014/08/12 13:08:49 vapier Exp $
|
||||
|
||||
# The Debian ca-certificates package merely takes the CA database as it exists
|
||||
# in the nss package and repackages it for use by openssl.
|
||||
#
|
||||
# The issue with using the compiled debs directly is two fold:
|
||||
# - they do not update frequently enough for us to rely on them
|
||||
# - they pull the CA database from nss tip of tree rather than the release
|
||||
#
|
||||
# So we take the Debian source tools and combine them with the latest nss
|
||||
# release to produce (largely) the same end result. The difference is that
|
||||
# now we know our cert database is kept in sync with nss and, if need be,
|
||||
# can be sync with nss tip of tree more frequently to respond to bugs.
|
||||
|
||||
# When triaging bugs from users, here's some handy tips:
|
||||
# - To see what cert is hitting errors, use openssl:
|
||||
# openssl s_client -port 443 -CApath /etc/ssl/certs/ -host $HOSTNAME
|
||||
# Focus on the errors written to stderr.
|
||||
#
|
||||
# - Look at the upstream log as to why certs were added/removed:
|
||||
# https://hg.mozilla.org/projects/nss/log/tip/lib/ckfw/builtins/certdata.txt
|
||||
#
|
||||
# - If people want to add/remove certs, tell them to file w/mozilla:
|
||||
# https://bugzilla.mozilla.org/enter_bug.cgi?product=NSS&component=CA%20Certificates&version=trunk
|
||||
|
||||
EAPI="4"
|
||||
PYTHON_COMPAT=( python{2_6,2_7} )
|
||||
|
||||
inherit eutils python-any-r1
|
||||
|
||||
if [[ ${PV} == *.* ]] ; then
|
||||
# Compile from source ourselves.
|
||||
PRECOMPILED=false
|
||||
inherit versionator
|
||||
|
||||
DEB_VER=$(get_version_component_range 1)
|
||||
NSS_VER=$(get_version_component_range 2-)
|
||||
RTM_NAME="NSS_${NSS_VER//./_}_RTM"
|
||||
else
|
||||
# Debian precompiled version.
|
||||
PRECOMPILED=true
|
||||
inherit unpacker
|
||||
fi
|
||||
|
||||
DESCRIPTION="Common CA Certificates PEM files"
|
||||
HOMEPAGE="http://packages.debian.org/sid/ca-certificates"
|
||||
NMU_PR=""
|
||||
if ${PRECOMPILED} ; then
|
||||
SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${PV}${NMU_PR:++nmu}${NMU_PR}_all.deb"
|
||||
else
|
||||
SRC_URI="mirror://debian/pool/main/c/${PN}/${PN}_${DEB_VER}${NMU_PR:++nmu}${NMU_PR}.tar.xz
|
||||
ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${RTM_NAME}/src/nss-${NSS_VER}.tar.gz
|
||||
cacert? ( http://dev.gentoo.org/~anarchy/patches/nss-3.14.1-add_spi+cacerts_ca_certs.patch )"
|
||||
fi
|
||||
|
||||
LICENSE="MPL-1.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
|
||||
IUSE=""
|
||||
${PRECOMPILED} || IUSE+=" +cacert"
|
||||
|
||||
DEPEND=""
|
||||
if ${PRECOMPILED} ; then
|
||||
# platforms like AIX don't have a good ar
|
||||
DEPEND+="
|
||||
kernel_AIX? ( app-arch/deb2targz )
|
||||
!<sys-apps/portage-2.1.10.41"
|
||||
fi
|
||||
# openssl: we run `c_rehash`
|
||||
# debianutils: we run `run-parts`
|
||||
RDEPEND="${DEPEND}
|
||||
dev-libs/openssl
|
||||
sys-apps/debianutils"
|
||||
|
||||
if ! ${PRECOMPILED}; then
|
||||
DEPEND+=" ${PYTHON_DEPS}"
|
||||
fi
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
pkg_setup() {
|
||||
# For the conversion to having it in CONFIG_PROTECT_MASK,
|
||||
# we need to tell users about it once manually first.
|
||||
[[ -f "${EPREFIX}"/etc/env.d/98ca-certificates ]] \
|
||||
|| ewarn "You should run update-ca-certificates manually after etc-update"
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
${PRECOMPILED} || default
|
||||
|
||||
# Do all the work in the image subdir to avoid conflicting with source
|
||||
# dirs in $WORKDIR. Need to perform everything in the offset #381937
|
||||
mkdir -p "image/${EPREFIX}"
|
||||
cd "image/${EPREFIX}" || die
|
||||
|
||||
${PRECOMPILED} && unpacker_src_unpack
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
cd "image/${EPREFIX}" || die
|
||||
if ! ${PRECOMPILED} ; then
|
||||
mkdir -p usr/sbin
|
||||
cp -p "${S}"/${PN}/sbin/update-ca-certificates usr/sbin/ || die
|
||||
|
||||
if use cacert ; then
|
||||
pushd "${S}"/nss-${NSS_VER} >/dev/null
|
||||
epatch "${DISTDIR}"/nss-3.14.1-add_spi+cacerts_ca_certs.patch
|
||||
popd >/dev/null
|
||||
fi
|
||||
fi
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-20110502-root.patch
|
||||
local relp=$(echo "${EPREFIX}" | sed -e 's:[^/]\+:..:g')
|
||||
sed -i \
|
||||
-e '/="$ROOT/s:ROOT/:ROOT'"${EPREFIX}"'/:' \
|
||||
-e '/RELPATH="\.\./s:"$:'"${relp}"'":' \
|
||||
usr/sbin/update-ca-certificates || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cd "image/${EPREFIX}" || die
|
||||
if ! ${PRECOMPILED} ; then
|
||||
python_setup
|
||||
local d="${S}/${PN}/mozilla"
|
||||
# Grab the database from the nss sources.
|
||||
cp "${S}"/nss-${NSS_VER}/nss/lib/ckfw/builtins/{certdata.txt,nssckbi.h} "${d}" || die
|
||||
emake -C "${d}"
|
||||
|
||||
# Now move the files to the same places that the precompiled would.
|
||||
mkdir -p etc/ssl/certs etc/ca-certificates/update.d usr/share/ca-certificates/mozilla
|
||||
if use cacert ; then
|
||||
mkdir -p usr/share/ca-certificates/{cacert.org,spi-inc.org}
|
||||
mv "${d}"/CAcert_Inc..crt usr/share/ca-certificates/cacert.org/cacert.org_root.crt || die
|
||||
mv "${d}"/SPI_Inc..crt usr/share/ca-certificates/spi-inc.org/spi-cacert-2008.crt || die
|
||||
fi
|
||||
mv "${d}"/*.crt usr/share/ca-certificates/mozilla/ || die
|
||||
else
|
||||
mv usr/share/doc/{ca-certificates,${PF}} || die
|
||||
fi
|
||||
|
||||
(
|
||||
echo "# Automatically generated by ${CATEGORY}/${PF}"
|
||||
echo "# $(date -u)"
|
||||
echo "# Do not edit."
|
||||
cd usr/share/ca-certificates
|
||||
find * -name '*.crt' | LC_ALL=C sort
|
||||
) > etc/ca-certificates.conf
|
||||
|
||||
sh usr/sbin/update-ca-certificates --root "${S}/image" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cp -pPR image/* "${D}"/ || die
|
||||
if ! ${PRECOMPILED} ; then
|
||||
cd ca-certificates
|
||||
doman sbin/*.8
|
||||
dodoc debian/README.* examples/ca-certificates-local/README
|
||||
fi
|
||||
|
||||
echo 'CONFIG_PROTECT_MASK="/etc/ca-certificates.conf"' > 98ca-certificates
|
||||
doenvd 98ca-certificates
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [ -d "${EROOT}/usr/local/share/ca-certificates" ] ; then
|
||||
# if the user has local certs, we need to rebuild again
|
||||
# to include their stuff in the db.
|
||||
# However it's too overzealous when the user has custom certs in place.
|
||||
# --fresh is to clean up dangling symlinks
|
||||
"${EROOT}"/usr/sbin/update-ca-certificates --root "${EROOT}"
|
||||
fi
|
||||
|
||||
local c badcerts=0
|
||||
for c in $(find -L "${EROOT}"etc/ssl/certs/ -type l) ; do
|
||||
ewarn "Broken symlink for a certificate at $c"
|
||||
badcerts=1
|
||||
done
|
||||
if [ $badcerts -eq 1 ]; then
|
||||
ewarn "Removing the following broken symlinks:"
|
||||
ewarn "$(find -L "${EROOT}"/etc/ssl/certs/ -type l -printf '%p -> %l\n' -delete)"
|
||||
fi
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
utilities/texstudio.desktop | 3 +--
|
||||
1 file changed, 1 insertion(+), 2 deletions(-)
|
||||
|
||||
diff --git a/utilities/texstudio.desktop b/utilities/texstudio.desktop
|
||||
index 199255f..9c95afd 100644
|
||||
--- a/utilities/texstudio.desktop
|
||||
+++ b/utilities/texstudio.desktop
|
||||
@@ -1,13 +1,12 @@
|
||||
[Desktop Entry]
|
||||
Categories=Office;Publishing;Qt;X-SuSE-Core-Office;X-Mandriva-Office-Publishing;X-Misc;
|
||||
-Encoding=UTF-8
|
||||
Exec=texstudio %F
|
||||
GenericName=LaTeX Editor
|
||||
GenericName[fr]=Editeur LaTeX
|
||||
Comment=LaTeX development environment
|
||||
Comment[fr]=Environnement de développement LaTeX
|
||||
Icon=texstudio
|
||||
-MimeType=text/x-tex;
|
||||
+MimeType=text/X-tex;
|
||||
Name=TeXstudio
|
||||
StartupNotify=false
|
||||
Terminal=false
|
@ -0,0 +1,83 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-office/texstudio/texstudio-2.8.2.ebuild,v 1.1 2014/08/12 08:20:26 jlec Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit base fdo-mime prefix qt4-r2
|
||||
|
||||
DESCRIPTION="Free cross-platform LaTeX editor (fork from texmakerX)"
|
||||
HOMEPAGE="http://texstudio.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${PN}/TeXstudio%20${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~x86-fbsd"
|
||||
IUSE="video"
|
||||
|
||||
COMMON_DEPEND="
|
||||
app-text/hunspell
|
||||
app-text/poppler:=[qt4]
|
||||
dev-libs/quazip
|
||||
x11-libs/libX11
|
||||
x11-libs/libXext
|
||||
|| ( ( >=dev-qt/qtgui-4.8.5:4 dev-qt/designer:4 ) <dev-qt/qtgui-4.8.5:4 )
|
||||
>=dev-qt/qtcore-4.6.1:4
|
||||
>=dev-qt/qtscript-4.6.1:4
|
||||
dev-qt/qtsingleapplication
|
||||
>=dev-qt/qtsvg-4.6.1:4
|
||||
>=dev-qt/qttest-4.6.1:4
|
||||
video? ( media-libs/phonon )"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
virtual/latex-base
|
||||
app-text/psutils
|
||||
app-text/ghostscript-gpl
|
||||
media-libs/netpbm"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
S="${WORKDIR}"/${P/-/}
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-2.6.4-hunspell-quazip.patch
|
||||
"${FILESDIR}"/${P}-desktop.patch
|
||||
# Get it from fedora
|
||||
"${FILESDIR}"/${PN}-2.5-viewers-use-xdg-open.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
find hunspell quazip utilities/poppler-data qtsingleapplication -delete || die
|
||||
|
||||
if use video; then
|
||||
sed "/^PHONON/s:$:true:g" -i ${PN}.pro || die
|
||||
fi
|
||||
|
||||
sed \
|
||||
-e '/hunspell.pri/d' \
|
||||
-e '/quazip.pri/d' \
|
||||
-e '/qtsingleapplication.pri/d' \
|
||||
-e '/QUAZIP_STATIC/d' \
|
||||
-i ${PN}.pro || die
|
||||
|
||||
# cat >> ${PN}.pro <<- EOF
|
||||
# exists(texmakerx_my.pri):include(texmakerx_my.pri)
|
||||
# EOF
|
||||
|
||||
cp "${FILESDIR}"/texmakerx_my.pri ${PN}.pri || die
|
||||
eprefixify ${PN}.pri
|
||||
|
||||
qt4-r2_src_prepare
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local i
|
||||
for i in 16x16 22x22 32x32 48x48 64x64 128x128; do
|
||||
insinto /usr/share/icons/hicolor/${i}
|
||||
newins utilities/${PN}${i}.png ${PN}.png
|
||||
done
|
||||
qt4-r2_src_install
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
fdo-mime_desktop_database_update
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
https://lists.gnu.org/archive/html/bug-bash/2014-08/msg00048.html
|
||||
|
||||
*** ../bash-4.3-patched/execute_cmd.c 2014-07-30 10:26:52.000000000 -0400
|
||||
--- execute_cmd.c 2014-08-11 16:55:57.000000000 -0400
|
||||
***************
|
||||
*** 2406,2410 ****
|
||||
{
|
||||
#if defined (JOB_CONTROL)
|
||||
! append_process (savestring (the_printed_command), dollar_dollar_pid, exec_result, lastpipe_jid);
|
||||
#endif
|
||||
lstdin = wait_for (lastpid);
|
||||
--- 2433,2438 ----
|
||||
{
|
||||
#if defined (JOB_CONTROL)
|
||||
! if (INVALID_JOB (lastpipe_jid) == 0)
|
||||
! append_process (savestring (the_printed_command_except_trap), dollar_dollar_pid, exec_result, lastpipe_jid);
|
||||
#endif
|
||||
lstdin = wait_for (lastpid);
|
@ -1,47 +0,0 @@
|
||||
*** ../bash-4.3-patched/shell.h 2012-12-25 21:11:01.000000000 -0500
|
||||
--- shell.h 2014-06-03 09:24:28.000000000 -0400
|
||||
***************
|
||||
*** 169,173 ****
|
||||
int expand_aliases;
|
||||
int echo_input_at_read;
|
||||
!
|
||||
} sh_parser_state_t;
|
||||
|
||||
--- 169,174 ----
|
||||
int expand_aliases;
|
||||
int echo_input_at_read;
|
||||
! int need_here_doc;
|
||||
!
|
||||
} sh_parser_state_t;
|
||||
|
||||
*** ../bash-4.3-patched/parse.y 2014-05-14 09:16:40.000000000 -0400
|
||||
--- parse.y 2014-04-30 09:27:59.000000000 -0400
|
||||
***************
|
||||
*** 2643,2647 ****
|
||||
|
||||
r = 0;
|
||||
! while (need_here_doc)
|
||||
{
|
||||
parser_state |= PST_HEREDOC;
|
||||
--- 2643,2647 ----
|
||||
|
||||
r = 0;
|
||||
! while (need_here_doc > 0)
|
||||
{
|
||||
parser_state |= PST_HEREDOC;
|
||||
***************
|
||||
*** 6076,6079 ****
|
||||
--- 6076,6080 ----
|
||||
ps->expand_aliases = expand_aliases;
|
||||
ps->echo_input_at_read = echo_input_at_read;
|
||||
+ ps->need_here_doc = need_here_doc;
|
||||
|
||||
ps->token = token;
|
||||
***************
|
||||
*** 6124,6127 ****
|
||||
--- 6125,6129 ----
|
||||
expand_aliases = ps->expand_aliases;
|
||||
echo_input_at_read = ps->echo_input_at_read;
|
||||
+ need_here_doc = ps->need_here_doc;
|
||||
|
||||
FREE (token);
|
@ -1,24 +0,0 @@
|
||||
*** ../bash-4.3-patched/execute_cmd.c 2014-01-31 10:54:52.000000000 -0500
|
||||
--- execute_cmd.c 2014-06-19 08:05:49.000000000 -0400
|
||||
***************
|
||||
*** 2410,2414 ****
|
||||
lstdin = wait_for (lastpid);
|
||||
#if defined (JOB_CONTROL)
|
||||
! exec_result = job_exit_status (lastpipe_jid);
|
||||
#endif
|
||||
unfreeze_jobs_list ();
|
||||
--- 2425,2438 ----
|
||||
lstdin = wait_for (lastpid);
|
||||
#if defined (JOB_CONTROL)
|
||||
! /* If wait_for removes the job from the jobs table, use result of last
|
||||
! command as pipeline's exit status as usual. The jobs list can get
|
||||
! frozen and unfrozen at inconvenient times if there are multiple pipelines
|
||||
! running simultaneously. */
|
||||
! if (INVALID_JOB (lastpipe_jid) == 0)
|
||||
! exec_result = job_exit_status (lastpipe_jid);
|
||||
! else if (pipefail_opt)
|
||||
! exec_result = exec_result | lstdin; /* XXX */
|
||||
! /* otherwise we use exec_result */
|
||||
!
|
||||
#endif
|
||||
unfreeze_jobs_list ();
|
@ -0,0 +1,116 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/mariadb/mariadb-10.0.13.ebuild,v 1.1 2014/08/12 17:16:36 grknight Exp $
|
||||
|
||||
EAPI="5"
|
||||
MY_EXTRAS_VER="20140811-2248Z"
|
||||
|
||||
inherit toolchain-funcs mysql-multilib
|
||||
# only to make repoman happy. it is really set in the eclass
|
||||
IUSE="$IUSE"
|
||||
|
||||
# REMEMBER: also update eclass/mysql*.eclass before committing!
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
|
||||
|
||||
# When MY_EXTRAS is bumped, the index should be revised to exclude these.
|
||||
EPATCH_EXCLUDE=''
|
||||
|
||||
DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )"
|
||||
RDEPEND="${RDEPEND}"
|
||||
|
||||
# Official test instructions:
|
||||
# USE='-cluster embedded extraengine perl ssl static-libs community' \
|
||||
# FEATURES='test userpriv -usersandbox' \
|
||||
# ebuild mariadb-X.X.XX.ebuild \
|
||||
# digest clean package
|
||||
multilib_src_test() {
|
||||
|
||||
if ! multilib_is_native_abi ; then
|
||||
einfo "Server tests not available on non-native abi".
|
||||
return 0;
|
||||
fi
|
||||
|
||||
local TESTDIR="${BUILD_DIR}/mysql-test"
|
||||
local retstatus_unit
|
||||
local retstatus_tests
|
||||
|
||||
# Bug #213475 - MySQL _will_ object strenously if your machine is named
|
||||
# localhost. Also causes weird failures.
|
||||
[[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
|
||||
|
||||
if ! use "minimal" ; then
|
||||
|
||||
if [[ $UID -eq 0 ]]; then
|
||||
die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
|
||||
fi
|
||||
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
|
||||
|
||||
einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
|
||||
addpredict /this-dir-does-not-exist/t9.MYI
|
||||
|
||||
# Run CTest (test-units)
|
||||
cmake-utils_src_test
|
||||
retstatus_unit=$?
|
||||
[[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed"
|
||||
|
||||
# Ensure that parallel runs don't die
|
||||
export MTR_BUILD_THREAD="$((${RANDOM} % 100))"
|
||||
|
||||
# create directories because mysqladmin might right out of order
|
||||
mkdir -p "${S}"/mysql-test/var-tests{,/log}
|
||||
|
||||
# These are failing in MariaDB 10.0 for now and are believed to be
|
||||
# false positives:
|
||||
#
|
||||
# main.information_schema, binlog.binlog_statement_insert_delayed,
|
||||
# main.mysqld--help, funcs_1.is_triggers, funcs_1.is_tables_mysql,
|
||||
# funcs_1.is_columns_mysql
|
||||
# fails due to USE=-latin1 / utf8 default
|
||||
#
|
||||
# main.mysql_client_test, main.mysql_client_test_nonblock
|
||||
# main.mysql_client_test_comp:
|
||||
# segfaults at random under Portage only, suspect resource limits.
|
||||
#
|
||||
# innodb.innodb_simulate_comp_failures_small
|
||||
# Has a very long timeout requirement to be consistent
|
||||
# Upstream bug MDEV-6546
|
||||
#
|
||||
|
||||
for t in main.mysql_client_test main.mysql_client_test_nonblock \
|
||||
main.mysql_client_test_comp \
|
||||
binlog.binlog_statement_insert_delayed main.information_schema \
|
||||
main.mysqld--help innodb.innodb_simulate_comp_failures_small \
|
||||
funcs_1.is_triggers funcs_1.is_tables_mysql funcs_1.is_columns_mysql ; do
|
||||
mysql-multilib_disable_test "$t" "False positives in Gentoo"
|
||||
done
|
||||
|
||||
# Run mysql tests
|
||||
pushd "${TESTDIR}"
|
||||
|
||||
# run mysql-test tests
|
||||
# Skip all CONNECT engine tests until upstream respondes to how to reference data files
|
||||
perl mysql-test-run.pl --force --vardir="${S}/mysql-test/var-tests" \
|
||||
--skip-test=connect --parallel=auto
|
||||
retstatus_tests=$?
|
||||
[[ $retstatus_tests -eq 0 ]] || eerror "tests failed"
|
||||
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
|
||||
|
||||
popd
|
||||
|
||||
# Cleanup is important for these testcases.
|
||||
pkill -9 -f "${S}/ndb" 2>/dev/null
|
||||
pkill -9 -f "${S}/sql" 2>/dev/null
|
||||
|
||||
failures=""
|
||||
[[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit"
|
||||
[[ $retstatus_tests -eq 0 ]] || failures="${failures} tests"
|
||||
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
|
||||
|
||||
[[ -z "$failures" ]] || die "Test failures: $failures"
|
||||
einfo "Tests successfully completed"
|
||||
|
||||
else
|
||||
|
||||
einfo "Skipping server tests due to minimal build."
|
||||
fi
|
||||
}
|
@ -1,4 +1 @@
|
||||
DIST simgear-2.10.0.tar.bz2 879537 SHA256 582c0d547a58f7dbe841a0ba9eba5a894aae2b65f14ef06361e196b12022615d SHA512 4f994f699b8e06c432e51fcd9b7e15b8d143f6e244b14a6271fab02efd70199fd396aab42ed5fcf05c2c7c8d29bdd0f61f15486a48ea09a13b4924941eb20b56 WHIRLPOOL 4f7e41ca7fc5fd5a0c4428c156defaae495c93c319b14df555ae7e24dd33f6160ed652569155c099d31f0f58b53b02b3437d6522c610e8f88ba4f0ce487c5d17
|
||||
DIST simgear-2.12.1.tar.bz2 962809 SHA256 24d20fc592bff20b3572a960afa973ff4586850126f5ec520001dc47dfcf0d71 SHA512 60b6644d77c71db13362e4c75840f18145579fa0677fbc4a3ddc9fbed45ea39be7b7a1144615577d13df462166d74e5bb830091d46fe2b06d1f0ca5cf366897b WHIRLPOOL 6566b34302a039aaca0ee424c97251692994e358d6b7739aaff6b7656fd51febc7539e58e53f77f9919f847cb1ecac6b067d4ee719f141a094bdf3882ad0a0d3
|
||||
DIST simgear-2.8.0.tar.bz2 766340 SHA256 24758b0d59ba6d03659398c19145d92c2179174040f42739fc2f9c03c0bf90f7 SHA512 ead06fd394b10a7ae3c98422cc469b3c97450162f6994c40c7cb4818f88e0d25cf0b5dc9c39a10e2b9c0fd849dd322451df93e4febcbacf2fc23fe1860917064 WHIRLPOOL 77b0f59478c4c89a3ea02c48a97312b91df8ab9410cdc75bdbd516c2497f2e9941caf689c3115b2ccfb3419ef2cbdad7b2025d59fd1318b112b8a09bf6d5cd34
|
||||
DIST simgear-3.0.0.tar.bz2 969971 SHA256 09448f87e6c2b5b6101a5a4eac331c1e1b998d61ec2e59614449110de2e68016 SHA512 a43ff90a28e3b17b5decdf5c16f541dda4c5b71a59e46cb7d55e58dead4c7d37d529408dad7480625410a2d71c63654baff1192c86158759e0f93a21674ad62d WHIRLPOOL 89466219168dd97a18eb4d26744138817b51aeefd848dea3b1f08b9cc24a729ce49f0d13e2976d2da445e8ad013cf3889f1a9893593528d5660dc432e0c0e736
|
||||
|
@ -1,49 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-games/simgear/simgear-2.10.0.ebuild,v 1.3 2013/12/07 22:27:58 pacho Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils cmake-utils
|
||||
|
||||
DESCRIPTION="Development library for simulation games"
|
||||
HOMEPAGE="http://www.simgear.org/"
|
||||
SRC_URI="http://mirrors.ibiblio.org/pub/mirrors/simgear/ftp/Source/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="amd64 ~ppc x86"
|
||||
SLOT="0"
|
||||
IUSE="debug jpeg subversion test"
|
||||
|
||||
COMMON_DEPEND="
|
||||
dev-libs/expat
|
||||
>=dev-games/openscenegraph-3.0.1
|
||||
media-libs/openal
|
||||
sys-libs/zlib
|
||||
virtual/opengl
|
||||
jpeg? ( virtual/jpeg )
|
||||
subversion? (
|
||||
dev-libs/apr
|
||||
dev-vcs/subversion
|
||||
)
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
>=dev-libs/boost-1.44
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}"
|
||||
|
||||
DOCS=(AUTHORS ChangeLog NEWS README Thanks)
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DENABLE_RTI=OFF
|
||||
-DENABLE_SOUND=ON
|
||||
-DSIMGEAR_HEADLESS=OFF
|
||||
-DSIMGEAR_SHARED=ON
|
||||
-DSYSTEM_EXPAT=ON
|
||||
$(cmake-utils_use jpeg JPEG_FACTORY)
|
||||
$(cmake-utils_use_enable subversion LIBSVN)
|
||||
$(cmake-utils_use_enable test TESTS)
|
||||
)
|
||||
cmake-utils_src_configure
|
||||
}
|
@ -1,49 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-games/simgear/simgear-2.12.1.ebuild,v 1.1 2013/12/12 05:13:54 reavertm Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils cmake-utils
|
||||
|
||||
DESCRIPTION="Development library for simulation games"
|
||||
HOMEPAGE="http://www.simgear.org/"
|
||||
SRC_URI="http://mirrors.ibiblio.org/pub/mirrors/simgear/ftp/Source/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
SLOT="0"
|
||||
IUSE="debug jpeg subversion test"
|
||||
|
||||
COMMON_DEPEND="
|
||||
dev-libs/expat
|
||||
>=dev-games/openscenegraph-3.0.1
|
||||
media-libs/openal
|
||||
sys-libs/zlib
|
||||
virtual/opengl
|
||||
jpeg? ( virtual/jpeg )
|
||||
subversion? (
|
||||
dev-libs/apr
|
||||
dev-vcs/subversion
|
||||
)
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
>=dev-libs/boost-1.44
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}"
|
||||
|
||||
DOCS=(AUTHORS ChangeLog NEWS README Thanks)
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DENABLE_RTI=OFF
|
||||
-DENABLE_SOUND=ON
|
||||
-DSIMGEAR_HEADLESS=OFF
|
||||
-DSIMGEAR_SHARED=ON
|
||||
-DSYSTEM_EXPAT=ON
|
||||
$(cmake-utils_use jpeg JPEG_FACTORY)
|
||||
$(cmake-utils_use_enable subversion LIBSVN)
|
||||
$(cmake-utils_use_enable test TESTS)
|
||||
)
|
||||
cmake-utils_src_configure
|
||||
}
|
@ -1,53 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-games/simgear/simgear-2.8.0-r1.ebuild,v 1.4 2012/12/09 15:10:08 ago Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit eutils cmake-utils
|
||||
|
||||
DESCRIPTION="Development library for simulation games"
|
||||
HOMEPAGE="http://www.simgear.org/"
|
||||
SRC_URI="http://mirrors.ibiblio.org/pub/mirrors/simgear/ftp/Source/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="amd64 ppc x86"
|
||||
SLOT="0"
|
||||
IUSE="debug jpeg subversion test"
|
||||
|
||||
COMMON_DEPEND="
|
||||
dev-libs/expat
|
||||
>=dev-games/openscenegraph-3.0.1
|
||||
media-libs/freealut
|
||||
media-libs/openal
|
||||
sys-libs/zlib
|
||||
virtual/opengl
|
||||
jpeg? ( virtual/jpeg )
|
||||
subversion? (
|
||||
dev-libs/apr
|
||||
dev-vcs/subversion
|
||||
)
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
>=dev-libs/boost-1.37
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-unbundle-expat.patch"
|
||||
)
|
||||
|
||||
DOCS=(AUTHORS ChangeLog NEWS README Thanks)
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DENABLE_RTI=OFF
|
||||
-DSIMGEAR_HEADLESS=OFF
|
||||
-DSIMGEAR_SHARED=ON
|
||||
-DSYSTEM_EXPAT=ON
|
||||
$(cmake-utils_use jpeg JPEG_FACTORY)
|
||||
$(cmake-utils_use_enable subversion LIBSVN)
|
||||
$(cmake-utils_use_enable test TESTS)
|
||||
)
|
||||
cmake-utils_src_configure
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST scientific-0.2.0.1.tar.gz 8484 SHA256 37f320000253138476d217bd08a326262e7b449fd848c296e41e5f82906e9d77 SHA512 bff2cb2f91ad5153588d5b6c07ec5e02438cdb582a72bfbd10504f2b53f3e2975e16bbe6b2d69dc8943916bc016f3e7e2dc94a17a34afe28577a32b799072d8b WHIRLPOOL 0764d00f374678c58cf1bad7b28dc19a132f9fd44525481082ece3b064a34e084a7a534ed599fdd6e3fa27cb7c4f4cbfb4c50314dcd37434069fc05eee29a5ff
|
||||
DIST scientific-0.3.2.1.tar.gz 15962 SHA256 1a21fa97d2d7759409d406242ff1033bda521400d42342dfd543995d7103137c SHA512 0c9f8ed159b7651d76aa9e4d5c19365fb2b786e607ca08a6c7cb93cfbb889922d22b7758fd0850452c9ac7342dc30e9120cb1957fed1f92ee43e756bde885c85 WHIRLPOOL 99c05d87fefd82f6f67070ecd90d83b83c348d88b6676246e57374149c3d743dc06566b1e9b16d003921fbf0da6b765f4e6e67097383b9e84eff68d8ce01e75d
|
||||
DIST scientific-0.3.3.0.tar.gz 17182 SHA256 3bab5bc2df22feac6b2e461daf3ececae2e5083569e09bb463a78e82574c44ce SHA512 44801663bf2077336b1acc77ab1e50e50eb93b0c3f4a240122d3f5633ae2c13fcff6385c015b337e1fe0b0d3664f79797f95c1e4fd8cae7178ba93d3ee52a04a WHIRLPOOL 7593066801a060b9365b4bfd09dac212704ae6b53a87cdc6043a057a01753c9b2183d488058ae0986b49b0eb05d2be07e62404bfd73eba0ee03cf1a7fd76eef0
|
||||
|
@ -0,0 +1,39 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-haskell/scientific/scientific-0.3.3.0.ebuild,v 1.1 2014/08/12 10:24:39 slyfox Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
# ebuild generated by hackport 0.4.2.9999
|
||||
|
||||
CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
|
||||
inherit haskell-cabal
|
||||
|
||||
DESCRIPTION="Numbers represented using scientific notation"
|
||||
HOMEPAGE="https://github.com/basvandijk/scientific"
|
||||
SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="+bytestring-builder"
|
||||
|
||||
RDEPEND=">=dev-haskell/hashable-1.1.2:=[profile?] <dev-haskell/hashable-1.3:=[profile?]
|
||||
>=dev-haskell/text-0.8:=[profile?] <dev-haskell/text-1.3:=[profile?]
|
||||
>=dev-lang/ghc-7.6.1:=
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-haskell/cabal-1.16.0
|
||||
test? ( >=dev-haskell/quickcheck-2.5 <dev-haskell/quickcheck-2.8
|
||||
>=dev-haskell/smallcheck-1.0 <dev-haskell/smallcheck-1.2
|
||||
>=dev-haskell/tasty-0.5 <dev-haskell/tasty-0.9
|
||||
>=dev-haskell/tasty-ant-xml-1.0 <dev-haskell/tasty-ant-xml-1.1
|
||||
>=dev-haskell/tasty-hunit-0.8 <dev-haskell/tasty-hunit-0.9
|
||||
>=dev-haskell/tasty-quickcheck-0.8 <dev-haskell/tasty-quickcheck-0.9
|
||||
>=dev-haskell/tasty-smallcheck-0.2 <dev-haskell/tasty-smallcheck-0.9 )
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
haskell-cabal_src_configure \
|
||||
$(cabal_flag bytestring-builder bytestring-builder)
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST xhtml-3000.2.0.1.tar.gz 13668 SHA256 60d7a44ae6d607475e2d60c5bf9909b8a3bd88850d52b08ff1532aa6d58bec96 SHA512 a9eb619964af96f22069373ad2c4986d84843c67b03531b1c1a2f0ab95148617adcdc44804b1fbcbc856fe0ba054371470ed606fa42f51bdcc8e72dbbaf3fd15 WHIRLPOOL 8e0fc6bfa7d8725324a739906618b8775469821e296a522c6b1d16765bb9d513a3205ae752fd792617852cef4e77c03e3b38cbe45a8a0119a326f6434de2fff2
|
||||
DIST xhtml-3000.2.1.tar.gz 14555 SHA256 33020782170c1c083bc59fc3bfcb72cec2db223e02d1181c07ae23b9fa7fdcd8 SHA512 a3e901f6173e3885717ee5e451f8ea8d2ee61cbb159335eb69b0a7e097dbad350b1919aedd7f9daf530147fea7982921fc324df41112e69ed362d143fe327342 WHIRLPOOL abd5d7e94b7f14e691a9f18dadc9961271da75790c8dedae6fa2566072355cbc3840eb82291c78ec3d2baeddf2f473619dfa50c6a0ab63a2bf4ab195e1a689d5
|
||||
|
@ -1,24 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-haskell/xhtml/xhtml-3000.2.0.1.ebuild,v 1.10 2013/04/25 18:48:56 ago Exp $
|
||||
|
||||
# ebuild generated by hackport 0.2.13
|
||||
|
||||
EAPI="3"
|
||||
|
||||
# haddock-2.9.2 has xhtml as a dep, so disable haddock feature
|
||||
CABAL_FEATURES="lib profile"
|
||||
inherit haskell-cabal
|
||||
|
||||
DESCRIPTION="An XHTML combinator library"
|
||||
HOMEPAGE="http://hackage.haskell.org/package/xhtml"
|
||||
SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 ia64 ppc sparc x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=dev-lang/ghc-6.8.2"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-haskell/cabal"
|
@ -1,22 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-haskell/xhtml/xhtml-3000.2.1.ebuild,v 1.7 2013/09/05 19:23:51 ago Exp $
|
||||
|
||||
EAPI="3"
|
||||
|
||||
# haddock-2.9.2 has xhtml as a dep, so disable haddock feature
|
||||
CABAL_FEATURES="lib profile"
|
||||
inherit haskell-cabal
|
||||
|
||||
DESCRIPTION="An XHTML combinator library"
|
||||
HOMEPAGE="https://github.com/haskell/xhtml"
|
||||
SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 ia64 ppc ~sparc x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=dev-lang/ghc-6.10.1"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-haskell/cabal-1.6"
|
@ -0,0 +1,125 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/swi-prolog/swi-prolog-7.1.19.ebuild,v 1.1 2014/08/13 10:47:03 keri Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit eutils flag-o-matic java-pkg-opt-2 multilib
|
||||
|
||||
PATCHSET_VER="0"
|
||||
|
||||
DESCRIPTION="free, small, and standard compliant Prolog compiler"
|
||||
HOMEPAGE="http://www.swi-prolog.org/"
|
||||
SRC_URI="http://www.swi-prolog.org/download/devel/src/pl-${PV}.tar.gz
|
||||
mirror://gentoo/${P}-gentoo-patchset-${PATCHSET_VER}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
|
||||
IUSE="archive debug doc +gmp hardened java minimal odbc +readline ssl static-libs test zlib X"
|
||||
|
||||
RDEPEND="sys-libs/ncurses
|
||||
archive? ( app-arch/libarchive )
|
||||
zlib? ( sys-libs/zlib )
|
||||
odbc? ( dev-db/unixODBC )
|
||||
readline? ( sys-libs/readline )
|
||||
gmp? ( dev-libs/gmp )
|
||||
ssl? ( dev-libs/openssl )
|
||||
java? ( >=virtual/jdk-1.4 )
|
||||
X? (
|
||||
virtual/jpeg
|
||||
x11-libs/libX11
|
||||
x11-libs/libXft
|
||||
x11-libs/libXpm
|
||||
x11-libs/libXt
|
||||
x11-libs/libICE
|
||||
x11-libs/libSM )"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
X? ( x11-proto/xproto )
|
||||
java? ( test? ( =dev-java/junit-3.8* ) )"
|
||||
|
||||
S="${WORKDIR}/pl-${PV}"
|
||||
|
||||
src_prepare() {
|
||||
EPATCH_FORCE=yes
|
||||
EPATCH_SUFFIX=patch
|
||||
epatch "${WORKDIR}"/${PV}
|
||||
|
||||
# OSX/Intel ld doesn't like an archive without table of contents
|
||||
sed -i -e 's/-cru/-scru/' packages/nlp/libstemmer_c/Makefile.pl || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
append-flags -fno-strict-aliasing
|
||||
use ppc && append-flags -mno-altivec
|
||||
use hardened && append-flags -fno-unit-at-a-time
|
||||
use debug && append-flags -DO_DEBUG
|
||||
|
||||
# ARCH is used in the configure script to figure out host and target
|
||||
# specific stuff
|
||||
export ARCH=${CHOST}
|
||||
|
||||
export CC_FOR_BUILD=$(tc-getBUILD_CC)
|
||||
|
||||
cd "${S}"/src || die
|
||||
econf \
|
||||
--libdir="${EPREFIX}"/usr/$(get_libdir) \
|
||||
$(use_enable gmp) \
|
||||
$(use_enable readline) \
|
||||
$(use_enable static-libs static) \
|
||||
--enable-shared \
|
||||
--enable-custom-flags COFLAGS="${CFLAGS}"
|
||||
|
||||
if ! use minimal ; then
|
||||
local jpltestconf
|
||||
if use java && use test ; then
|
||||
jpltestconf="--with-junit=$(java-config --classpath junit)"
|
||||
fi
|
||||
|
||||
cd "${S}/packages" || die
|
||||
econf \
|
||||
--libdir="${EPREFIX}"/usr/$(get_libdir) \
|
||||
$(use_with archive) \
|
||||
$(use_with java jpl) \
|
||||
${jpltestconf} \
|
||||
$(use_with odbc) \
|
||||
$(use_with ssl) \
|
||||
$(use_with X xpce) \
|
||||
$(use_with zlib) \
|
||||
COFLAGS='"${CFLAGS}"'
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cd "${S}"/src || die
|
||||
emake
|
||||
|
||||
if ! use minimal ; then
|
||||
cd "${S}/packages" || die
|
||||
emake
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
cd "${S}/src" || die
|
||||
emake check
|
||||
|
||||
if ! use minimal ; then
|
||||
cd "${S}/packages" || die
|
||||
emake check
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake -C src DESTDIR="${D}" install
|
||||
|
||||
if ! use minimal ; then
|
||||
emake -C packages DESTDIR="${D}" install
|
||||
if use doc ; then
|
||||
emake -C packages DESTDIR="${D}" html-install
|
||||
fi
|
||||
fi
|
||||
|
||||
dodoc ReleaseNotes/relnotes-5.10 INSTALL README VERSION
|
||||
}
|
@ -0,0 +1,391 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/boost/boost-1.55.0-r2.ebuild,v 1.1 2014/08/12 10:09:35 pinkbyte Exp $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3,3_4} )
|
||||
|
||||
inherit eutils flag-o-matic multiprocessing python-r1 toolchain-funcs versionator multilib-minimal
|
||||
|
||||
MY_P="${PN}_$(replace_all_version_separators _)"
|
||||
MAJOR_V="$(get_version_component_range 1-2)"
|
||||
|
||||
DESCRIPTION="Boost Libraries for C++"
|
||||
HOMEPAGE="http://www.boost.org/"
|
||||
SRC_URI="mirror://sourceforge/boost/${MY_P}.tar.bz2"
|
||||
|
||||
LICENSE="Boost-1.0"
|
||||
SLOT="0/${PV}" # ${PV} instead ${MAJOR_V} due to bug 486122
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x86-fbsd ~x86-linux"
|
||||
|
||||
IUSE="context debug doc icu +nls mpi python static-libs +threads tools"
|
||||
|
||||
RDEPEND="icu? ( >=dev-libs/icu-3.6:=[${MULTILIB_USEDEP}] )
|
||||
!icu? ( virtual/libiconv[${MULTILIB_USEDEP}] )
|
||||
mpi? ( || ( sys-cluster/openmpi[cxx] sys-cluster/mpich2[cxx,threads] ) )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
app-arch/bzip2[${MULTILIB_USEDEP}]
|
||||
sys-libs/zlib[${MULTILIB_USEDEP}]
|
||||
!app-admin/eselect-boost"
|
||||
DEPEND="${RDEPEND}
|
||||
=dev-util/boost-build-${MAJOR_V}*"
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
# the tests will never fail because these are not intended as sanity
|
||||
# tests at all. They are more a way for upstream to check their own code
|
||||
# on new compilers. Since they would either be completely unreliable
|
||||
# (failing for no good reason) or completely useless (never failing)
|
||||
# there is no point in having them in the ebuild to begin with.
|
||||
RESTRICT="test"
|
||||
|
||||
python_bindings_needed() {
|
||||
multilib_is_native_abi && use python
|
||||
}
|
||||
|
||||
tools_needed() {
|
||||
multilib_is_native_abi && use tools
|
||||
}
|
||||
|
||||
# MPI stuff is not ported on multilib yet, disabling it for non-native ABIs
|
||||
mpi_needed() {
|
||||
multilib_is_native_abi && use mpi
|
||||
}
|
||||
|
||||
create_user-config.jam() {
|
||||
local compiler compiler_version compiler_executable
|
||||
|
||||
if [[ ${CHOST} == *-darwin* ]]; then
|
||||
compiler="darwin"
|
||||
compiler_version="$(gcc-fullversion)"
|
||||
compiler_executable="$(tc-getCXX)"
|
||||
else
|
||||
compiler="gcc"
|
||||
compiler_version="$(gcc-version)"
|
||||
compiler_executable="$(tc-getCXX)"
|
||||
fi
|
||||
local mpi_configuration python_configuration
|
||||
|
||||
if mpi_needed; then
|
||||
mpi_configuration="using mpi ;"
|
||||
fi
|
||||
|
||||
if python_bindings_needed; then
|
||||
python_configuration="using python : : ${PYTHON} ;"
|
||||
fi
|
||||
|
||||
cat > "${BOOST_ROOT}/user-config.jam" << __EOF__
|
||||
using ${compiler} : ${compiler_version} : ${compiler_executable} : <cflags>"${CFLAGS}" <cxxflags>"${CXXFLAGS}" <linkflags>"${LDFLAGS}" ;
|
||||
${mpi_configuration}
|
||||
${python_configuration}
|
||||
__EOF__
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
# Bail out on unsupported build configuration, bug #456792
|
||||
if [[ -f "${EROOT}etc/site-config.jam" ]]; then
|
||||
grep -q gentoorelease "${EROOT}etc/site-config.jam" && grep -q gentoodebug "${EROOT}etc/site-config.jam" ||
|
||||
(
|
||||
eerror "You are using custom ${EROOT}etc/site-config.jam without defined gentoorelease/gentoodebug targets."
|
||||
eerror "Boost can not be built in such configuration."
|
||||
eerror "Please, either remove this file or add targets from ${EROOT}usr/share/boost-build/site-config.jam to it."
|
||||
die
|
||||
)
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch \
|
||||
"${FILESDIR}/${PN}-1.51.0-respect_python-buildid.patch" \
|
||||
"${FILESDIR}/${PN}-1.51.0-support_dots_in_python-buildid.patch" \
|
||||
"${FILESDIR}/${PN}-1.48.0-no_strict_aliasing_python2.patch" \
|
||||
"${FILESDIR}/${PN}-1.48.0-disable_libboost_python3.patch" \
|
||||
"${FILESDIR}/${PN}-1.48.0-python_linking.patch" \
|
||||
"${FILESDIR}/${PN}-1.48.0-disable_icu_rpath.patch" \
|
||||
"${FILESDIR}/${PN}-1.55.0-context-x32.patch" \
|
||||
"${FILESDIR}/${PN}-1.55.0-tools-c98-compat.patch" \
|
||||
"${FILESDIR}/${PN}-1.52.0-threads.patch"
|
||||
|
||||
epatch_user
|
||||
|
||||
multilib_copy_sources
|
||||
}
|
||||
|
||||
ejam() {
|
||||
local b2_opts="--user-config=${BOOST_ROOT}/user-config.jam $@"
|
||||
echo b2 ${b2_opts}
|
||||
b2 ${b2_opts}
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Workaround for too many parallel processes requested, bug #506064
|
||||
[ "$(makeopts_jobs)" -gt 64 ] && MAKEOPTS="${MAKEOPTS} -j64"
|
||||
|
||||
OPTIONS="$(usex debug gentoodebug gentoorelease) -j$(makeopts_jobs) -q -d+2"
|
||||
|
||||
if [[ ${CHOST} == *-darwin* ]]; then
|
||||
# We need to add the prefix, and in two cases this exceeds, so prepare
|
||||
# for the largest possible space allocation.
|
||||
append-ldflags -Wl,-headerpad_max_install_names
|
||||
elif [[ ${CHOST} == *-winnt* ]]; then
|
||||
compiler=parity
|
||||
if [[ $($(tc-getCXX) -v) == *trunk* ]]; then
|
||||
compilerVersion=trunk
|
||||
else
|
||||
compilerVersion=$($(tc-getCXX) -v | sed '1q' \
|
||||
| sed -e 's,\([a-z]*\) \([0-9]\.[0-9]\.[0-9][^ \t]*\) .*,\2,')
|
||||
fi
|
||||
compilerExecutable=$(tc-getCXX)
|
||||
fi
|
||||
|
||||
# bug 298489
|
||||
if use ppc || use ppc64; then
|
||||
[[ $(gcc-version) > 4.3 ]] && append-flags -mno-altivec
|
||||
fi
|
||||
|
||||
# Do _not_ use C++11 yet, make sure to force GNU C++ 98 standard.
|
||||
append-cxxflags -std=gnu++98
|
||||
|
||||
use icu && OPTIONS+=" -sICU_PATH=${EPREFIX}/usr"
|
||||
use icu || OPTIONS+=" --disable-icu boost.locale.icu=off"
|
||||
mpi_needed || OPTIONS+=" --without-mpi"
|
||||
use nls || OPTIONS+=" --without-locale"
|
||||
use context || OPTIONS+=" --without-context --without-coroutine"
|
||||
|
||||
OPTIONS+=" pch=off"
|
||||
OPTIONS+=" --boost-build=${EPREFIX}/usr/share/boost-build --prefix=\"${ED}usr\""
|
||||
OPTIONS+=" --layout=system"
|
||||
OPTIONS+=" threading=$(usex threads multi single) link=$(usex static-libs shared,static shared)"
|
||||
|
||||
[[ ${CHOST} == *-winnt* ]] && OPTIONS+=" -sNO_BZIP2=1"
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
local -x BOOST_ROOT="${BUILD_DIR}"
|
||||
PYTHON_DIRS=""
|
||||
MPI_PYTHON_MODULE=""
|
||||
|
||||
building() {
|
||||
create_user-config.jam
|
||||
|
||||
local PYTHON_OPTIONS
|
||||
if python_bindings_needed; then
|
||||
PYTHON_OPTIONS=" --python-buildid=${EPYTHON#python}"
|
||||
else
|
||||
PYTHON_OPTIONS=" --without-python"
|
||||
fi
|
||||
|
||||
ejam \
|
||||
${OPTIONS} \
|
||||
${PYTHON_OPTIONS} \
|
||||
|| die "Building of Boost libraries failed"
|
||||
|
||||
if python_bindings_needed; then
|
||||
if [[ -z "${PYTHON_DIRS}" ]]; then
|
||||
PYTHON_DIRS="$(find bin.v2/libs -name python | sort)"
|
||||
else
|
||||
if [[ "${PYTHON_DIRS}" != "$(find bin.v2/libs -name python | sort)" ]]; then
|
||||
die "Inconsistent structure of build directories"
|
||||
fi
|
||||
fi
|
||||
|
||||
local dir
|
||||
for dir in ${PYTHON_DIRS}; do
|
||||
mv ${dir} ${dir}-${EPYTHON} \
|
||||
|| die "Renaming of '${dir}' to '${dir}-${EPYTHON}' failed"
|
||||
done
|
||||
|
||||
if mpi_needed; then
|
||||
if [[ -z "${MPI_PYTHON_MODULE}" ]]; then
|
||||
MPI_PYTHON_MODULE="$(find bin.v2/libs/mpi/build/*/gentoo* -name mpi.so)"
|
||||
if [[ "$(echo "${MPI_PYTHON_MODULE}" | wc -l)" -ne 1 ]]; then
|
||||
die "Multiple mpi.so files found"
|
||||
fi
|
||||
else
|
||||
if [[ "${MPI_PYTHON_MODULE}" != "$(find bin.v2/libs/mpi/build/*/gentoo* -name mpi.so)" ]]; then
|
||||
die "Inconsistent structure of build directories"
|
||||
fi
|
||||
fi
|
||||
|
||||
mv stage/lib/mpi.so stage/lib/mpi.so-${EPYTHON} \
|
||||
|| die "Renaming of 'stage/lib/mpi.so' to 'stage/lib/mpi.so-${EPYTHON}' failed"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
if python_bindings_needed; then
|
||||
python_foreach_impl building
|
||||
else
|
||||
building
|
||||
fi
|
||||
|
||||
if tools_needed; then
|
||||
pushd tools > /dev/null || die
|
||||
|
||||
ejam \
|
||||
${OPTIONS} \
|
||||
${PYTHON_OPTIONS} \
|
||||
|| die "Building of Boost tools failed"
|
||||
popd > /dev/null || die
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
if ! use python; then
|
||||
rm -r "${ED}"/usr/include/boost/python* || die
|
||||
fi
|
||||
|
||||
if ! use nls; then
|
||||
rm -r "${ED}"/usr/include/boost/locale || die
|
||||
fi
|
||||
|
||||
if ! use context; then
|
||||
rm -r "${ED}"/usr/include/boost/context || die
|
||||
rm -r "${ED}"/usr/include/boost/coroutine || die
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
find libs/*/* -iname "test" -or -iname "src" | xargs rm -rf
|
||||
dohtml \
|
||||
-A pdf,txt,cpp,hpp \
|
||||
*.{htm,html,png,css} \
|
||||
-r doc
|
||||
dohtml -A pdf,txt -r tools
|
||||
insinto /usr/share/doc/${PF}/html
|
||||
doins -r libs
|
||||
doins -r more
|
||||
|
||||
# To avoid broken links
|
||||
insinto /usr/share/doc/${PF}/html
|
||||
doins LICENSE_1_0.txt
|
||||
|
||||
dosym /usr/include/boost /usr/share/doc/${PF}/html/boost
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
local -x BOOST_ROOT="${BUILD_DIR}"
|
||||
installation() {
|
||||
create_user-config.jam
|
||||
|
||||
local PYTHON_OPTIONS
|
||||
if python_bindings_needed; then
|
||||
local dir
|
||||
for dir in ${PYTHON_DIRS}; do
|
||||
cp -pr ${dir}-${EPYTHON} ${dir} \
|
||||
|| die "Copying of '${dir}-${EPYTHON}' to '${dir}' failed"
|
||||
done
|
||||
|
||||
if mpi_needed; then
|
||||
cp -p stage/lib/mpi.so-${EPYTHON} "${MPI_PYTHON_MODULE}" \
|
||||
|| die "Copying of 'stage/lib/mpi.so-${EPYTHON}' to '${MPI_PYTHON_MODULE}' failed"
|
||||
cp -p stage/lib/mpi.so-${EPYTHON} stage/lib/mpi.so \
|
||||
|| die "Copying of 'stage/lib/mpi.so-${EPYTHON}' to 'stage/lib/mpi.so' failed"
|
||||
fi
|
||||
PYTHON_OPTIONS=" --python-buildid=${EPYTHON#python}"
|
||||
else
|
||||
PYTHON_OPTIONS=" --without-python"
|
||||
fi
|
||||
|
||||
ejam \
|
||||
${OPTIONS} \
|
||||
${PYTHON_OPTIONS} \
|
||||
--includedir="${ED}usr/include" \
|
||||
--libdir="${ED}usr/$(get_libdir)" \
|
||||
install || die "Installation of Boost libraries failed"
|
||||
|
||||
if python_bindings_needed; then
|
||||
rm -r ${PYTHON_DIRS} || die
|
||||
|
||||
# Move mpi.so Python module to Python site-packages directory.
|
||||
# https://svn.boost.org/trac/boost/ticket/2838
|
||||
if mpi_needed; then
|
||||
local moddir=$(python_get_sitedir)/boost
|
||||
# moddir already includes eprefix
|
||||
mkdir -p "${D}${moddir}" || die
|
||||
mv "${ED}usr/$(get_libdir)/mpi.so" "${D}${moddir}" || die
|
||||
cat << EOF > "${D}${moddir}/__init__.py" || die
|
||||
import sys
|
||||
if sys.platform.startswith('linux'):
|
||||
import DLFCN
|
||||
flags = sys.getdlopenflags()
|
||||
sys.setdlopenflags(DLFCN.RTLD_NOW | DLFCN.RTLD_GLOBAL)
|
||||
from . import mpi
|
||||
sys.setdlopenflags(flags)
|
||||
del DLFCN, flags
|
||||
else:
|
||||
from . import mpi
|
||||
del sys
|
||||
EOF
|
||||
fi
|
||||
|
||||
python_optimize
|
||||
fi
|
||||
}
|
||||
if python_bindings_needed; then
|
||||
python_foreach_impl installation
|
||||
else
|
||||
installation
|
||||
fi
|
||||
|
||||
pushd "${ED}usr/$(get_libdir)" > /dev/null || die
|
||||
|
||||
local ext=$(get_libname)
|
||||
if use threads; then
|
||||
local f
|
||||
for f in *${ext}; do
|
||||
dosym ${f} /usr/$(get_libdir)/${f/${ext}/-mt${ext}}
|
||||
done
|
||||
fi
|
||||
|
||||
popd > /dev/null || die
|
||||
|
||||
if tools_needed; then
|
||||
dobin dist/bin/*
|
||||
|
||||
insinto /usr/share
|
||||
doins -r dist/share/boostbook
|
||||
fi
|
||||
|
||||
# boost's build system truely sucks for not having a destdir. Because for
|
||||
# this reason we are forced to build with a prefix that includes the
|
||||
# DESTROOT, dynamic libraries on Darwin end messed up, referencing the
|
||||
# DESTROOT instread of the actual EPREFIX. There is no way out of here
|
||||
# but to do it the dirty way of manually setting the right install_names.
|
||||
if [[ ${CHOST} == *-darwin* ]]; then
|
||||
einfo "Working around completely broken build-system(tm)"
|
||||
local d
|
||||
for d in "${ED}"usr/lib/*.dylib; do
|
||||
if [[ -f ${d} ]]; then
|
||||
# fix the "soname"
|
||||
ebegin " correcting install_name of ${d#${ED}}"
|
||||
install_name_tool -id "/${d#${D}}" "${d}"
|
||||
eend $?
|
||||
# fix references to other libs
|
||||
refs=$(otool -XL "${d}" | \
|
||||
sed -e '1d' -e 's/^\t//' | \
|
||||
grep "^libboost_" | \
|
||||
cut -f1 -d' ')
|
||||
local r
|
||||
for r in ${refs}; do
|
||||
ebegin " correcting reference to ${r}"
|
||||
install_name_tool -change \
|
||||
"${r}" \
|
||||
"${EPREFIX}/usr/lib/${r}" \
|
||||
"${d}"
|
||||
eend $?
|
||||
done
|
||||
fi
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# Yai for having symlinks that are nigh-impossible to remove without
|
||||
# resorting to dirty hacks like these. Removes lingering symlinks
|
||||
# from the slotted versions.
|
||||
local symlink
|
||||
for symlink in "${EROOT}usr/include/boost" "${EROOT}usr/share/boostbook"; do
|
||||
[[ -L ${symlink} ]] && rm -f "${symlink}"
|
||||
done
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -78,7 +78,6 @@
|
||||
AC_C_BIGENDIAN
|
||||
AC_C_STRINGIZE
|
||||
|
||||
-MD_CONF_DEBUGGING
|
||||
MD_CONF_COMPILER
|
||||
AM_CONDITIONAL(OS_LINUX, test "$MD_OS" = "linux")
|
||||
AM_CONDITIONAL(OS_BSD, test "$MD_OS" = "bsd")
|
||||
--- a/m4/md_check_gcc3.m4
|
||||
+++ b/m4/md_check_gcc3.m4
|
||||
@@ -1,7 +1,7 @@
|
||||
AC_DEFUN([MD_CHECK_GCC3],
|
||||
[
|
||||
if [[ "$GCC" = "yes" ]]; then
|
||||
- ver=$(gcc -dD -E - < /dev/null | sed -ne 's,.*__GNUC__ ,,p')
|
||||
+ ver=$(${CC} -dD -E - < /dev/null | sed -ne 's,.*__GNUC__ ,,p')
|
||||
case $ver in
|
||||
*[[^[:digit:]]]*)
|
||||
AC_MSG_WARN([Could not determine compiler version. Trying our luck...])
|
@ -0,0 +1,25 @@
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -59,6 +59,8 @@
|
||||
MD_CHECK_OS
|
||||
|
||||
MD_CHECK_LIBUSB018B
|
||||
+LIBS="$LIBS $LIBUSB_LIBS"
|
||||
+INCLUDES="$INCLUDES $LIBUSB_CFLAGS"
|
||||
|
||||
AC_PROG_CC
|
||||
MD_CHECK_GCC3
|
||||
@@ -97,13 +99,6 @@
|
||||
|
||||
MD_CHECK_DOXYGEN
|
||||
|
||||
-MD_CONF_FLAGS(
|
||||
- [],
|
||||
- [$OS_CFLAGS $LIBUSB_CFLAGS],
|
||||
- [],
|
||||
- [$OS_LDFLAGS $LIBUSB_LIBS]
|
||||
-)
|
||||
-
|
||||
MD_CONF_DB2MAN
|
||||
|
||||
##### OUTPUT #################################################################
|
@ -0,0 +1,45 @@
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -88,8 +87,8 @@
|
||||
if test "${ac_cv_enable_swig}" = "no" ; then
|
||||
AM_CONDITIONAL(HAVE_SWIG, false)
|
||||
else
|
||||
- AC_PROG_SWIG(1.3)
|
||||
- AM_CONDITIONAL(HAVE_SWIG, "$SWIG" -version)
|
||||
+ AC_CHECK_PROG(SWIG,swig,swig,false)
|
||||
+ AM_CONDITIONAL(HAVE_SWIG, "$ac_cv_prog_SWIG" -version)
|
||||
if test -z "${HAVE_SWIG_TRUE}" ; then
|
||||
AM_PATH_PYTHON
|
||||
SWIG_PYTHON
|
||||
--- a/swig/Makefile.am
|
||||
+++ b/swig/Makefile.am
|
||||
@@ -1,7 +1,7 @@
|
||||
# AM_MAKEFLAGS = @MAKEFLAGS@
|
||||
ACLOCAL_AMFLAGS = -I m4
|
||||
|
||||
-AM_CPPFLAGS = $(SWIG_PYTHON_CPPFLAGS) -I$(top_srcdir)/include -I$(top_srcdir)/hidparser -DHID_INTERNAL -DSWIG
|
||||
+AM_CPPFLAGS = $(SWIG_PYTHON_CPPFLAGS) -iquote$(top_srcdir)/include -I$(top_srcdir)/hidparser -DHID_INTERNAL -DSWIG
|
||||
AM_CFLAGS = -fPIC -fno-strict-aliasing
|
||||
AM_LDFLAGS = -shared ../src/libhid.la -lusb
|
||||
|
||||
@@ -29,7 +29,7 @@ __init__.py: hid.py
|
||||
|
||||
%_wrap.c %.py: %.i $(top_srcdir)/include/hid.h
|
||||
$(SWIG) $(SWIG_PYTHON_OPT) $(SWIG_INC) -o $@ $<
|
||||
- echo '#include <compiler.h>' > tmp.c
|
||||
+ echo '#include "compiler.h"' > tmp.c
|
||||
sed -e 's/PyObject \*self/& UNUSED/' \
|
||||
-e 's/int flags)/int flags UNUSED)/' < $@ >> tmp.c \
|
||||
&& mv tmp.c $@
|
||||
--- a/swig/hid.i
|
||||
+++ b/swig/hid.i
|
||||
@@ -1,7 +1,7 @@
|
||||
%module(docstring="libhid is a user-space USB HID access library built on libusb.", "threads"=1) hid
|
||||
%{
|
||||
-#include <compiler.h>
|
||||
-#include <hid.h>
|
||||
+#include "compiler.h"
|
||||
+#include "hid.h"
|
||||
%}
|
||||
|
||||
%feature("autodoc","0");
|
@ -0,0 +1,56 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/libhid/libhid-0.2.16-r4.ebuild,v 1.1 2014/08/13 11:08:25 jer Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
inherit autotools eutils python-single-r1
|
||||
|
||||
DESCRIPTION="Provides a generic and flexible way to access and interact with USB HID devices"
|
||||
HOMEPAGE="http://libhid.alioth.debian.org/"
|
||||
SRC_URI="http://beta.magicaltux.net/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
|
||||
IUSE="doc python static-libs"
|
||||
|
||||
RDEPEND="
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
virtual/libusb:0
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
doc? ( app-doc/doxygen )
|
||||
python? ( dev-lang/swig )
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-gentoo.patch
|
||||
epatch "${FILESDIR}"/${P}-swig.patch
|
||||
epatch "${FILESDIR}"/${P}-libusb.patch
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
export OS_LDFLAGS="${LDFLAGS}"
|
||||
use python && export PYTHON_LDFLAGS=$(${EPYTHON}-config --ldflags)
|
||||
|
||||
econf \
|
||||
$(use_enable python swig) \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_with doc doxygen) \
|
||||
--disable-debug \
|
||||
--disable-werror
|
||||
}
|
||||
|
||||
DOCS=( AUTHORS ChangeLog NEWS README README.licence TODO )
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
use doc && dohtml -r doc/html/*
|
||||
|
||||
prune_libtool_files
|
||||
}
|
@ -1,320 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nss/nss-3.16.2.ebuild,v 1.1 2014/07/23 21:02:44 axs Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit eutils flag-o-matic multilib toolchain-funcs multilib-minimal
|
||||
|
||||
NSPR_VER="4.10.6-r1"
|
||||
RTM_NAME="NSS_${PV//./_}_RTM"
|
||||
# Rev of https://git.fedorahosted.org/cgit/nss-pem.git
|
||||
PEM_GIT_REV="3ade37c5c4ca5a6094e3f4b2e4591405db1867dd"
|
||||
PEM_P="${PN}-pem-${PEM_GIT_REV}"
|
||||
|
||||
DESCRIPTION="Mozilla's Network Security Services library that implements PKI support"
|
||||
HOMEPAGE="http://www.mozilla.org/projects/security/pki/nss/"
|
||||
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/${RTM_NAME}/src/${P}.tar.gz
|
||||
cacert? ( http://dev.gentoo.org/~anarchy/patches/${PN}-3.14.1-add_spi+cacerts_ca_certs.patch )
|
||||
nss-pem? ( https://git.fedorahosted.org/cgit/nss-pem.git/snapshot/${PEM_P}.tar.bz2 )"
|
||||
|
||||
LICENSE="|| ( MPL-2.0 GPL-2 LGPL-2.1 )"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="+cacert +nss-pem utils"
|
||||
|
||||
DEPEND=">=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]
|
||||
>=dev-libs/nspr-${NSPR_VER}[${MULTILIB_USEDEP}]"
|
||||
RDEPEND=">=dev-libs/nspr-${NSPR_VER}[${MULTILIB_USEDEP}]
|
||||
>=dev-db/sqlite-3.8.2[${MULTILIB_USEDEP}]
|
||||
>=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
|
||||
abi_x86_32? (
|
||||
!<=app-emulation/emul-linux-x86-baselibs-20140508-r12
|
||||
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
|
||||
)"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
S="${WORKDIR}/${P}/${PN}"
|
||||
|
||||
MULTILIB_CHOST_TOOLS=(
|
||||
/usr/bin/nss-config
|
||||
)
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
if use nss-pem ; then
|
||||
mv "${PEM_P}"/nss/lib/ckfw/pem/ "${S}"/lib/ckfw/ || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Custom changes for gentoo
|
||||
epatch "${FILESDIR}/${PN}-3.15-gentoo-fixups.patch"
|
||||
epatch "${FILESDIR}/${PN}-3.15-gentoo-fixup-warnings.patch"
|
||||
use cacert && epatch "${DISTDIR}/${PN}-3.14.1-add_spi+cacerts_ca_certs.patch"
|
||||
use nss-pem && epatch "${FILESDIR}/${PN}-3.15.4-enable-pem.patch"
|
||||
epatch "${FILESDIR}/nss-3.14.2-solaris-gcc.patch"
|
||||
|
||||
pushd coreconf >/dev/null || die
|
||||
# hack nspr paths
|
||||
echo 'INCLUDES += -I$(DIST)/include/dbm' \
|
||||
>> headers.mk || die "failed to append include"
|
||||
|
||||
# modify install path
|
||||
sed -e '/CORE_DEPTH/s:SOURCE_PREFIX.*$:SOURCE_PREFIX = $(CORE_DEPTH)/dist:' \
|
||||
-i source.mk || die
|
||||
|
||||
# Respect LDFLAGS
|
||||
sed -i -e 's/\$(MKSHLIB) -o/\$(MKSHLIB) \$(LDFLAGS) -o/g' rules.mk
|
||||
popd >/dev/null || die
|
||||
|
||||
# Fix pkgconfig file for Prefix
|
||||
sed -i -e "/^PREFIX =/s:= /usr:= ${EPREFIX}/usr:" \
|
||||
config/Makefile || die
|
||||
|
||||
# use host shlibsign if need be #436216
|
||||
if tc-is-cross-compiler ; then
|
||||
sed -i \
|
||||
-e 's:"${2}"/shlibsign:shlibsign:' \
|
||||
cmd/shlibsign/sign.sh || die
|
||||
fi
|
||||
|
||||
# dirty hack
|
||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../freebl/\$(OBJDIR):" \
|
||||
lib/ssl/config.mk || die
|
||||
sed -i -e "/CRYPTOLIB/s:\$(SOFTOKEN_LIB_DIR):../../lib/freebl/\$(OBJDIR):" \
|
||||
cmd/platlibs.mk || die
|
||||
|
||||
multilib_copy_sources
|
||||
|
||||
strip-flags
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
# Ensure we stay multilib aware
|
||||
sed -i -e "/@libdir@/ s:lib64:$(get_libdir):" config/Makefile || die
|
||||
}
|
||||
|
||||
nssarch() {
|
||||
# Most of the arches are the same as $ARCH
|
||||
local t=${1:-${CHOST}}
|
||||
case ${t} in
|
||||
aarch64*)echo "aarch64";;
|
||||
hppa*) echo "parisc";;
|
||||
i?86*) echo "i686";;
|
||||
x86_64*) echo "x86_64";;
|
||||
*) tc-arch ${t};;
|
||||
esac
|
||||
}
|
||||
|
||||
nssbits() {
|
||||
local cc cppflags="${1}CPPFLAGS" cflags="${1}CFLAGS"
|
||||
if [[ ${1} == BUILD_ ]]; then
|
||||
cc=$(tc-getBUILD_CC)
|
||||
else
|
||||
cc=$(tc-getCC)
|
||||
fi
|
||||
echo > "${T}"/test.c || die
|
||||
${cc} ${!cppflags} ${!cflags} -c "${T}"/test.c -o "${T}/${1}test.o" || die
|
||||
case $(file "${T}/${1}test.o") in
|
||||
*32-bit*x86-64*) echo USE_X32=1;;
|
||||
*64-bit*|*ppc64*|*x86_64*) echo USE_64=1;;
|
||||
*32-bit*|*ppc*|*i386*) ;;
|
||||
*) die "Failed to detect whether ${cc} builds 64bits or 32bits, disable distcc if you're using it, please";;
|
||||
esac
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
# use ABI to determine bit'ness, or fallback if unset
|
||||
local buildbits mybits
|
||||
case "${ABI}" in
|
||||
n32) mybits="USE_N32=1";;
|
||||
x32) mybits="USE_X32=1";;
|
||||
s390x|*64) mybits="USE_64=1";;
|
||||
default) mybits=$(nssbits);;
|
||||
esac
|
||||
# bitness of host may differ from target
|
||||
if tc-is-cross-compiler; then
|
||||
buildbits=$(nssbits BUILD_)
|
||||
fi
|
||||
|
||||
local makeargs=(
|
||||
CC="$(tc-getCC)"
|
||||
AR="$(tc-getAR) rc \$@"
|
||||
RANLIB="$(tc-getRANLIB)"
|
||||
OPTIMIZER=
|
||||
${mybits}
|
||||
)
|
||||
|
||||
# Take care of nspr settings #436216
|
||||
local myCPPFLAGS="${CPPFLAGS} $($(tc-getPKG_CONFIG) nspr --cflags)"
|
||||
local myLDFLAGS="${LDFLAGS} $($(tc-getPKG_CONFIG) nspr --libs-only-L)"
|
||||
unset NSPR_INCLUDE_DIR
|
||||
|
||||
# Do not let `uname` be used.
|
||||
if use kernel_linux ; then
|
||||
makeargs+=(
|
||||
OS_TARGET=Linux
|
||||
OS_RELEASE=2.6
|
||||
OS_TEST="$(nssarch)"
|
||||
)
|
||||
fi
|
||||
|
||||
export BUILD_OPT=1
|
||||
export NSS_USE_SYSTEM_SQLITE=1
|
||||
export NSDISTMODE=copy
|
||||
export NSS_ENABLE_ECC=1
|
||||
export FREEBL_NO_DEPEND=1
|
||||
export ASFLAGS=""
|
||||
|
||||
local d
|
||||
|
||||
# Build the host tools first.
|
||||
LDFLAGS="${BUILD_LDFLAGS}" \
|
||||
XCFLAGS="${BUILD_CFLAGS}" \
|
||||
NSPR_LIB_DIR="${T}/fake-dir" \
|
||||
emake -j1 -C coreconf \
|
||||
CC="$(tc-getBUILD_CC)" \
|
||||
${buildbits:-${mybits}}
|
||||
makeargs+=( NSINSTALL="${PWD}/$(find -type f -name nsinstall)" )
|
||||
|
||||
# Then build the target tools.
|
||||
for d in . lib/dbm ; do
|
||||
CPPFLAGS="${myCPPFLAGS}" \
|
||||
LDFLAGS="${myLDFLAGS}" \
|
||||
XCFLAGS="${CFLAGS} ${CPPFLAGS}" \
|
||||
NSPR_LIB_DIR="${T}/${ABI}-fake-dir" \
|
||||
emake -j1 "${makeargs[@]}" -C ${d}
|
||||
done
|
||||
}
|
||||
|
||||
# Altering these 3 libraries breaks the CHK verification.
|
||||
# All of the following cause it to break:
|
||||
# - stripping
|
||||
# - prelink
|
||||
# - ELF signing
|
||||
# http://www.mozilla.org/projects/security/pki/nss/tech-notes/tn6.html
|
||||
# Either we have to NOT strip them, or we have to forcibly resign after
|
||||
# stripping.
|
||||
#local_libdir="$(get_libdir)"
|
||||
#export STRIP_MASK="
|
||||
# */${local_libdir}/libfreebl3.so*
|
||||
# */${local_libdir}/libnssdbm3.so*
|
||||
# */${local_libdir}/libsoftokn3.so*"
|
||||
|
||||
export NSS_CHK_SIGN_LIBS="freebl3 nssdbm3 softokn3"
|
||||
|
||||
generate_chk() {
|
||||
local shlibsign="$1"
|
||||
local libdir="$2"
|
||||
einfo "Resigning core NSS libraries for FIPS validation"
|
||||
shift 2
|
||||
local i
|
||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
||||
local libname=lib${i}.so
|
||||
local chkname=lib${i}.chk
|
||||
"${shlibsign}" \
|
||||
-i "${libdir}"/${libname} \
|
||||
-o "${libdir}"/${chkname}.tmp \
|
||||
&& mv -f \
|
||||
"${libdir}"/${chkname}.tmp \
|
||||
"${libdir}"/${chkname} \
|
||||
|| die "Failed to sign ${libname}"
|
||||
done
|
||||
}
|
||||
|
||||
cleanup_chk() {
|
||||
local libdir="$1"
|
||||
shift 1
|
||||
local i
|
||||
for i in ${NSS_CHK_SIGN_LIBS} ; do
|
||||
local libfname="${libdir}/lib${i}.so"
|
||||
# If the major version has changed, then we have old chk files.
|
||||
[ ! -f "${libfname}" -a -f "${libfname}.chk" ] \
|
||||
&& rm -f "${libfname}.chk"
|
||||
done
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
pushd dist >/dev/null || die
|
||||
|
||||
dodir /usr/$(get_libdir)
|
||||
cp -L */lib/*$(get_libname) "${ED}"/usr/$(get_libdir) || die "copying shared libs failed"
|
||||
cp -L -t "${ED}"/usr/$(get_libdir) */lib/{libcrmf,libfreebl}.a || die "copying libs failed"
|
||||
|
||||
# Install nss-config and pkgconfig file
|
||||
dodir /usr/bin
|
||||
cp -L */bin/nss-config "${ED}"/usr/bin || die
|
||||
dodir /usr/$(get_libdir)/pkgconfig
|
||||
cp -L */lib/pkgconfig/nss.pc "${ED}"/usr/$(get_libdir)/pkgconfig || die
|
||||
|
||||
# create an nss-softokn.pc from nss.pc for libfreebl and some private headers
|
||||
# bug 517266
|
||||
sed -e 's#Libs:#Libs: -lfreebl#' \
|
||||
-e 's#Cflags:#Cflags: -I${includedir}/private#' \
|
||||
*/lib/pkgconfig/nss.pc >"${ED}"/usr/$(get_libdir)/pkgconfig/nss-softokn.pc \
|
||||
|| die "could not create nss-softokn.pc"
|
||||
|
||||
# all the include files
|
||||
insinto /usr/include/nss
|
||||
doins public/nss/*.h
|
||||
insinto /usr/include/nss/private
|
||||
doins private/nss/{blapi,alghmac}.h
|
||||
|
||||
popd >/dev/null || die
|
||||
|
||||
local f nssutils
|
||||
# Always enabled because we need it for chk generation.
|
||||
nssutils="shlibsign"
|
||||
|
||||
if multilib_is_native_abi ; then
|
||||
if use utils; then
|
||||
# The tests we do not need to install.
|
||||
#nssutils_test="bltest crmftest dbtest dertimetest
|
||||
#fipstest remtest sdrtest"
|
||||
nssutils="addbuiltin atob baddbdir btoa certcgi certutil checkcert
|
||||
cmsutil conflict crlutil derdump digest makepqg mangle modutil multinit
|
||||
nonspr10 ocspclnt oidcalc p7content p7env p7sign p7verify pk11mode
|
||||
pk12util pp rsaperf selfserv shlibsign signtool signver ssltap strsclnt
|
||||
symkeyutil tstclnt vfychain vfyserv"
|
||||
fi
|
||||
pushd dist/*/bin >/dev/null || die
|
||||
for f in ${nssutils}; do
|
||||
dobin ${f}
|
||||
done
|
||||
popd >/dev/null || die
|
||||
fi
|
||||
|
||||
# Prelink breaks the CHK files. We don't have any reliable way to run
|
||||
# shlibsign after prelink.
|
||||
local l libs=() liblist
|
||||
for l in ${NSS_CHK_SIGN_LIBS} ; do
|
||||
libs+=("${EPREFIX}/usr/$(get_libdir)/lib${l}.so")
|
||||
done
|
||||
liblist=$(printf '%s:' "${libs[@]}")
|
||||
echo -e "PRELINK_PATH_MASK=${liblist%:}" > "${T}/90nss-${ABI}"
|
||||
doenvd "${T}/90nss-${ABI}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
multilib_pkg_postinst() {
|
||||
# We must re-sign the libraries AFTER they are stripped.
|
||||
local shlibsign="${EROOT}/usr/bin/shlibsign"
|
||||
# See if we can execute it (cross-compiling & such). #436216
|
||||
"${shlibsign}" -h >&/dev/null
|
||||
if [[ $? -gt 1 ]] ; then
|
||||
shlibsign="shlibsign"
|
||||
fi
|
||||
generate_chk "${shlibsign}" "${EROOT}"/usr/$(get_libdir)
|
||||
}
|
||||
|
||||
multilib_foreach_abi multilib_pkg_postinst
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
multilib_pkg_postrm() {
|
||||
cleanup_chk "${EROOT}"/usr/$(get_libdir)
|
||||
}
|
||||
|
||||
multilib_foreach_abi multilib_pkg_postrm
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nss/nss-3.16.1-r1.ebuild,v 1.1 2014/07/17 20:20:30 axs Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-libs/nss/nss-3.16.4.ebuild,v 1.1 2014/08/12 21:13:10 polynomial-c Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit eutils flag-o-matic multilib toolchain-funcs multilib-minimal
|
@ -0,0 +1 @@
|
||||
DIST astropy-helpers-0.4.1.tar.gz 98477 SHA256 0b4e47e535e7226d8795efb9e9453cac9343759058970a20734e66f443074577 SHA512 85975268372624bec4024dfbe560ef820bda308db898919c4d29643f10df11636f4996a8ff3f2fb7deece44f88963ddb0c8ca231e030713cf17db7503ceae42e WHIRLPOOL b37fa02ebe3e750052a9681e1e8a3a0aa9eede1909e69c70e2004ba738139707e1a0c21797681454ee782a6543bc8808b8de574d60aba601d228966c8659bb9f
|
@ -0,0 +1,23 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/astropy-helpers/astropy-helpers-0.4.1.ebuild,v 1.1 2014/08/12 08:02:24 jlec Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_2,3_3,3_4} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Helpers for Astropy and Affiliated packages"
|
||||
HOMEPAGE="https://github.com/astropy/astropy-helpers"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
KEYWORDS="~amd64 ~x86 ~x86-linux"
|
||||
|
||||
python_prepare_all() {
|
||||
sed -e '/import ah_bootstrap/d' -i setup.py || die "Removing ah_bootstrap failed"
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>sci-astronomy</herd>
|
||||
<longdescription lang="en">
|
||||
astropy-helpers is a collection of build tools used by astropy
|
||||
that may be used by other projects.
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
@ -0,0 +1,45 @@
|
||||
https://bitbucket.org/nikratio/python-dugong/issue/13/test_aborted_write-failures-in-latest
|
||||
diff --git a/test/test_dugong.py b/test/test_dugong.py
|
||||
--- a/test/test_dugong.py
|
||||
+++ b/test/test_dugong.py
|
||||
@@ -540,7 +540,7 @@
|
||||
conn.readall()
|
||||
|
||||
def test_aborted_write1(conn, monkeypatch):
|
||||
- BUFSIZE = 64*1024
|
||||
+ BUFSIZE = 640*1024
|
||||
|
||||
# Monkeypatch request handler
|
||||
def do_PUT(self):
|
||||
@@ -561,8 +561,9 @@
|
||||
|
||||
# Try to write data
|
||||
with pytest.raises(ConnectionClosed):
|
||||
- for _ in range(50):
|
||||
+ for _ in range(5000):
|
||||
conn.write(b'f' * BUFSIZE)
|
||||
+ time.sleep(0.1)
|
||||
|
||||
# Nevertheless, try to read response
|
||||
resp = conn.read_response()
|
||||
@@ -570,7 +571,7 @@
|
||||
assert resp.reason == 'Please stop!'
|
||||
|
||||
def test_aborted_write2(conn, monkeypatch):
|
||||
- BUFSIZE = 64*1024
|
||||
+ BUFSIZE = 640*1024
|
||||
|
||||
# Monkeypatch request handler
|
||||
def do_PUT(self):
|
||||
@@ -589,8 +590,9 @@
|
||||
|
||||
# Try to write data
|
||||
with pytest.raises(ConnectionClosed):
|
||||
- for _ in range(50):
|
||||
+ for _ in range(5000):
|
||||
conn.write(b'f' * BUFSIZE)
|
||||
+ time.sleep(0.1)
|
||||
|
||||
# Nevertheless, try to read response
|
||||
assert_raises(ConnectionClosed, conn.read_response)
|
||||
|
@ -0,0 +1,26 @@
|
||||
# HG changeset patch
|
||||
# User Nikolaus Rath <Nikolaus@rath.org>
|
||||
# Date 1407732767 25200
|
||||
# Node ID 1cfd473db8736251291e106ce6cd488011626276
|
||||
# Parent cd7ad81f4eea24e530db152edd6d8831dc5bd7bc
|
||||
Make extract_links.py Python 3.3 compatible again.
|
||||
|
||||
Fixes issue #15.
|
||||
|
||||
diff --git a/examples/extract_links.py b/examples/extract_links.py
|
||||
--- a/examples/extract_links.py
|
||||
+++ b/examples/extract_links.py
|
||||
@@ -30,7 +30,11 @@
|
||||
|
||||
class LinkExtractor(HTMLParser):
|
||||
def __init__(self):
|
||||
- super().__init__(convert_charrefs=True)
|
||||
+ if sys.version_info < (3,4):
|
||||
+ # Python 3.3 doesn't know about convert_charrefs
|
||||
+ super().__init__()
|
||||
+ else:
|
||||
+ super().__init__(convert_charrefs=True)
|
||||
self.links = []
|
||||
|
||||
def handle_starttag(self, tag, attrs):
|
||||
|
@ -0,0 +1,19 @@
|
||||
https://bitbucket.org/nikratio/python-dugong/issue/14/test_send_timeout-ssl-failure-in-latest
|
||||
diff --git a/test/test_dugong.py b/test/test_dugong.py
|
||||
--- a/test/test_dugong.py
|
||||
+++ b/test/test_dugong.py
|
||||
@@ -726,11 +728,11 @@
|
||||
|
||||
# We don't know how much data can be buffered, so we
|
||||
# claim to send a lot and do so in a loop.
|
||||
- len_ = 1024**3
|
||||
+ len_ = 10 * 1024**3
|
||||
conn.send_request('PUT', '/recv_something', body=BodyFollowing(len_))
|
||||
with pytest.raises(dugong.ConnectionTimedOut):
|
||||
while len_ > 0:
|
||||
- conn.write(b'x' * min(len_, 16*1024))
|
||||
+ conn.write(b'x' * min(len_, 640*1024))
|
||||
|
||||
|
||||
DUMMY_DATA = ','.join(str(x) for x in range(10000)).encode()
|
||||
|
@ -0,0 +1,130 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/ipython/ipython-2.2.0.ebuild,v 1.2 2014/08/13 07:38:42 idella4 Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
|
||||
PYTHON_REQ_USE='readline,sqlite'
|
||||
|
||||
inherit distutils-r1 virtualx
|
||||
|
||||
DESCRIPTION="Advanced interactive shell for Python"
|
||||
HOMEPAGE="http://ipython.org/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||
|
||||
IUSE="doc examples matplotlib mongodb notebook nbconvert octave qt4 +smp test wxwidgets"
|
||||
|
||||
PY2_USEDEP=$(python_gen_usedep python2_7)
|
||||
CDEPEND="
|
||||
dev-python/decorator[${PYTHON_USEDEP}]
|
||||
dev-python/pexpect[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
dev-python/simplegeneric[${PYTHON_USEDEP}]
|
||||
dev-python/pyparsing[${PYTHON_USEDEP}]
|
||||
matplotlib? ( dev-python/matplotlib[${PYTHON_USEDEP}] )
|
||||
mongodb? ( dev-python/pymongo[${PYTHON_USEDEP}] )
|
||||
octave? ( dev-python/oct2py[${PYTHON_USEDEP}] )
|
||||
smp? ( >=dev-python/pyzmq-2.1.11[${PYTHON_USEDEP}] )
|
||||
wxwidgets? ( $(python_gen_cond_dep 'dev-python/wxpython[${PYTHON_USEDEP}]' python2_7) )"
|
||||
RDEPEND="${CDEPEND}
|
||||
notebook? (
|
||||
>=www-servers/tornado-3.1[${PYTHON_USEDEP}]
|
||||
dev-python/pygments[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyzmq-2.1.11[${PYTHON_USEDEP}]
|
||||
dev-python/jinja[${PYTHON_USEDEP}]
|
||||
dev-libs/mathjax
|
||||
)
|
||||
nbconvert? (
|
||||
>=app-text/pandoc-1.12.1
|
||||
dev-python/pygments[${PYTHON_USEDEP}]
|
||||
dev-python/sphinx[${PYTHON_USEDEP}]
|
||||
dev-python/jinja[${PYTHON_USEDEP}]
|
||||
)
|
||||
qt4? ( || ( dev-python/PyQt4[${PYTHON_USEDEP}] dev-python/pyside[${PYTHON_USEDEP}] )
|
||||
dev-python/pygments[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyzmq-2.1.11[${PYTHON_USEDEP}] )"
|
||||
DEPEND="${CDEPEND}
|
||||
test? (
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PY2_USEDEP}]
|
||||
)
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}]
|
||||
dev-python/numpydoc[${PYTHON_USEDEP}]
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
dev-python/cython[${PYTHON_USEDEP}]
|
||||
dev-python/rpy[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep 'dev-python/fabric[${PYTHON_USEDEP}]' python2_7)
|
||||
>=www-servers/tornado-3.1[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
REQUIRED_USE="doc? ( matplotlib mongodb octave )"
|
||||
|
||||
PATCHES=( ${FILESDIR}/2.1.0-substitute-files.patch
|
||||
${FILESDIR}/2.1.0-disable-tests.patch )
|
||||
|
||||
DISTUTILS_IN_SOURCE_BUILD=1
|
||||
|
||||
python_prepare_all() {
|
||||
# Remove out of date insource files
|
||||
rm IPython/extensions/rmagic.py || die
|
||||
rm IPython/extensions/octavemagic.py || die
|
||||
|
||||
# Prevent un-needed download during build
|
||||
if use doc; then
|
||||
sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die
|
||||
fi
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C docs html
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# virtualx has trouble with parallel runs.
|
||||
local DISTUTILS_NO_PARALLEL_BUILD=1
|
||||
distutils-r1_src_test
|
||||
}
|
||||
|
||||
python_test() {
|
||||
distutils_install_for_testing
|
||||
local fail
|
||||
run_tests() {
|
||||
pushd ${TEST_DIR} > /dev/null
|
||||
"${PYTHON}" -m IPython.testing.iptestcontroller --all || fail=1
|
||||
popd > /dev/null
|
||||
}
|
||||
VIRTUALX_COMMAND=run_tests virtualmake
|
||||
[[ ${fail} ]] && die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install
|
||||
ln -snf "${EPREFIX}"/usr/share/mathjax \
|
||||
"${D}$(python_get_sitedir)"/IPython/html/static/mathjax || die
|
||||
|
||||
# Create ipythonX.Y symlinks.
|
||||
# TODO:
|
||||
# 1. do we want them for pypy? No. pypy has no numpy
|
||||
# 2. handle it in the eclass instead (use _python_ln_rel).
|
||||
# With pypy not an option the dosym becomes unconditional
|
||||
dosym ../lib/python-exec/${EPYTHON}/ipython \
|
||||
/usr/bin/ipython${EPYTHON#python}
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( docs/build/html/. )
|
||||
use examples && local EXAMPLES=( examples/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "To enable sympyprinting, it's required to emerge sympy"
|
||||
elog "To enable cythonmagic, it's required to emerge cython"
|
||||
}
|
@ -0,0 +1,57 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/llvmpy/llvmpy-0.12.7.ebuild,v 1.1 2014/08/13 00:06:30 idella4 Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_2,3_3,3_4} pypy )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python wrapper around the llvm C++ library"
|
||||
HOMEPAGE="http://llvmpy.org/"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="doc"
|
||||
|
||||
# fails with llvm-3.4
|
||||
RDEPEND="=sys-devel/llvm-3.3*:=[multitarget]"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
|
||||
# Usual; req'd for tests
|
||||
DISTUTILS_IN_SOURCE_BUILD=1
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PN}-0.12.2-return-type.patch )
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C docs html
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
if ! python_is_python3; then
|
||||
local CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
|
||||
export CXXFLAGS
|
||||
fi
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
|
||||
python_test() {
|
||||
cd "${BUILD_DIR}"/lib* || die
|
||||
${PYTHON} -c "import llvm; llvm.test()" || die
|
||||
}
|
||||
|
||||
python_install() {
|
||||
if ! python_is_python3; then
|
||||
local CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
|
||||
export CXXFLAGS
|
||||
fi
|
||||
distutils-r1_python_install
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( docs/_build/html )
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST mkpythonproj-1.7.tar.gz 35372 SHA256 725f3cb3ead276af246eadfccf5e69a75966d87929de2b616933d11a07a08113 SHA512 8c163ea6c3840e17dc460397f9f9080c389ef1f4a447a1fd2df7828ebcd06d4c232230a1f270a402cf7a50d207d1642d66af1aab6189d2d206ba4f59d4179cb6 WHIRLPOOL c3d5598f83510b44b287299535920fd8b491702bf900f6121169b41d4b3342f5d86c89e2ddf6d3f67c47f4f1655c0a9ba2bec551820333d7b858e054b6250396
|
||||
DIST mkpythonproj-1.8.tar.gz 34676 SHA256 6593318a2340f651f12313c3a70e2de1ae38b4f55abe6298cb056d8db583af07 SHA512 f942bb829ae0d94bd568cd67ad07779c9c98326e302c299367f9e8ad86ed70260b106fb31528e4142835dfdf0b5f630706840f2222a6725444084c7ed0ea9c12 WHIRLPOOL c474c396ff121af1cc3daf96537a0de47abbcb689ee1920c1ee36fa8c3374f347f1560adad6787026f2fe0d0ae8500abb40f8df54b714227db91605a7772a3b7
|
||||
DIST mkpythonproj-1.9.tar.gz 34828 SHA256 c89385ce08b46c81c4dbe1a9f77d2078a80ed49fc2fe11c81baf89f3ad68ead5 SHA512 6ace3a00657ca1e853b882e897ae727eede5f1f5d72f016b439be2d747ea7cf4954aed85032a50549c1a44f88fd98afd727476bef77797fa53c2234e1d22673b WHIRLPOOL 4e9564bc4beb1e23670a8e0d5d81c6f7069342ddc3fe403af906f8a516405886d287b9c550912f76f3d3f9e7d56efa1c131e801e8935a5edacd32d8aeea8b9c6
|
||||
|
@ -0,0 +1,25 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/mkpythonproj/mkpythonproj-1.9.ebuild,v 1.1 2014/08/13 03:20:05 idella4 Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python2_7 pypy )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Creates the framework for a new Python project or script"
|
||||
HOMEPAGE="http://www.seanet.com/~hgg9140/comp/mkpythonproj/doc/index.html"
|
||||
SRC_URI="http://www.seanet.com/~hgg9140/comp/download/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc"
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
RDEPEND=""
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( doc/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST multipledispatch-0.4.3.tar.gz 6591 SHA256 9d8c20ffe7f3530c9b49529ab56ec65a4759c42e19f005693bc8a188c7427255 SHA512 47b20087f4b79ca5d73f0433923abf158136e7bcf085fdd6ccbd4ba3c0e4f44087b9a92bcc77c35ac54d0c06ac71c4dc6ef20a771812e22f94e12582367d5756 WHIRLPOOL 23c24ce7f1b30ec67ea3517f35b23f52637bf894b2ee1a3c8aff071379fb36103d0703753e3fb1ebe8de625a68438156f040cf44ae384472206ffe0bc2ec4c6d
|
||||
DIST multipledispatch-0.4.4.tar.gz 6851 SHA256 891f0786937536ac84d1f60bbafe4c365eafedc4d9eb3a20dd5d4b907f953614 SHA512 4e7968bf1ceab6c869159bad9d9c93bcf2644baea5aa2de9875e6ed04c101ff19398006d5e8418376aef4ef656964b85baf9b605f36db0194f0a4ef511523f6e WHIRLPOOL a6e47a534397d1d619ea0c946ee9c16bef88760e0041ee2612709aadd555f46db07dcce2efca00da730b7f282410cbf9507d5454e0ac2ab69f1bfef6f239d7fd
|
||||
DIST multipledispatch-0.4.5.tar.gz 6912 SHA256 aeb5974860656de5ea488c641a86adcb965b354d1bcddf8c0a07713619ee0237 SHA512 1edde5326be770fefb94f6e1d1db96ac17602f2f4c32568d5c588fe112fa30e690d6e2f64e73cbeba9dc57bd6bd00afbd662dfa22043aa32f9d725c41fd0872f WHIRLPOOL 2f3c0ed9c988b03448b033bab223b121d0d820c6c5710e5d71a07fc438a366ac66f26f9926427b6bd6ef4b20eb3b4d8b57c702f32a88e386bea5b7d6e6744942
|
||||
|
@ -0,0 +1,19 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/multipledispatch/multipledispatch-0.4.5.ebuild,v 1.1 2014/08/13 04:00:42 idella4 Exp $
|
||||
|
||||
EAPI="5"
|
||||
PYTHON_COMPAT=( python{2_7,3_2,3_3,3_4} pypy )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="RESTful HTTP Content Negotiation for Flask, Bottle, web.py and webapp2"
|
||||
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
||||
HOMEPAGE="http://pypi.python.org/pypi/mimerender"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
RDEPEND="dev-python/mimeparse[${PYTHON_USEDEP}]"
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
@ -0,0 +1,44 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/numba/numba-0.13.4.ebuild,v 1.1 2014/08/13 12:01:09 idella4 Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="NumPy aware dynamic Python compiler using LLVM"
|
||||
HOMEPAGE="http://numba.pydata.org/"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
IUSE="doc examples"
|
||||
|
||||
RDEPEND="dev-python/llvmpy[${PYTHON_USEDEP}]
|
||||
>=dev-python/numpy-1.6[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
python_compile() {
|
||||
if ! python_is_python3; then
|
||||
local CFLAGS="${CFLAGS} -fno-strict-aliasing"
|
||||
export CFLAGS
|
||||
fi
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
|
||||
python_test() {
|
||||
cd "${BUILD_DIR}"/lib* || die
|
||||
${PYTHON} -c "import numba; numba.test()" || die
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
# doc needs obsolete sphnxjp package
|
||||
use doc && dodoc docs/Numba.pdf
|
||||
use examples && local EXAMPLES=( examples/. )
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST asciidoctor-0.1.4.tar.gz 225956 SHA256 ed80cf059dcef9e91465c80500bd56f0a8176475ab2dfdb1ca438b1791135b64 SHA512 2e463741c0da8adcb8a1af65a44f5a91cb04e4b3290b7463c592c7cd7070b5f49cbed0e97a763ec09acf5691ea0a5fb338f999f63ad09b5edf038c570793834c WHIRLPOOL 35cd7e3f3a8b57177d47f10d3fc8a303a75055363c643fdda21fb70d62c0def6fcbce443a7db37cde10aa0de3a97c2b05b70ae48e7fe4be90085d5bac3a39a77
|
||||
DIST asciidoctor-1.5.0.tar.gz 438838 SHA256 eb83ffe7f516ddf6fec406825cc5a98679cfd1a216e6bb7f98d16f682b5dd9ef SHA512 ae2dd796715d6ef1ca4e2846ea1ae0752bdc8b506d049eb450a65623a91cf6715984ae1b5eb2829adcb3137199d33240c332d103035172ed3d1ec44f8ebd234b WHIRLPOOL ab8c773f3ad5fd6be3f138c6c1b1e0e463ba549a052e1fa175b3020497fd888c1ed3c1ea68d4acfc6260398cb5d4db4f17cac3fcdec9ad7c2bcdd4d7b18bcc89
|
||||
|
@ -0,0 +1,29 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/asciidoctor/asciidoctor-1.5.0.ebuild,v 1.1 2014/08/13 05:31:02 graaff Exp $
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby19 ruby20"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_TEST="rake"
|
||||
RUBY_FAKEGEM_RECIPE_DOC="rdoc"
|
||||
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.adoc README.adoc"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="Processor for converting AsciiDoc source files or strings into HTML 5, DocBook 4.5 and other formats"
|
||||
HOMEPAGE="https://github.com/asciidoctor/asciidoctor"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
ruby_add_bdepend "test? (
|
||||
dev-ruby/coderay
|
||||
dev-ruby/erubis
|
||||
dev-ruby/haml
|
||||
dev-ruby/nokogiri
|
||||
dev-ruby/slim
|
||||
dev-ruby/tilt )"
|
@ -0,0 +1,41 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/capistrano/capistrano-2.15.5-r1.ebuild,v 1.1 2014/08/13 13:20:26 graaff Exp $
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby19 ruby20"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_EXTRADOC="CHANGELOG README.md"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="A distributed application deployment system"
|
||||
HOMEPAGE="http://capify.org/"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="2"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
ruby_add_rdepend "
|
||||
>=dev-ruby/net-ssh-2.0.14
|
||||
>=dev-ruby/net-sftp-2.0.2
|
||||
>=dev-ruby/net-scp-1.0.2
|
||||
>=dev-ruby/net-ssh-gateway-1.1.0
|
||||
>=dev-ruby/highline-1.2.7"
|
||||
ruby_add_bdepend "
|
||||
test? ( dev-ruby/mocha:0.12 )"
|
||||
|
||||
RUBY_PATCHES=( ${P}-sudo-cleanup.patch )
|
||||
|
||||
all_ruby_prepare() {
|
||||
rm Gemfile || die
|
||||
sed -i -e '/[Bb]undler/d' Rakefile test/utils.rb || die
|
||||
sed -i -e '/pry/ s:^:#:' -e '4igem "mocha", "~>0.12.0"' test/utils.rb || die
|
||||
|
||||
# Avoid copy strategy tests since these fail in some cases due to
|
||||
# complicated (aka unknown) interactions with other parts of the
|
||||
# test suite.
|
||||
rm test/deploy/strategy/copy_test.rb || die
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
diff -ur /usr/lib/ruby/gems/1.9.1/gems/capistrano-2.15.5/lib/capistrano/recipes/deploy.rb ./lib/capistrano/recipes/deploy.rb
|
||||
--- ./lib/capistrano/recipes/deploy.rb 2014-08-13 15:11:31.423773610 +0200
|
||||
+++ /usr/lib/ruby/gems/1.9.1/gems/capistrano-2.15.5/lib/capistrano/recipes/deploy.rb 2014-05-04 11:40:39.000000000 +0200
|
||||
@@ -462,7 +462,7 @@
|
||||
DESC
|
||||
task :cleanup, :except => { :no_release => true } do
|
||||
count = fetch(:keep_releases, 5).to_i
|
||||
- try_sudo "ls -1dt #{releases_path}/* | tail -n +#{count + 1} | #{try_sudo} xargs rm -rf"
|
||||
+ run "ls -1dt #{releases_path}/* | tail -n +#{count + 1} | #{try_sudo} xargs rm -rf"
|
||||
end
|
||||
|
||||
desc <<-DESC
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue