parent
c7563788b0
commit
5f1d096d09
@ -1,4 +1,2 @@
|
||||
DIST elektra-0.7.1.tar.gz 1347524 SHA256 ff90ae274935eac9c9c5c85ca7e66049be46a31d9ef08bc59a59858a15284c8c SHA512 25ca25e95d1a20a79ba97b094dc9630fb791f6653c2bacec751cc51492202831b7d28ae0786081e6be91581245bda3f5b7e2f3b523f7faa6bfb1d97b3d209684 WHIRLPOOL e90e7c126f2467c8ae29e3cffd5d8a6bfa444dfd38edcc8809d49562825aff8ec6c826139da4a2aa09e38935ee63b48674431c7cc27e2a14d372b2b8270b170d
|
||||
DIST elektra-0.8.12.tar.gz 2102450 SHA256 562432bea9455a61ff6e6b3263078ea9b26bef2ed177a04b5f9b181d605bc021 SHA512 be01dbeae5cc680973a7c7917f341506106139c7facc3d3f597f31f7aa91065dcee862121b8704d589f4c6dd916a99cadc9b67e2e9604bec2841b1ebafea89ea WHIRLPOOL 6661d9a337aa71fcc9764f127ec4055b3eb1456d60608c80ac8763aee2d680ab8691a16668da8ef694efb09e2415f58bf4e34a4f1f0e9a7498fecf88f56ce9da
|
||||
DIST elektra-0.8.15.tar.gz 2338297 SHA256 6a406986cecb8d4a44485ced118ee803bc039b0824b72298e123b4dd47eb0b22 SHA512 86a408dd546b33e3b437f92f415de7aee6a235189f9eab0762b3f44ab4c453ee369a53de10a9f5b0df1b446460b12c57c6b8b77c282648ec2a49f2328d9af13d WHIRLPOOL c4f77903f9340c665f4c484c0b700b048358691873031ae5e62e63f0acf9a5fc5efb3c307331712497c59172ad202780280abfa8b717f523fabda73564a0005e
|
||||
DIST elektra-0.8.16.tar.gz 2405443 SHA256 3cf0624eb027e533192ca9d612618df3d38ec3674c9cd20474f04ff269fad77e SHA512 b225e61379907365a423ea75ec7138e5257bb78c526bb05a1ec21f66a52eb4bad9e6f1eb23209d700670b21b86166497b47c3bc46bc9d45f6d366cd544afc326 WHIRLPOOL 3230dbe2f613b5eee71c01ce7afeac3cca02ffbf45cba7a9300f8f3347d5d4c3baf0f8339ecaaaeb3ca747523229292738f1e94660187c1a9c23b4aaa02f0b6f
|
||||
|
@ -1,81 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit autotools autotools-multilib eutils multilib
|
||||
|
||||
DESCRIPTION="Framework to store config parameters in hierarchical key-value pairs"
|
||||
HOMEPAGE="https://freedesktop.org/wiki/Software/Elektra"
|
||||
SRC_URI="ftp://ftp.markus-raab.org/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="gcov iconv static-libs test"
|
||||
|
||||
RDEPEND="dev-libs/libxml2[${MULTILIB_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/libtool[${MULTILIB_USEDEP}]
|
||||
iconv? ( virtual/libiconv[${MULTILIB_USEDEP}] )"
|
||||
|
||||
src_prepare() {
|
||||
einfo 'Removing bundled libltdl'
|
||||
rm -rf libltdl || die
|
||||
|
||||
epatch \
|
||||
"${FILESDIR}"/${P}-test.patch \
|
||||
"${FILESDIR}"/${P}-ltdl.patch \
|
||||
"${FILESDIR}"/${P}-automake-1.12.patch \
|
||||
"${FILESDIR}"/${P}-remove-ddefault-link.patch
|
||||
|
||||
touch config.rpath
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# berkeleydb, daemon, fstab, gconf, python do not work
|
||||
# avoid collision with kerberos (bug 403025, 447246)
|
||||
local myeconfargs=(
|
||||
--enable-filesys
|
||||
--enable-hosts
|
||||
--enable-ini
|
||||
--enable-passwd
|
||||
--disable-berkeleydb
|
||||
--disable-fstab
|
||||
--disable-gconf
|
||||
--disable-daemon
|
||||
--enable-cpp
|
||||
--disable-python
|
||||
$(use_enable gcov)
|
||||
$(use_enable iconv)
|
||||
$(use_enable static-libs static)
|
||||
--with-docdir=/usr/share/doc/${PF}
|
||||
--with-develdocdir=/usr/share/doc/${PF}a
|
||||
--includedir=/usr/include/${PN}
|
||||
)
|
||||
autotools-multilib_src_configure
|
||||
dodir /usr/share/man/man3
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
autotools-multilib_src_compile LIBLTDL=-lltdl
|
||||
}
|
||||
|
||||
src_install() {
|
||||
autotools-multilib_src_install
|
||||
|
||||
#avoid collision with allegro (bug 409305)
|
||||
local my_f=""
|
||||
for my_f in $(find "${D}"/usr/share/man/man3 -name "key.3*") ; do
|
||||
mv "${my_f}" "${my_f/key/elektra-key}" || die
|
||||
elog "/usr/share/man/man3/$(basename "${my_f}") installed as $(basename "${my_f/key/elektra-key}")"
|
||||
done
|
||||
|
||||
if ! use static-libs; then
|
||||
find "${D}" -name "*.a" -delete || die
|
||||
fi
|
||||
|
||||
dodoc AUTHORS ChangeLog NEWS README TODO
|
||||
}
|
@ -1,120 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit cmake-multilib eutils java-pkg-opt-2
|
||||
|
||||
DESCRIPTION="Framework to store config parameters in hierarchical key-value pairs"
|
||||
HOMEPAGE="https://freedesktop.org/wiki/Software/Elektra"
|
||||
SRC_URI="ftp://ftp.markus-raab.org/${PN}/releases/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
PLUGIN_IUSE="augeas iconv ini java simpleini syslog systemd tcl +uname xml yajl";
|
||||
IUSE="dbus doc qt5 static-libs test ${PLUGIN_IUSE}"
|
||||
|
||||
RDEPEND="dev-libs/libltdl:0[${MULTILIB_USEDEP}]
|
||||
>=dev-libs/libxml2-2.9.1-r4[${MULTILIB_USEDEP}]
|
||||
augeas? ( app-admin/augeas )
|
||||
dbus? ( >=sys-apps/dbus-1.6.18-r1[${MULTILIB_USEDEP}] )
|
||||
iconv? ( >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] )
|
||||
java? ( >=virtual/jdk-1.8.0 )
|
||||
qt5? (
|
||||
>=dev-qt/qtdeclarative-5.3:5
|
||||
>=dev-qt/qtgui-5.3:5
|
||||
>=dev-qt/qttest-5.3:5
|
||||
>=dev-qt/qtwidgets-5.3:5
|
||||
)
|
||||
uname? ( sys-apps/coreutils )
|
||||
systemd? ( sys-apps/systemd[${MULTILIB_USEDEP}] )
|
||||
yajl? ( >=dev-libs/yajl-1.0.11-r1[${MULTILIB_USEDEP}] )"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( app-doc/doxygen )
|
||||
test? ( >=dev-cpp/gtest-1.7.0 )"
|
||||
|
||||
DOCS=( README.md doc/AUTHORS doc/CODING.md doc/NEWS.md doc/todo/TODO )
|
||||
# tries to write to user's home directory (and doesn't respect HOME)
|
||||
RESTRICT="test"
|
||||
|
||||
MULTILIB_WRAPPED_HEADERS=( /usr/include/elektra/kdbconfig.h )
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}"-0.8.11-conditional-glob-tests.patch )
|
||||
|
||||
src_prepare() {
|
||||
cmake-utils_src_prepare
|
||||
|
||||
einfo remove bundled libs
|
||||
# TODO: Remove bundled inih from src/plugins/ini (add to portage):
|
||||
# https://code.google.com/p/inih/
|
||||
rm -rf src/external || die
|
||||
|
||||
# move doc files to correct location
|
||||
sed -e "s/elektra-api/${PF}/" \
|
||||
-i cmake/ElektraCache.cmake || die
|
||||
|
||||
# avoid useless build time, nothing ends up installed
|
||||
comment_add_subdirectory benchmarks
|
||||
comment_add_subdirectory examples
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local my_plugins="ALL"
|
||||
|
||||
if multilib_is_native_abi ; then
|
||||
use augeas || my_plugins+=";-augeas"
|
||||
use java || my_plugins+=";-jni"
|
||||
else
|
||||
my_plugins+=";-augeas;-jni"
|
||||
fi
|
||||
|
||||
use dbus || my_plugins+=";-dbus"
|
||||
use iconv || my_plugins+=";-iconv"
|
||||
use ini || my_plugins+=";-ini" # bundles inih
|
||||
use simpleini || my_plugins+=";-simpleini"
|
||||
use syslog || my_plugins+=";-syslog"
|
||||
use systemd || my_plugins+=";-journald"
|
||||
use tcl || my_plugins+=";-tcl"
|
||||
use uname || my_plugins+=";-uname"
|
||||
use xml || my_plugins+=";-xmltool"
|
||||
use yajl || my_plugins+=";-yajl"
|
||||
|
||||
# Disabling for good (?):
|
||||
# counter - Only useful for debugging the plugin framework
|
||||
# doc - Explaining basic makeup of a function //bug #514402
|
||||
# noresolver - Does not resolve, but can act as one
|
||||
# template - Template for new plugin written in C
|
||||
# wresolver - Resolver for non-POSIX, e.g. w32/w64 systems
|
||||
my_plugins+=";-counter;-doc;-noresolver;-template;-wresolver"
|
||||
|
||||
local my_tools
|
||||
|
||||
if multilib_is_native_abi ; then
|
||||
my_tools="kdb"
|
||||
use qt5 && my_tools+=";qt-gui"
|
||||
fi
|
||||
|
||||
mycmakeargs=(
|
||||
"-DBUILD_SHARED=ON"
|
||||
"-DPLUGINS=${my_plugins}"
|
||||
"-DTOOLS=${my_tools}"
|
||||
"-DLATEX_COMPILER=OFF"
|
||||
"-DTARGET_CMAKE_FOLDER=share/cmake/Modules"
|
||||
$(multilib_is_native_abi && cmake-utils_use doc BUILD_DOCUMENTATION \
|
||||
|| echo -DBUILD_DOCUMENTATION=OFF)
|
||||
$(cmake-utils_use static-libs BUILD_STATIC)
|
||||
$(cmake-utils_use test BUILD_TESTING)
|
||||
$(cmake-utils_use test ENABLE_TESTING)
|
||||
)
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einfo remove test_data
|
||||
rm -rvf "${D}/usr/share/${PN}" || die "Failed to remove test_data"
|
||||
einfo remove tool_exec
|
||||
rm -rvf "${D}/usr/$(get_libdir)/${PN}/tool_exec" || die "Failed to remove tool_exec"
|
||||
}
|
@ -1,24 +0,0 @@
|
||||
http://bugs.gentoo.org/421589
|
||||
|
||||
--- configure.ac
|
||||
+++ configure.ac
|
||||
@@ -46,6 +46,8 @@
|
||||
AM_INIT_AUTOMAKE
|
||||
AC_CONFIG_HEADER([src/include/config.h])
|
||||
|
||||
+AC_PROG_MKDIR_P
|
||||
+
|
||||
dnl select POSIX extensions, useful on solaris, for example
|
||||
gl_USE_SYSTEM_EXTENSIONS
|
||||
|
||||
--- doc/Makefile.am
|
||||
+++ doc/Makefile.am
|
||||
@@ -223,7 +223,7 @@
|
||||
|
||||
install-man3: $(man3_MANS)
|
||||
@$(NORMAL_INSTALL)
|
||||
- test -z "$(man3dir)" || $(mkdir_p) "$(DESTDIR)$(man3dir)"
|
||||
+ test -z "$(man3dir)" || $(MKDIR_P) "$(DESTDIR)$(man3dir)"
|
||||
@if test -d elektra-api/man/; then man_d=elektra-api/man/; \
|
||||
else man_d=$(srcdir)/elektra-api/man/; \
|
||||
fi; \
|
@ -1,21 +0,0 @@
|
||||
--- elektra-0.7.1/Makefile.am
|
||||
+++ elektra-0.7.1/Makefile.am
|
||||
@@ -1,6 +1,6 @@
|
||||
ACLOCAL_AMFLAGS = -I m4
|
||||
|
||||
-SUBDIRS = libltdl src doc benchmarks examples scripts xmlschema tests
|
||||
+SUBDIRS = src doc benchmarks examples scripts xmlschema tests
|
||||
EXTRA_DIST=elektra.pc elektratools.pc elektracpp.pc elektra.spec elektra.mandriva.spec elektra.xml
|
||||
|
||||
pkgconfigdir = $(ulibdir)/pkgconfig
|
||||
--- elektra-0.7.1/doc/Makefile.am
|
||||
+++ elektra-0.7.1/doc/Makefile.am
|
||||
@@ -7,6 +7,8 @@
|
||||
EXTRA_DIST+=$(all_mans)
|
||||
EXTRA_DIST+= $(HTML_TITLE_LAYOUT_XSL)
|
||||
|
||||
+develdocDATA_INSTALL = install
|
||||
+
|
||||
SUBDIRS=images standards
|
||||
|
||||
# Dependencies for Doxygen documentation
|
@ -1,16 +0,0 @@
|
||||
--- a/src/backends/Makefile.am 2010-04-27 09:17:25.000000000 +0200
|
||||
+++ b/src/backends/Makefile.am 2013-03-30 15:34:36.406336274 +0100
|
||||
@@ -7,13 +7,7 @@
|
||||
cd $(DESTDIR)$(backenddir) && \
|
||||
test -L libelektra-default.so || \
|
||||
$(LN_S) libelektra-@default_backend@.so libelektra-default.so
|
||||
- cd $(DESTDIR)$(backenddir) && \
|
||||
- test -L libelektra-ddefault.so || \
|
||||
- $(LN_S) libelektra-@default_dbackend@.so libelektra-ddefault.so
|
||||
|
||||
uninstall-hook:
|
||||
-cd $(DESTDIR)$(backenddir) && \
|
||||
rm -f libelektra-default.so
|
||||
- -cd $(DESTDIR)$(backenddir) && \
|
||||
- rm -f libelektra-ddefault.so
|
||||
-
|
@ -1,123 +0,0 @@
|
||||
--- elektra-0.7.1/src/bindings/cpp/tests/test_kdb.cpp
|
||||
+++ elektra-0.7.1/src/bindings/cpp/tests/test_kdb.cpp
|
||||
@@ -1,4 +1,5 @@
|
||||
#include <tests.h>
|
||||
+#include <stdio.h>
|
||||
|
||||
void test_kdbGetSet()
|
||||
{
|
||||
--- elektra-0.7.1/src/bindings/cpp/tests/test_ks.cpp
|
||||
+++ elektra-0.7.1/src/bindings/cpp/tests/test_ks.cpp
|
||||
@@ -1,4 +1,5 @@
|
||||
#include <tests.h>
|
||||
+#include <stdio.h>
|
||||
|
||||
void test_ksnew()
|
||||
{
|
||||
--- elektra-0.7.1/src/bindings/cpp/tests/test_key.cpp
|
||||
+++ elektra-0.7.1/src/bindings/cpp/tests/test_key.cpp
|
||||
@@ -1,4 +1,5 @@
|
||||
#include <tests.h>
|
||||
+#include <stdio.h>
|
||||
|
||||
void test_keynew()
|
||||
{
|
||||
--- elektra-0.7.1/src/bindings/cpp/tests/Makefile.am
|
||||
+++ elektra-0.7.1/src/bindings/cpp/tests/Makefile.am
|
||||
@@ -10,13 +10,13 @@
|
||||
endif
|
||||
|
||||
test_key_SOURCES = test_key.cpp tests.h tests.cpp
|
||||
-test_key_LDADD = $(privatelibs) ../libelektra-cpp.a ../../../libelektra/libelektra.a
|
||||
+test_key_LDADD = $(privatelibs) ../libelektra-cpp.a ../../../libelektra/libelektra.a /usr/lib/libxml2.a /usr/lib/libz.a
|
||||
|
||||
test_ks_SOURCES = test_ks.cpp tests.h tests.cpp
|
||||
-test_ks_LDADD = $(privatelibs) ../libelektra-cpp.a ../../../libelektra/libelektra.a
|
||||
+test_ks_LDADD = $(privatelibs) ../libelektra-cpp.a ../../../libelektra/libelektra.a /usr/lib/libxml2.a /usr/lib/libz.a
|
||||
|
||||
test_kdb_SOURCES = test_kdb.cpp tests.h tests.cpp
|
||||
-test_kdb_LDADD = $(privatelibs) ../libelektra-cpp.a ../../../libelektra/libelektra.a
|
||||
+test_kdb_LDADD = $(privatelibs) ../libelektra-cpp.a ../../../libelektra/libelektra.a /usr/lib/libxml2.a /usr/lib/libz.a
|
||||
|
||||
../libelektra-cpp.a:
|
||||
cd .. && $(MAKE) libelektra-cpp.a
|
||||
--- elektra-0.7.1/tests/Makefile.am
|
||||
+++ elektra-0.7.1/tests/Makefile.am
|
||||
@@ -1,10 +1,10 @@
|
||||
AM_CFLAGS = $(COPTFLAGS) $(CDBGFLAGS)
|
||||
AM_CPPFLAGS = -I$(top_srcdir)/src/include $(LTDLINCL)
|
||||
|
||||
-TESTS = test_key test_ks test_kdb test_xml test_validate.sh test_getset test_trie test_mount test_cap test_stream test_serialize test_split test_internals test_backendhelpers test_script.sh test_type
|
||||
+TESTS = test_key test_ks test_kdb test_xml test_validate.sh test_getset test_trie test_mount test_cap test_stream test_serialize test_split test_internals test_script.sh test_type
|
||||
#TESTS = test_backendhelpers
|
||||
|
||||
-check_PROGRAMS = test_key test_ks test_kdb test_xml test_getset test_trie test_mount test_cap test_stream test_serialize test_split test_internals test_backendhelpers test_type print_info
|
||||
+check_PROGRAMS = test_key test_ks test_kdb test_xml test_getset test_trie test_mount test_cap test_stream test_serialize test_split test_internals test_type print_info
|
||||
#check_PROGRAMS = test_backendhelpers
|
||||
|
||||
if VALGRINDTESTS
|
||||
@@ -19,49 +19,49 @@
|
||||
rm -f *.gcno *.gcda *.gcno
|
||||
|
||||
test_key_SOURCES = test_key.c tests.h tests.c
|
||||
-test_key_LDADD = $(privatelibs) ../src/libelektra/libelektra.a
|
||||
+test_key_LDADD = $(privatelibs) ../src/libelektra/libelektra.a /usr/lib/libxml2.a /usr/lib/libz.a /usr/lib/libm.a
|
||||
|
||||
test_ks_SOURCES = test_ks.c tests.h tests.c
|
||||
-test_ks_LDADD = $(privatelibs) ../src/libelektra/libelektra.a
|
||||
+test_ks_LDADD = $(privatelibs) ../src/libelektra/libelektra.a /usr/lib/libxml2.a /usr/lib/libz.a /usr/lib/libm.a
|
||||
|
||||
test_kdb_SOURCES = test_kdb.c tests.h tests.c
|
||||
-test_kdb_LDADD = $(privatelibs) ../src/libelektra/libelektra.a
|
||||
+test_kdb_LDADD = $(privatelibs) ../src/libelektra/libelektra.a /usr/lib/libxml2.a /usr/lib/libz.a /usr/lib/libm.a
|
||||
|
||||
test_xml_SOURCES = test_xml.c tests.h tests.c
|
||||
-test_xml_LDADD = $(privatelibs) ../src/libelektra/libelektra.a
|
||||
+test_xml_LDADD = $(privatelibs) ../src/libelektra/libelektra.a /usr/lib/libxml2.a /usr/lib/libz.a /usr/lib/libm.a
|
||||
|
||||
test_getset_SOURCES = test_getset.c tests.h tests.c
|
||||
-test_getset_LDADD = $(privatelibs) ../src/libelektra/libelektra.a
|
||||
+test_getset_LDADD = $(privatelibs) ../src/libelektra/libelektra.a /usr/lib/libxml2.a /usr/lib/libz.a /usr/lib/libm.a
|
||||
|
||||
test_trie_SOURCES = test_trie.c tests.h tests.c
|
||||
-test_trie_LDADD = $(privatelibs) ../src/libelektra/libelektra.a
|
||||
+test_trie_LDADD = $(privatelibs) ../src/libelektra/libelektra.a /usr/lib/libxml2.a /usr/lib/libz.a /usr/lib/libm.a
|
||||
|
||||
test_mount_SOURCES = test_mount.c tests.h tests.c
|
||||
-test_mount_LDADD = $(privatelibs) ../src/libelektra/libelektra.a
|
||||
+test_mount_LDADD = $(privatelibs) ../src/libelektra/libelektra.a /usr/lib/libxml2.a /usr/lib/libz.a /usr/lib/libm.a
|
||||
|
||||
test_cap_SOURCES = test_cap.c tests.h tests.c
|
||||
-test_cap_LDADD = $(privatelibs) ../src/libelektra/libelektra.a
|
||||
+test_cap_LDADD = $(privatelibs) ../src/libelektra/libelektra.a /usr/lib/libxml2.a /usr/lib/libz.a /usr/lib/libm.a
|
||||
|
||||
test_stream_SOURCES = test_stream.c tests.h tests.c
|
||||
-test_stream_LDADD = $(privatelibs) ../src/libelektra/libelektra.a
|
||||
+test_stream_LDADD = $(privatelibs) ../src/libelektra/libelektra.a /usr/lib/libxml2.a /usr/lib/libz.a /usr/lib/libm.a
|
||||
|
||||
test_serialize_SOURCES = test_serialize.c tests.h tests.c
|
||||
-test_serialize_LDADD = $(privatelibs) ../src/libelektra/libelektra.a
|
||||
+test_serialize_LDADD = $(privatelibs) ../src/libelektra/libelektra.a /usr/lib/libxml2.a /usr/lib/libz.a /usr/lib/libm.a
|
||||
|
||||
test_split_SOURCES = test_split.c tests.h tests.c
|
||||
-test_split_LDADD = $(privatelibs) ../src/libelektra/libelektra.a
|
||||
+test_split_LDADD = $(privatelibs) ../src/libelektra/libelektra.a /usr/lib/libxml2.a /usr/lib/libz.a /usr/lib/libm.a
|
||||
|
||||
test_internals_SOURCES = test_internals.c tests.h tests.c
|
||||
-test_internals_LDADD = $(privatelibs) ../src/libelektra/libelektra.a
|
||||
+test_internals_LDADD = $(privatelibs) ../src/libelektra/libelektra.a /usr/lib/libxml2.a /usr/lib/libz.a /usr/lib/libm.a
|
||||
|
||||
test_backendhelpers_SOURCES = test_backendhelpers.c tests.h tests.c
|
||||
-test_backendhelpers_LDADD = $(privatelibs) ../src/libelektra/libelektra.a
|
||||
+test_backendhelpers_LDADD = $(privatelibs) ../src/libelektra/libelektra.a /usr/lib/libxml2.a /usr/lib/libz.a /usr/lib/libm.a
|
||||
|
||||
test_type_SOURCES = test_type.c tests.h tests.c
|
||||
-test_type_LDADD = $(privatelibs) ../src/libelektra/libelektra.a
|
||||
+test_type_LDADD = $(privatelibs) ../src/libelektra/libelektra.a /usr/lib/libxml2.a /usr/lib/libz.a /usr/lib/libm.a
|
||||
|
||||
print_info_SOURCES = print_info.c tests.h tests.c
|
||||
-print_info_LDADD = $(privatelibs) ../src/libelektra/libelektra.a
|
||||
+print_info_LDADD = $(privatelibs) ../src/libelektra/libelektra.a /usr/lib/libxml2.a /usr/lib/libz.a /usr/lib/libm.a
|
||||
|
||||
../src/libelektra/libelektra.a:
|
||||
cd ../src/libelektra && $(MAKE) libelektra.a
|
@ -1,22 +0,0 @@
|
||||
--- a/src/libtools/tests/CMakeLists.txt 2014-08-22 20:52:14.634898037 +0200
|
||||
+++ b/src/libtools/tests/CMakeLists.txt 2014-08-22 21:19:25.770506035 +0200
|
||||
@@ -4,10 +4,12 @@
|
||||
add_cppheaders (HDR_FILES)
|
||||
add_toolheaders(HDR_FILES)
|
||||
|
||||
-include (LibAddTest)
|
||||
+if (ENABLE_TESTING)
|
||||
+ include (LibAddTest)
|
||||
|
||||
-file (GLOB TESTS testtool_*.cpp)
|
||||
-foreach (file ${TESTS})
|
||||
- get_filename_component (name ${file} NAME_WE)
|
||||
- add_gtest (${name})
|
||||
-endforeach (file ${TESTS})
|
||||
\ No newline at end of file
|
||||
+ file (GLOB TESTS testtool_*.cpp)
|
||||
+ foreach (file ${TESTS})
|
||||
+ get_filename_component (name ${file} NAME_WE)
|
||||
+ add_gtest (${name})
|
||||
+ endforeach (file ${TESTS})
|
||||
+endif (ENABLE_TESTING)
|
@ -1,5 +1,4 @@
|
||||
DIST sudo-1.8.15.tar.gz 2660128 SHA256 4316381708324da8b6cb151f655c1a11855207c7c02244d8ffdea5104d7cc308 SHA512 f2bff92104ddc4cbea8c788da446043cbfe02c977cedf18d46b1c82e98d7227432cb5a61233e7a06af84e3637f906edd5e02bb88c03a2ce4a16df410469a5dab WHIRLPOOL 3da64eda51f22d7fc0ea76f0693e9960d511b7c762b5d6237318d17436fd64b58ae90caa9bf4e125ebee70b83eac7cba2c7451fb62fafd8ee3d133c4ae2037b9
|
||||
DIST sudo-1.8.16.tar.gz 2707358 SHA256 2d83826fc5125bf073acc203dbda1cf2abeee017090ccc9dddb0431a53d5064d SHA512 7cf5399eb65c4b39071213c27c34d35ed2ea9c4578f19f6e8d3777179914fa30a2848c042e9f85e90e3b5d056322b9eb6c79e2d3b9b210a795e9921a1b00200b WHIRLPOOL 747bff26e93475441aab6bb6ff8e51114f8155277d570cbdb28909b7e63a49fcdcf5d65f186a2ec067f1100cac3c0a2e6f3a7611f78d83794f41d6884a8c6fc9
|
||||
DIST sudo-1.8.17p1.tar.gz 2786618 SHA256 c690d707fb561b3ecdf6a6de5563bc0b769388eff201c851edbace408bb155cc SHA512 e9facd2d5578d4effb516931322b5f4f9578baa779cba281d36a3d0995b1fd9d085d6b141544b3dc698569fa294163bbad9f779166a05a0f18f4ad81a630b954 WHIRLPOOL 7b89fa9f05bbe72929073d83433f21b5a783047118ae7d434cb08cb536d5e47a641c59f5b4c7310c73d7dc994331974e4f209700e83139c2847f68e7dba014b2
|
||||
DIST sudo-1.8.18p1.tar.gz 2822109 SHA256 e5a0471c721281a693025bbde33ebd9d3db43245d83ab8516bbfc23980379434 SHA512 8dceeb5024c4f94fcc15e75fa2fd164af5e0597734f95df43207738b3258c4d396e102faf2b6811e399f1cdbdbf617b87e5bfcc1e591ea6722f45d81d1098fe5 WHIRLPOOL 094c1232517706a6da4a0548f7ab5c0c7b9e12f8ce584db97d0c4793a38c4044538637f2834b9f3104326bd5b4b826d08ab79b1dc2c5b950de7d7f558685ef7b
|
||||
DIST sudo-1.8.19b1.tar.gz 2843198 SHA256 f2322f7c709a16c00ac23114c6ce7ac386a0500d2353f7cbe591c6e35348eafc SHA512 cbc4cad1b6f240f9162c0eec76d2696fd6fd937b8da41966acabed16e9c284b39b3a58199c559a4ff1365950887830a58be73a3e219d1970afb9f4276ef60681 WHIRLPOOL d9aeeb1f4d850c623f9ad7b197e84dad00c94703f001c5d2922cfabbc25e5879ecde0721594f27aaff43f55075c9866f47349a27178379a28f19598616c2a883
|
||||
DIST sudo-1.8.19b2.tar.gz 2858411 SHA256 2355261b6e9e74b9784e466d0aaf2b9cadcbc3863b5df30fff7c5cde14fb0df7 SHA512 66aa256db069c790f85d9a46bcbfc0b92075cb7f11781002b306dde2b87414dc3e836eaf83e8dc0e0d26aca33240bdf9b24ba97e036794af50870abd2fb993eb WHIRLPOOL c6251f662154bb3793719d6c199f93a1f686c97b535e82f8f858fa3b5e088a7774b00bf47e972b3b3b6e01a757ad1f9b3b41d1f7e496bc6e31dfab986e3f9080
|
||||
|
@ -1,199 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils pam multilib libtool
|
||||
|
||||
MY_P=${P/_/}
|
||||
MY_P=${MY_P/beta/b}
|
||||
|
||||
uri_prefix=
|
||||
case ${P} in
|
||||
*_beta*|*_rc*) uri_prefix=beta/ ;;
|
||||
esac
|
||||
|
||||
DESCRIPTION="Allows users or groups to run commands as other users"
|
||||
HOMEPAGE="http://www.sudo.ws/"
|
||||
SRC_URI="http://www.sudo.ws/sudo/dist/${uri_prefix}${MY_P}.tar.gz
|
||||
ftp://ftp.sudo.ws/pub/sudo/${uri_prefix}${MY_P}.tar.gz"
|
||||
|
||||
# Basic license is ISC-style as-is, some files are released under
|
||||
# 3-clause BSD license
|
||||
LICENSE="ISC BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~sparc-solaris"
|
||||
IUSE="ldap nls pam offensive selinux skey +sendmail"
|
||||
|
||||
DEPEND="pam? ( virtual/pam )
|
||||
skey? ( >=sys-auth/skey-1.1.5-r1 )
|
||||
ldap? (
|
||||
>=net-nds/openldap-2.1.30-r1
|
||||
dev-libs/cyrus-sasl
|
||||
)
|
||||
sys-libs/zlib"
|
||||
RDEPEND="${DEPEND}
|
||||
selinux? ( sec-policy/selinux-sudo )
|
||||
ldap? ( dev-lang/perl )
|
||||
pam? ( sys-auth/pambase )
|
||||
>=app-misc/editor-wrapper-3
|
||||
virtual/editor
|
||||
sendmail? ( virtual/mta )"
|
||||
DEPEND="${DEPEND}
|
||||
sys-devel/bison"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
REQUIRED_USE="pam? ( !skey ) skey? ( !pam )"
|
||||
|
||||
MAKEOPTS+=" SAMPLES="
|
||||
|
||||
src_prepare() {
|
||||
elibtoolize
|
||||
}
|
||||
|
||||
set_rootpath() {
|
||||
# FIXME: secure_path is a compile time setting. using ROOTPATH
|
||||
# is not perfect, env-update may invalidate this, but until it
|
||||
# is available as a sudoers setting this will have to do.
|
||||
einfo "Setting secure_path ..."
|
||||
|
||||
# first extract the default ROOTPATH from build env
|
||||
ROOTPATH=$(unset ROOTPATH; . "${EPREFIX}"/etc/profile.env; echo "${ROOTPATH}")
|
||||
if [[ -z ${ROOTPATH} ]] ; then
|
||||
ewarn " Failed to find ROOTPATH, please report this"
|
||||
fi
|
||||
|
||||
# then remove duplicate path entries
|
||||
cleanpath() {
|
||||
local newpath thisp IFS=:
|
||||
for thisp in $1 ; do
|
||||
if [[ :${newpath}: != *:${thisp}:* ]] ; then
|
||||
newpath+=:$thisp
|
||||
else
|
||||
einfo " Duplicate entry ${thisp} removed..."
|
||||
fi
|
||||
done
|
||||
ROOTPATH=${newpath#:}
|
||||
}
|
||||
cleanpath /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin${ROOTPATH:+:${ROOTPATH}}
|
||||
|
||||
# finally, strip gcc paths #136027
|
||||
rmpath() {
|
||||
local e newpath thisp IFS=:
|
||||
for thisp in ${ROOTPATH} ; do
|
||||
for e ; do [[ $thisp == $e ]] && continue 2 ; done
|
||||
newpath+=:$thisp
|
||||
done
|
||||
ROOTPATH=${newpath#:}
|
||||
}
|
||||
rmpath '*/gcc-bin/*' '*/gnat-gcc-bin/*' '*/gnat-gcc/*'
|
||||
|
||||
einfo "... done"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local ROOTPATH
|
||||
set_rootpath
|
||||
|
||||
# audit: somebody got to explain me how I can test this before I
|
||||
# enable it.. - Diego
|
||||
# plugindir: autoconf code is crappy and does not delay evaluation
|
||||
# until `make` time, so we have to use a full path here rather than
|
||||
# basing off other values.
|
||||
econf \
|
||||
--enable-zlib=system \
|
||||
--with-secure-path="${ROOTPATH}" \
|
||||
--with-editor="${EPREFIX}"/usr/libexec/editor \
|
||||
--with-env-editor \
|
||||
$(use_with offensive insults) \
|
||||
$(use_with offensive all-insults) \
|
||||
$(use_with ldap ldap_conf_file /etc/ldap.conf.sudo) \
|
||||
$(use_with ldap) \
|
||||
$(use_enable nls) \
|
||||
$(use_with pam) \
|
||||
$(use_with skey) \
|
||||
$(use_with selinux) \
|
||||
$(use_with sendmail) \
|
||||
--without-opie \
|
||||
--without-linux-audit \
|
||||
--with-rundir="${EPREFIX}"/var/run/sudo \
|
||||
--with-vardir="${EPREFIX}"/var/db/sudo \
|
||||
--with-plugindir="${EPREFIX}"/usr/$(get_libdir)/sudo \
|
||||
--docdir="${EPREFIX}"/usr/share/doc/${PF}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
if use ldap ; then
|
||||
dodoc README.LDAP
|
||||
dosbin plugins/sudoers/sudoers2ldif
|
||||
|
||||
cat <<-EOF > "${T}"/ldap.conf.sudo
|
||||
# See ldap.conf(5) and README.LDAP for details
|
||||
# This file should only be readable by root
|
||||
|
||||
# supported directives: host, port, ssl, ldap_version
|
||||
# uri, binddn, bindpw, sudoers_base, sudoers_debug
|
||||
# tls_{checkpeer,cacertfile,cacertdir,randfile,ciphers,cert,key}
|
||||
EOF
|
||||
|
||||
insinto /etc
|
||||
doins "${T}"/ldap.conf.sudo
|
||||
fperms 0440 /etc/ldap.conf.sudo
|
||||
|
||||
insinto /etc/openldap/schema
|
||||
newins doc/schema.OpenLDAP sudo.schema
|
||||
fi
|
||||
|
||||
pamd_mimic system-auth sudo auth account session
|
||||
|
||||
keepdir /var/db/sudo
|
||||
fperms 0700 /var/db/sudo
|
||||
|
||||
# Don't install into /var/run as that is a tmpfs most of the time
|
||||
# (bug #504854)
|
||||
rm -rf "${D}"/var/run
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use ldap ; then
|
||||
ewarn
|
||||
ewarn "sudo uses the /etc/ldap.conf.sudo file for ldap configuration."
|
||||
ewarn
|
||||
if grep -qs '^[[:space:]]*sudoers:' "${ROOT}"/etc/nsswitch.conf ; then
|
||||
ewarn "In 1.7 series, LDAP is no more consulted, unless explicitly"
|
||||
ewarn "configured in /etc/nsswitch.conf."
|
||||
ewarn
|
||||
ewarn "To make use of LDAP, add this line to your /etc/nsswitch.conf:"
|
||||
ewarn " sudoers: ldap files"
|
||||
ewarn
|
||||
fi
|
||||
fi
|
||||
if use prefix ; then
|
||||
ewarn
|
||||
ewarn "To use sudo, you need to change file ownership and permissions"
|
||||
ewarn "with root privileges, as follows:"
|
||||
ewarn
|
||||
ewarn " # chown root:root ${EPREFIX}/usr/bin/sudo"
|
||||
ewarn " # chown root:root ${EPREFIX}/usr/lib/sudo/sudoers.so"
|
||||
ewarn " # chown root:root ${EPREFIX}/etc/sudoers"
|
||||
ewarn " # chown root:root ${EPREFIX}/etc/sudoers.d"
|
||||
ewarn " # chown root:root ${EPREFIX}/var/db/sudo"
|
||||
ewarn " # chmod 4111 ${EPREFIX}/usr/bin/sudo"
|
||||
ewarn
|
||||
fi
|
||||
|
||||
elog "To use the -A (askpass) option, you need to install a compatible"
|
||||
elog "password program from the following list. Starred packages will"
|
||||
elog "automatically register for the use with sudo (but will not force"
|
||||
elog "the -A option):"
|
||||
elog ""
|
||||
elog " [*] net-misc/ssh-askpass-fullscreen"
|
||||
elog " net-misc/x11-ssh-askpass"
|
||||
elog ""
|
||||
elog "You can override the choice by setting the SUDO_ASKPASS environmnent"
|
||||
elog "variable to the program you want to use."
|
||||
}
|
@ -0,0 +1,94 @@
|
||||
Index: vbox/src/VBox/Devices/Storage/DevLsiLogicSCSI.cpp
|
||||
===================================================================
|
||||
--- vbox/src/VBox/Devices/Storage/DevLsiLogicSCSI.cpp (revision 64807)
|
||||
+++ vbox/src/VBox/Devices/Storage/DevLsiLogicSCSI.cpp (revision 64808)
|
||||
@@ -286,6 +286,12 @@
|
||||
PDMCRITSECT ReplyPostQueueCritSect;
|
||||
/** Critical section protecting the reply free queue. */
|
||||
PDMCRITSECT ReplyFreeQueueCritSect;
|
||||
+ /** Critical section protecting the request queue against
|
||||
+ * concurrent access from the guest. */
|
||||
+ PDMCRITSECT RequestQueueCritSect;
|
||||
+ /** Critical section protecting the reply free queue against
|
||||
+ * concurrent write access from the guest. */
|
||||
+ PDMCRITSECT ReplyFreeQueueWriteCritSect;
|
||||
|
||||
/** Pointer to the start of the reply free queue - R3. */
|
||||
R3PTRTYPE(volatile uint32_t *) pReplyFreeQueueBaseR3;
|
||||
@@ -1275,14 +1281,22 @@
|
||||
{
|
||||
case LSILOGIC_REG_REPLY_QUEUE:
|
||||
{
|
||||
+ int rc = PDMCritSectEnter(&pThis->ReplyFreeQueueWriteCritSect, VINF_IOM_R3_MMIO_WRITE);
|
||||
+ if (rc != VINF_SUCCESS)
|
||||
+ return rc;
|
||||
/* Add the entry to the reply free queue. */
|
||||
ASMAtomicWriteU32(&pThis->CTX_SUFF(pReplyFreeQueueBase)[pThis->uReplyFreeQueueNextEntryFreeWrite], u32);
|
||||
pThis->uReplyFreeQueueNextEntryFreeWrite++;
|
||||
pThis->uReplyFreeQueueNextEntryFreeWrite %= pThis->cReplyQueueEntries;
|
||||
+ PDMCritSectLeave(&pThis->ReplyFreeQueueWriteCritSect);
|
||||
break;
|
||||
}
|
||||
case LSILOGIC_REG_REQUEST_QUEUE:
|
||||
{
|
||||
+ int rc = PDMCritSectEnter(&pThis->RequestQueueCritSect, VINF_IOM_R3_MMIO_WRITE);
|
||||
+ if (rc != VINF_SUCCESS)
|
||||
+ return rc;
|
||||
+
|
||||
uint32_t uNextWrite = ASMAtomicReadU32(&pThis->uRequestQueueNextEntryFreeWrite);
|
||||
|
||||
ASMAtomicWriteU32(&pThis->CTX_SUFF(pRequestQueueBase)[uNextWrite], u32);
|
||||
@@ -1296,6 +1310,7 @@
|
||||
uNextWrite++;
|
||||
uNextWrite %= pThis->cRequestQueueEntries;
|
||||
ASMAtomicWriteU32(&pThis->uRequestQueueNextEntryFreeWrite, uNextWrite);
|
||||
+ PDMCritSectLeave(&pThis->RequestQueueCritSect);
|
||||
|
||||
/* Send notification to R3 if there is not one sent already. Do this
|
||||
* only if the worker thread is not sleeping or might go sleeping. */
|
||||
@@ -1309,7 +1324,7 @@
|
||||
PDMQueueInsert(pThis->CTX_SUFF(pNotificationQueue), pNotificationItem);
|
||||
#else
|
||||
LogFlowFunc(("Signal event semaphore\n"));
|
||||
- int rc = SUPSemEventSignal(pThis->pSupDrvSession, pThis->hEvtProcess);
|
||||
+ rc = SUPSemEventSignal(pThis->pSupDrvSession, pThis->hEvtProcess);
|
||||
AssertRC(rc);
|
||||
#endif
|
||||
}
|
||||
@@ -5304,6 +5319,8 @@
|
||||
|
||||
PDMR3CritSectDelete(&pThis->ReplyFreeQueueCritSect);
|
||||
PDMR3CritSectDelete(&pThis->ReplyPostQueueCritSect);
|
||||
+ PDMR3CritSectDelete(&pThis->RequestQueueCritSect);
|
||||
+ PDMR3CritSectDelete(&pThis->ReplyFreeQueueWriteCritSect);
|
||||
|
||||
RTMemFree(pThis->paDeviceStates);
|
||||
pThis->paDeviceStates = NULL;
|
||||
@@ -5470,6 +5487,14 @@
|
||||
if (RT_FAILURE(rc))
|
||||
return PDMDEV_SET_ERROR(pDevIns, rc, N_("LsiLogic: cannot create critical section for reply post queue"));
|
||||
|
||||
+ rc = PDMDevHlpCritSectInit(pDevIns, &pThis->RequestQueueCritSect, RT_SRC_POS, "%sRQ", szDevTag);
|
||||
+ if (RT_FAILURE(rc))
|
||||
+ return PDMDEV_SET_ERROR(pDevIns, rc, N_("LsiLogic: cannot create critical section for request queue"));
|
||||
+
|
||||
+ rc = PDMDevHlpCritSectInit(pDevIns, &pThis->ReplyFreeQueueWriteCritSect, RT_SRC_POS, "%sRFQW", szDevTag);
|
||||
+ if (RT_FAILURE(rc))
|
||||
+ return PDMDEV_SET_ERROR(pDevIns, rc, N_("LsiLogic: cannot create critical section for reply free queue write access"));
|
||||
+
|
||||
/*
|
||||
* Register the PCI device, it's I/O regions.
|
||||
*/
|
||||
Index: vbox/src/VBox/Devices/testcase/tstDeviceStructSizeRC.cpp
|
||||
===================================================================
|
||||
--- vbox/src/VBox/Devices/testcase/tstDeviceStructSizeRC.cpp (revision 64807)
|
||||
+++ vbox/src/VBox/Devices/testcase/tstDeviceStructSizeRC.cpp (revision 64808)
|
||||
@@ -1744,6 +1744,8 @@
|
||||
GEN_CHECK_OFF(LSILOGICSCSI, cRequestQueueEntries);
|
||||
GEN_CHECK_OFF(LSILOGICSCSI, ReplyPostQueueCritSect);
|
||||
GEN_CHECK_OFF(LSILOGICSCSI, ReplyFreeQueueCritSect);
|
||||
+ GEN_CHECK_OFF(LSILOGICSCSI, RequestQueueCritSect);
|
||||
+ GEN_CHECK_OFF(LSILOGICSCSI, ReplyFreeQueueWriteCritSect);
|
||||
GEN_CHECK_OFF(LSILOGICSCSI, pReplyFreeQueueBaseR3);
|
||||
GEN_CHECK_OFF(LSILOGICSCSI, pReplyPostQueueBaseR3);
|
||||
GEN_CHECK_OFF(LSILOGICSCSI, pRequestQueueBaseR3);
|
@ -1 +1,2 @@
|
||||
DIST byobu_5.112.orig.tar.gz 664274 SHA256 4d67fb7bc18cb6ceb74f800fc312c3a1c6b1cb19c1d6e0e6cfe60fd8900e7b2b SHA512 57545ac86e1f6bf6601250bfd9d46ada17b22728a17453f9810b723c393655db97723d068b2452467dc4b4e9c2d9d52b76011191f4f09c01ad4bb91d93f15bea WHIRLPOOL 5a30f25a50ebf2a6ca30765a18d1850dc1c6433aed39e2dc56d9da1cbd4a3aec3c4d9d8d74fe6b965e912abd52d289b8f801050c9454ff865e508281b9014de5
|
||||
DIST byobu_5.113.orig.tar.gz 664844 SHA256 2a5aca3fcc1ab7066e4246c1b540c6ab7b0bc235be0d61a5dd4f1091074194ee SHA512 4e82cfda46604db62b541a210e4a41ed466fb2fb515dec76caadd6825e2ab50667b5e6ec0c4893a0ff8678375c5cac15af4c411d3a41f7c9bbb505035484a85a WHIRLPOOL 708f904d1205f8fbc2935bf98fc18dd022b0526dc5405df5bcfc7a19922202060c222002e1443a77c61379331cd10276fcfd24cdfee62a91d36003cff3d1d807
|
||||
|
@ -0,0 +1,44 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit python-single-r1
|
||||
|
||||
DESCRIPTION="A set of profiles for the GNU Screen console window manager (app-misc/screen)"
|
||||
HOMEPAGE="http://byobu.co"
|
||||
SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${P/-/_}.orig.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="screen"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
dev-libs/newt[${PYTHON_USEDEP}]
|
||||
screen? ( app-misc/screen )
|
||||
!screen? ( app-misc/tmux )"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
python_fix_shebang .
|
||||
|
||||
# Set default system backend to screen
|
||||
if use screen ; then
|
||||
sed -i -e 's/#\(BYOBU_BACKEND\).*/\1="screen"/' etc/byobu/backend || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
# Create symlinks for backends
|
||||
dosym ${PN} /usr/bin/${PN}-screen
|
||||
dosym ${PN} /usr/bin/${PN}-tmux
|
||||
|
||||
docompress -x /usr/share/doc/${PN}
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
From d025f3deb6349f56a7fc49551e819cfe13f97917 Mon Sep 17 00:00:00 2001
|
||||
From: Paul Beckingham <paul@beckingham.net>
|
||||
Date: Wed, 31 Aug 2016 17:48:45 -0400
|
||||
Subject: [PATCH] TW-1778: Unicode strings are truncated in task description
|
||||
|
||||
- Thanks to Andrew, bjonnh, OKOMPer, Vladimir.
|
||||
---
|
||||
diff --git a/src/text.cpp b/src/text.cpp
|
||||
index f5e3496b..bc8353f7 100644
|
||||
--- a/src/text.cpp
|
||||
+++ b/src/text.cpp
|
||||
@@ -248,7 +248,7 @@ bool extractLine (
|
||||
// Premature EOL.
|
||||
if (character == '\n')
|
||||
{
|
||||
- line = text.substr (offset, line_length);
|
||||
+ line = text.substr (offset, prior_cursor - offset);
|
||||
offset = cursor;
|
||||
return true;
|
||||
}
|
||||
--
|
||||
2.11.0
|
||||
|
@ -1,8 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>radhermit@gentoo.org</email>
|
||||
<name>Tim Harder</name>
|
||||
</maintainer>
|
||||
<maintainer type="person">
|
||||
<email>radhermit@gentoo.org</email>
|
||||
<name>Tim Harder</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="sync">Enable "task sync" support</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
|
@ -0,0 +1,59 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit cmake-utils bash-completion-r1
|
||||
|
||||
DESCRIPTION="Taskwarrior is a command-line todo list manager"
|
||||
HOMEPAGE="http://taskwarrior.org/"
|
||||
SRC_URI="http://taskwarrior.org/download/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86 ~x64-macos"
|
||||
IUSE="+sync vim-syntax zsh-completion"
|
||||
|
||||
DEPEND="sys-libs/readline:0
|
||||
sync? ( net-libs/gnutls:0= )
|
||||
elibc_glibc? ( sys-apps/util-linux )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/0001-TW-1778-Unicode-strings-are-truncated-in-task-descri.patch )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# don't automatically install scripts
|
||||
sed -i '/scripts/d' CMakeLists.txt || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
mycmakeargs=(
|
||||
-DENABLE_SYNC=$(usex sync)
|
||||
-DTASK_DOCDIR=share/doc/${PF}
|
||||
-DTASK_RCDIR=share/${PN}/rc
|
||||
)
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
|
||||
newbashcomp scripts/bash/task.sh task
|
||||
|
||||
if use vim-syntax ; then
|
||||
rm scripts/vim/README
|
||||
insinto /usr/share/vim/vimfiles
|
||||
doins -r scripts/vim/*
|
||||
fi
|
||||
|
||||
if use zsh-completion ; then
|
||||
insinto /usr/share/zsh/site-functions
|
||||
doins scripts/zsh/*
|
||||
fi
|
||||
|
||||
exeinto /usr/share/${PN}/scripts
|
||||
doexe scripts/add-ons/*
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST tracker-1.10.1.tar.xz 5027912 SHA256 67ea78cca8ebbd6633dddcdd40b5205683cc886b872cde987e2a8bae171f4191 SHA512 aa523fad1c577926ec1f33692314afe673bdc6a84917c4ed506d29e8d0ec17dfacf0a6694cd794d140fc1498770b58d640ed4886c2827644665c92461764d7ce WHIRLPOOL 6947aef1420f15c879ae26a7c5e17ce0a34316077cba20b12dbb5be7e5f55ea840d6d0e145d3c19f47f3db640e07b043a6a25a7bd810bd6ac9a3de336f30f6d3
|
||||
DIST tracker-1.8.0.tar.xz 4961488 SHA256 a11f31a373bfec3abae38ae719d0a59f666f1f067d8789ade2ed7032a152907d SHA512 c7d0600cfcf5485188167d237e22a00a5777b97b96c8735ba3efcef67288a8d9db9476f05289cf1498c50432981a4bc932973241138ea116a18e421576ed3cdd WHIRLPOOL 2941ab228ccaae96abf8ad1387d898981aae9611aaaa64425df21fb941ca4f49e485dfb094b191b1ec46f1b83f5e248fbce700b18b232209866fdb248b4bba53
|
||||
DIST tracker-1.8.1.tar.xz 4985828 SHA256 e3ed4cb384486ebc086adfad68b5d25f8b0424eb6eb1aca2252a508b757fbe51 SHA512 2a1fa2a7d516c33290a7db52e33bb2ab7133ac543985f81136169f211ce42bd9b2e8539826e4da8acf365d9d49eb57a13bb4fd88d6523308af674ddd856bd2d9 WHIRLPOOL 00fc951d3faa1ec20289699d112669ec62ae7c87ecaf560d52936cd14076355b1610259ab5abab5b88e8ae7e93c18e3bb08c5946fef7bd04afd0befee27de9c9
|
||||
|
@ -0,0 +1,261 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
GNOME2_LA_PUNT="yes"
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit autotools bash-completion-r1 gnome2 linux-info python-any-r1 vala versionator virtualx
|
||||
|
||||
DESCRIPTION="A tagging metadata database, search tool and indexer"
|
||||
HOMEPAGE="https://wiki.gnome.org/Projects/Tracker"
|
||||
|
||||
LICENSE="GPL-2+ LGPL-2.1+"
|
||||
SLOT="0/100"
|
||||
# Once sys-power/upower-pm-utils is not needed by other reverse deps for
|
||||
# suspending, we can drop it from here as this doesn't rely on the dead
|
||||
# suspend support from old upower
|
||||
IUSE="cue elibc_glibc exif ffmpeg firefox-bookmarks flac gif gsf
|
||||
gstreamer gtk iptc +iso +jpeg libav +miner-fs mp3 nautilus networkmanager
|
||||
pdf playlist rss stemmer test thunderbird +tiff upnp-av upower +vorbis +xml xmp xps"
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
|
||||
|
||||
REQUIRED_USE="
|
||||
?? ( gstreamer ffmpeg )
|
||||
cue? ( gstreamer )
|
||||
upnp-av? ( gstreamer )
|
||||
!miner-fs? ( !cue !exif !flac !gif !gsf !iptc !iso !jpeg !mp3 !pdf !playlist !tiff !vorbis !xml !xmp !xps )
|
||||
"
|
||||
|
||||
# According to NEWS, introspection is non-optional
|
||||
# glibc-2.12 needed for SCHED_IDLE (see bug #385003)
|
||||
RDEPEND="
|
||||
>=app-i18n/enca-1.9
|
||||
>dev-db/sqlite-3.8.4.2:=
|
||||
>=dev-libs/glib-2.40:2
|
||||
>=dev-libs/gobject-introspection-0.9.5:=
|
||||
>=dev-libs/icu-4.8.1.1:=
|
||||
|| (
|
||||
>=media-gfx/imagemagick-5.2.1[png,jpeg?]
|
||||
media-gfx/graphicsmagick[imagemagick,png,jpeg?] )
|
||||
>=media-libs/libpng-1.2:0=
|
||||
>=media-libs/libmediaart-1.9:2.0
|
||||
sys-apps/util-linux
|
||||
>=sys-libs/libseccomp-2.0
|
||||
>=x11-libs/pango-1:=
|
||||
|
||||
cue? ( media-libs/libcue )
|
||||
elibc_glibc? ( >=sys-libs/glibc-2.12 )
|
||||
exif? ( >=media-libs/libexif-0.6 )
|
||||
ffmpeg? (
|
||||
libav? ( media-video/libav:= )
|
||||
!libav? ( media-video/ffmpeg:0= )
|
||||
)
|
||||
firefox-bookmarks? ( || (
|
||||
>=www-client/firefox-4.0
|
||||
>=www-client/firefox-bin-4.0 ) )
|
||||
flac? ( >=media-libs/flac-1.2.1 )
|
||||
gif? ( media-libs/giflib:= )
|
||||
gsf? ( >=gnome-extra/libgsf-1.14.24 )
|
||||
gstreamer? (
|
||||
media-libs/gstreamer:1.0
|
||||
media-libs/gst-plugins-base:1.0 )
|
||||
gtk? (
|
||||
>=dev-libs/libgee-0.3:0.8
|
||||
>=x11-libs/gtk+-3:3 )
|
||||
iptc? ( media-libs/libiptcdata )
|
||||
iso? ( >=sys-libs/libosinfo-0.2.9:= )
|
||||
jpeg? ( virtual/jpeg:0 )
|
||||
upower? ( || ( >=sys-power/upower-0.9 sys-power/upower-pm-utils ) )
|
||||
mp3? ( >=media-libs/taglib-1.6 )
|
||||
networkmanager? ( >=net-misc/networkmanager-0.8:= )
|
||||
pdf? (
|
||||
>=x11-libs/cairo-1:=
|
||||
>=app-text/poppler-0.16:=[cairo,utils]
|
||||
>=x11-libs/gtk+-2.12:2 )
|
||||
playlist? ( >=dev-libs/totem-pl-parser-3 )
|
||||
rss? ( >=net-libs/libgrss-0.7:0 )
|
||||
stemmer? ( dev-libs/snowball-stemmer )
|
||||
thunderbird? ( || (
|
||||
>=mail-client/thunderbird-5.0
|
||||
>=mail-client/thunderbird-bin-5.0 ) )
|
||||
tiff? ( media-libs/tiff:0 )
|
||||
upnp-av? ( >=media-libs/gupnp-dlna-0.9.4:2.0 )
|
||||
vorbis? ( >=media-libs/libvorbis-0.22 )
|
||||
xml? ( >=dev-libs/libxml2-2.6 )
|
||||
xmp? ( >=media-libs/exempi-2.1 )
|
||||
xps? ( app-text/libgxps )
|
||||
!gstreamer? ( !ffmpeg? ( || ( media-video/totem media-video/mplayer ) ) )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
${PYTHON_DEPS}
|
||||
$(vala_depend)
|
||||
dev-util/gdbus-codegen
|
||||
>=dev-libs/libxslt-1
|
||||
>=dev-util/gtk-doc-am-1.8
|
||||
>=dev-util/intltool-0.40.0
|
||||
>=sys-devel/gettext-0.17
|
||||
virtual/pkgconfig
|
||||
gtk? ( >=dev-libs/libgee-0.3:0.8 )
|
||||
test? (
|
||||
>=dev-libs/dbus-glib-0.82-r1
|
||||
>=sys-apps/dbus-1.3.1[X] )
|
||||
"
|
||||
PDEPEND="nautilus? ( ~gnome-extra/nautilus-tracker-tags-${PV} )"
|
||||
|
||||
function inotify_enabled() {
|
||||
if linux_config_exists; then
|
||||
if ! linux_chkconfig_present INOTIFY_USER; then
|
||||
ewarn "You should enable the INOTIFY support in your kernel."
|
||||
ewarn "Check the 'Inotify support for userland' under the 'File systems'"
|
||||
ewarn "option. It is marked as CONFIG_INOTIFY_USER in the config"
|
||||
die 'missing CONFIG_INOTIFY'
|
||||
fi
|
||||
else
|
||||
einfo "Could not check for INOTIFY support in your kernel."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
linux-info_pkg_setup
|
||||
inotify_enabled
|
||||
|
||||
python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Don't run 'firefox --version' or 'thunderbird --version'; it results in
|
||||
# access violations on some setups (bug #385347, #385495).
|
||||
create_version_script "www-client/firefox" "Mozilla Firefox" firefox-version.sh
|
||||
create_version_script "mail-client/thunderbird" "Mozilla Thunderbird" thunderbird-version.sh
|
||||
|
||||
# Looks like sorting got fixed but not test reference files
|
||||
sort "${S}"/tests/libtracker-data/functions/functions-tracker-1.out \
|
||||
-o "${S}"/tests/libtracker-data/functions/functions-tracker-1.out || die
|
||||
sort "${S}"/tests/libtracker-data/functions/functions-tracker-2.out \
|
||||
-o "${S}"/tests/libtracker-data/functions/functions-tracker-2.out || die
|
||||
|
||||
eautoreconf # See bug #367975
|
||||
gnome2_src_prepare
|
||||
vala_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=""
|
||||
|
||||
if use gstreamer ; then
|
||||
myconf="${myconf} --enable-generic-media-extractor=gstreamer"
|
||||
if use upnp-av; then
|
||||
myconf="${myconf} --with-gstreamer-backend=gupnp-dlna"
|
||||
else
|
||||
myconf="${myconf} --with-gstreamer-backend=discoverer"
|
||||
fi
|
||||
elif use ffmpeg ; then
|
||||
myconf="${myconf} --enable-generic-media-extractor=libav"
|
||||
else
|
||||
myconf="${myconf} --enable-generic-media-extractor=external"
|
||||
fi
|
||||
|
||||
# unicode-support: libunistring, libicu or glib ?
|
||||
# According to NEWS, introspection is required
|
||||
# is not being generated
|
||||
# nautilus extension is in a separate package, nautilus-tracker-tags
|
||||
# miner-evolution disabled as it's incompatible with current eds
|
||||
gnome2_src_configure \
|
||||
--disable-hal \
|
||||
--disable-miner-evolution \
|
||||
--disable-nautilus-extension \
|
||||
--disable-static \
|
||||
--enable-abiword \
|
||||
--enable-artwork \
|
||||
--enable-cfg-man-pages \
|
||||
--enable-dvi \
|
||||
--enable-enca \
|
||||
--enable-guarantee-metadata \
|
||||
--enable-icon \
|
||||
--enable-introspection \
|
||||
--enable-libmediaart \
|
||||
--enable-libpng \
|
||||
--enable-miner-apps \
|
||||
--enable-miner-user-guides \
|
||||
--enable-ps \
|
||||
--enable-text \
|
||||
--enable-tracker-fts \
|
||||
--enable-tracker-writeback \
|
||||
--with-unicode-support=libicu \
|
||||
--with-bash-completion-dir="$(get_bashcompdir)" \
|
||||
$(use_enable cue libcue) \
|
||||
$(use_enable exif libexif) \
|
||||
$(use_enable firefox-bookmarks miner-firefox) \
|
||||
$(use_with firefox-bookmarks firefox-plugin-dir "${EPREFIX}"/usr/$(get_libdir)/firefox/extensions) \
|
||||
FIREFOX="${S}"/firefox-version.sh \
|
||||
$(use_enable flac libflac) \
|
||||
$(use_enable gif libgif) \
|
||||
$(use_enable gsf libgsf) \
|
||||
$(use_enable gtk tracker-needle) \
|
||||
$(use_enable gtk tracker-preferences) \
|
||||
$(use_enable iptc libiptcdata) \
|
||||
$(use_enable iso libosinfo) \
|
||||
$(use_enable jpeg libjpeg) \
|
||||
$(use_enable upower upower) \
|
||||
$(use_enable miner-fs) \
|
||||
$(use_enable mp3 taglib) \
|
||||
$(use_enable mp3) \
|
||||
$(use_enable networkmanager network-manager) \
|
||||
$(use_enable pdf poppler) \
|
||||
$(use_enable playlist) \
|
||||
$(use_enable rss miner-rss) \
|
||||
$(use_enable stemmer libstemmer) \
|
||||
$(use_enable test functional-tests) \
|
||||
$(use_enable test unit-tests) \
|
||||
$(use_enable thunderbird miner-thunderbird) \
|
||||
$(use_with thunderbird thunderbird-plugin-dir "${EPREFIX}"/usr/$(get_libdir)/thunderbird/extensions) \
|
||||
THUNDERBIRD="${S}"/thunderbird-version.sh \
|
||||
$(use_enable tiff libtiff) \
|
||||
$(use_enable vorbis libvorbis) \
|
||||
$(use_enable xml libxml2) \
|
||||
$(use_enable xmp exempi) \
|
||||
$(use_enable xps libgxps) \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# G_MESSAGES_DEBUG, upstream bug #699401#c1
|
||||
virtx emake check TESTS_ENVIRONMENT="dbus-run-session" G_MESSAGES_DEBUG="all"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
gnome2_src_install
|
||||
|
||||
# Manually symlink extensions for {firefox,thunderbird}-bin
|
||||
if use firefox-bookmarks; then
|
||||
dosym /usr/share/xul-ext/trackerfox \
|
||||
/usr/$(get_libdir)/firefox-bin/extensions/trackerfox@bustany.org
|
||||
fi
|
||||
|
||||
if use thunderbird; then
|
||||
dosym /usr/share/xul-ext/trackerbird \
|
||||
/usr/$(get_libdir)/thunderbird-bin/extensions/trackerbird@bustany.org
|
||||
fi
|
||||
}
|
||||
|
||||
create_version_script() {
|
||||
# Create script $3 that prints "$2 MAX(VERSION($1), VERSION($1-bin))"
|
||||
|
||||
local v=$(best_version ${1})
|
||||
v=${v#${1}-}
|
||||
local vbin=$(best_version ${1}-bin)
|
||||
vbin=${vbin#${1}-bin-}
|
||||
|
||||
if [[ -z ${v} ]]; then
|
||||
v=${vbin}
|
||||
else
|
||||
version_compare ${v} ${vbin}
|
||||
[[ $? -eq 1 ]] && v=${vbin}
|
||||
fi
|
||||
|
||||
echo -e "#!/bin/sh\necho $2 $v" > "$3" || die
|
||||
chmod +x "$3" || die
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST gtranslator-2.91.6.tar.xz 2235796 SHA256 a1fd4b17b1f32cc7223a31d34e34f95b20acc7b5a23768351a34ff0b7a4bcdf6 SHA512 5cb5ca318201a08b530390073a9e87be93c6fb30629e899d6d23e38a790771cacf5188a26c61584a24170a3a12e9d1670440fd3f4eb3eab2da1a76a7ec4c385f WHIRLPOOL 6241316e3b759f4d21934ca9fce06cb2e3019288d3916957b5316112eab66fea3674c4b83974afdbdc19c905da86cd65939f83e9862414b2383b8a4f397d1659
|
||||
DIST gtranslator-2.91.7.tar.xz 2835836 SHA256 2b25b45b33e4aa856953b4a5da1d98bd51a343ddb479aeae3934bfe0c3651f9d SHA512 8d2a582e06ab0fecb9c18bde372ca0cd02d426155d4b30b876bd8f2e177c88c79d410adb0297ab85f18a952eeef32c17352cde18eda3c4c4fe33833db25022b5 WHIRLPOOL f39557d03cd0d8d833478b8e9d356c4db6ac13a9a5ebd2c09c0bc022a383342d490762eb53b99a1f32182c348e27ab21aa5d2ef1950f19b0913584997e1cac98
|
||||
|
@ -1,72 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
GCONF_DEBUG="no"
|
||||
GNOME2_LA_PUNT="yes"
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit gnome2 python-single-r1
|
||||
|
||||
DESCRIPTION="An enhanced gettext po file editor for GNOME"
|
||||
HOMEPAGE="http://gtranslator.sourceforge.net/"
|
||||
|
||||
LICENSE="GPL-3+ FDL-1.1+"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~ppc x86"
|
||||
IUSE="gnome spell"
|
||||
|
||||
COMMON_DEPEND="
|
||||
>=dev-libs/glib-2.32:2
|
||||
>=x11-libs/gtk+-3.4.2:3
|
||||
>=x11-libs/gtksourceview-3.0.0:3.0
|
||||
>=dev-libs/gdl-3.6:3=
|
||||
>=dev-libs/libxml2-2.4.12:2
|
||||
>=dev-libs/json-glib-0.12.0
|
||||
>=dev-libs/libpeas-1.2[gtk]
|
||||
gnome-extra/libgda:5=
|
||||
>=app-text/iso-codes-0.35
|
||||
|
||||
gnome-base/gsettings-desktop-schemas
|
||||
|
||||
gnome? (
|
||||
${PYTHON_DEPS}
|
||||
|| ( app-dicts/gnome-dictionary =gnome-extra/gnome-utils-3.2* )
|
||||
x11-libs/gtk+:3[introspection] )
|
||||
spell? ( app-text/gtkspell:3= )"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
x11-themes/gnome-icon-theme-symbolic
|
||||
gnome? (
|
||||
>=dev-libs/libpeas-1.2[gtk,python,${PYTHON_USEDEP}]
|
||||
dev-python/pygobject:3[${PYTHON_USEDEP}]
|
||||
gnome-extra/gucharmap:2.90[introspection] )"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
>=dev-util/gtk-doc-am-1
|
||||
>=dev-util/intltool-0.40
|
||||
>=sys-devel/gettext-0.17
|
||||
virtual/pkgconfig
|
||||
"
|
||||
# eautoreconf requires gnome-base/gnome-common, app-text/yelp-tools
|
||||
|
||||
pkg_setup() {
|
||||
use gnome && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
DOCS="AUTHORS ChangeLog HACKING INSTALL NEWS README THANKS"
|
||||
G2CONF="${G2CONF}
|
||||
--disable-static
|
||||
$(use_with gnome dictionary)
|
||||
$(use_enable gnome introspection)
|
||||
$(use_with spell gtkspell3)
|
||||
ITSTOOL=$(type -P true)"
|
||||
|
||||
gnome2_src_prepare
|
||||
|
||||
if ! use gnome; then
|
||||
# don't install charmap plugin, it requires gnome-extra/gucharmap
|
||||
sed -e 's:\scharmap\s: :g' -i plugins/Makefile.* ||
|
||||
die "sed plugins/Makefile.* failed"
|
||||
fi
|
||||
}
|
@ -1,3 +1 @@
|
||||
DIST gmock-1.4.0.tar.bz2 946373 SHA256 21d37c154a7b8d7a8562b9dde82db7db0a6c188b985c4a18ff3413daae8caa8c SHA512 df99aae44d23f4b0b4ce9ac24fde9e72508c9a915323dd07fb475c708953b79310c164141d085a04a9203b6abd759336d55a94979495f429c92f11bc4d1b038c WHIRLPOOL 7a4525a589770cd5de21c0b82a7b9a7219b3fcdef605e0b455dfff50bc87ff1432b3989cc7e0c08c42c68083e2618841a77d8afcf4ed51b3f55f09a5a64c4fb2
|
||||
DIST gmock-1.5.0.tar.bz2 1283432 SHA256 d8689a51fbc13f55509f5842fe7d514839d9fd6092743d145304bc2824fc9197 SHA512 b0a3897c801d14a9f59a07911fa77ae15ddae9bef6e2d818583ff0b5085d35507259c195b43a6fe25af70b4d2eee3796889ffcda91d16ce6e6e5b4e462196aa2 WHIRLPOOL f00854ebdece304006907ea2e3906fbe58578a7a3684d93eb8e9f2c26bd100f751878109d5fd13a31cf58463d759fc09c1b07c035107c127c19f572ff264fd76
|
||||
DIST gmock-1.7.0.zip 2167746 SHA256 26fcbb5925b74ad5fc8c26b0495dfc96353f4d553492eb97e85a8a6d2f43095b SHA512 0ab7bb2614f8c00e4842a6819dbc6d9323c42241335078c23eaee53ed420d42f1845d44334eccbf7c114cc88f6ac7a493e20d9b46c58cdba645bbd400eb6db55 WHIRLPOOL 722ea3f8bd4130662386810ae0270baafcecb6b7066e8a361388d530e7a2bad4e10787c921c6bb5cefb15a640f4302d288d07deea58acf8c5f5ca84d82722c8e
|
||||
|
@ -1,189 +0,0 @@
|
||||
taken from upstream repo
|
||||
|
||||
Index: include/gmock/gmock-generated-function-mockers.h.pump
|
||||
===================================================================
|
||||
--- include/gmock/gmock-generated-function-mockers.h.pump (revision 227)
|
||||
+++ include/gmock/gmock-generated-function-mockers.h.pump (revision 228)
|
||||
@@ -45,10 +45,6 @@ $var n = 10 $$ The maximum arity we sup
|
||||
#include <gmock/internal/gmock-internal-utils.h>
|
||||
|
||||
namespace testing {
|
||||
-
|
||||
-template <typename F>
|
||||
-class MockSpec;
|
||||
-
|
||||
namespace internal {
|
||||
|
||||
template <typename F>
|
||||
@@ -89,7 +85,11 @@ $if i >= 1 [[
|
||||
}
|
||||
|
||||
R Invoke($Aas) {
|
||||
- return InvokeWith(ArgumentTuple($as));
|
||||
+ // Even though gcc and MSVC don't enforce it, 'this->' is required
|
||||
+ // by the C++ standard [14.6.4] here, as the base class type is
|
||||
+ // dependent on the template argument (and thus shouldn't be
|
||||
+ // looked into when resolving InvokeWith).
|
||||
+ return this->InvokeWith(ArgumentTuple($as));
|
||||
}
|
||||
};
|
||||
|
||||
Index: include/gmock/gmock-generated-function-mockers.h
|
||||
===================================================================
|
||||
--- include/gmock/gmock-generated-function-mockers.h (revision 227)
|
||||
+++ include/gmock/gmock-generated-function-mockers.h (revision 228)
|
||||
@@ -42,10 +42,6 @@
|
||||
#include <gmock/internal/gmock-internal-utils.h>
|
||||
|
||||
namespace testing {
|
||||
-
|
||||
-template <typename F>
|
||||
-class MockSpec;
|
||||
-
|
||||
namespace internal {
|
||||
|
||||
template <typename F>
|
||||
@@ -71,7 +67,11 @@ class FunctionMocker<R()> : public
|
||||
}
|
||||
|
||||
R Invoke() {
|
||||
- return InvokeWith(ArgumentTuple());
|
||||
+ // Even though gcc and MSVC don't enforce it, 'this->' is required
|
||||
+ // by the C++ standard [14.6.4] here, as the base class type is
|
||||
+ // dependent on the template argument (and thus shouldn't be
|
||||
+ // looked into when resolving InvokeWith).
|
||||
+ return this->InvokeWith(ArgumentTuple());
|
||||
}
|
||||
};
|
||||
|
||||
@@ -88,7 +88,11 @@ class FunctionMocker<R(A1)> : public
|
||||
}
|
||||
|
||||
R Invoke(A1 a1) {
|
||||
- return InvokeWith(ArgumentTuple(a1));
|
||||
+ // Even though gcc and MSVC don't enforce it, 'this->' is required
|
||||
+ // by the C++ standard [14.6.4] here, as the base class type is
|
||||
+ // dependent on the template argument (and thus shouldn't be
|
||||
+ // looked into when resolving InvokeWith).
|
||||
+ return this->InvokeWith(ArgumentTuple(a1));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -105,7 +109,11 @@ class FunctionMocker<R(A1, A2)> : public
|
||||
}
|
||||
|
||||
R Invoke(A1 a1, A2 a2) {
|
||||
- return InvokeWith(ArgumentTuple(a1, a2));
|
||||
+ // Even though gcc and MSVC don't enforce it, 'this->' is required
|
||||
+ // by the C++ standard [14.6.4] here, as the base class type is
|
||||
+ // dependent on the template argument (and thus shouldn't be
|
||||
+ // looked into when resolving InvokeWith).
|
||||
+ return this->InvokeWith(ArgumentTuple(a1, a2));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -123,7 +131,11 @@ class FunctionMocker<R(A1, A2, A3)> : pu
|
||||
}
|
||||
|
||||
R Invoke(A1 a1, A2 a2, A3 a3) {
|
||||
- return InvokeWith(ArgumentTuple(a1, a2, a3));
|
||||
+ // Even though gcc and MSVC don't enforce it, 'this->' is required
|
||||
+ // by the C++ standard [14.6.4] here, as the base class type is
|
||||
+ // dependent on the template argument (and thus shouldn't be
|
||||
+ // looked into when resolving InvokeWith).
|
||||
+ return this->InvokeWith(ArgumentTuple(a1, a2, a3));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -141,7 +153,11 @@ class FunctionMocker<R(A1, A2, A3, A4)>
|
||||
}
|
||||
|
||||
R Invoke(A1 a1, A2 a2, A3 a3, A4 a4) {
|
||||
- return InvokeWith(ArgumentTuple(a1, a2, a3, a4));
|
||||
+ // Even though gcc and MSVC don't enforce it, 'this->' is required
|
||||
+ // by the C++ standard [14.6.4] here, as the base class type is
|
||||
+ // dependent on the template argument (and thus shouldn't be
|
||||
+ // looked into when resolving InvokeWith).
|
||||
+ return this->InvokeWith(ArgumentTuple(a1, a2, a3, a4));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -161,7 +177,11 @@ class FunctionMocker<R(A1, A2, A3, A4, A
|
||||
}
|
||||
|
||||
R Invoke(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5) {
|
||||
- return InvokeWith(ArgumentTuple(a1, a2, a3, a4, a5));
|
||||
+ // Even though gcc and MSVC don't enforce it, 'this->' is required
|
||||
+ // by the C++ standard [14.6.4] here, as the base class type is
|
||||
+ // dependent on the template argument (and thus shouldn't be
|
||||
+ // looked into when resolving InvokeWith).
|
||||
+ return this->InvokeWith(ArgumentTuple(a1, a2, a3, a4, a5));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -182,7 +202,11 @@ class FunctionMocker<R(A1, A2, A3, A4, A
|
||||
}
|
||||
|
||||
R Invoke(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6) {
|
||||
- return InvokeWith(ArgumentTuple(a1, a2, a3, a4, a5, a6));
|
||||
+ // Even though gcc and MSVC don't enforce it, 'this->' is required
|
||||
+ // by the C++ standard [14.6.4] here, as the base class type is
|
||||
+ // dependent on the template argument (and thus shouldn't be
|
||||
+ // looked into when resolving InvokeWith).
|
||||
+ return this->InvokeWith(ArgumentTuple(a1, a2, a3, a4, a5, a6));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -203,7 +227,11 @@ class FunctionMocker<R(A1, A2, A3, A4, A
|
||||
}
|
||||
|
||||
R Invoke(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7) {
|
||||
- return InvokeWith(ArgumentTuple(a1, a2, a3, a4, a5, a6, a7));
|
||||
+ // Even though gcc and MSVC don't enforce it, 'this->' is required
|
||||
+ // by the C++ standard [14.6.4] here, as the base class type is
|
||||
+ // dependent on the template argument (and thus shouldn't be
|
||||
+ // looked into when resolving InvokeWith).
|
||||
+ return this->InvokeWith(ArgumentTuple(a1, a2, a3, a4, a5, a6, a7));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -224,7 +252,11 @@ class FunctionMocker<R(A1, A2, A3, A4, A
|
||||
}
|
||||
|
||||
R Invoke(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8) {
|
||||
- return InvokeWith(ArgumentTuple(a1, a2, a3, a4, a5, a6, a7, a8));
|
||||
+ // Even though gcc and MSVC don't enforce it, 'this->' is required
|
||||
+ // by the C++ standard [14.6.4] here, as the base class type is
|
||||
+ // dependent on the template argument (and thus shouldn't be
|
||||
+ // looked into when resolving InvokeWith).
|
||||
+ return this->InvokeWith(ArgumentTuple(a1, a2, a3, a4, a5, a6, a7, a8));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -246,7 +278,11 @@ class FunctionMocker<R(A1, A2, A3, A4, A
|
||||
}
|
||||
|
||||
R Invoke(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9) {
|
||||
- return InvokeWith(ArgumentTuple(a1, a2, a3, a4, a5, a6, a7, a8, a9));
|
||||
+ // Even though gcc and MSVC don't enforce it, 'this->' is required
|
||||
+ // by the C++ standard [14.6.4] here, as the base class type is
|
||||
+ // dependent on the template argument (and thus shouldn't be
|
||||
+ // looked into when resolving InvokeWith).
|
||||
+ return this->InvokeWith(ArgumentTuple(a1, a2, a3, a4, a5, a6, a7, a8, a9));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -270,7 +306,12 @@ class FunctionMocker<R(A1, A2, A3, A4, A
|
||||
|
||||
R Invoke(A1 a1, A2 a2, A3 a3, A4 a4, A5 a5, A6 a6, A7 a7, A8 a8, A9 a9,
|
||||
A10 a10) {
|
||||
- return InvokeWith(ArgumentTuple(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10));
|
||||
+ // Even though gcc and MSVC don't enforce it, 'this->' is required
|
||||
+ // by the C++ standard [14.6.4] here, as the base class type is
|
||||
+ // dependent on the template argument (and thus shouldn't be
|
||||
+ // looked into when resolving InvokeWith).
|
||||
+ return this->InvokeWith(ArgumentTuple(a1, a2, a3, a4, a5, a6, a7, a8, a9,
|
||||
+ a10));
|
||||
}
|
||||
};
|
||||
|
@ -1,144 +0,0 @@
|
||||
taken from upstream repo
|
||||
|
||||
------------------------------------------------------------------------
|
||||
r245 | zhanyong.wan | 2009-12-02 03:36:42 -0500 (Wed, 02 Dec 2009) | 2 lines
|
||||
|
||||
Fixes a C++-standard-compliance bug in gmock-printers.h.
|
||||
|
||||
|
||||
Index: include/gmock/gmock-printers.h
|
||||
===================================================================
|
||||
--- include/gmock/gmock-printers.h (revision 244)
|
||||
+++ include/gmock/gmock-printers.h (revision 245)
|
||||
@@ -434,63 +434,10 @@ inline void PrintTo(const ::std::wstring
|
||||
// Overload for ::std::tr1::tuple. Needed for printing function
|
||||
// arguments, which are packed as tuples.
|
||||
|
||||
-typedef ::std::vector<string> Strings;
|
||||
-
|
||||
-// This helper template allows PrintTo() for tuples and
|
||||
-// UniversalTersePrintTupleFieldsToStrings() to be defined by
|
||||
-// induction on the number of tuple fields. The idea is that
|
||||
-// TuplePrefixPrinter<N>::PrintPrefixTo(t, os) prints the first N
|
||||
-// fields in tuple t, and can be defined in terms of
|
||||
-// TuplePrefixPrinter<N - 1>.
|
||||
-
|
||||
-// The inductive case.
|
||||
-template <size_t N>
|
||||
-struct TuplePrefixPrinter {
|
||||
- // Prints the first N fields of a tuple.
|
||||
- template <typename Tuple>
|
||||
- static void PrintPrefixTo(const Tuple& t, ::std::ostream* os) {
|
||||
- TuplePrefixPrinter<N - 1>::PrintPrefixTo(t, os);
|
||||
- *os << ", ";
|
||||
- UniversalPrinter<typename ::std::tr1::tuple_element<N - 1, Tuple>::type>
|
||||
- ::Print(::std::tr1::get<N - 1>(t), os);
|
||||
- }
|
||||
-
|
||||
- // Tersely prints the first N fields of a tuple to a string vector,
|
||||
- // one element for each field.
|
||||
- template <typename Tuple>
|
||||
- static void TersePrintPrefixToStrings(const Tuple& t, Strings* strings) {
|
||||
- TuplePrefixPrinter<N - 1>::TersePrintPrefixToStrings(t, strings);
|
||||
- ::std::stringstream ss;
|
||||
- UniversalTersePrint(::std::tr1::get<N - 1>(t), &ss);
|
||||
- strings->push_back(ss.str());
|
||||
- }
|
||||
-};
|
||||
-
|
||||
-// Base cases.
|
||||
-template <>
|
||||
-struct TuplePrefixPrinter<0> {
|
||||
- template <typename Tuple>
|
||||
- static void PrintPrefixTo(const Tuple&, ::std::ostream*) {}
|
||||
-
|
||||
- template <typename Tuple>
|
||||
- static void TersePrintPrefixToStrings(const Tuple&, Strings*) {}
|
||||
-};
|
||||
-template <>
|
||||
-template <typename Tuple>
|
||||
-void TuplePrefixPrinter<1>::PrintPrefixTo(const Tuple& t, ::std::ostream* os) {
|
||||
- UniversalPrinter<typename ::std::tr1::tuple_element<0, Tuple>::type>::
|
||||
- Print(::std::tr1::get<0>(t), os);
|
||||
-}
|
||||
-
|
||||
// Helper function for printing a tuple. T must be instantiated with
|
||||
// a tuple type.
|
||||
template <typename T>
|
||||
-void PrintTupleTo(const T& t, ::std::ostream* os) {
|
||||
- *os << "(";
|
||||
- TuplePrefixPrinter< ::std::tr1::tuple_size<T>::value>::
|
||||
- PrintPrefixTo(t, os);
|
||||
- *os << ")";
|
||||
-}
|
||||
+void PrintTupleTo(const T& t, ::std::ostream* os);
|
||||
|
||||
// Overloaded PrintTo() for tuples of various arities. We support
|
||||
// tuples of up-to 10 fields. The following implementation works
|
||||
@@ -725,6 +672,64 @@ void UniversalPrint(const T& value, ::st
|
||||
UniversalPrinter<T>::Print(value, os);
|
||||
}
|
||||
|
||||
+typedef ::std::vector<string> Strings;
|
||||
+
|
||||
+// This helper template allows PrintTo() for tuples and
|
||||
+// UniversalTersePrintTupleFieldsToStrings() to be defined by
|
||||
+// induction on the number of tuple fields. The idea is that
|
||||
+// TuplePrefixPrinter<N>::PrintPrefixTo(t, os) prints the first N
|
||||
+// fields in tuple t, and can be defined in terms of
|
||||
+// TuplePrefixPrinter<N - 1>.
|
||||
+
|
||||
+// The inductive case.
|
||||
+template <size_t N>
|
||||
+struct TuplePrefixPrinter {
|
||||
+ // Prints the first N fields of a tuple.
|
||||
+ template <typename Tuple>
|
||||
+ static void PrintPrefixTo(const Tuple& t, ::std::ostream* os) {
|
||||
+ TuplePrefixPrinter<N - 1>::PrintPrefixTo(t, os);
|
||||
+ *os << ", ";
|
||||
+ UniversalPrinter<typename ::std::tr1::tuple_element<N - 1, Tuple>::type>
|
||||
+ ::Print(::std::tr1::get<N - 1>(t), os);
|
||||
+ }
|
||||
+
|
||||
+ // Tersely prints the first N fields of a tuple to a string vector,
|
||||
+ // one element for each field.
|
||||
+ template <typename Tuple>
|
||||
+ static void TersePrintPrefixToStrings(const Tuple& t, Strings* strings) {
|
||||
+ TuplePrefixPrinter<N - 1>::TersePrintPrefixToStrings(t, strings);
|
||||
+ ::std::stringstream ss;
|
||||
+ UniversalTersePrint(::std::tr1::get<N - 1>(t), &ss);
|
||||
+ strings->push_back(ss.str());
|
||||
+ }
|
||||
+};
|
||||
+
|
||||
+// Base cases.
|
||||
+template <>
|
||||
+struct TuplePrefixPrinter<0> {
|
||||
+ template <typename Tuple>
|
||||
+ static void PrintPrefixTo(const Tuple&, ::std::ostream*) {}
|
||||
+
|
||||
+ template <typename Tuple>
|
||||
+ static void TersePrintPrefixToStrings(const Tuple&, Strings*) {}
|
||||
+};
|
||||
+template <>
|
||||
+template <typename Tuple>
|
||||
+void TuplePrefixPrinter<1>::PrintPrefixTo(const Tuple& t, ::std::ostream* os) {
|
||||
+ UniversalPrinter<typename ::std::tr1::tuple_element<0, Tuple>::type>::
|
||||
+ Print(::std::tr1::get<0>(t), os);
|
||||
+}
|
||||
+
|
||||
+// Helper function for printing a tuple. T must be instantiated with
|
||||
+// a tuple type.
|
||||
+template <typename T>
|
||||
+void PrintTupleTo(const T& t, ::std::ostream* os) {
|
||||
+ *os << "(";
|
||||
+ TuplePrefixPrinter< ::std::tr1::tuple_size<T>::value>::
|
||||
+ PrintPrefixTo(t, os);
|
||||
+ *os << ")";
|
||||
+}
|
||||
+
|
||||
// Prints the fields of a tuple tersely to a string vector, one
|
||||
// element for each field. See the comment before
|
||||
// UniversalTersePrint() for how we define "tersely".
|
||||
|
||||
------------------------------------------------------------------------
|
@ -1,40 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit libtool eutils
|
||||
|
||||
DESCRIPTION="Google's C++ mocking framework"
|
||||
HOMEPAGE="https://github.com/google/googlemock"
|
||||
SRC_URI="https://googlemock.googlecode.com/files/${P}.tar.bz2"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="static-libs"
|
||||
|
||||
RDEPEND=">=dev-cpp/gtest-${PV}"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
# make sure we always use the system one
|
||||
rm -r "${S}"/gtest/Makefile* || die
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-gcc-4.7.patch
|
||||
epatch "${FILESDIR}"/${P}-more-gcc-4.7.patch
|
||||
elibtoolize
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf $(use_enable static-libs static)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
use static-libs || find "${ED}"/usr -name '*.la' -delete
|
||||
}
|
@ -1,38 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit libtool
|
||||
|
||||
DESCRIPTION="Google's C++ mocking framework"
|
||||
HOMEPAGE="https://github.com/google/googlemock"
|
||||
SRC_URI="https://googlemock.googlecode.com/files/${P}.tar.bz2"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="static-libs"
|
||||
|
||||
RDEPEND=">=dev-cpp/gtest-${PV}"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
# make sure we always use the system one
|
||||
rm -r "${S}"/gtest/Makefile* || die
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
elibtoolize
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf $(use_enable static-libs static)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
use static-libs || find "${D}" -name '*.la' -delete
|
||||
}
|
@ -1,43 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit libtool
|
||||
|
||||
DESCRIPTION="Google's C++ mocking framework"
|
||||
HOMEPAGE="https://github.com/google/googlemock"
|
||||
SRC_URI="https://googlemock.googlecode.com/files/${P}.zip"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm ~hppa ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh sparc x86"
|
||||
IUSE="static-libs"
|
||||
|
||||
RDEPEND="=dev-cpp/gtest-${PV}*"
|
||||
DEPEND="app-arch/unzip
|
||||
${RDEPEND}"
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
# make sure we always use the system one
|
||||
rm -r "${S}"/gtest/{Makefile,configure}* || die
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
sed -i -r \
|
||||
-e '/^install-(data|exec)-local:/s|^.*$|&\ndisabled-&|' \
|
||||
Makefile.in
|
||||
elibtoolize
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf $(use_enable static-libs static)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
dobin scripts/gmock-config
|
||||
use static-libs || find "${D}" -name '*.la' -delete
|
||||
}
|
@ -1,4 +1,3 @@
|
||||
DIST sqldeveloper-3.2.20.09.87-no-jre.zip 182052759 SHA256 787b703a3fa2d7969ae486b9f2f23bdafd31242b2af74257943cf826c535c8d4 SHA512 716e2f9584e192b8e72a0e9439ac3fb0aea297087640df7c7c5659170846376d8e44d0fbdc68c96e274b100aad3f26b0710691349bfc0092c86c42830e115efe WHIRLPOOL 1d9eb51cb263c14a89a44167a239f3be34b7ca9bd78eefc28a73c1b24e6f4e2f10a1665b0b4a03c6932f987fae375c95bfc310c485e179c76e9b7135bb9825e3
|
||||
DIST sqldeveloper-4.0.2.15.21-no-jre.zip 235443867 SHA256 b23aca1d256002cdc19a0b3136ae13ebf9064feacc45a131be229a88fe9faed7 SHA512 e67b0f3d127adbc6cb77b3eb822834a6c41be7039c54eceb85e8c882704684a02dd036f078408192ad2cbcb963dfb0ba583e99a9f7b7db36b1e9a1f96e555880 WHIRLPOOL 31b32713f116193036dc5dd9b63c9b6c321763e2273227c51d70bd3db93575e4f12150a045f8615fb6086ee1d464af4d112be5824f9bf22b4f5917ae5a15b724
|
||||
DIST sqldeveloper-4.1.1.19.59-no-jre.zip 328364824 SHA256 3b0f3f861495f41b6844eeaf3a58117a90dd72d98cfe8d0b4ffafe103ec56bb5 SHA512 1f5a683ba91a41cb7bc40a45215632ff10b2b1075d5b434d5a8349137d467f59192ec78d33e67b141729b7a1f3e5d678f8b934418e362706ac85a8b0fe89b838 WHIRLPOOL fc4e86e18108729a044bbb4b75a25418599ac972ed003ee69cc0982e66eeb6779d3d46306ec3429b9f9d7a0fa01dc6242b66430c02fe333cb9d95f70160e3402
|
||||
DIST sqldeveloper-4.1.3.20.78-no-jre.zip 331401110 SHA256 10caec7183f4075033598faf272d2be82207261442abf3bc3bd899246968b8de SHA512 828a751bc9df7bdc59f9b89b317189826e328671d081df24d39a102aeefaf5a0a56e01e066802da1ee92617bf1fdb77ad598b448043dd7f4239f2103efb4427b WHIRLPOOL 8eee4fbc34617f721893ab880be9c7c27ac8d5378491ba97bcd0084660ad500e2c0e4812ea5b25f8cd907e2c689168af08bbccfdc0b51f04cc0d74bf0760e009
|
||||
DIST sqldeveloper-4.1.5.21.78-no-jre.zip 349775471 SHA256 1b6a5ea4f12306eaa41e4ad961d2cae4e4ccbdcb4b89d85f3d8f88a883f06967 SHA512 06535a2d60ce140fa08cf937e9bb38d0a8ecefcb1b68675b547d4682c2e514ba62121e4363cf655c10de149e39a5e7d1d4a61c8cf79d7388b2998bf9b0098601 WHIRLPOOL ceb60934100a9184c734d2d07bdde752a384f807934186f54618479de6af19a114a879edee52214bce71509e4b2a22dca8fa988f4f91202d29bceaaf8cbe67e9
|
||||
|
@ -1,100 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="2"
|
||||
|
||||
inherit eutils java-pkg-2
|
||||
|
||||
DESCRIPTION="Oracle SQL Developer is a graphical tool for database development"
|
||||
HOMEPAGE="http://www.oracle.com/technology/products/database/sql_developer/"
|
||||
SRC_URI="${P}-no-jre.zip"
|
||||
RESTRICT="fetch"
|
||||
|
||||
LICENSE="OTN"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="mssql mysql sybase"
|
||||
|
||||
DEPEND="mssql? ( dev-java/jtds:1.2 )
|
||||
mysql? ( dev-java/jdbc-mysql:0 )
|
||||
sybase? ( dev-java/jtds:1.2 )"
|
||||
RDEPEND=">=virtual/jdk-1.6.0
|
||||
${DEPEND}"
|
||||
|
||||
S="${WORKDIR}/${PN}"
|
||||
|
||||
pkg_nofetch() {
|
||||
eerror "Please go to"
|
||||
eerror " ${HOMEPAGE}"
|
||||
eerror "and download"
|
||||
eerror " Oracle SQL Developer for other platforms"
|
||||
eerror " ${SRC_URI}"
|
||||
eerror "and move it to ${DISTDIR}"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# we don't need these, do we?
|
||||
find ./ \( -iname "*.exe" -or -iname "*.dll" -or -iname "*.bat" \) -exec rm {} \;
|
||||
|
||||
# they both use jtds, enabling one of them also enables the other one
|
||||
if use mssql && ! use sybase; then
|
||||
einfo "You requested MSSQL support, this also enables Sybase support."
|
||||
fi
|
||||
if use sybase && ! use mssql; then
|
||||
einfo "You requested Sybase support, this also enables MSSQL support."
|
||||
fi
|
||||
|
||||
if use mssql || use sybase; then
|
||||
echo "AddJavaLibFile $(java-pkg_getjars jtds-1.2)" >> sqldeveloper/bin/sqldeveloper.conf
|
||||
fi
|
||||
|
||||
if use mysql; then
|
||||
echo "AddJavaLibFile $(java-pkg_getjars jdbc-mysql)" >> sqldeveloper/bin/sqldeveloper.conf
|
||||
fi
|
||||
|
||||
# this fixes internal Classpath warning
|
||||
cd "${T}"
|
||||
unzip -q "${S}"/jdev/extensions/oracle.jdeveloper.runner.jar META-INF/extension.xml
|
||||
sed -i 's@../../../oracle_common/modules/oracle.nlsrtl_11.1.0@../../jlib@' META-INF/extension.xml || die
|
||||
zip -rq "${S}"/jdev/extensions/oracle.jdeveloper.runner.jar META-INF/extension.xml
|
||||
rm -rf META-INF
|
||||
|
||||
# this fixes another internal Classpath warning
|
||||
cd "${T}"
|
||||
unzip -q "${S}"/sqldeveloper/extensions/oracle.datamodeler.jar META-INF/extension.xml
|
||||
sed -i 's@<classpath>${ide.extension.install.home}/lib/ActiveQueryBuilder.jar</classpath>@<classpath>${ide.extension.install.home}/../../lib/ActiveQueryBuilder.jar</classpath>@' META-INF/extension.xml || die
|
||||
zip -rq "${S}"/sqldeveloper/extensions/oracle.datamodeler.jar META-INF/extension.xml
|
||||
rm -rf META-INF
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodir /opt/${PN}
|
||||
cp -r {dataminer,ide,javavm,jdbc,jdev,jdev.label,jlib,jviews,modules,rdbms,readme.html,sleepycat,${PN},sqlj,timingframework} \
|
||||
"${D}"/opt/${PN}/ || die "Install failed"
|
||||
|
||||
dobin "${FILESDIR}"/${PN} || die "Install failed"
|
||||
|
||||
mv icon.png ${PN}-32x32.png || die
|
||||
doicon ${PN}-32x32.png || die
|
||||
make_desktop_entry ${PN} "Oracle SQL Developer" ${PN}-32x32 || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# this temporary fixes FileNotFoundException with datamodeler
|
||||
# this is more like a workaround than permanent fix
|
||||
test -d /opt/sqldeveloper/sqldeveloper/extensions/oracle.datamodeler/log \
|
||||
|| mkdir /opt/sqldeveloper/sqldeveloper/extensions/oracle.datamodeler/log
|
||||
touch /opt/sqldeveloper/sqldeveloper/extensions/oracle.datamodeler/log/datamodeler.log
|
||||
chmod -R 1777 /opt/sqldeveloper/sqldeveloper/extensions/oracle.datamodeler/log/datamodeler.log
|
||||
|
||||
# this fixes another datamodeler FileNotFoundException
|
||||
# also more like a workaround than permanent fix
|
||||
chmod 1777 /opt/sqldeveloper/sqldeveloper/extensions/oracle.datamodeler/types/dr_custom_scripts.xml
|
||||
|
||||
echo
|
||||
einfo "If you want to use the TNS connection type you need to set up the"
|
||||
einfo "TNS_ADMIN environment variable to point to the directory your"
|
||||
einfo "tnsnames.ora resides in."
|
||||
echo
|
||||
}
|
@ -1,101 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils java-pkg-2
|
||||
|
||||
DESCRIPTION="Oracle SQL Developer is a graphical tool for database development"
|
||||
HOMEPAGE="http://www.oracle.com/technetwork/developer-tools/sql-developer/overview/index.html"
|
||||
SRC_URI="${P}-no-jre.zip"
|
||||
|
||||
RESTRICT="fetch"
|
||||
|
||||
LICENSE="OTN"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
IUSE="mssql mysql sybase"
|
||||
|
||||
DEPEND="mssql? ( dev-java/jtds:1.2 )
|
||||
mysql? ( dev-java/jdbc-mysql:0 )
|
||||
sybase? ( dev-java/jtds:1.2 )"
|
||||
RDEPEND=">=virtual/jdk-1.8.0
|
||||
dev-java/java-config:2
|
||||
${DEPEND}"
|
||||
|
||||
S="${WORKDIR}/${PN}"
|
||||
|
||||
QA_PREBUILT="
|
||||
opt/${PN}/netbeans/platform/modules/lib/amd64/linux/*.so
|
||||
opt/${PN}/netbeans/platform/modules/lib/i386/linux/*.so
|
||||
"
|
||||
|
||||
pkg_nofetch() {
|
||||
eerror "Please go to"
|
||||
eerror " ${HOMEPAGE}"
|
||||
eerror "and download"
|
||||
eerror " Oracle SQL Developer for other platforms"
|
||||
eerror " ${SRC_URI}"
|
||||
eerror "and move it to ${DISTDIR}"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# we don't need these, do we?
|
||||
find ./ \( -iname "*.exe" -or -iname "*.dll" -or -iname "*.bat" \) -exec rm {} +
|
||||
|
||||
# they both use jtds, enabling one of them also enables the other one
|
||||
if use mssql && ! use sybase; then
|
||||
einfo "You requested MSSQL support, this also enables Sybase support."
|
||||
fi
|
||||
if use sybase && ! use mssql; then
|
||||
einfo "You requested Sybase support, this also enables MSSQL support."
|
||||
fi
|
||||
|
||||
if use mssql || use sybase; then
|
||||
echo "AddJavaLibFile $(java-pkg_getjars jtds-1.2)" >> sqldeveloper/bin/sqldeveloper.conf
|
||||
fi
|
||||
|
||||
if use mysql; then
|
||||
echo "AddJavaLibFile $(java-pkg_getjars jdbc-mysql)" >> sqldeveloper/bin/sqldeveloper.conf
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodir /opt/${PN}
|
||||
# NOTE For future version to get that line (what to copy) go to the unpacked sources dir
|
||||
# using `bash` and press Meta+_ (i.e. Meta+Shift+-) -- that is a builtin bash feature ;-)
|
||||
cp -r {configuration,d{ataminer,ropins,vt},e{quinox,xternal},ide,j{avavm,d{bc,ev},lib,views},modules,netbeans,ords,rdbms,s{leepycat,ql{developer,j},vnkit}} \
|
||||
"${D}"/opt/${PN}/ || die "Install failed"
|
||||
|
||||
dobin "${FILESDIR}"/${PN} || die "Install failed"
|
||||
|
||||
mv icon.png ${PN}-32x32.png || die
|
||||
doicon ${PN}-32x32.png || die
|
||||
make_desktop_entry ${PN} "Oracle SQL Developer" ${PN}-32x32 || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# this temporary fixes FileNotFoundException with datamodeler
|
||||
# this is more like a workaround than permanent fix
|
||||
test -d /opt/sqldeveloper/sqldeveloper/extensions/oracle.datamodeler/log \
|
||||
|| mkdir /opt/sqldeveloper/sqldeveloper/extensions/oracle.datamodeler/log
|
||||
touch /opt/sqldeveloper/sqldeveloper/extensions/oracle.datamodeler/log/datamodeler.log
|
||||
chmod -R 1777 /opt/sqldeveloper/sqldeveloper/extensions/oracle.datamodeler/log/datamodeler.log
|
||||
|
||||
# this fixes another datamodeler FileNotFoundException
|
||||
# also more like a workaround than permanent fix
|
||||
chmod 1777 /opt/sqldeveloper/sqldeveloper/extensions/oracle.datamodeler/types/dr_custom_scripts.xml
|
||||
|
||||
echo
|
||||
einfo "If you want to use the TNS connection type you need to set up the"
|
||||
einfo "TNS_ADMIN environment variable to point to the directory your"
|
||||
einfo "tnsnames.ora resides in."
|
||||
echo
|
||||
einfo "In order to use SQL Developer you need to enshure you are using proper version Java VM (1.8)"
|
||||
einfo "Use eselect java-vm list to get this info,"
|
||||
einfo "eselect java-vm set user N to assign user-level value"
|
||||
einfo "eselect java-vm set system N as root to set system-wide default"
|
||||
echo
|
||||
}
|
@ -1,6 +1 @@
|
||||
DIST srecord-1.59.tar.gz 889036 SHA256 97d441ee62b948a47935adfab8b8fb01a7a654b1656b32b299a4a041e36bd351 SHA512 80f9b3f2edad66e7cd7ee7a6151b417eca4b750d9ad097ccaeb542814cf462c02238c287fb417b952aea985aba2abe5e433676555fe989cb5df1b076e93a097c WHIRLPOOL 7a7d065521cd807419c3222ac6258b20c8996aafebeb639c9d6a8c0077a59adee806212b1b89bbbb271b4e93709accfdbc191c1d30b212c520006eb685218d98
|
||||
DIST srecord-1.60.tar.gz 900389 SHA256 f579671c5ff3333e711616f738e751c742c2b4dd7f7553c90c37c9b6d4968d98 SHA512 12fe45e2a605268febd7cf2c41e262a57ff77ae3e1ffe84955d39a54ac6cd27175e376e861c8ed3f8025e691bd74b993117b79f7199a45c443c575fc22fe591a WHIRLPOOL 447d9c58d4af4291a634a3d0c2555a8643c624b3998af7d4d6d7e12785e3a1440e83f29e51b9ef446e3137e25bfbf15d423fc4821fef599e972d5cb2370848c0
|
||||
DIST srecord-1.61.tar.gz 916174 SHA256 b68d47b17ae50aee68655bb3b24e6d2434754a184d16510d4a6411d10bbdc364 SHA512 9bcd310bf812cf236a6b88e0aa5979510fc3fdcb622b631e923909ac12b9ff88ab8bc1f44006f0cdbffb51cb44e5885b46ff209bac9d71428f786d7d25a160ad WHIRLPOOL 4f2b8cd938be4a8026fc31e4a7b0d6618ee58f85aa0d2fea7fa9902b03c74ba043faf725e0ae7eec960ed2d2c342d554f46fa2ca640c14fb7c29812ad203bd47
|
||||
DIST srecord-1.62.tar.gz 921920 SHA256 04a4e18a43d1cb8fa608242a012b99a1bf85704915663f668c7cd55435accb2d SHA512 4a3dde671af959c24a12c711919e9028a22034d2ce347cfa0ecb7bc368036b21b38356156ff1e2d58a9fa1a0fece25e7913be5730e23c74a82734bc262cc2c88 WHIRLPOOL dd8916b2733d4cb57b9a321acc6ff0abc5e5b23c8eb864722f146a005e3719361b9e226d16393e4fcba875fa035d8347314bc00445d96e95f08302e0c3ca2483
|
||||
DIST srecord-1.63.tar.gz 938068 SHA256 78fec76d04424506e319f59b19a520428a7449ed087a67e1779fa2996992bf1a SHA512 6c6b37b3ff2dac06d1e6bac40cf29a3b8b6f120ccf97f7211fb6a5bd31ecbabb7cbebe98c7bbb61e2571bb9239d759a2784e426615747a7b91e089338058af2f WHIRLPOOL dfee24f2be5e076c76c00fc5bd06f225bc24e3fe0b47a0bf6a29f8cb58035d601374c7e1d5d11c365690887f1ba3a2ae400b5a1d8062d8b22e927625a4014419
|
||||
DIST srecord-1.64.tar.gz 942513 SHA256 49a4418733c508c03ad79a29e95acec9a2fbc4c7306131d2a8f5ef32012e67e2 SHA512 f96f2d9cd2c475d040c0474a35a17ebca2f0fb737856cdafe1227758a3e52176e4ab3e8577520c21e75e468d74fa98695128c02120734b6e92d8573e76af50b3 WHIRLPOOL e679a4b8b497a52a8617db3f509ce0776e7d33c823f8de3528fe3599fa2ad7cccc79c9743f4fecab023dc1d88c6de481f6091a0ef7c79f5672b399b08c3da5b6
|
||||
|
@ -1,39 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit eutils autotools
|
||||
|
||||
DESCRIPTION="A collection of powerful tools for manipulating EPROM load files"
|
||||
HOMEPAGE="http://srecord.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~sparc ~x86"
|
||||
IUSE="static-libs test"
|
||||
|
||||
RDEPEND="dev-libs/libgcrypt:0"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-libs/boost
|
||||
sys-apps/groff
|
||||
test? ( app-arch/sharutils )"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-1.57-libtool.patch
|
||||
|
||||
cp etc/configure.ac "${S}"
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_enable static-libs static)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${D}" -name '*.la' -exec rm -f {} +
|
||||
}
|
@ -1,39 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit eutils autotools
|
||||
|
||||
DESCRIPTION="A collection of powerful tools for manipulating EPROM load files"
|
||||
HOMEPAGE="http://srecord.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~sparc ~x86"
|
||||
IUSE="static-libs test"
|
||||
|
||||
RDEPEND="dev-libs/libgcrypt:0"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-libs/boost
|
||||
sys-apps/groff
|
||||
test? ( app-arch/sharutils )"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-1.57-libtool.patch
|
||||
|
||||
cp etc/configure.ac "${S}"
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_enable static-libs static)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${D}" -name '*.la' -exec rm -f {} +
|
||||
}
|
@ -1,39 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit eutils autotools
|
||||
|
||||
DESCRIPTION="A collection of powerful tools for manipulating EPROM load files"
|
||||
HOMEPAGE="http://srecord.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~sparc ~x86"
|
||||
IUSE="static-libs test"
|
||||
|
||||
RDEPEND="dev-libs/libgcrypt:0"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-libs/boost
|
||||
sys-apps/groff
|
||||
test? ( app-arch/sharutils )"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-1.57-libtool.patch
|
||||
|
||||
cp etc/configure.ac "${S}"
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_enable static-libs static)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${D}" -name '*.la' -exec rm -f {} +
|
||||
}
|
@ -1,39 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils autotools
|
||||
|
||||
DESCRIPTION="A collection of powerful tools for manipulating EPROM load files"
|
||||
HOMEPAGE="http://srecord.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~sparc ~x86"
|
||||
IUSE="static-libs test"
|
||||
|
||||
RDEPEND="dev-libs/libgcrypt:0"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-libs/boost
|
||||
sys-apps/groff
|
||||
test? ( app-arch/sharutils )"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-1.57-libtool.patch
|
||||
|
||||
cp etc/configure.ac "${S}"
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_enable static-libs static)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${D}" -name '*.la' -exec rm -f {} +
|
||||
}
|
@ -1,39 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils autotools
|
||||
|
||||
DESCRIPTION="A collection of powerful tools for manipulating EPROM load files"
|
||||
HOMEPAGE="http://srecord.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~sparc ~x86"
|
||||
IUSE="static-libs test"
|
||||
|
||||
RDEPEND="dev-libs/libgcrypt:0"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-libs/boost
|
||||
sys-apps/groff
|
||||
test? ( app-arch/sharutils )"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-1.57-libtool.patch
|
||||
|
||||
cp etc/configure.ac "${S}"
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_enable static-libs static)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${D}" -name '*.la' -exec rm -f {} +
|
||||
}
|
@ -0,0 +1,39 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="6"
|
||||
JAVA_PKG_IUSE="source"
|
||||
|
||||
inherit eutils java-pkg-2 java-ant-2
|
||||
|
||||
MY_A="apache-${P}-src"
|
||||
MY_P="${MY_A/-servlet-api/}"
|
||||
DESCRIPTION="Tomcat's Servlet API 3.0/JSP API 2.2 implementation"
|
||||
HOMEPAGE="http://tomcat.apache.org/"
|
||||
SRC_URI="mirror://apache/tomcat/tomcat-7/v${PV}/src/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="3.0"
|
||||
KEYWORDS="~amd64 ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=">=virtual/jdk-1.6"
|
||||
RDEPEND=">=virtual/jre-1.6"
|
||||
|
||||
S="${WORKDIR}/${MY_P}/"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
cp "${FILESDIR}/${SLOT}-build.xml" build.xml || die "Could not replace build.xml"
|
||||
rm -fR */*/build.xml ||die
|
||||
java-pkg_clean
|
||||
|
||||
java-pkg-2_src_prepare
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar "${S}"/output/build/lib/*.jar
|
||||
use source && java-pkg_dosrc java/javax/servlet/
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="6"
|
||||
JAVA_PKG_IUSE="source"
|
||||
|
||||
inherit eutils java-pkg-2 java-ant-2
|
||||
|
||||
MY_A="apache-${P}-src"
|
||||
MY_P="${MY_A/-servlet-api/}"
|
||||
DESCRIPTION="Tomcat's Servlet API 3.1/JSP API 2.3/EL API 3.0 implementation"
|
||||
HOMEPAGE="http://tomcat.apache.org/"
|
||||
SRC_URI="mirror://apache/tomcat/tomcat-8/v${PV}/src/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="3.1"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x64-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=">=virtual/jdk-1.7"
|
||||
RDEPEND=">=virtual/jre-1.7"
|
||||
|
||||
S="${WORKDIR}/${MY_P}/"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
cp "${FILESDIR}/${SLOT}-build.xml" build.xml || die "Could not replace build.xml"
|
||||
rm -fR */*/build.xml
|
||||
einfo "Removing bundled jars and classes"
|
||||
find "${S}" '(' -name '*.class' -o -name '*.jar' ')' -exec rm -frv {} +
|
||||
|
||||
java-pkg-2_src_prepare
|
||||
}
|
||||
|
||||
src_install() {
|
||||
java-pkg_dojar "${S}"/output/build/lib/*.jar
|
||||
use source && java-pkg_dosrc java/javax/servlet/
|
||||
}
|
@ -1,32 +1,101 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>php-bugs@gentoo.org</email>
|
||||
<name>PHP</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="cli">Enable CLI SAPI</flag>
|
||||
<flag name="embed">Enable embed SAPI</flag>
|
||||
<flag name="enchant">Add supports Enchant spelling library.</flag>
|
||||
<flag name="fileinfo">Add fileinfo extension support</flag>
|
||||
<flag name="filter">Add filter extension support</flag>
|
||||
<flag name="fpm">Enable the FastCGI Process Manager SAPI</flag>
|
||||
<flag name="gd">Adds support for gd (bundled with PHP)</flag>
|
||||
<flag name="hash">Enable the hash extension</flag>
|
||||
<flag name="json">Enable JSON support</flag>
|
||||
<flag name="ldap-sasl">Add SASL support for the PHP LDAP extension</flag>
|
||||
<flag name="libmysqlclient">Use libmyslclient driver for mysql, mysqli, PDO_Mysql (not recommended)</flag>
|
||||
<flag name="intl">Enables the intl extension for extended internalization support</flag>
|
||||
<flag name="opcache">Enables built-in opcode cache, replacing pecl-apc et.al</flag>
|
||||
<flag name="pdo">Enable the bundled PDO extensions</flag>
|
||||
<flag name="phar">Enables the phar extension to provide phar archive support</flag>
|
||||
<flag name="phpdbg">Enable the PHP Debug Command Line SAPI (like gdb for php)</flag>
|
||||
<flag name="xmlreader">Enable XMLReader support</flag>
|
||||
<flag name="xmlwriter">Enable XMLWriter support</flag>
|
||||
<flag name="xslt">Enable the XSL extension</flag>
|
||||
<flag name="vpx">Enable webp support for GD in php-5.x</flag>
|
||||
<flag name="webp">Enable webp support for GD in php-7.x</flag>
|
||||
<flag name="zip">Enable ZIP file support</flag>
|
||||
</use>
|
||||
<maintainer type="project">
|
||||
<email>php-bugs@gentoo.org</email>
|
||||
<name>PHP</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="cli">Enable CLI SAPI</flag>
|
||||
|
||||
<flag name="coverage">
|
||||
Include gcov symbols for test coverage and lcov reports. Only
|
||||
useful for extension developers, and requires GCC.
|
||||
</flag>
|
||||
|
||||
<flag name="embed">
|
||||
Enable embed SAPI
|
||||
</flag>
|
||||
|
||||
<flag name="enchant">
|
||||
Add supports Enchant spelling library.
|
||||
</flag>
|
||||
|
||||
<flag name="fileinfo">
|
||||
Add fileinfo extension support
|
||||
</flag>
|
||||
|
||||
<flag name="filter">
|
||||
Add filter extension support
|
||||
</flag>
|
||||
|
||||
<flag name="fpm">
|
||||
Enable the FastCGI Process Manager SAPI
|
||||
</flag>
|
||||
|
||||
<flag name="gd">
|
||||
Adds support for gd (bundled with PHP)
|
||||
</flag>
|
||||
|
||||
<flag name="hash">
|
||||
Enable the hash extension
|
||||
</flag>
|
||||
|
||||
<flag name="json">
|
||||
Enable JSON support
|
||||
</flag>
|
||||
|
||||
<flag name="ldap-sasl">
|
||||
Add SASL support for the PHP LDAP extension
|
||||
</flag>
|
||||
|
||||
<flag name="libmysqlclient">
|
||||
Use libmyslclient driver for mysql, mysqli, PDO_Mysql (not
|
||||
recommended)
|
||||
</flag>
|
||||
|
||||
<flag name="intl">
|
||||
Enables the intl extension for extended internalization support
|
||||
</flag>
|
||||
|
||||
<flag name="opcache">
|
||||
Enables built-in opcode cache, replacing pecl-apc et al.
|
||||
</flag>
|
||||
|
||||
<flag name="pdo">
|
||||
Enable the bundled PDO extensions
|
||||
</flag>
|
||||
|
||||
<flag name="phar">
|
||||
Enables the phar extension to provide phar archive support
|
||||
</flag>
|
||||
|
||||
<flag name="phpdbg">
|
||||
Enable the PHP Debug Command Line SAPI (like gdb for php)
|
||||
</flag>
|
||||
|
||||
<flag name="xmlreader">
|
||||
Enable XMLReader support
|
||||
</flag>
|
||||
|
||||
<flag name="xmlwriter">
|
||||
Enable XMLWriter support
|
||||
</flag>
|
||||
|
||||
<flag name="xslt">
|
||||
Enable the XSL extension
|
||||
</flag>
|
||||
|
||||
<flag name="vpx">
|
||||
Enable webp support for GD in php-5.x
|
||||
</flag>
|
||||
|
||||
<flag name="webp">
|
||||
Enable webp support for GD in php-7.x
|
||||
</flag>
|
||||
|
||||
<flag name="zip">
|
||||
Enable ZIP file support
|
||||
</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
|
@ -1,5 +1,3 @@
|
||||
DIST libtool-1.3.5.tar.gz 538884 SHA256 02e287ba621aa01ee581b0f88854deb222fa61e7e0fc55ed7685038354f0259f SHA512 e7e693da0e87bc3b178b270c1d5b0d46116d1624f6e3657ad75bc381bcbba8949ab0913fe3985c77e9dd0ee519df7da9c5ee3b4f6030ad1d4651de2e642c4bd6 WHIRLPOOL 038305555932f7554c5e50932a0bf8cd0f2a8007c26fdd21c81dc7c44ca9076d1086e3c05911f62719685bd7aa6b14463f3a1160bfbf6090bcdba6a162d95630
|
||||
DIST libtool-1.5.26.tar.gz 2961939 SHA256 1c35ae34fe85aa167bd7ab4bc9f477fe019138e1af62678d952fc43c0b7e2f09 SHA512 fcd39856c8cd457c97f176d5f6ce97fd93108808ce24315d179a7c9ca85bb90e799afaa83bc283ec627d73cfe0e0710d36a1ee8f39c9963cf2e806e64a0e0bcf WHIRLPOOL 0a56e666ee7ec79b74b500e761ebddc94fb3d322b1c29c3f9929071f71a339b3082faa486b75c7cfcf72182976a8d6152585ca92c08735a512c07eff80a24ec4
|
||||
DIST libtool-2.4.4.tar.xz 957476 SHA256 a8295b5853bf82a46635c944031e84970f2aa79c19df7a0c28f3ec8e11c07f6c SHA512 1ff24aa88962e0aae82e1fff41df7863f925627a506c6a663a79afa23729272aa4e5816889dd4697d5286d42483bcee2cc7352514768f1bd28ea546476074a84 WHIRLPOOL def0381a3608b52f8f5e9b83d297643d48d3e695117199b10b4ae3d6f5b11f3d3a36c4b6572b7659061c3fee77e46da4f5e3cfffa594063fed0fe382869c3539
|
||||
DIST libtool-2.4.5.tar.xz 971620 SHA256 84aac136513b009278896ffa255e4d685bcdb0cb0e5363be36adad64c986177e SHA512 67ceb387e33fbf0ffe6df422cd26939e305a365bb22674ce064ed7f7d6602054682515b014e290c70587b7f9b6f85f00fac31d6f000b4b022daaa2b343c17327 WHIRLPOOL 4a5171a8f23d50b78eb70bbd2ff9497fe2a970933392c65c41ab44600838cdc744e4e9ddfef37ac009cf5784de8c7b1ef061f8156919b7417e78529978afe7ed
|
||||
DIST libtool-2.4.6.tar.xz 973080 SHA256 7c87a8c2c8c0fc9cd5019e402bed4292462d00a718a7cd5f11218153bf28b26f SHA512 a6eef35f3cbccf2c9e2667f44a476ebc80ab888725eb768e91a3a6c33b8c931afc46eb23efaee76c8696d3e4eed74ab1c71157bcb924f38ee912c8a90a6521a4 WHIRLPOOL f6e1ea25cc8dd853f0de53c045bcd1166cfede9cb0e890079c2c05e6cbdb5e705e137f83ba32f7e16691b9c9108e9cfb2d14ed030cea07b6eacbe3f1ae18a73b
|
||||
|
@ -1,44 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit multilib-minimal
|
||||
|
||||
MY_P="libtool-${PV}"
|
||||
|
||||
DESCRIPTION="A shared library tool for developers"
|
||||
HOMEPAGE="https://www.gnu.org/software/libtool/"
|
||||
SRC_URI="mirror://gnu/libtool/${MY_P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="static-libs"
|
||||
# libltdl doesn't have a testsuite.
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="!<sys-devel/libtool-2.4.3-r2:2
|
||||
abi_x86_32? (
|
||||
!<=app-emulation/emul-linux-x86-baselibs-20140406-r2
|
||||
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
|
||||
)"
|
||||
DEPEND="app-arch/xz-utils"
|
||||
|
||||
S="${WORKDIR}/${MY_P}/libltdl"
|
||||
|
||||
multilib_src_configure() {
|
||||
ECONF_SOURCE=${S} \
|
||||
econf \
|
||||
--enable-ltdl-install \
|
||||
$(use_enable static-libs static)
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
# While the libltdl.la file is not used directly, the m4 ltdl logic
|
||||
# keys off of its existence when searching for ltdl support. #293921
|
||||
#use static-libs || find "${D}" -name libltdl.la -delete
|
||||
}
|
@ -1,44 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit multilib-minimal
|
||||
|
||||
MY_P="libtool-${PV}"
|
||||
|
||||
DESCRIPTION="A shared library tool for developers"
|
||||
HOMEPAGE="https://www.gnu.org/software/libtool/"
|
||||
SRC_URI="mirror://gnu/libtool/${MY_P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="static-libs"
|
||||
# libltdl doesn't have a testsuite.
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="!<sys-devel/libtool-2.4.3-r2:2
|
||||
abi_x86_32? (
|
||||
!<=app-emulation/emul-linux-x86-baselibs-20140406-r2
|
||||
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
|
||||
)"
|
||||
DEPEND="app-arch/xz-utils"
|
||||
|
||||
S="${WORKDIR}/${MY_P}/libltdl"
|
||||
|
||||
multilib_src_configure() {
|
||||
ECONF_SOURCE=${S} \
|
||||
econf \
|
||||
--enable-ltdl-install \
|
||||
$(use_enable static-libs static)
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
# While the libltdl.la file is not used directly, the m4 ltdl logic
|
||||
# keys off of its existence when searching for ltdl support. #293921
|
||||
#use static-libs || find "${D}" -name libltdl.la -delete
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST librdkafka-0.9.1.tar.gz 478341 SHA256 5ad57e0c9a4ec8121e19f13f05bacc41556489dfe8f46ff509af567fdee98d82 SHA512 d2023cc6f976ad7440b25cffd1b59587f6497febd7ac1a6d76eb7799d294210f20170063fe25f2eb1eb3cc373df791526d1bc8d0ffbb0bef4519dae89b177147 WHIRLPOOL a54a6ee8f0db0ee13de80f86ef1f53d1667fb48e8e27016f2c497b448aa6a33b8073c022255e8e9f48b3497266872862d2ba717f7fed0a39a01f72936115b7b5
|
||||
DIST librdkafka-0.9.2.tar.gz 620799 SHA256 c243b66956ebb196510ee0efda67825467e31b93639d5f24eb082b5d83f56824 SHA512 12a7da8de59de684da527ab969cd84dc8602741e9208941e1c7ad6dc69774bcbc3fbde0620d48c300372fa20b15aa826d309b71730119d82ec578e274c241152 WHIRLPOOL 7786443d9f365303ce0aad8278d83684999b23529e57fa08757fa38cce63f3944a3942475154bd613a0fb3e419c822a5651a00005eb77ed8f32f11689c11b924
|
||||
|
@ -0,0 +1,73 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Apache Kafka C/C++ client library"
|
||||
HOMEPAGE="https://github.com/edenhill/librdkafka"
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="
|
||||
git://github.com/edenhill/${PN}.git
|
||||
https://github.com/edenhill/${PN}.git
|
||||
"
|
||||
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://github.com/edenhill/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm ~hppa ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="BSD-2"
|
||||
|
||||
# subslot = soname version
|
||||
SLOT="0/1"
|
||||
|
||||
IUSE="sasl ssl static-libs"
|
||||
|
||||
RDEPEND="
|
||||
sasl? ( dev-libs/cyrus-sasl:= )
|
||||
ssl? ( dev-libs/openssl:0= )
|
||||
sys-libs/zlib
|
||||
"
|
||||
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
tc-export CC CXX LD NM OBJDUMP PKG_CONFIG STRIP
|
||||
|
||||
local myeconf=(
|
||||
--no-cache
|
||||
--no-download
|
||||
--disable-debug-symbols
|
||||
$(use_enable sasl)
|
||||
$(usex static-libs '--enable-static' '')
|
||||
$(use_enable ssl)
|
||||
)
|
||||
|
||||
econf ${myeconf[@]}
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake -C tests run_local
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local DOCS=(
|
||||
README.md
|
||||
CONFIGURATION.md
|
||||
INTRODUCTION.md
|
||||
)
|
||||
|
||||
default
|
||||
|
||||
if ! use static-libs; then
|
||||
find "${ED}"usr/lib* -name '*.la' -o -name '*.a' -delete || die
|
||||
fi
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST ming-0.4.5.tar.bz2 14234048 SHA256 82da089bdfc3a7fcb732dc11c11a35003ee270d5102d4043d61ea69834239aeb SHA512 9e5a2fb558841e72a072e2c29a0871dc7056ab57f1e6feca864b9b0961841334c4d2c6bc731bc4e043eb96b63fb946738cb1b8b54ef45679fcbf9bcf82adea31 WHIRLPOOL 2315adb1ed2b8878843ce5eef54f7c4386a69c809820aa4d2040fe4d94c0fa367cc57966a78e327f6a578c99b3ed4b1fa5d352106df9283f3b2d7f87a1178203
|
||||
DIST ming-0_4_7.tar.gz 14903570 SHA256 118aa1338dd74b34dd2cd22bce286ca0571e8b9aa433999646d1c0157ea9a7dc SHA512 232cf45daabd7b60203c9382aa6568455a42ddcd1bd60eec9bfe3f5e80376fcc9ff6304efbafca1ac8a504e2e167bc394e4902e0d067303d9582551461e09d3c WHIRLPOOL 075794f170e7f529ba79a66af4504745da786d7cd73e9673ffd4c48e943fbc8bf1f952f1cc0b0b7b0ca1e26a3bdb255feeaaeb675032616d2060c40f19d4dbdd
|
||||
|
@ -0,0 +1,46 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PHP_EXT_NAME=ming
|
||||
MY_P="${PHP_EXT_NAME}-${PV//./_}"
|
||||
USE_PHP="php5-6"
|
||||
PHP_EXT_S="libming-${MY_P}/php_ext"
|
||||
inherit flag-o-matic php-ext-source-r3
|
||||
|
||||
DESCRIPTION="PHP extension for the ming Flash movie generation library"
|
||||
HOMEPAGE="http://ming.sourceforge.net/"
|
||||
SRC_URI="https://github.com/libming/libming/archive/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="media-libs/ming"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S="${WORKDIR}/libming-${MY_P}"
|
||||
|
||||
src_prepare() {
|
||||
local slot orig_s="${PHP_EXT_S}"
|
||||
for slot in $(php_get_slots); do
|
||||
cp "${FILESDIR}/php_ext-config.m4" "${WORKDIR}/${slot}/config.m4" || \
|
||||
die "Failed to copy config.m4 to target"
|
||||
rm "${WORKDIR}/${slot}/Makefile.am" || die "Failed to remove Makefile.am for ${slot}"
|
||||
php_init_slot_env ${slot}
|
||||
eapply -p0 "${FILESDIR}/ming-php-54.patch"
|
||||
eapply_user
|
||||
php-ext-source-r3_phpize
|
||||
done
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# build is sensitive to -O3 (bug #297437)
|
||||
replace-flags -O3 -O2
|
||||
|
||||
local PHP_EXT_EXTRA_ECONF="--with-ming=${S}"
|
||||
php-ext-source-r3_src_configure
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST QtPy-1.1.2.tar.gz 14390 SHA256 2abb462decc80fa4f0ba9ff18feaaab21a765d7d2d0808120f001f9a4c385946 SHA512 5f610e60ac6ed2f2b0eed59dd24537b34ccff8816afad059e056f47dd95d2dd49939ec6e0ebb816520a2ef075d8f9619903a4b2c79f18ed12e16eb60718e5c1d WHIRLPOOL 297112c79003b868aadbe404f70926bdbc0045c852b1f5f8d6000d0e7ce74c46a54667e7117787d1b5488e71a3120ef1553a3abb3d0f26f5416441c9314dac86
|
@ -0,0 +1,38 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Abtraction layer for PyQt5/PyQt4/PySide"
|
||||
HOMEPAGE="https://github.com/spyder-ide/qtpy"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
IUSE="designer gui svg testlib webkit"
|
||||
|
||||
RDEPEND="
|
||||
|| (
|
||||
dev-python/PyQt5[${PYTHON_USEDEP},designer=,svg=,webkit=]
|
||||
dev-python/PyQt4[${PYTHON_USEDEP},designer=,svg=,webkit=]
|
||||
dev-python/pyside[${PYTHON_USEDEP},designer=,svg=,webkit=]
|
||||
)
|
||||
gui? ( || (
|
||||
dev-python/PyQt5[${PYTHON_USEDEP},gui]
|
||||
dev-python/PyQt4[${PYTHON_USEDEP},X]
|
||||
dev-python/pyside[${PYTHON_USEDEP},X]
|
||||
) )
|
||||
testlib? ( || (
|
||||
dev-python/PyQt5[${PYTHON_USEDEP},testlib]
|
||||
dev-python/PyQt4[${PYTHON_USEDEP},testlib]
|
||||
dev-python/pyside[${PYTHON_USEDEP},X]
|
||||
) )"
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>python@gentoo.org</email>
|
||||
<name>Gentoo Python Project</name>
|
||||
</maintainer>
|
||||
<longdescription>
|
||||
QtPy is a small abstraction layer that lets you write
|
||||
applications using a single API call to either PyQt or
|
||||
PySide. QtPy also provides a set of additional QWidgets. It
|
||||
provides support for PyQt5, PyQt4 and PySide using the PyQt5
|
||||
layout (where the QtGui module has been split into QtGui and
|
||||
QtWidgets).
|
||||
Basically, you write your code as if you were using PyQt5 but
|
||||
import qt from QtPy instead of PyQt5.
|
||||
</longdescription>
|
||||
<use>
|
||||
<flag name="designer">Build bindings for the QtDesigner module and enable the designer plugin</flag>
|
||||
<flag name="gui">Build bindings for the QtGui module</flag>
|
||||
<flag name="svg">Build bindings for the QtSvg module</flag>
|
||||
<flag name="testlib">Build bindings for the QtTest module</flag>
|
||||
<flag name="webkit">Build bindings for the QtWebKit module</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
@ -0,0 +1,43 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python{2_7,3_4,3_5} )
|
||||
|
||||
inherit distutils-r1 flag-o-matic
|
||||
|
||||
MY_PV=${PV/_p/-r}
|
||||
MY_P=${PN}-${MY_PV}
|
||||
|
||||
DESCRIPTION="APSW - Another Python SQLite Wrapper"
|
||||
HOMEPAGE="https://github.com/rogerbinns/apsw/"
|
||||
SRC_URI="https://github.com/rogerbinns/apsw/releases/download/${MY_PV}/${MY_P}.zip -> ${P}.zip"
|
||||
|
||||
LICENSE="ZLIB"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ppc64 ~x86"
|
||||
IUSE="doc"
|
||||
|
||||
RDEPEND=">=dev-db/sqlite-${PV%_p*}"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/unzip"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}-3.6.20.1-fix_tests.patch" )
|
||||
|
||||
python_compile() {
|
||||
python_is_python3 || append-cflags -fno-strict-aliasing
|
||||
distutils-r1_python_compile --enable=load_extension
|
||||
}
|
||||
|
||||
python_test() {
|
||||
"${PYTHON}" setup.py build_test_extension || die "Building of test loadable extension failed"
|
||||
"${PYTHON}" tests.py -v || die "Tests failed under ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( doc/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST ginga-2.6.0.tar.gz 12682426 SHA256 ae4661cc2438cafcd66281172776e6968255482d122a154030bc815c19e0afd4 SHA512 b07fc8a20f17173682bfce5190200f3080dff12fae73e06e1447ebdfe1dc98362e03bd2ed5c524fce0ffcd15e3b74170c97a74222f7601f25e9e5bf0bd93148a WHIRLPOOL 430f9e0585f1b4546400ca9ba89eda1a81d88fd62ebade5d907d069f3f19e6155d7b7c8bdaa9186ba306873a1d41f7cfb64ed5f2262a96eb1c5e06f4a1027d82
|
@ -0,0 +1,19 @@
|
||||
From: Ole Streicher <olebole@debian.org>
|
||||
Date: Tue, 2 Aug 2016 09:06:36 +0200
|
||||
Subject: Don't install the fonts included in the package.
|
||||
|
||||
Use the package roboto-fonts-unhinted instead.
|
||||
---
|
||||
ginga/fonts/setup_package.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/ginga/fonts/setup_package.py b/ginga/fonts/setup_package.py
|
||||
index 9dd1e93..fe0ed0a 100644
|
||||
--- a/ginga/fonts/setup_package.py
|
||||
+++ b/ginga/fonts/setup_package.py
|
||||
@@ -3,4 +3,4 @@ from __future__ import absolute_import
|
||||
|
||||
|
||||
def get_package_data():
|
||||
- return {'ginga.fonts': ['*/*.ttf', '*/*.txt']}
|
||||
+ return {}
|
@ -0,0 +1,79 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_5} )
|
||||
PYTHON_REQ_USE='tk?'
|
||||
|
||||
inherit distutils-r1 eutils fdo-mime
|
||||
|
||||
DESCRIPTION="Astronomical image toolkit for Python"
|
||||
HOMEPAGE="https://ejeschke.github.io/ginga"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
IUSE="doc examples gtk qt4 qt5 test tk"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/astropy[${PYTHON_USEDEP}]
|
||||
media-fonts/roboto
|
||||
gtk? ( dev-python/pygobject[${PYTHON_USEDEP},cairo] )
|
||||
qt4? ( || (
|
||||
dev-python/pyside[${PYTHON_USEDEP},help,X]
|
||||
dev-python/PyQt4[${PYTHON_USEDEP},help,X]
|
||||
) )
|
||||
qt5? ( dev-python/PyQt5[${PYTHON_USEDEP},help,gui,widgets] )"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/astropy-helpers[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PN}-no-roboto.patch )
|
||||
|
||||
python_prepare_all() {
|
||||
# use system astropy-helpers instead of bundled one
|
||||
sed -i -e '/auto_use/s/True/False/' setup.cfg || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
if use doc; then
|
||||
python_setup
|
||||
PYTHONPATH="${BUILD_DIR}"/lib esetup.py build_sphinx --no-intersphinx
|
||||
fi
|
||||
}
|
||||
|
||||
python_test() {
|
||||
esetup.py test
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( doc/_build/html/. )
|
||||
distutils-r1_python_install_all
|
||||
rm -r "${ED%/}"/usr/lib*/*/*/ginga/examples || die
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r ginga/examples
|
||||
fi
|
||||
domenu ginga.desktop
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "Pick, Cuts, Histogram, LineProfile" \
|
||||
dev-python/matplotlib sci-libs/scipy
|
||||
optfeature "Online help browser" dev-qt/qtwebkit
|
||||
optfeature "To save a movie" media-video/mplayer
|
||||
optfeature "Speeds up rotation and some transformations" \
|
||||
dev-python/numexpr dev-python/opencv dev-python/pyopencl
|
||||
optfeature "Aids in identifying files when opening them" \
|
||||
dev-python/filemagic
|
||||
optfeature "Useful for various RGB file manipulations" dev-python/pillow
|
||||
|
||||
# Update mimedb for the new .desktop file
|
||||
fdo-mime_desktop_database_update
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>sci-astronomy@gentoo.org</email>
|
||||
<name>Gentoo Astronomy Project</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
Ginga is a toolkit designed for building viewers for scientific image
|
||||
data in Python, visualizing 2D pixel data in numpy arrays.
|
||||
It can view astronomical data such as contained in files based on the
|
||||
FITS (Flexible Image Transport System) file format. It is written and
|
||||
is maintained by software engineers at the Subaru Telescope, National
|
||||
Astronomical Observatory of Japan.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="pypi">ginga</remote-id>
|
||||
<remote-id type="github">ejeschke/ginga</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1,2 +1,2 @@
|
||||
DIST glueviz-0.8.1.tar.gz 11283626 SHA256 b7bfd5bfaddb454a233aadbf5f73b98e51b9ba31882a046ac8969ae7c1a19461 SHA512 99cccd232d38efdce5119051f78c33192a4c1e8482f5545c7714e68680dc20abb36451da5ce79e6402cadb2590762c5811cdd06c18aa3a0b7d6baa7f7f5498af WHIRLPOOL dfbedfa7bd843e3e69d3a195404d2ecd1b20a4c7908894adfbe123d384c915f4c0efc039e332147d5c4988b193f681e546ae54cb017c8643664911c43564909e
|
||||
DIST glueviz-0.8.2.tar.gz 11289722 SHA256 db07e5c9685feaeba0cb5375602177964b093880b82fc21cf97a9580474eec18 SHA512 9a05043293531094059265f505d1688b5111a4efe3aa025e18463f347f7209af825325454130cd991c2fcf7ffad26459f58268754e858d40d1f997bd014b101d WHIRLPOOL 7c9fd61494895780e8badae892abb4fa70f590568e30149023d2a2cb6a65e38f2975c6e0b7d87221cb83e45d3df59e5f0c8449766001446eca5332498dbcb12c
|
||||
DIST glueviz-0.9.1.tar.gz 12229471 SHA256 b0cd6de792ca5812bae7a033b96acafcf9fa7ab49919c2dc876b8cea877c4fce SHA512 d4b8e476c3ec37a873084cbe1e0c3019aa7bfe7d5d03af4cc1d6d14474200060d0a8a608e90024ab0aaf10d71f85a2c82ae1371e2a5d14f7c91ca5d979c25d30 WHIRLPOOL 220127d131692bceb899a65ca4f3b13720b8eb835c66b6d3b09ee3ff1f70f65cb1c18ba64ba2dfdb791d4d6e83a332d3ba405f7871b3c7f812cb7e0363d7da43
|
||||
|
@ -0,0 +1 @@
|
||||
DIST prometheus_client-0.0.18.tar.gz 38102 SHA256 ea484439f7484af1c9137324a6cb2e920a5b9e968a66dbd02700e0329b631e6d SHA512 97291948b9ccabec7747b1059d30c7707358a95b03d278037a4d7b02ee9d3390d995425891e4c6a59ffb7aedf1f957a31093d14ac1ed254764f5768ec3a7b784 WHIRLPOOL 5e873d242c98e77612a9a5b40872f7760411e6bb7aefe5491077d5e6a778ddccb420830ae32e8ea20e39e7711c7e166a91df1e8e67968a2c454ef4d3f0156242
|
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>mrueg@gentoo.org</email>
|
||||
<name>Manuel Rüger</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>python@gentoo.org</email>
|
||||
<name>Python</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">prometheus/client_python</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -0,0 +1,28 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_4,3_5} )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python client for the Prometheus monitoring system"
|
||||
HOMEPAGE="https://pypi.python.org/pypi/prometheus_client"
|
||||
SRC_URI="https://github.com/prometheus/client_python/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="test"
|
||||
|
||||
S=${WORKDIR}/client_python-${PV}
|
||||
|
||||
RDEPEND="dev-python/twisted[${PYTHON_USEDEP}]"
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? ( ${RDEPEND}
|
||||
dev-python/pytest[${PYTHON_USEDEP}] )"
|
||||
|
||||
python_test() {
|
||||
pytest || die
|
||||
}
|
@ -0,0 +1,340 @@
|
||||
http://bugs.python.org/issue1222585
|
||||
http://bugs.gentoo.org/show_bug.cgi?id=599918
|
||||
|
||||
diff -Naur pypy2-v5.6.0-src/lib-python/2.7/_osx_support.py pypy2-v5.6.0-src-patched/lib-python/2.7/_osx_support.py
|
||||
--- pypy2-v5.6.0-src/lib-python/2.7/_osx_support.py 2016-11-08 09:52:16.000000000 +0100
|
||||
+++ pypy2-v5.6.0-src-patched/lib-python/2.7/_osx_support.py 2016-12-08 16:59:26.213690338 +0100
|
||||
@@ -14,13 +14,13 @@
|
||||
# configuration variables that may contain universal build flags,
|
||||
# like "-arch" or "-isdkroot", that may need customization for
|
||||
# the user environment
|
||||
-_UNIVERSAL_CONFIG_VARS = ('CFLAGS', 'LDFLAGS', 'CPPFLAGS', 'BASECFLAGS',
|
||||
- 'BLDSHARED', 'LDSHARED', 'CC', 'CXX',
|
||||
- 'PY_CFLAGS', 'PY_LDFLAGS', 'PY_CPPFLAGS',
|
||||
- 'PY_CORE_CFLAGS')
|
||||
+_UNIVERSAL_CONFIG_VARS = ('CFLAGS', 'CXXFLAGS', 'LDFLAGS', 'CPPFLAGS',
|
||||
+ 'BASECFLAGS', 'BLDSHARED', 'LDSHARED', 'LDCXXSHARED',
|
||||
+ 'CC', 'CXX', 'PY_CFLAGS', 'PY_LDFLAGS',
|
||||
+ 'PY_CPPFLAGS', 'PY_CORE_CFLAGS')
|
||||
|
||||
# configuration variables that may contain compiler calls
|
||||
-_COMPILER_CONFIG_VARS = ('BLDSHARED', 'LDSHARED', 'CC', 'CXX')
|
||||
+_COMPILER_CONFIG_VARS = ('BLDSHARED', 'LDSHARED', 'LDCXXSHARED', 'CC', 'CXX')
|
||||
|
||||
# prefix added to original configuration variable names
|
||||
_INITPRE = '_OSX_SUPPORT_INITIAL_'
|
||||
diff -Naur pypy2-v5.6.0-src/lib-python/2.7/distutils/sysconfig_pypy.py pypy2-v5.6.0-src-patched/lib-python/2.7/distutils/sysconfig_pypy.py
|
||||
--- pypy2-v5.6.0-src/lib-python/2.7/distutils/sysconfig_pypy.py 2016-11-08 09:52:16.000000000 +0100
|
||||
+++ pypy2-v5.6.0-src-patched/lib-python/2.7/distutils/sysconfig_pypy.py 2016-12-08 17:01:33.594553801 +0100
|
||||
@@ -126,19 +126,56 @@
|
||||
setattr(compiler, executable, command)
|
||||
|
||||
if compiler.compiler_type == "unix":
|
||||
- compiler.compiler_so.extend(['-O2', '-fPIC', '-Wimplicit'])
|
||||
+ cc = ' '.join(compiler.compiler)
|
||||
+ cxx = ' '.join(compiler.compiler_cxx)
|
||||
+ ldshared = ' '.join(compiler.linker_so)
|
||||
+ ldcxxshared = ' '.join(compiler.linker_so_cxx)
|
||||
+
|
||||
+ cflags = ''
|
||||
+ cxxflags = ''
|
||||
+ ccshared = '-fPIC'
|
||||
+
|
||||
+ if 'CC' in os.environ:
|
||||
+ cc = os.environ['CC']
|
||||
+ if 'CXX' in os.environ:
|
||||
+ cxx = os.environ['CXX']
|
||||
+ if 'LDSHARED' in os.environ:
|
||||
+ ldshared = os.environ['LDSHARED']
|
||||
+ if 'LDCXXSHARED' in os.environ:
|
||||
+ ldcxxshared = os.environ['LDCXXSHARED']
|
||||
+ if 'CPP' in os.environ:
|
||||
+ cpp = os.environ['CPP']
|
||||
+ else:
|
||||
+ cpp = cc + " -E" # not always
|
||||
+ if 'CPPFLAGS' in os.environ:
|
||||
+ cpp = cpp + ' ' + os.environ['CPPFLAGS']
|
||||
+ cflags = cflags + ' ' + os.environ['CPPFLAGS']
|
||||
+ cxxflags = cxxflags + ' ' + os.environ['CPPFLAGS']
|
||||
+ ldshared = ldshared + ' ' + os.environ['CPPFLAGS']
|
||||
+ ldcxxshared = ldcxxshared + ' ' + os.environ['CPPFLAGS']
|
||||
+ if 'CFLAGS' in os.environ:
|
||||
+ cflags = os.environ['CFLAGS']
|
||||
+ ldshared = ldshared + ' ' + os.environ['CFLAGS']
|
||||
+ if 'CXXFLAGS' in os.environ:
|
||||
+ cxxflags = os.environ['CXXFLAGS']
|
||||
+ ldcxxshared = ldcxxshared + ' ' + os.environ['CXXFLAGS']
|
||||
+ if 'LDFLAGS' in os.environ:
|
||||
+ ldshared = ldshared + ' ' + os.environ['LDFLAGS']
|
||||
+ ldcxxshared = ldcxxshared + ' ' + os.environ['LDFLAGS']
|
||||
+
|
||||
+ cc_cmd = cc + ' ' + cflags
|
||||
+ cxx_cmd = cxx + ' ' + cxxflags
|
||||
+ compiler.set_executables(
|
||||
+ preprocessor=cpp,
|
||||
+ compiler=cc_cmd,
|
||||
+ compiler_so=cc_cmd + ' ' + ccshared,
|
||||
+ compiler_cxx=cxx_cmd,
|
||||
+ compiler_so_cxx=cxx_cmd + ' ' + ccshared,
|
||||
+ linker_so=ldshared,
|
||||
+ linker_exe=cc,
|
||||
+ linker_so_cxx=ldcxxshared,
|
||||
+ linker_exe_cxx=cxx)
|
||||
compiler.shared_lib_extension = get_config_var('SO')
|
||||
- if "CPPFLAGS" in os.environ:
|
||||
- cppflags = shlex.split(os.environ["CPPFLAGS"])
|
||||
- for executable in ('compiler', 'compiler_so', 'linker_so'):
|
||||
- customize(executable, cppflags)
|
||||
- if "CFLAGS" in os.environ:
|
||||
- cflags = shlex.split(os.environ["CFLAGS"])
|
||||
- for executable in ('compiler', 'compiler_so', 'linker_so'):
|
||||
- customize(executable, cflags)
|
||||
- if "LDFLAGS" in os.environ:
|
||||
- ldflags = shlex.split(os.environ["LDFLAGS"])
|
||||
- customize('linker_so', ldflags)
|
||||
|
||||
|
||||
from sysconfig_cpython import (
|
||||
diff -Naur pypy2-v5.6.0-src/lib-python/2.7/distutils/cygwinccompiler.py pypy2-v5.6.0-src-patched/lib-python/2.7/distutils/cygwinccompiler.py
|
||||
--- pypy2-v5.6.0-src/lib-python/2.7/distutils/cygwinccompiler.py 2016-11-08 09:52:16.000000000 +0100
|
||||
+++ pypy2-v5.6.0-src-patched/lib-python/2.7/distutils/cygwinccompiler.py 2016-12-08 16:59:26.213690338 +0100
|
||||
@@ -120,8 +120,10 @@
|
||||
# dllwrap 2.10.90 is buggy
|
||||
if self.ld_version >= "2.10.90":
|
||||
self.linker_dll = "gcc"
|
||||
+ self.linker_dll_cxx = "g++"
|
||||
else:
|
||||
self.linker_dll = "dllwrap"
|
||||
+ self.linker_dll_cxx = "dllwrap"
|
||||
|
||||
# ld_version >= "2.13" support -shared so use it instead of
|
||||
# -mdll -static
|
||||
@@ -135,9 +137,13 @@
|
||||
self.set_executables(compiler='gcc -mcygwin -O -Wall',
|
||||
compiler_so='gcc -mcygwin -mdll -O -Wall',
|
||||
compiler_cxx='g++ -mcygwin -O -Wall',
|
||||
+ compiler_so_cxx='g++ -mcygwin -mdll -O -Wall',
|
||||
linker_exe='gcc -mcygwin',
|
||||
linker_so=('%s -mcygwin %s' %
|
||||
- (self.linker_dll, shared_option)))
|
||||
+ (self.linker_dll, shared_option)),
|
||||
+ linker_exe_cxx='g++ -mcygwin',
|
||||
+ linker_so_cxx=('%s -mcygwin %s' %
|
||||
+ (self.linker_dll_cxx, shared_option)))
|
||||
|
||||
# cygwin and mingw32 need different sets of libraries
|
||||
if self.gcc_version == "2.91.57":
|
||||
@@ -163,8 +169,12 @@
|
||||
raise CompileError, msg
|
||||
else: # for other files use the C-compiler
|
||||
try:
|
||||
- self.spawn(self.compiler_so + cc_args + [src, '-o', obj] +
|
||||
- extra_postargs)
|
||||
+ if self.detect_language(src) == 'c++':
|
||||
+ self.spawn(self.compiler_so_cxx + cc_args + [src, '-o', obj] +
|
||||
+ extra_postargs)
|
||||
+ else:
|
||||
+ self.spawn(self.compiler_so + cc_args + [src, '-o', obj] +
|
||||
+ extra_postargs)
|
||||
except DistutilsExecError, msg:
|
||||
raise CompileError, msg
|
||||
|
||||
@@ -330,9 +340,14 @@
|
||||
self.set_executables(compiler='gcc%s -O -Wall' % no_cygwin,
|
||||
compiler_so='gcc%s -mdll -O -Wall' % no_cygwin,
|
||||
compiler_cxx='g++%s -O -Wall' % no_cygwin,
|
||||
+ compiler_so_cxx='g++%s -mdll -O -Wall' % no_cygwin,
|
||||
linker_exe='gcc%s' % no_cygwin,
|
||||
linker_so='%s%s %s %s'
|
||||
% (self.linker_dll, no_cygwin,
|
||||
+ shared_option, entry_point),
|
||||
+ linker_exe_cxx='g++%s' % no_cygwin,
|
||||
+ linker_so_cxx='%s%s %s %s'
|
||||
+ % (self.linker_dll_cxx, no_cygwin,
|
||||
shared_option, entry_point))
|
||||
# Maybe we should also append -mthreads, but then the finished
|
||||
# dlls need another dll (mingwm10.dll see Mingw32 docs)
|
||||
diff -Naur pypy2-v5.6.0-src/lib-python/2.7/distutils/emxccompiler.py pypy2-v5.6.0-src-patched/lib-python/2.7/distutils/emxccompiler.py
|
||||
--- pypy2-v5.6.0-src/lib-python/2.7/distutils/emxccompiler.py 2016-11-08 09:52:16.000000000 +0100
|
||||
+++ pypy2-v5.6.0-src-patched/lib-python/2.7/distutils/emxccompiler.py 2016-12-08 16:59:26.213690338 +0100
|
||||
@@ -65,8 +65,12 @@
|
||||
# XXX optimization, warnings etc. should be customizable.
|
||||
self.set_executables(compiler='gcc -Zomf -Zmt -O3 -fomit-frame-pointer -mprobe -Wall',
|
||||
compiler_so='gcc -Zomf -Zmt -O3 -fomit-frame-pointer -mprobe -Wall',
|
||||
+ compiler_cxx='g++ -Zomf -Zmt -O3 -fomit-frame-pointer -mprobe -Wall',
|
||||
+ compiler_so_cxx='g++ -Zomf -Zmt -O3 -fomit-frame-pointer -mprobe -Wall',
|
||||
linker_exe='gcc -Zomf -Zmt -Zcrtdll',
|
||||
- linker_so='gcc -Zomf -Zmt -Zcrtdll -Zdll')
|
||||
+ linker_so='gcc -Zomf -Zmt -Zcrtdll -Zdll',
|
||||
+ linker_exe_cxx='g++ -Zomf -Zmt -Zcrtdll',
|
||||
+ linker_so_cxx='g++ -Zomf -Zmt -Zcrtdll -Zdll')
|
||||
|
||||
# want the gcc library statically linked (so that we don't have
|
||||
# to distribute a version dependent on the compiler we have)
|
||||
@@ -83,8 +87,12 @@
|
||||
raise CompileError, msg
|
||||
else: # for other files use the C-compiler
|
||||
try:
|
||||
- self.spawn(self.compiler_so + cc_args + [src, '-o', obj] +
|
||||
- extra_postargs)
|
||||
+ if self.detect_language(src) == 'c++':
|
||||
+ self.spawn(self.compiler_so_cxx + cc_args + [src, '-o', obj] +
|
||||
+ extra_postargs)
|
||||
+ else:
|
||||
+ self.spawn(self.compiler_so + cc_args + [src, '-o', obj] +
|
||||
+ extra_postargs)
|
||||
except DistutilsExecError, msg:
|
||||
raise CompileError, msg
|
||||
|
||||
diff -Naur pypy2-v5.6.0-src/lib-python/2.7/distutils/sysconfig_cpython.py pypy2-v5.6.0-src-patched/lib-python/2.7/distutils/sysconfig_cpython.py
|
||||
--- pypy2-v5.6.0-src/lib-python/2.7/distutils/sysconfig_cpython.py 2016-11-08 09:52:16.000000000 +0100
|
||||
+++ pypy2-v5.6.0-src-patched/lib-python/2.7/distutils/sysconfig_cpython.py 2016-12-08 16:59:26.213690338 +0100
|
||||
@@ -171,10 +171,12 @@
|
||||
_osx_support.customize_compiler(_config_vars)
|
||||
_config_vars['CUSTOMIZED_OSX_COMPILER'] = 'True'
|
||||
|
||||
- (cc, cxx, opt, cflags, ccshared, ldshared, so_ext, ar, ar_flags) = \
|
||||
- get_config_vars('CC', 'CXX', 'OPT', 'CFLAGS',
|
||||
- 'CCSHARED', 'LDSHARED', 'SO', 'AR',
|
||||
- 'ARFLAGS')
|
||||
+ (cc, cxx, ccshared, ldshared, ldcxxshared, so_ext, ar, ar_flags) = \
|
||||
+ get_config_vars('CC', 'CXX', 'CCSHARED', 'LDSHARED', 'LDCXXSHARED',
|
||||
+ 'SO', 'AR', 'ARFLAGS')
|
||||
+
|
||||
+ cflags = ''
|
||||
+ cxxflags = ''
|
||||
|
||||
if 'CC' in os.environ:
|
||||
newcc = os.environ['CC']
|
||||
@@ -189,19 +191,27 @@
|
||||
cxx = os.environ['CXX']
|
||||
if 'LDSHARED' in os.environ:
|
||||
ldshared = os.environ['LDSHARED']
|
||||
+ if 'LDCXXSHARED' in os.environ:
|
||||
+ ldcxxshared = os.environ['LDCXXSHARED']
|
||||
if 'CPP' in os.environ:
|
||||
cpp = os.environ['CPP']
|
||||
else:
|
||||
cpp = cc + " -E" # not always
|
||||
if 'LDFLAGS' in os.environ:
|
||||
ldshared = ldshared + ' ' + os.environ['LDFLAGS']
|
||||
+ ldcxxshared = ldcxxshared + ' ' + os.environ['LDFLAGS']
|
||||
if 'CFLAGS' in os.environ:
|
||||
- cflags = opt + ' ' + os.environ['CFLAGS']
|
||||
+ cflags = os.environ['CFLAGS']
|
||||
ldshared = ldshared + ' ' + os.environ['CFLAGS']
|
||||
+ if 'CXXFLAGS' in os.environ:
|
||||
+ cxxflags = os.environ['CXXFLAGS']
|
||||
+ ldcxxshared = ldcxxshared + ' ' + os.environ['CXXFLAGS']
|
||||
if 'CPPFLAGS' in os.environ:
|
||||
cpp = cpp + ' ' + os.environ['CPPFLAGS']
|
||||
cflags = cflags + ' ' + os.environ['CPPFLAGS']
|
||||
+ cxxflags = cxxflags + ' ' + os.environ['CPPFLAGS']
|
||||
ldshared = ldshared + ' ' + os.environ['CPPFLAGS']
|
||||
+ ldcxxshared = ldcxxshared + ' ' + os.environ['CPPFLAGS']
|
||||
if 'AR' in os.environ:
|
||||
ar = os.environ['AR']
|
||||
if 'ARFLAGS' in os.environ:
|
||||
@@ -210,13 +220,17 @@
|
||||
archiver = ar + ' ' + ar_flags
|
||||
|
||||
cc_cmd = cc + ' ' + cflags
|
||||
+ cxx_cmd = cxx + ' ' + cxxflags
|
||||
compiler.set_executables(
|
||||
preprocessor=cpp,
|
||||
compiler=cc_cmd,
|
||||
compiler_so=cc_cmd + ' ' + ccshared,
|
||||
- compiler_cxx=cxx,
|
||||
+ compiler_cxx=cxx_cmd,
|
||||
+ compiler_so_cxx=cxx_cmd + ' ' + ccshared,
|
||||
linker_so=ldshared,
|
||||
linker_exe=cc,
|
||||
+ linker_so_cxx=ldcxxshared,
|
||||
+ linker_exe_cxx=cxx,
|
||||
archiver=archiver)
|
||||
|
||||
compiler.shared_lib_extension = so_ext
|
||||
diff -Naur pypy2-v5.6.0-src/lib-python/2.7/distutils/unixccompiler.py pypy2-v5.6.0-src-patched/lib-python/2.7/distutils/unixccompiler.py
|
||||
--- pypy2-v5.6.0-src/lib-python/2.7/distutils/unixccompiler.py 2016-11-08 09:52:16.000000000 +0100
|
||||
+++ pypy2-v5.6.0-src-patched/lib-python/2.7/distutils/unixccompiler.py 2016-12-08 16:59:26.213690338 +0100
|
||||
@@ -55,14 +55,17 @@
|
||||
# are pretty generic; they will probably have to be set by an outsider
|
||||
# (eg. using information discovered by the sysconfig about building
|
||||
# Python extensions).
|
||||
- executables = {'preprocessor' : None,
|
||||
- 'compiler' : ["cc"],
|
||||
- 'compiler_so' : ["cc"],
|
||||
- 'compiler_cxx' : ["c++"], # pypy: changed, 'cc' is bogus
|
||||
- 'linker_so' : ["cc", "-shared"],
|
||||
- 'linker_exe' : ["cc"],
|
||||
- 'archiver' : ["ar", "-cr"],
|
||||
- 'ranlib' : None,
|
||||
+ executables = {'preprocessor' : None,
|
||||
+ 'compiler' : ["cc"],
|
||||
+ 'compiler_so' : ["cc"],
|
||||
+ 'compiler_cxx' : ["c++"],
|
||||
+ 'compiler_so_cxx' : ["c++"],
|
||||
+ 'linker_so' : ["cc", "-shared"],
|
||||
+ 'linker_exe' : ["cc"],
|
||||
+ 'linker_so_cxx' : ["c++", "-shared"],
|
||||
+ 'linker_exe_cxx' : ["c++"],
|
||||
+ 'archiver' : ["ar", "-cr"],
|
||||
+ 'ranlib' : None,
|
||||
}
|
||||
|
||||
if sys.platform[:6] == "darwin":
|
||||
@@ -129,12 +132,19 @@
|
||||
|
||||
def _compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts):
|
||||
compiler_so = self.compiler_so
|
||||
+ compiler_so_cxx = self.compiler_so_cxx
|
||||
if sys.platform == 'darwin':
|
||||
compiler_so = _osx_support.compiler_fixup(compiler_so,
|
||||
cc_args + extra_postargs)
|
||||
+ compiler_so_cxx = _osx_support.compiler_fixup(compiler_so_cxx,
|
||||
+ cc_args + extra_postargs)
|
||||
try:
|
||||
- self.spawn(compiler_so + cc_args + [src, '-o', obj] +
|
||||
- extra_postargs)
|
||||
+ if self.detect_language(src) == 'c++':
|
||||
+ self.spawn(compiler_so_cxx + cc_args + [src, '-o', obj] +
|
||||
+ extra_postargs)
|
||||
+ else:
|
||||
+ self.spawn(compiler_so + cc_args + [src, '-o', obj] +
|
||||
+ extra_postargs)
|
||||
except DistutilsExecError, msg:
|
||||
raise CompileError, msg
|
||||
|
||||
@@ -191,23 +201,16 @@
|
||||
ld_args.extend(extra_postargs)
|
||||
self.mkpath(os.path.dirname(output_filename))
|
||||
try:
|
||||
- if target_desc == CCompiler.EXECUTABLE:
|
||||
- linker = self.linker_exe[:]
|
||||
+ if target_lang == "c++":
|
||||
+ if target_desc == CCompiler.EXECUTABLE:
|
||||
+ linker = self.linker_exe_cxx[:]
|
||||
+ else:
|
||||
+ linker = self.linker_so_cxx[:]
|
||||
else:
|
||||
- linker = self.linker_so[:]
|
||||
- if target_lang == "c++" and self.compiler_cxx:
|
||||
- # skip over environment variable settings if /usr/bin/env
|
||||
- # is used to set up the linker's environment.
|
||||
- # This is needed on OSX. Note: this assumes that the
|
||||
- # normal and C++ compiler have the same environment
|
||||
- # settings.
|
||||
- i = 0
|
||||
- if os.path.basename(linker[0]) == "env":
|
||||
- i = 1
|
||||
- while '=' in linker[i]:
|
||||
- i = i + 1
|
||||
-
|
||||
- linker[i] = self.compiler_cxx[i]
|
||||
+ if target_desc == CCompiler.EXECUTABLE:
|
||||
+ linker = self.linker_exe[:]
|
||||
+ else:
|
||||
+ linker = self.linker_so[:]
|
||||
|
||||
if sys.platform == 'darwin':
|
||||
linker = _osx_support.compiler_fixup(linker, ld_args)
|
@ -0,0 +1,205 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 pypy )
|
||||
inherit eutils multilib pax-utils python-any-r1 unpacker versionator
|
||||
|
||||
BINHOST="https://dev.gentoo.org/~mgorny/dist/pypy-bin/${PV}"
|
||||
CPY_PATCHSET_VERSION="2.7.11-0"
|
||||
MY_P=pypy2-v${PV}
|
||||
|
||||
DESCRIPTION="Pre-built version of PyPy"
|
||||
HOMEPAGE="http://pypy.org/"
|
||||
SRC_URI="https://bitbucket.org/pypy/pypy/downloads/${MY_P}-src.tar.bz2
|
||||
https://dev.gentoo.org/~djc/python-gentoo-patches-${CPY_PATCHSET_VERSION}.tar.xz
|
||||
amd64? (
|
||||
jit? ( shadowstack? (
|
||||
${BINHOST}/${P}-amd64+bzip2+jit+ncurses+shadowstack.tar.lz
|
||||
) )
|
||||
jit? ( !shadowstack? (
|
||||
${BINHOST}/${P}-amd64+bzip2+jit+ncurses.tar.lz
|
||||
) )
|
||||
!jit? ( !shadowstack? (
|
||||
${BINHOST}/${P}-amd64+bzip2+ncurses.tar.lz
|
||||
) )
|
||||
)
|
||||
x86? (
|
||||
cpu_flags_x86_sse2? (
|
||||
jit? ( shadowstack? (
|
||||
${BINHOST}/${P}-x86+bzip2+jit+ncurses+shadowstack+sse2.tar.lz
|
||||
) )
|
||||
jit? ( !shadowstack? (
|
||||
${BINHOST}/${P}-x86+bzip2+jit+ncurses+sse2.tar.lz
|
||||
) )
|
||||
!jit? ( !shadowstack? (
|
||||
${BINHOST}/${P}-x86+bzip2+ncurses+sse2.tar.lz
|
||||
) )
|
||||
)
|
||||
!cpu_flags_x86_sse2? (
|
||||
!jit? ( !shadowstack? (
|
||||
${BINHOST}/${P}-x86+bzip2+ncurses.tar.lz
|
||||
) )
|
||||
)
|
||||
)"
|
||||
|
||||
# Supported variants
|
||||
REQUIRED_USE="!jit? ( !shadowstack )
|
||||
x86? ( !cpu_flags_x86_sse2? ( !jit !shadowstack ) )"
|
||||
|
||||
LICENSE="MIT"
|
||||
# pypy -c 'import sysconfig; print sysconfig.get_config_var("SOABI")'
|
||||
SLOT="0/41"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc gdbm +jit +shadowstack sqlite cpu_flags_x86_sse2 test tk"
|
||||
|
||||
# yep, world would be easier if people started filling subslots...
|
||||
RDEPEND="
|
||||
app-arch/bzip2:0=
|
||||
dev-libs/expat:0=
|
||||
dev-libs/libffi:0=
|
||||
dev-libs/openssl:0=[-bindist]
|
||||
sys-libs/glibc:2.2=
|
||||
sys-libs/ncurses:0/6
|
||||
sys-libs/zlib:0=
|
||||
gdbm? ( sys-libs/gdbm:0= )
|
||||
sqlite? ( dev-db/sqlite:3= )
|
||||
tk? (
|
||||
dev-lang/tk:0=
|
||||
dev-tcltk/tix:0=
|
||||
)
|
||||
!dev-python/pypy:0"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/lzip
|
||||
app-arch/xz-utils
|
||||
doc? ( ${PYTHON_DEPS}
|
||||
dev-python/sphinx )"
|
||||
|
||||
S=${WORKDIR}/${MY_P}-src
|
||||
|
||||
QA_PREBUILT="
|
||||
usr/lib*/pypy/pypy-c
|
||||
usr/lib*/pypy/libpypy-c.so"
|
||||
|
||||
pkg_setup() {
|
||||
if [[ ${MERGE_TYPE} != binary ]]; then
|
||||
use doc && python-any-r1_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/4.0.0-gentoo-path.patch" \
|
||||
"${FILESDIR}/1.9-distutils.unixccompiler.UnixCCompiler.runtime_library_dir_option.patch"
|
||||
|
||||
sed -e "s^@EPREFIX@^${EPREFIX}^" \
|
||||
-e "s^@libdir@^$(get_libdir)^" \
|
||||
-i lib-python/2.7/distutils/command/install.py || die
|
||||
|
||||
# apply CPython stdlib patches
|
||||
pushd lib-python/2.7 > /dev/null || die
|
||||
epatch "${FILESDIR}"/5.6.0_all_distutils_cxx.patch \
|
||||
"${WORKDIR}"/patches/22_all_turkish_locale.patch \
|
||||
"${WORKDIR}"/patches/62_all_xml.use_pyxml.patch
|
||||
popd > /dev/null || die
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Tadaam! PyPy compiled!
|
||||
mv "${WORKDIR}"/${P}*/{libpypy-c.so,pypy-c} . || die
|
||||
mv "${WORKDIR}"/${P}*/include/*.h include/ || die
|
||||
# (not installed by pypy)
|
||||
rm pypy/module/cpyext/include/_numpypy/numpy/README || die
|
||||
mv pypy/module/cpyext/include/* include/ || die
|
||||
|
||||
use doc && emake -C pypy/doc/ html
|
||||
#needed even without jit :( also needed in both compile and install phases
|
||||
pax-mark m pypy-c libpypy-c.so
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# (unset)
|
||||
local -x PYTHONDONTWRITEBYTECODE
|
||||
|
||||
./pypy-c ./pypy/test_all.py --pypy=./pypy-c lib-python || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local dest=/usr/$(get_libdir)/pypy
|
||||
einfo "Installing PyPy ..."
|
||||
insinto "${dest}"
|
||||
doins -r include lib_pypy lib-python pypy-c libpypy-c.so
|
||||
fperms a+x ${dest}/pypy-c ${dest}/libpypy-c.so
|
||||
pax-mark m "${ED%/}${dest}/pypy-c" "${ED%/}${dest}/libpypy-c.so"
|
||||
dosym ../$(get_libdir)/pypy/pypy-c /usr/bin/pypy
|
||||
dodoc README.rst
|
||||
|
||||
if ! use gdbm; then
|
||||
rm -r "${ED%/}${dest}"/lib_pypy/gdbm.py \
|
||||
"${ED%/}${dest}"/lib-python/*2.7/test/test_gdbm.py || die
|
||||
fi
|
||||
if ! use sqlite; then
|
||||
rm -r "${ED%/}${dest}"/lib-python/*2.7/sqlite3 \
|
||||
"${ED%/}${dest}"/lib_pypy/_sqlite3.py \
|
||||
"${ED%/}${dest}"/lib-python/*2.7/test/test_sqlite.py || die
|
||||
fi
|
||||
if ! use tk; then
|
||||
rm -r "${ED%/}${dest}"/lib-python/*2.7/{idlelib,lib-tk} \
|
||||
"${ED%/}${dest}"/lib_pypy/_tkinter \
|
||||
"${ED%/}${dest}"/lib-python/*2.7/test/test_{tcl,tk,ttk*}.py || die
|
||||
fi
|
||||
|
||||
# Install docs
|
||||
use doc && dohtml -r pypy/doc/_build/html/
|
||||
|
||||
einfo "Generating caches and byte-compiling ..."
|
||||
|
||||
local -x PYTHON=${ED%/}${dest}/pypy-c
|
||||
local -x LD_LIBRARY_PATH="${ED%/}${dest}"
|
||||
# we can't use eclass function since PyPy is dumb and always gives
|
||||
# paths relative to the interpreter
|
||||
local PYTHON_SITEDIR=${EPREFIX}/usr/$(get_libdir)/pypy/site-packages
|
||||
python_export pypy EPYTHON
|
||||
|
||||
echo "EPYTHON='${EPYTHON}'" > epython.py || die
|
||||
python_domodule epython.py
|
||||
|
||||
# Generate Grammar and PatternGrammar pickles.
|
||||
"${PYTHON}" -c "import lib2to3.pygram, lib2to3.patcomp; lib2to3.patcomp.PatternCompiler()" \
|
||||
|| die "Generation of Grammar and PatternGrammar pickles failed"
|
||||
|
||||
# Generate cffi modules
|
||||
# Please keep in sync with pypy/tool/build_cffi_imports.py!
|
||||
#cffi_build_scripts = {
|
||||
# "sqlite3": "_sqlite3_build.py",
|
||||
# "audioop": "_audioop_build.py",
|
||||
# "tk": "_tkinter/tklib_build.py",
|
||||
# "curses": "_curses_build.py" if sys.platform != "win32" else None,
|
||||
# "syslog": "_syslog_build.py" if sys.platform != "win32" else None,
|
||||
# "gdbm": "_gdbm_build.py" if sys.platform != "win32" else None,
|
||||
# "pwdgrp": "_pwdgrp_build.py" if sys.platform != "win32" else None,
|
||||
# "resource": "_resource_build.py" if sys.platform != "win32" else None,
|
||||
cffi_targets=( audioop curses syslog pwdgrp resource )
|
||||
use gdbm && cffi_targets+=( gdbm )
|
||||
use sqlite && cffi_targets+=( sqlite3 )
|
||||
use tk && cffi_targets+=( tkinter/tklib )
|
||||
|
||||
local t
|
||||
# all modules except tkinter output to .
|
||||
# tkinter outputs to the correct dir ...
|
||||
cd "${ED%/}${dest}"/lib_pypy || die
|
||||
for t in "${cffi_targets[@]}"; do
|
||||
# tkinter doesn't work via -m
|
||||
"${PYTHON}" "_${t}_build.py" || die "Failed to build CFFI bindings for ${t}"
|
||||
done
|
||||
|
||||
# Cleanup temporary objects
|
||||
find "${ED%/}${dest}" -name "_cffi_*.[co]" -delete || die
|
||||
find "${ED%/}${dest}" -type d -empty -delete || die
|
||||
|
||||
# compile the installed modules
|
||||
python_optimize "${ED%/}${dest}"
|
||||
}
|
@ -0,0 +1,340 @@
|
||||
http://bugs.python.org/issue1222585
|
||||
http://bugs.gentoo.org/show_bug.cgi?id=599918
|
||||
|
||||
diff -Naur pypy2-v5.6.0-src/lib-python/2.7/_osx_support.py pypy2-v5.6.0-src-patched/lib-python/2.7/_osx_support.py
|
||||
--- pypy2-v5.6.0-src/lib-python/2.7/_osx_support.py 2016-11-08 09:52:16.000000000 +0100
|
||||
+++ pypy2-v5.6.0-src-patched/lib-python/2.7/_osx_support.py 2016-12-08 16:59:26.213690338 +0100
|
||||
@@ -14,13 +14,13 @@
|
||||
# configuration variables that may contain universal build flags,
|
||||
# like "-arch" or "-isdkroot", that may need customization for
|
||||
# the user environment
|
||||
-_UNIVERSAL_CONFIG_VARS = ('CFLAGS', 'LDFLAGS', 'CPPFLAGS', 'BASECFLAGS',
|
||||
- 'BLDSHARED', 'LDSHARED', 'CC', 'CXX',
|
||||
- 'PY_CFLAGS', 'PY_LDFLAGS', 'PY_CPPFLAGS',
|
||||
- 'PY_CORE_CFLAGS')
|
||||
+_UNIVERSAL_CONFIG_VARS = ('CFLAGS', 'CXXFLAGS', 'LDFLAGS', 'CPPFLAGS',
|
||||
+ 'BASECFLAGS', 'BLDSHARED', 'LDSHARED', 'LDCXXSHARED',
|
||||
+ 'CC', 'CXX', 'PY_CFLAGS', 'PY_LDFLAGS',
|
||||
+ 'PY_CPPFLAGS', 'PY_CORE_CFLAGS')
|
||||
|
||||
# configuration variables that may contain compiler calls
|
||||
-_COMPILER_CONFIG_VARS = ('BLDSHARED', 'LDSHARED', 'CC', 'CXX')
|
||||
+_COMPILER_CONFIG_VARS = ('BLDSHARED', 'LDSHARED', 'LDCXXSHARED', 'CC', 'CXX')
|
||||
|
||||
# prefix added to original configuration variable names
|
||||
_INITPRE = '_OSX_SUPPORT_INITIAL_'
|
||||
diff -Naur pypy2-v5.6.0-src/lib-python/2.7/distutils/sysconfig_pypy.py pypy2-v5.6.0-src-patched/lib-python/2.7/distutils/sysconfig_pypy.py
|
||||
--- pypy2-v5.6.0-src/lib-python/2.7/distutils/sysconfig_pypy.py 2016-11-08 09:52:16.000000000 +0100
|
||||
+++ pypy2-v5.6.0-src-patched/lib-python/2.7/distutils/sysconfig_pypy.py 2016-12-08 17:01:33.594553801 +0100
|
||||
@@ -126,19 +126,56 @@
|
||||
setattr(compiler, executable, command)
|
||||
|
||||
if compiler.compiler_type == "unix":
|
||||
- compiler.compiler_so.extend(['-O2', '-fPIC', '-Wimplicit'])
|
||||
+ cc = ' '.join(compiler.compiler)
|
||||
+ cxx = ' '.join(compiler.compiler_cxx)
|
||||
+ ldshared = ' '.join(compiler.linker_so)
|
||||
+ ldcxxshared = ' '.join(compiler.linker_so_cxx)
|
||||
+
|
||||
+ cflags = ''
|
||||
+ cxxflags = ''
|
||||
+ ccshared = '-fPIC'
|
||||
+
|
||||
+ if 'CC' in os.environ:
|
||||
+ cc = os.environ['CC']
|
||||
+ if 'CXX' in os.environ:
|
||||
+ cxx = os.environ['CXX']
|
||||
+ if 'LDSHARED' in os.environ:
|
||||
+ ldshared = os.environ['LDSHARED']
|
||||
+ if 'LDCXXSHARED' in os.environ:
|
||||
+ ldcxxshared = os.environ['LDCXXSHARED']
|
||||
+ if 'CPP' in os.environ:
|
||||
+ cpp = os.environ['CPP']
|
||||
+ else:
|
||||
+ cpp = cc + " -E" # not always
|
||||
+ if 'CPPFLAGS' in os.environ:
|
||||
+ cpp = cpp + ' ' + os.environ['CPPFLAGS']
|
||||
+ cflags = cflags + ' ' + os.environ['CPPFLAGS']
|
||||
+ cxxflags = cxxflags + ' ' + os.environ['CPPFLAGS']
|
||||
+ ldshared = ldshared + ' ' + os.environ['CPPFLAGS']
|
||||
+ ldcxxshared = ldcxxshared + ' ' + os.environ['CPPFLAGS']
|
||||
+ if 'CFLAGS' in os.environ:
|
||||
+ cflags = os.environ['CFLAGS']
|
||||
+ ldshared = ldshared + ' ' + os.environ['CFLAGS']
|
||||
+ if 'CXXFLAGS' in os.environ:
|
||||
+ cxxflags = os.environ['CXXFLAGS']
|
||||
+ ldcxxshared = ldcxxshared + ' ' + os.environ['CXXFLAGS']
|
||||
+ if 'LDFLAGS' in os.environ:
|
||||
+ ldshared = ldshared + ' ' + os.environ['LDFLAGS']
|
||||
+ ldcxxshared = ldcxxshared + ' ' + os.environ['LDFLAGS']
|
||||
+
|
||||
+ cc_cmd = cc + ' ' + cflags
|
||||
+ cxx_cmd = cxx + ' ' + cxxflags
|
||||
+ compiler.set_executables(
|
||||
+ preprocessor=cpp,
|
||||
+ compiler=cc_cmd,
|
||||
+ compiler_so=cc_cmd + ' ' + ccshared,
|
||||
+ compiler_cxx=cxx_cmd,
|
||||
+ compiler_so_cxx=cxx_cmd + ' ' + ccshared,
|
||||
+ linker_so=ldshared,
|
||||
+ linker_exe=cc,
|
||||
+ linker_so_cxx=ldcxxshared,
|
||||
+ linker_exe_cxx=cxx)
|
||||
compiler.shared_lib_extension = get_config_var('SO')
|
||||
- if "CPPFLAGS" in os.environ:
|
||||
- cppflags = shlex.split(os.environ["CPPFLAGS"])
|
||||
- for executable in ('compiler', 'compiler_so', 'linker_so'):
|
||||
- customize(executable, cppflags)
|
||||
- if "CFLAGS" in os.environ:
|
||||
- cflags = shlex.split(os.environ["CFLAGS"])
|
||||
- for executable in ('compiler', 'compiler_so', 'linker_so'):
|
||||
- customize(executable, cflags)
|
||||
- if "LDFLAGS" in os.environ:
|
||||
- ldflags = shlex.split(os.environ["LDFLAGS"])
|
||||
- customize('linker_so', ldflags)
|
||||
|
||||
|
||||
from sysconfig_cpython import (
|
||||
diff -Naur pypy2-v5.6.0-src/lib-python/2.7/distutils/cygwinccompiler.py pypy2-v5.6.0-src-patched/lib-python/2.7/distutils/cygwinccompiler.py
|
||||
--- pypy2-v5.6.0-src/lib-python/2.7/distutils/cygwinccompiler.py 2016-11-08 09:52:16.000000000 +0100
|
||||
+++ pypy2-v5.6.0-src-patched/lib-python/2.7/distutils/cygwinccompiler.py 2016-12-08 16:59:26.213690338 +0100
|
||||
@@ -120,8 +120,10 @@
|
||||
# dllwrap 2.10.90 is buggy
|
||||
if self.ld_version >= "2.10.90":
|
||||
self.linker_dll = "gcc"
|
||||
+ self.linker_dll_cxx = "g++"
|
||||
else:
|
||||
self.linker_dll = "dllwrap"
|
||||
+ self.linker_dll_cxx = "dllwrap"
|
||||
|
||||
# ld_version >= "2.13" support -shared so use it instead of
|
||||
# -mdll -static
|
||||
@@ -135,9 +137,13 @@
|
||||
self.set_executables(compiler='gcc -mcygwin -O -Wall',
|
||||
compiler_so='gcc -mcygwin -mdll -O -Wall',
|
||||
compiler_cxx='g++ -mcygwin -O -Wall',
|
||||
+ compiler_so_cxx='g++ -mcygwin -mdll -O -Wall',
|
||||
linker_exe='gcc -mcygwin',
|
||||
linker_so=('%s -mcygwin %s' %
|
||||
- (self.linker_dll, shared_option)))
|
||||
+ (self.linker_dll, shared_option)),
|
||||
+ linker_exe_cxx='g++ -mcygwin',
|
||||
+ linker_so_cxx=('%s -mcygwin %s' %
|
||||
+ (self.linker_dll_cxx, shared_option)))
|
||||
|
||||
# cygwin and mingw32 need different sets of libraries
|
||||
if self.gcc_version == "2.91.57":
|
||||
@@ -163,8 +169,12 @@
|
||||
raise CompileError, msg
|
||||
else: # for other files use the C-compiler
|
||||
try:
|
||||
- self.spawn(self.compiler_so + cc_args + [src, '-o', obj] +
|
||||
- extra_postargs)
|
||||
+ if self.detect_language(src) == 'c++':
|
||||
+ self.spawn(self.compiler_so_cxx + cc_args + [src, '-o', obj] +
|
||||
+ extra_postargs)
|
||||
+ else:
|
||||
+ self.spawn(self.compiler_so + cc_args + [src, '-o', obj] +
|
||||
+ extra_postargs)
|
||||
except DistutilsExecError, msg:
|
||||
raise CompileError, msg
|
||||
|
||||
@@ -330,9 +340,14 @@
|
||||
self.set_executables(compiler='gcc%s -O -Wall' % no_cygwin,
|
||||
compiler_so='gcc%s -mdll -O -Wall' % no_cygwin,
|
||||
compiler_cxx='g++%s -O -Wall' % no_cygwin,
|
||||
+ compiler_so_cxx='g++%s -mdll -O -Wall' % no_cygwin,
|
||||
linker_exe='gcc%s' % no_cygwin,
|
||||
linker_so='%s%s %s %s'
|
||||
% (self.linker_dll, no_cygwin,
|
||||
+ shared_option, entry_point),
|
||||
+ linker_exe_cxx='g++%s' % no_cygwin,
|
||||
+ linker_so_cxx='%s%s %s %s'
|
||||
+ % (self.linker_dll_cxx, no_cygwin,
|
||||
shared_option, entry_point))
|
||||
# Maybe we should also append -mthreads, but then the finished
|
||||
# dlls need another dll (mingwm10.dll see Mingw32 docs)
|
||||
diff -Naur pypy2-v5.6.0-src/lib-python/2.7/distutils/emxccompiler.py pypy2-v5.6.0-src-patched/lib-python/2.7/distutils/emxccompiler.py
|
||||
--- pypy2-v5.6.0-src/lib-python/2.7/distutils/emxccompiler.py 2016-11-08 09:52:16.000000000 +0100
|
||||
+++ pypy2-v5.6.0-src-patched/lib-python/2.7/distutils/emxccompiler.py 2016-12-08 16:59:26.213690338 +0100
|
||||
@@ -65,8 +65,12 @@
|
||||
# XXX optimization, warnings etc. should be customizable.
|
||||
self.set_executables(compiler='gcc -Zomf -Zmt -O3 -fomit-frame-pointer -mprobe -Wall',
|
||||
compiler_so='gcc -Zomf -Zmt -O3 -fomit-frame-pointer -mprobe -Wall',
|
||||
+ compiler_cxx='g++ -Zomf -Zmt -O3 -fomit-frame-pointer -mprobe -Wall',
|
||||
+ compiler_so_cxx='g++ -Zomf -Zmt -O3 -fomit-frame-pointer -mprobe -Wall',
|
||||
linker_exe='gcc -Zomf -Zmt -Zcrtdll',
|
||||
- linker_so='gcc -Zomf -Zmt -Zcrtdll -Zdll')
|
||||
+ linker_so='gcc -Zomf -Zmt -Zcrtdll -Zdll',
|
||||
+ linker_exe_cxx='g++ -Zomf -Zmt -Zcrtdll',
|
||||
+ linker_so_cxx='g++ -Zomf -Zmt -Zcrtdll -Zdll')
|
||||
|
||||
# want the gcc library statically linked (so that we don't have
|
||||
# to distribute a version dependent on the compiler we have)
|
||||
@@ -83,8 +87,12 @@
|
||||
raise CompileError, msg
|
||||
else: # for other files use the C-compiler
|
||||
try:
|
||||
- self.spawn(self.compiler_so + cc_args + [src, '-o', obj] +
|
||||
- extra_postargs)
|
||||
+ if self.detect_language(src) == 'c++':
|
||||
+ self.spawn(self.compiler_so_cxx + cc_args + [src, '-o', obj] +
|
||||
+ extra_postargs)
|
||||
+ else:
|
||||
+ self.spawn(self.compiler_so + cc_args + [src, '-o', obj] +
|
||||
+ extra_postargs)
|
||||
except DistutilsExecError, msg:
|
||||
raise CompileError, msg
|
||||
|
||||
diff -Naur pypy2-v5.6.0-src/lib-python/2.7/distutils/sysconfig_cpython.py pypy2-v5.6.0-src-patched/lib-python/2.7/distutils/sysconfig_cpython.py
|
||||
--- pypy2-v5.6.0-src/lib-python/2.7/distutils/sysconfig_cpython.py 2016-11-08 09:52:16.000000000 +0100
|
||||
+++ pypy2-v5.6.0-src-patched/lib-python/2.7/distutils/sysconfig_cpython.py 2016-12-08 16:59:26.213690338 +0100
|
||||
@@ -171,10 +171,12 @@
|
||||
_osx_support.customize_compiler(_config_vars)
|
||||
_config_vars['CUSTOMIZED_OSX_COMPILER'] = 'True'
|
||||
|
||||
- (cc, cxx, opt, cflags, ccshared, ldshared, so_ext, ar, ar_flags) = \
|
||||
- get_config_vars('CC', 'CXX', 'OPT', 'CFLAGS',
|
||||
- 'CCSHARED', 'LDSHARED', 'SO', 'AR',
|
||||
- 'ARFLAGS')
|
||||
+ (cc, cxx, ccshared, ldshared, ldcxxshared, so_ext, ar, ar_flags) = \
|
||||
+ get_config_vars('CC', 'CXX', 'CCSHARED', 'LDSHARED', 'LDCXXSHARED',
|
||||
+ 'SO', 'AR', 'ARFLAGS')
|
||||
+
|
||||
+ cflags = ''
|
||||
+ cxxflags = ''
|
||||
|
||||
if 'CC' in os.environ:
|
||||
newcc = os.environ['CC']
|
||||
@@ -189,19 +191,27 @@
|
||||
cxx = os.environ['CXX']
|
||||
if 'LDSHARED' in os.environ:
|
||||
ldshared = os.environ['LDSHARED']
|
||||
+ if 'LDCXXSHARED' in os.environ:
|
||||
+ ldcxxshared = os.environ['LDCXXSHARED']
|
||||
if 'CPP' in os.environ:
|
||||
cpp = os.environ['CPP']
|
||||
else:
|
||||
cpp = cc + " -E" # not always
|
||||
if 'LDFLAGS' in os.environ:
|
||||
ldshared = ldshared + ' ' + os.environ['LDFLAGS']
|
||||
+ ldcxxshared = ldcxxshared + ' ' + os.environ['LDFLAGS']
|
||||
if 'CFLAGS' in os.environ:
|
||||
- cflags = opt + ' ' + os.environ['CFLAGS']
|
||||
+ cflags = os.environ['CFLAGS']
|
||||
ldshared = ldshared + ' ' + os.environ['CFLAGS']
|
||||
+ if 'CXXFLAGS' in os.environ:
|
||||
+ cxxflags = os.environ['CXXFLAGS']
|
||||
+ ldcxxshared = ldcxxshared + ' ' + os.environ['CXXFLAGS']
|
||||
if 'CPPFLAGS' in os.environ:
|
||||
cpp = cpp + ' ' + os.environ['CPPFLAGS']
|
||||
cflags = cflags + ' ' + os.environ['CPPFLAGS']
|
||||
+ cxxflags = cxxflags + ' ' + os.environ['CPPFLAGS']
|
||||
ldshared = ldshared + ' ' + os.environ['CPPFLAGS']
|
||||
+ ldcxxshared = ldcxxshared + ' ' + os.environ['CPPFLAGS']
|
||||
if 'AR' in os.environ:
|
||||
ar = os.environ['AR']
|
||||
if 'ARFLAGS' in os.environ:
|
||||
@@ -210,13 +220,17 @@
|
||||
archiver = ar + ' ' + ar_flags
|
||||
|
||||
cc_cmd = cc + ' ' + cflags
|
||||
+ cxx_cmd = cxx + ' ' + cxxflags
|
||||
compiler.set_executables(
|
||||
preprocessor=cpp,
|
||||
compiler=cc_cmd,
|
||||
compiler_so=cc_cmd + ' ' + ccshared,
|
||||
- compiler_cxx=cxx,
|
||||
+ compiler_cxx=cxx_cmd,
|
||||
+ compiler_so_cxx=cxx_cmd + ' ' + ccshared,
|
||||
linker_so=ldshared,
|
||||
linker_exe=cc,
|
||||
+ linker_so_cxx=ldcxxshared,
|
||||
+ linker_exe_cxx=cxx,
|
||||
archiver=archiver)
|
||||
|
||||
compiler.shared_lib_extension = so_ext
|
||||
diff -Naur pypy2-v5.6.0-src/lib-python/2.7/distutils/unixccompiler.py pypy2-v5.6.0-src-patched/lib-python/2.7/distutils/unixccompiler.py
|
||||
--- pypy2-v5.6.0-src/lib-python/2.7/distutils/unixccompiler.py 2016-11-08 09:52:16.000000000 +0100
|
||||
+++ pypy2-v5.6.0-src-patched/lib-python/2.7/distutils/unixccompiler.py 2016-12-08 16:59:26.213690338 +0100
|
||||
@@ -55,14 +55,17 @@
|
||||
# are pretty generic; they will probably have to be set by an outsider
|
||||
# (eg. using information discovered by the sysconfig about building
|
||||
# Python extensions).
|
||||
- executables = {'preprocessor' : None,
|
||||
- 'compiler' : ["cc"],
|
||||
- 'compiler_so' : ["cc"],
|
||||
- 'compiler_cxx' : ["c++"], # pypy: changed, 'cc' is bogus
|
||||
- 'linker_so' : ["cc", "-shared"],
|
||||
- 'linker_exe' : ["cc"],
|
||||
- 'archiver' : ["ar", "-cr"],
|
||||
- 'ranlib' : None,
|
||||
+ executables = {'preprocessor' : None,
|
||||
+ 'compiler' : ["cc"],
|
||||
+ 'compiler_so' : ["cc"],
|
||||
+ 'compiler_cxx' : ["c++"],
|
||||
+ 'compiler_so_cxx' : ["c++"],
|
||||
+ 'linker_so' : ["cc", "-shared"],
|
||||
+ 'linker_exe' : ["cc"],
|
||||
+ 'linker_so_cxx' : ["c++", "-shared"],
|
||||
+ 'linker_exe_cxx' : ["c++"],
|
||||
+ 'archiver' : ["ar", "-cr"],
|
||||
+ 'ranlib' : None,
|
||||
}
|
||||
|
||||
if sys.platform[:6] == "darwin":
|
||||
@@ -129,12 +132,19 @@
|
||||
|
||||
def _compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts):
|
||||
compiler_so = self.compiler_so
|
||||
+ compiler_so_cxx = self.compiler_so_cxx
|
||||
if sys.platform == 'darwin':
|
||||
compiler_so = _osx_support.compiler_fixup(compiler_so,
|
||||
cc_args + extra_postargs)
|
||||
+ compiler_so_cxx = _osx_support.compiler_fixup(compiler_so_cxx,
|
||||
+ cc_args + extra_postargs)
|
||||
try:
|
||||
- self.spawn(compiler_so + cc_args + [src, '-o', obj] +
|
||||
- extra_postargs)
|
||||
+ if self.detect_language(src) == 'c++':
|
||||
+ self.spawn(compiler_so_cxx + cc_args + [src, '-o', obj] +
|
||||
+ extra_postargs)
|
||||
+ else:
|
||||
+ self.spawn(compiler_so + cc_args + [src, '-o', obj] +
|
||||
+ extra_postargs)
|
||||
except DistutilsExecError, msg:
|
||||
raise CompileError, msg
|
||||
|
||||
@@ -191,23 +201,16 @@
|
||||
ld_args.extend(extra_postargs)
|
||||
self.mkpath(os.path.dirname(output_filename))
|
||||
try:
|
||||
- if target_desc == CCompiler.EXECUTABLE:
|
||||
- linker = self.linker_exe[:]
|
||||
+ if target_lang == "c++":
|
||||
+ if target_desc == CCompiler.EXECUTABLE:
|
||||
+ linker = self.linker_exe_cxx[:]
|
||||
+ else:
|
||||
+ linker = self.linker_so_cxx[:]
|
||||
else:
|
||||
- linker = self.linker_so[:]
|
||||
- if target_lang == "c++" and self.compiler_cxx:
|
||||
- # skip over environment variable settings if /usr/bin/env
|
||||
- # is used to set up the linker's environment.
|
||||
- # This is needed on OSX. Note: this assumes that the
|
||||
- # normal and C++ compiler have the same environment
|
||||
- # settings.
|
||||
- i = 0
|
||||
- if os.path.basename(linker[0]) == "env":
|
||||
- i = 1
|
||||
- while '=' in linker[i]:
|
||||
- i = i + 1
|
||||
-
|
||||
- linker[i] = self.compiler_cxx[i]
|
||||
+ if target_desc == CCompiler.EXECUTABLE:
|
||||
+ linker = self.linker_exe[:]
|
||||
+ else:
|
||||
+ linker = self.linker_so[:]
|
||||
|
||||
if sys.platform == 'darwin':
|
||||
linker = _osx_support.compiler_fixup(linker, ld_args)
|
@ -0,0 +1,256 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 pypy )
|
||||
inherit check-reqs eutils multilib multiprocessing pax-utils python-any-r1 toolchain-funcs versionator
|
||||
|
||||
CPY_PATCHSET_VERSION="2.7.11-0"
|
||||
MY_P=pypy2-v${PV}
|
||||
|
||||
DESCRIPTION="A fast, compliant alternative implementation of the Python language"
|
||||
HOMEPAGE="http://pypy.org/"
|
||||
SRC_URI="https://bitbucket.org/pypy/pypy/downloads/${MY_P}-src.tar.bz2
|
||||
https://dev.gentoo.org/~djc/python-gentoo-patches-${CPY_PATCHSET_VERSION}.tar.xz"
|
||||
|
||||
LICENSE="MIT"
|
||||
# pypy -c 'import sysconfig; print sysconfig.get_config_var("SOABI")'
|
||||
SLOT="0/41"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="bzip2 doc gdbm +jit libressl low-memory ncurses sandbox +shadowstack sqlite cpu_flags_x86_sse2 test tk"
|
||||
|
||||
RDEPEND=">=sys-libs/zlib-1.1.3:0=
|
||||
virtual/libffi:0=
|
||||
virtual/libintl:0=
|
||||
dev-libs/expat:0=
|
||||
!libressl? ( dev-libs/openssl:0=[-bindist] )
|
||||
libressl? ( dev-libs/libressl:0= )
|
||||
bzip2? ( app-arch/bzip2:0= )
|
||||
gdbm? ( sys-libs/gdbm:0= )
|
||||
ncurses? ( sys-libs/ncurses:0= )
|
||||
sqlite? ( dev-db/sqlite:3= )
|
||||
tk? (
|
||||
dev-lang/tk:0=
|
||||
dev-tcltk/tix:0=
|
||||
)
|
||||
!dev-python/pypy-bin:0"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( dev-python/sphinx )
|
||||
${PYTHON_DEPS}
|
||||
test? ( dev-python/pytest )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}-src"
|
||||
|
||||
pkg_pretend() {
|
||||
if [[ ${MERGE_TYPE} != binary ]]; then
|
||||
if use low-memory; then
|
||||
if ! python_is_installed pypy; then
|
||||
eerror "USE=low-memory requires a (possibly old) version of dev-python/pypy"
|
||||
eerror "or dev-python/pypy-bin being installed. Please install it using e.g.:"
|
||||
eerror
|
||||
eerror " $ emerge -1v dev-python/pypy-bin"
|
||||
eerror
|
||||
eerror "before attempting to build dev-python/pypy[low-memory]."
|
||||
die "dev-python/pypy-bin (or dev-python/pypy) needs to be installed for USE=low-memory"
|
||||
fi
|
||||
|
||||
CHECKREQS_MEMORY="1750M"
|
||||
use amd64 && CHECKREQS_MEMORY="3500M"
|
||||
else
|
||||
CHECKREQS_MEMORY="3G"
|
||||
use amd64 && CHECKREQS_MEMORY="6G"
|
||||
fi
|
||||
|
||||
check-reqs_pkg_pretend
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
if [[ ${MERGE_TYPE} != binary ]]; then
|
||||
pkg_pretend
|
||||
|
||||
if python_is_installed pypy; then
|
||||
if [[ ! ${EPYTHON} || ${EPYTHON} == pypy ]] || use low-memory; then
|
||||
einfo "Using already-installed PyPy to perform the translation."
|
||||
local EPYTHON=pypy
|
||||
else
|
||||
einfo "Using ${EPYTHON} to perform the translation. Please note that upstream"
|
||||
einfo "recommends using PyPy for that. If you wish to do so, please unset"
|
||||
einfo "the EPYTHON variable."
|
||||
fi
|
||||
fi
|
||||
|
||||
python-any-r1_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/4.0.0-gentoo-path.patch" \
|
||||
"${FILESDIR}/1.9-distutils.unixccompiler.UnixCCompiler.runtime_library_dir_option.patch" \
|
||||
"${FILESDIR}"/2.5.0-shared-lib.patch # 517002
|
||||
|
||||
sed -e "s^@EPREFIX@^${EPREFIX}^" \
|
||||
-e "s^@libdir@^$(get_libdir)^" \
|
||||
-i lib-python/2.7/distutils/command/install.py || die
|
||||
|
||||
# apply CPython stdlib patches
|
||||
pushd lib-python/2.7 > /dev/null || die
|
||||
epatch "${FILESDIR}"/5.6.0_all_distutils_cxx.patch \
|
||||
"${WORKDIR}"/patches/22_all_turkish_locale.patch \
|
||||
"${WORKDIR}"/patches/62_all_xml.use_pyxml.patch
|
||||
popd > /dev/null || die
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export CC
|
||||
|
||||
local jit_backend
|
||||
if use jit; then
|
||||
jit_backend='--jit-backend='
|
||||
|
||||
# We only need the explicit sse2 switch for x86.
|
||||
# On other arches we can rely on autodetection which uses
|
||||
# compiler macros. Plus, --jit-backend= doesn't accept all
|
||||
# the modern values...
|
||||
|
||||
if use x86; then
|
||||
if use cpu_flags_x86_sse2; then
|
||||
jit_backend+=x86
|
||||
else
|
||||
jit_backend+=x86-without-sse2
|
||||
fi
|
||||
else
|
||||
jit_backend+=auto
|
||||
fi
|
||||
fi
|
||||
|
||||
local args=(
|
||||
--shared
|
||||
$(usex jit -Ojit -O2)
|
||||
$(usex shadowstack --gcrootfinder=shadowstack '')
|
||||
$(usex sandbox --sandbox '')
|
||||
|
||||
${jit_backend}
|
||||
--make-jobs=$(makeopts_jobs)
|
||||
|
||||
pypy/goal/targetpypystandalone
|
||||
)
|
||||
|
||||
# Avoid linking against libraries disabled by use flags
|
||||
local opts=(
|
||||
bzip2:bz2
|
||||
ncurses:_minimal_curses
|
||||
)
|
||||
|
||||
local opt
|
||||
for opt in "${opts[@]}"; do
|
||||
local flag=${opt%:*}
|
||||
local mod=${opt#*:}
|
||||
|
||||
args+=(
|
||||
$(usex ${flag} --withmod --withoutmod)-${mod}
|
||||
)
|
||||
done
|
||||
|
||||
local interp=( "${PYTHON}" )
|
||||
if use low-memory; then
|
||||
interp=( env PYPY_GC_MAX_DELTA=200MB
|
||||
"${PYTHON}" --jit loop_longevity=300 )
|
||||
fi
|
||||
|
||||
set -- "${interp[@]}" rpython/bin/rpython --batch "${args[@]}"
|
||||
echo -e "\033[1m${@}\033[0m"
|
||||
"${@}" || die "compile error"
|
||||
|
||||
use doc && emake -C pypy/doc/ html
|
||||
pax-mark m pypy-c libpypy-c.so
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# (unset)
|
||||
local -x PYTHONDONTWRITEBYTECODE
|
||||
|
||||
./pypy-c ./pypy/test_all.py --pypy=./pypy-c lib-python || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local dest=/usr/$(get_libdir)/pypy
|
||||
einfo "Installing PyPy ..."
|
||||
insinto "${dest}"
|
||||
doins -r include lib_pypy lib-python pypy-c libpypy-c.so
|
||||
fperms a+x ${dest}/pypy-c ${dest}/libpypy-c.so
|
||||
pax-mark m "${ED%/}${dest}/pypy-c" "${ED%/}${dest}/libpypy-c.so"
|
||||
dosym ../$(get_libdir)/pypy/pypy-c /usr/bin/pypy
|
||||
dodoc README.rst
|
||||
|
||||
if ! use gdbm; then
|
||||
rm -r "${ED%/}${dest}"/lib_pypy/gdbm.py \
|
||||
"${ED%/}${dest}"/lib-python/*2.7/test/test_gdbm.py || die
|
||||
fi
|
||||
if ! use sqlite; then
|
||||
rm -r "${ED%/}${dest}"/lib-python/*2.7/sqlite3 \
|
||||
"${ED%/}${dest}"/lib_pypy/_sqlite3.py \
|
||||
"${ED%/}${dest}"/lib-python/*2.7/test/test_sqlite.py || die
|
||||
fi
|
||||
if ! use tk; then
|
||||
rm -r "${ED%/}${dest}"/lib-python/*2.7/{idlelib,lib-tk} \
|
||||
"${ED%/}${dest}"/lib_pypy/_tkinter \
|
||||
"${ED%/}${dest}"/lib-python/*2.7/test/test_{tcl,tk,ttk*}.py || die
|
||||
fi
|
||||
|
||||
# Install docs
|
||||
use doc && dohtml -r pypy/doc/_build/html/
|
||||
|
||||
einfo "Generating caches and byte-compiling ..."
|
||||
|
||||
local -x PYTHON=${ED%/}${dest}/pypy-c
|
||||
local -x LD_LIBRARY_PATH="${ED%/}${dest}"
|
||||
# we can't use eclass function since PyPy is dumb and always gives
|
||||
# paths relative to the interpreter
|
||||
local PYTHON_SITEDIR=${EPREFIX}/usr/$(get_libdir)/pypy/site-packages
|
||||
python_export pypy EPYTHON
|
||||
|
||||
echo "EPYTHON='${EPYTHON}'" > epython.py || die
|
||||
python_domodule epython.py
|
||||
|
||||
# Generate Grammar and PatternGrammar pickles.
|
||||
"${PYTHON}" -c "import lib2to3.pygram, lib2to3.patcomp; lib2to3.patcomp.PatternCompiler()" \
|
||||
|| die "Generation of Grammar and PatternGrammar pickles failed"
|
||||
|
||||
# Generate cffi modules
|
||||
# Please keep in sync with pypy/tool/build_cffi_imports.py!
|
||||
#cffi_build_scripts = {
|
||||
# "sqlite3": "_sqlite3_build.py",
|
||||
# "audioop": "_audioop_build.py",
|
||||
# "tk": "_tkinter/tklib_build.py",
|
||||
# "curses": "_curses_build.py" if sys.platform != "win32" else None,
|
||||
# "syslog": "_syslog_build.py" if sys.platform != "win32" else None,
|
||||
# "gdbm": "_gdbm_build.py" if sys.platform != "win32" else None,
|
||||
# "pwdgrp": "_pwdgrp_build.py" if sys.platform != "win32" else None,
|
||||
# "resource": "_resource_build.py" if sys.platform != "win32" else None,
|
||||
cffi_targets=( audioop syslog pwdgrp resource )
|
||||
use gdbm && cffi_targets+=( gdbm )
|
||||
use ncurses && cffi_targets+=( curses )
|
||||
use sqlite && cffi_targets+=( sqlite3 )
|
||||
use tk && cffi_targets+=( tkinter/tklib )
|
||||
|
||||
local t
|
||||
# all modules except tkinter output to .
|
||||
# tkinter outputs to the correct dir ...
|
||||
cd "${ED%/}${dest}"/lib_pypy || die
|
||||
for t in "${cffi_targets[@]}"; do
|
||||
# tkinter doesn't work via -m
|
||||
"${PYTHON}" "_${t}_build.py" || die "Failed to build CFFI bindings for ${t}"
|
||||
done
|
||||
|
||||
# Cleanup temporary objects
|
||||
find "${ED%/}${dest}" -name "_cffi_*.[co]" -delete || die
|
||||
find "${ED%/}${dest}" -type d -empty -delete || die
|
||||
|
||||
# compile the installed modules
|
||||
python_optimize "${ED%/}${dest}"
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST pyqtgraph-0.10.0.tar.gz 704972 SHA256 4c851deec81c1dd1ecb4468ff6d5b035349b167cc1b4e4bb724b4b410945d20b SHA512 d995da7b4f13ae0009582aebe3f753dc78566dc50ba9314d3a2d37ad4ed8f2fd8bb497a01bb8b37b6d96bf14c071aad018bcbc7224d9dd9b47589a7b5b640d30 WHIRLPOOL a3435da48e68a4d1dfadfcb3a07f58056291cfac09b09c6459520b781717005cf52037354e2062ad4d81ed4f734ed7acf8f55d2638df720bf22f3723424ceebb
|
||||
DIST pyqtgraph-0.9.10.tar.gz 1086558 SHA256 4c0589774e3c8b0c374931397cf6356b9cc99a790215d1917bb7f015c6f0729a SHA512 c947bf69116b8b0a61a1db6ec70d51741667387f98320ce581733a306bea704754b7bb0abf94d6f01ce74dfc218b3c573db017a5e189cde76d00f85bc6b23a3d WHIRLPOOL 45ce6873298b30f74b374d3e6d7a97b1602a723d6d08847f79560fb29e6d66b70e23705e07ec5481e427fde99f27d4b84da8565ea53d96a377f5727176d35c8f
|
||||
DIST pyqtgraph-0.9.9.tar.gz 1086535 SHA256 6f61a7415c9488b334f856f06bc436b61d3742b2257310fe4bc8a1b85f84590b SHA512 f1fdf6aa2d66f4fc222fbcf97709ef9d172a4f7611882f46e6f9738fed9485ada9d81dd4d078c51385743fa344e52c3c1e0477ae5b6fabd04718bba8622e6a3e WHIRLPOOL 4d68d476df65f71eb4d7ea88eb6004ffc09868de6dbcf5192da773af6069cd83f388e3945ced1977e2531c9249bc58cc950f8540aaf71696f55d973a005a0e33
|
||||
|
@ -0,0 +1,53 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python{2_7,3_4,3_5} )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="a pure-python graphics and GUI library built on PyQt/PySide and numpy"
|
||||
HOMEPAGE="http://www.pyqtgraph.org/ https://github.com/pyqtgraph/pyqtgraph"
|
||||
SRC_URI="https://github.com/pyqtgraph/${PN}/archive/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc examples opengl"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/numpy[${PYTHON_USEDEP}]
|
||||
sci-libs/scipy[${PYTHON_USEDEP}]
|
||||
|| (
|
||||
dev-python/PyQt5[${PYTHON_USEDEP}]
|
||||
dev-python/PyQt4[${PYTHON_USEDEP}]
|
||||
dev-python/pyside[${PYTHON_USEDEP}]
|
||||
)
|
||||
opengl? ( dev-python/pyopengl[${PYTHON_USEDEP}] )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
||||
"
|
||||
|
||||
S=${WORKDIR}/${PN}-${P}
|
||||
|
||||
python_prepare_all() {
|
||||
distutils-r1_python_prepare_all
|
||||
|
||||
# fix distutils warning
|
||||
sed -i 's/install_requires/requires/' setup.py || die
|
||||
|
||||
if ! use opengl; then
|
||||
rm -r pyqtgraph/opengl || die
|
||||
fi
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C doc html
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( doc/build/html/. )
|
||||
use examples && dodoc -r examples
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST rootpy-0.7.1.tar.gz 305412 SHA256 d36399125ed8540b9a651e7b5c7ddeba686ef3107830d3d6d840cdae4834751c SHA512 460e5d79da08c141c762a5a92cf50694fe1fee8677a2439b5525b67e7d6a1a6af18a4e6dc91d379b394a97dc973da8f6baa534d46e506e0a7a4d0ee632de1a2a WHIRLPOOL d9663274a36c490bb4c872be83527d3dd414d9cca989cf20a2aca1ac5441532c9b29571d0ff885458fd2e820dc7905a679e1c9873305848ccd1fafa7820a84be
|
||||
DIST rootpy-0.8.0.tar.gz 415826 SHA256 ec0fc969101b6208e722bb9ae11dfe4a02ea53f8f91f591a5c2ea46f26581948 SHA512 0b9dc9c5bee263a2eb33b464bd96f4f9d0820a03722ca2fe3ccfaf11786caf7ccd6d25ffe4ffd42c4a5481bd3b33576cfbf68c01f2af7a981f6a2c1bedc514e2 WHIRLPOOL 7036db8d78c543259801557ebfd940cec7a3083c21757374cf5464a420643cd95cbadc898fe644181cbaa072587a0e49bd56f74f76a8670636604a32da14ddb4
|
||||
DIST rootpy-0.8.3.tar.gz 417400 SHA256 1fac940e1a22f37573db8b83040cf5517464e48c1ef5700a4a651425345c0993 SHA512 b1d3c17fb0a6dfe36bdf3d9a345fc55af8a102d33433c951581f9a61babf377fabb1ae486c78b2d4654cbc7320de122fb3075f27a1565655a3dc17c2b4f56df6 WHIRLPOOL a2f37284270c501715139117071a582c250290d7681bf1274862e364b472a0c04df56ec6d61b9ffcc7f1f0ce5ac8d0bd74f83a5607a929f8fe7de60d572010ea
|
||||
|
@ -0,0 +1,47 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
PYTHON_REQ_USE="readline"
|
||||
DISTUTILS_SINGLE_IMPL=1
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Pythonic layer on top of the ROOT framework's PyROOT bindings"
|
||||
HOMEPAGE="http://rootpy.org"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="examples test"
|
||||
|
||||
RDEPEND="
|
||||
sci-physics/root[${PYTHON_USEDEP}]
|
||||
dev-python/matplotlib[${PYTHON_USEDEP}]
|
||||
dev-python/pytables[${PYTHON_USEDEP}]
|
||||
dev-python/root_numpy[${PYTHON_USEDEP}]
|
||||
dev-python/termcolor[${PYTHON_USEDEP}]"
|
||||
|
||||
DEPEND="
|
||||
sci-physics/root[${PYTHON_USEDEP}]
|
||||
test? ( dev-python/nose[${PYTHON_USEDEP}] )"
|
||||
|
||||
# TOFIX: tests go in an infinite loop error
|
||||
RESTRICT=test
|
||||
|
||||
python_test() {
|
||||
cd "${BUILD_DIR}" || die
|
||||
nosetests -v || die "Testing failed with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r examples
|
||||
fi
|
||||
}
|
@ -0,0 +1,69 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5} pypy pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/pypa/setuptools.git"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
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"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Collection of extensions to Distutils"
|
||||
HOMEPAGE="https://github.com/pypa/setuptools https://pypi.python.org/pypi/setuptools"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND=""
|
||||
# >=dev-python/packaging-16.4[${PYTHON_USEDEP}]
|
||||
# >=dev-python/six-1.10.0[${PYTHON_USEDEP}]
|
||||
# "
|
||||
DEPEND="${RDEPEND}
|
||||
test? (
|
||||
>=dev-python/pytest-2.8[${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
# >=dev-python/pyparsing-2.0.6[${PYTHON_USEDEP}]
|
||||
PDEPEND="
|
||||
>=dev-python/certifi-2016.9.26[${PYTHON_USEDEP}]"
|
||||
|
||||
# Force in-source build because build system modifies sources.
|
||||
DISTUTILS_IN_SOURCE_BUILD=1
|
||||
|
||||
DOCS=( {CHANGES,README}.rst docs/{easy_install.txt,pkg_resources.txt,setuptools.txt} )
|
||||
|
||||
python_prepare_all() {
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
python_setup
|
||||
${EPYTHON} bootstrap.py || die
|
||||
fi
|
||||
|
||||
# rm -r ./pkg_resources/_vendor || die
|
||||
# disable tests requiring a network connection
|
||||
rm setuptools/tests/test_packageindex.py || die
|
||||
|
||||
# don't run integration tests
|
||||
rm setuptools/tests/test_integration.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# test_easy_install raises a SandboxViolation due to ${HOME}/.pydistutils.cfg
|
||||
# It tries to sandbox the test in a tempdir
|
||||
HOME="${PWD}" py.test --verbose ${PN} || die "Tests failed under ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install() {
|
||||
export DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT=1
|
||||
distutils-r1_python_install
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST spectral-cube-0.4.0.tar.gz 290453 SHA256 a08e60b314c0f6e44a3207725f962e4b9d4c9196232344f83828ca376d4c7877 SHA512 20970d1be0d836bd07ea96ee909300f28eaf2ab4ded7b4525eb68399d242b864fe93120a16ef2ef35eba5f547c0cbe90b07c27ef44ab1910dbbe97230fbab84e WHIRLPOOL 66c7d9b6d41c050dcd56048951a5a6a8c0306ae180a3042a7a066d4edd5f4ae654fad27ab325ca3e78d7a3e92d0167bc5057ca069e8db960aa23c4b18fcf78ab
|
@ -0,0 +1,139 @@
|
||||
From: Ole Streicher <olebole@debian.org>
|
||||
Date: Tue, 12 Jul 2016 08:54:59 +0200
|
||||
Subject: Use LooseVersion instead of StrictVersion.
|
||||
|
||||
StrictVersion fails on numpy RCs. LooseVersion is a compromise until something better is available.
|
||||
---
|
||||
spectral_cube/np_compat.py | 4 ++--
|
||||
spectral_cube/spectral_cube.py | 4 ++--
|
||||
spectral_cube/tests/test_masks.py | 4 ++--
|
||||
spectral_cube/tests/test_moments.py | 4 ++--
|
||||
spectral_cube/tests/test_spectral_cube.py | 10 +++++-----
|
||||
5 files changed, 13 insertions(+), 13 deletions(-)
|
||||
|
||||
diff --git a/spectral_cube/np_compat.py b/spectral_cube/np_compat.py
|
||||
index e72b4d9..dd9080a 100644
|
||||
--- a/spectral_cube/np_compat.py
|
||||
+++ b/spectral_cube/np_compat.py
|
||||
@@ -1,7 +1,7 @@
|
||||
from __future__ import print_function, absolute_import, division
|
||||
|
||||
import numpy as np
|
||||
-from distutils.version import StrictVersion
|
||||
+from distutils.version import LooseVersion
|
||||
|
||||
def allbadtonan(function):
|
||||
"""
|
||||
@@ -11,7 +11,7 @@ def allbadtonan(function):
|
||||
"""
|
||||
def f(data, axis=None):
|
||||
result = function(data, axis=axis)
|
||||
- if StrictVersion(np.__version__) >= StrictVersion('1.9.0'):
|
||||
+ if LooseVersion(np.__version__) >= LooseVersion('1.9.0'):
|
||||
if axis is None:
|
||||
if np.all(np.isnan(data)):
|
||||
return np.nan
|
||||
diff --git a/spectral_cube/spectral_cube.py b/spectral_cube/spectral_cube.py
|
||||
index 231245d..fa61119 100644
|
||||
--- a/spectral_cube/spectral_cube.py
|
||||
+++ b/spectral_cube/spectral_cube.py
|
||||
@@ -34,7 +34,7 @@ from .lower_dimensional_structures import (Projection, Slice, OneDSpectrum,
|
||||
LowerDimensionalObject)
|
||||
from .base_class import BaseNDClass, SpectralAxisMixinClass, DOPPLER_CONVENTIONS
|
||||
|
||||
-from distutils.version import StrictVersion
|
||||
+from distutils.version import LooseVersion
|
||||
|
||||
__all__ = ['SpectralCube', 'VaryingResolutionSpectralCube']
|
||||
|
||||
@@ -2072,7 +2072,7 @@ class BaseSpectralCube(BaseNDClass, SpectralAxisMixinClass):
|
||||
import yt
|
||||
|
||||
if ('dev' in yt.__version__ or
|
||||
- StrictVersion(yt.__version__) >= StrictVersion('3.0')):
|
||||
+ LooseVersion(yt.__version__) >= LooseVersion('3.0')):
|
||||
|
||||
from yt.frontends.fits.api import FITSDataset
|
||||
from yt.units.unit_object import UnitParseError
|
||||
diff --git a/spectral_cube/tests/test_masks.py b/spectral_cube/tests/test_masks.py
|
||||
index 9116cb3..42a2125 100644
|
||||
--- a/spectral_cube/tests/test_masks.py
|
||||
+++ b/spectral_cube/tests/test_masks.py
|
||||
@@ -14,7 +14,7 @@ from .. import (BooleanArrayMask, SpectralCube, LazyMask, LazyComparisonMask,
|
||||
FunctionMask, CompositeMask)
|
||||
from ..masks import is_broadcastable_and_smaller, dims_to_skip, view_of_subset
|
||||
|
||||
-from distutils.version import StrictVersion
|
||||
+from distutils.version import LooseVersion
|
||||
|
||||
|
||||
def test_spectral_cube_mask():
|
||||
@@ -370,7 +370,7 @@ def test_flat_mask():
|
||||
assert np.all(cube.sum(axis=0)[mask_array] == mcube.sum(axis=0)[mask_array])
|
||||
assert np.all(np.isnan(mcube.sum(axis=0)[~mask_array]))
|
||||
|
||||
-@pytest.mark.skipif(StrictVersion(np.__version__) < StrictVersion('1.7'),
|
||||
+@pytest.mark.skipif(LooseVersion(np.__version__) < LooseVersion('1.7'),
|
||||
reason='Numpy <1.7 does not support multi-slice indexing.')
|
||||
def test_flat_mask_spectral():
|
||||
cube, data = cube_and_raw('adv.fits')
|
||||
diff --git a/spectral_cube/tests/test_moments.py b/spectral_cube/tests/test_moments.py
|
||||
index 9b118fd..82eff40 100644
|
||||
--- a/spectral_cube/tests/test_moments.py
|
||||
+++ b/spectral_cube/tests/test_moments.py
|
||||
@@ -1,7 +1,7 @@
|
||||
from __future__ import print_function, absolute_import, division
|
||||
|
||||
import warnings
|
||||
-from distutils.version import StrictVersion
|
||||
+from distutils.version import LooseVersion
|
||||
|
||||
import pytest
|
||||
import numpy as np
|
||||
@@ -78,7 +78,7 @@ axis_order = pytest.mark.parametrize(('axis', 'order'),
|
||||
(1, 0), (1, 1), (1, 2),
|
||||
(2, 0), (2, 1), (2, 2)))
|
||||
|
||||
-if StrictVersion(astropy.__version__[:3]) >= StrictVersion('1.0'):
|
||||
+if LooseVersion(astropy.__version__[:3]) >= LooseVersion('1.0'):
|
||||
# The relative error is slightly larger on astropy-dev
|
||||
# There is no obvious reason for this.
|
||||
rtol = 2e-7
|
||||
diff --git a/spectral_cube/tests/test_spectral_cube.py b/spectral_cube/tests/test_spectral_cube.py
|
||||
index 025e6bd..4dce3bb 100644
|
||||
--- a/spectral_cube/tests/test_spectral_cube.py
|
||||
+++ b/spectral_cube/tests/test_spectral_cube.py
|
||||
@@ -4,7 +4,7 @@ import operator
|
||||
import itertools
|
||||
import warnings
|
||||
import mmap
|
||||
-from distutils.version import StrictVersion, LooseVersion
|
||||
+from distutils.version import LooseVersion, LooseVersion
|
||||
|
||||
# needed to test for warnings later
|
||||
warnings.simplefilter('always', UserWarning)
|
||||
@@ -468,12 +468,12 @@ class TestNumpyMethods(BaseTest):
|
||||
scmed = self.c.apply_numpy_function(np.median, axis=0)
|
||||
# this checks whether numpy <=1.9.3 has a bug?
|
||||
# as far as I can tell, np==1.9.3 no longer has this bug/feature
|
||||
- #if StrictVersion(np.__version__) <= StrictVersion('1.9.3'):
|
||||
+ #if LooseVersion(np.__version__) <= LooseVersion('1.9.3'):
|
||||
# # print statements added so we get more info in the travis builds
|
||||
- # print("Numpy version is: {0}".format(StrictVersion(np.__version__)))
|
||||
+ # print("Numpy version is: {0}".format(LooseVersion(np.__version__)))
|
||||
# assert np.count_nonzero(np.isnan(scmed)) == 5
|
||||
#else:
|
||||
- # print("Numpy version is: {0}".format(StrictVersion(np.__version__)))
|
||||
+ # print("Numpy version is: {0}".format(LooseVersion(np.__version__)))
|
||||
assert np.count_nonzero(np.isnan(scmed)) == 6
|
||||
|
||||
scmed = self.c.apply_numpy_function(np.nanmedian, axis=0)
|
||||
@@ -667,7 +667,7 @@ def test_read_write_rountrip(tmpdir):
|
||||
assert cube.shape == cube.shape
|
||||
assert_allclose(cube._data, cube2._data)
|
||||
if (((hasattr(_wcs, '__version__')
|
||||
- and StrictVersion(_wcs.__version__) < StrictVersion('5.9'))
|
||||
+ and LooseVersion(_wcs.__version__) < LooseVersion('5.9'))
|
||||
or not hasattr(_wcs, '__version__'))):
|
||||
# see https://github.com/astropy/astropy/pull/3992 for reasons:
|
||||
# we should upgrade this for 5.10 when the absolute accuracy is
|
@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>sci-astronomy@gentoo.org</email>
|
||||
<name>Gentoo Astronomy Project</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
The spectral-cube astronomy python module provides an easy way to
|
||||
read, manipulate, analyze, and write data cubes with two
|
||||
positional dimensions and one spectral dimension, optionally with
|
||||
Stokes parameters. It aims to be a versatile data container for
|
||||
building custom analysis routines.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="pypi">spectral-cube</remote-id>
|
||||
<remote-id type="github">astropy/spectral-cube</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -0,0 +1,52 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_4,3_5} )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Manipulate astronomical data cubes with Python"
|
||||
HOMEPAGE="https://spectral-cube.readthedocs.org/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
IUSE="doc test"
|
||||
|
||||
RDEPEND="dev-python/astropy[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/astropy-helpers[${PYTHON_USEDEP}]
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
||||
test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-looseversion.patch )
|
||||
|
||||
python_prepare_all() {
|
||||
sed -i -e '/auto_use/s/True/False/' setup.cfg || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
if use doc; then
|
||||
python_setup
|
||||
PYTHONPATH="${BUILD_DIR}"/lib \
|
||||
esetup.py build_sphinx --no-intersphinx
|
||||
fi
|
||||
}
|
||||
|
||||
python_test() {
|
||||
pushd spectral_cube/tests/data > /dev/null
|
||||
"${PYTHON}" make_test_cubes.py
|
||||
popd > /dev/null
|
||||
esetup.py test
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( docs/_build/html/ )
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST telarchive-1.8.3.tar.gz 79377 SHA256 97d1668027bee5036b7596608dd8f86d078283763f2ed0abf3850fa0276faf06 SHA512 628937f8556d7197317aaa08b0ed757d92770a0929e77ea30245c1e52a3bf04e425d86c16e4711359634d0156f1d7128780abbead163ed119262fae22e9f35ae WHIRLPOOL 6d329d0b0984e7ad0b1c5ba2c8a4d565592889000cfda77f52c9ddcd2195a5c283a24a18382c6766c4873087d9554127a12ddbd26d3af12a12a0654cdbd8a7a4
|
@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>sci-astronomy@gentoo.org</email>
|
||||
<name>Gentoo Astronomy Project</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
telarchive is a Python command-line program for searching multiple
|
||||
public telescope archives. It takes the name of an astronomical
|
||||
object -- or a set of coordinates -- and checks the telescope
|
||||
archives to see if they have observations within a user-specified
|
||||
box centered on the object/coordinates.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="pypi">telarchive</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -0,0 +1,23 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Script for automated searches of astronomical telescope archives"
|
||||
HOMEPAGE="http://www.mpe.mpg.de/~erwin/code/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]"
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue