parent
f0480a2764
commit
385f4160e4
@ -1,2 +1,3 @@
|
||||
DIST docker-compose-1.1.0.tar.gz 47478 SHA256 7df1fe408d6b150a56148a6947f70c24d29616bbe0e24ba7390ed41d2596cb1e SHA512 969ffc5343da39baff1995b2fb02818da211e6ce5df41efc4f178dd5208b2d6caee8e59909bd1e4845f8a95038b40490f663690ba46a44f1092c3b98dc6a5e49 WHIRLPOOL 1ba208cd08ac8c8cc9290805dc57076118fc6d5c25a9474a8d1b1ea45c35f2be4d9c8688c1b2d89dbfeff89ba421711fc408fe14f1b58b07010fb88c76a9f600
|
||||
DIST docker-compose-1.1.0_rc1.tar.gz 58973 SHA256 76007d86642f9df87fbaac2b1e62ca5b49ae0b5e624c5572358908b9852a2cb7 SHA512 4056608227a4b225eb9e5239dbad8885f57b948c008b716e2957ae40306894409d3aeb527224b4c779069b7baea208f0abca4f56e04ccc2353b1b601575c8a10 WHIRLPOOL 2ebb2bcac329fc58f5e3b36822c6fbce32d6e0442db656239c44c169b6282baa863b7c7649ca4dbecf549eb0de422fd636cce8cb394ca4eeaa600ced94b2b033
|
||||
DIST docker-compose-1.1.0_rc2.tar.gz 46737 SHA256 7da03a3456a2628ba727d74b207fb62941d3395d1007bf2c230e81ac792e56ac SHA512 8ae4780479fa030328623cf04fdce122801b1957017899b70c93bb74a3ad11b4a8a70c2cb3f0b0f0db0c8c47e56a736fd6b892cfd8a8561c252235d7c2ac5797 WHIRLPOOL 62207db65d28710c2820f4f3b2390c42d7dba187cd210e93a5f8be5a01305000bf6739abb40439fd649c2f823cc39812da110e99f0461b2b3e1d5d565a71c187
|
||||
|
@ -0,0 +1,49 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-emulation/docker-compose/docker-compose-1.1.0.ebuild,v 1.1 2015/03/02 23:58:38 alunduil Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Multi-container orchestration for Docker"
|
||||
HOMEPAGE="https://www.docker.com/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="test"
|
||||
|
||||
CDEPEND="
|
||||
>=dev-python/dockerpty-0.3.2[${PYTHON_USEDEP}]
|
||||
<dev-python/dockerpty-0.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/docker-py-0.6.0[${PYTHON_USEDEP}]
|
||||
<dev-python/docker-py-0.8[${PYTHON_USEDEP}]
|
||||
>=dev-python/docopt-0.6.1[${PYTHON_USEDEP}]
|
||||
<dev-python/docopt-0.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyyaml-3.10[${PYTHON_USEDEP}]
|
||||
<dev-python/pyyaml-4[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-2.2.1[${PYTHON_USEDEP}]
|
||||
<dev-python/requests-2.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/six-1.3.0[${PYTHON_USEDEP}]
|
||||
<dev-python/six-2[${PYTHON_USEDEP}]
|
||||
>=dev-python/texttable-0.8.1[${PYTHON_USEDEP}]
|
||||
<dev-python/texttable-0.9[${PYTHON_USEDEP}]
|
||||
>=dev-python/websocket-client-0.11.0[${PYTHON_USEDEP}]
|
||||
<dev-python/websocket-client-1.0[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
${CDEPEND}
|
||||
>=dev-python/mock-1.0.1[${PYTHON_USEDEP}]
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
RDEPEND="${CDEPEND}"
|
||||
|
||||
python_test() {
|
||||
nosetests tests/unit || die "Tests failed under ${EPYTHON}"
|
||||
}
|
@ -1,61 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-portage/esearch/esearch-1.3.ebuild,v 1.13 2014/01/18 05:18:24 vapier Exp $
|
||||
|
||||
EAPI="3"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
RESTRICT_PYTHON_ABIS="2.[45] 2.7-pypy-* *-jython"
|
||||
PYTHON_USE_WITH="readline"
|
||||
PYTHON_NONVERSIONED_EXECUTABLES=(".*")
|
||||
|
||||
inherit base distutils python
|
||||
|
||||
DESCRIPTION="Replacement for 'emerge --search' with search-index"
|
||||
HOMEPAGE="http://david-peter.de/esearch.html"
|
||||
SRC_URI="mirror://github/fuzzyray/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="linguas_fr linguas_it"
|
||||
|
||||
KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris"
|
||||
|
||||
DEPEND="sys-apps/portage"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
# Populate the patches array for any patches for -rX releases
|
||||
# It is an array of patch file names of the form:
|
||||
# "${FILESDIR}"/${PV}-fix-EPREFIX-capability.patch
|
||||
PATCHES=()
|
||||
|
||||
distutils_src_compile_pre_hook() {
|
||||
echo VERSION="${PVR}" "$(PYTHON)" setup.py set_version
|
||||
VERSION="${PVR}" "$(PYTHON)" setup.py set_version \
|
||||
|| die "setup.py set_version failed"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
base_src_prepare
|
||||
distutils_src_prepare
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
distutils_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
python_convert_shebangs -r "" build-*/scripts-*
|
||||
distutils_src_install
|
||||
dodoc eupdatedb.cron || die "dodoc failed"
|
||||
|
||||
# Remove unused man pages according to the linguas flags
|
||||
if ! use linguas_fr ; then
|
||||
rm -rf "${ED}"/usr/share/man/fr \
|
||||
|| die "rm failed to remove ${ED}/usr/share/man/fr"
|
||||
fi
|
||||
|
||||
if ! use linguas_it ; then
|
||||
rm -rf "${ED}"/usr/share/man/it \
|
||||
|| die "rm failed to remove ${ED}/usr/share/man/it"
|
||||
fi
|
||||
}
|
@ -0,0 +1,39 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-portage/ufed/ufed-0.92.ebuild,v 1.1 2015/03/02 23:16:42 fuzzyray Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit base eutils multilib autotools
|
||||
|
||||
DESCRIPTION="Gentoo Linux USE flags editor"
|
||||
HOMEPAGE="http://www.gentoo.org/"
|
||||
SRC_URI="mirror://gentoo/${P}.tar.bz2
|
||||
http://dev.gentoo.org/~fuzzyray/distfiles/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
|
||||
IUSE=""
|
||||
|
||||
COMMON_DEPEND="sys-libs/ncurses"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
dev-lang/perl"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
# Populate the patches array for patches applied for -rX releases
|
||||
# It is an array of patch file names of the form:
|
||||
# "${FILESDIR}"/${P}-make.globals-path.patch
|
||||
PATCHES=()
|
||||
|
||||
src_prepare() {
|
||||
base_src_prepare
|
||||
# Change the version number to reflect the ebuild version
|
||||
sed -i "s:,\[git\],:,\[${PVR}\],:" configure.ac
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf --libexecdir="${EPREFIX}"/usr/$(get_libdir)/ufed
|
||||
}
|
@ -0,0 +1,121 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-text/stardict/stardict-3.0.6.ebuild,v 1.1 2015/03/03 09:34:59 dlan Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
# NOTE: Even though the *.dict.dz are the same as dictd/freedict's files,
|
||||
# their indexes seem to be in a different format. So we'll keep them
|
||||
# seperate for now.
|
||||
|
||||
# NOTE: Festival plugin crashes, bug 188684. Disable for now.
|
||||
|
||||
GNOME2_LA_PUNT=yes
|
||||
GCONF_DEBUG=no
|
||||
|
||||
inherit eutils gnome2
|
||||
|
||||
DESCRIPTION="A international dictionary supporting fuzzy and glob style matching"
|
||||
HOMEPAGE="http://stardict-4.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}-4/${P}.tar.bz2
|
||||
pronounce? ( http://${PN}-3.googlecode.com/files/WyabdcRealPeopleTTS.tar.bz2 )
|
||||
qqwry? ( mirror://gentoo/QQWry.Dat.bz2 )"
|
||||
|
||||
LICENSE="CPL-1.0 GPL-3 LGPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~sparc ~x86"
|
||||
IUSE="espeak gucharmap qqwry pronounce spell tools"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
COMMON_DEPEND=">=dev-libs/glib-2.16:2=
|
||||
dev-libs/libsigc++:2=
|
||||
sys-libs/zlib:=
|
||||
>=x11-libs/gtk+-2.20:2=
|
||||
gucharmap? ( >=gnome-extra/gucharmap-2.22.1:0 )
|
||||
spell? ( >=app-text/enchant-1.2 )
|
||||
tools? (
|
||||
dev-libs/libpcre:=
|
||||
dev-libs/libxml2:=
|
||||
virtual/mysql
|
||||
)"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
espeak? ( >=app-accessibility/espeak-1.29 )"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
app-text/docbook-xml-dtd:4.3
|
||||
app-text/gnome-doc-utils
|
||||
dev-libs/libxslt
|
||||
dev-util/intltool
|
||||
sys-devel/gettext
|
||||
virtual/pkgconfig"
|
||||
|
||||
src_configure() {
|
||||
# Hint: EXTRA_ECONF="--enable-gnome-support" and manual install of
|
||||
# libbonobo-2, libgnome-2, libgnomeui-2, gconf-2 and orbit-2 will
|
||||
# give you GNOME 2.x support, that is otherwise considered deprecated
|
||||
# because of the deep GNOME 2.x core library dependencies
|
||||
gnome2_src_configure \
|
||||
$(use_enable tools) \
|
||||
--disable-scrollkeeper \
|
||||
$(use_enable spell) \
|
||||
$(use_enable gucharmap) \
|
||||
--disable-festival \
|
||||
$(use_enable espeak) \
|
||||
$(use_enable qqwry) \
|
||||
--disable-updateinfo \
|
||||
--disable-gnome-support \
|
||||
--disable-gpe-support \
|
||||
--disable-schemas-install
|
||||
}
|
||||
|
||||
src_install() {
|
||||
gnome2_src_install
|
||||
|
||||
dodoc dict/doc/{Documentation,FAQ,HACKING,HowToCreateDictionary,Skins,StarDictFileFormat,Translation}
|
||||
|
||||
if use qqwry; then
|
||||
insinto /usr/share/${PN}/data
|
||||
doins ../QQWry.Dat
|
||||
fi
|
||||
|
||||
if use pronounce; then
|
||||
docinto WyabdcRealPeopleTTS
|
||||
dodoc ../WyabdcRealPeopleTTS/{README,readme.txt}
|
||||
rm -f ../WyabdcRealPeopleTTS/{README,readme.txt}
|
||||
insinto /usr/share
|
||||
doins -r ../WyabdcRealPeopleTTS
|
||||
fi
|
||||
|
||||
# noinst_PROGRAMS with ${PN}_ prefix from tools/src/Makefile.am wrt #292773
|
||||
if use tools; then
|
||||
local app
|
||||
local apps="${PN}-editor pydict2dic olddic2newdic oxford2dic directory2dic
|
||||
dictd2dic wquick2dic ec50 directory2treedic treedict2dir jdictionary mova
|
||||
xmlinout soothill kanjidic2 powerword kdic 21tech 21shiji buddhist
|
||||
tabfile cedict edict duden ${PN}-dict-update degb2utf frgb2utf
|
||||
jpgb2utf gmx2utf rucn kingsoft wikipedia wikipediaImage babylon
|
||||
${PN}2txt ${PN}-verify fest2dict i2e2dict downloadwiki
|
||||
ooo2dict myspell2dic exc2i2e dictbuilder tabfile2sql KangXi Unihan
|
||||
xiaoxuetang-ja wubi ydp2dict wordnet lingvosound2resdb
|
||||
resdatabase2dir dir2resdatabase ${PN}-index sd2foldoc ${PN}-text2bin
|
||||
${PN}-bin2text ${PN}-repair"
|
||||
|
||||
for app in ${apps}; do
|
||||
newbin tools/src/${app} ${PN}_${app}
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Note: festival text to speech (TTS) plugin is not built. To use festival"
|
||||
elog 'TTS plugin, please, emerge festival and enable "Use TTS program." at:'
|
||||
elog '"Preferences -> Dictionary -> Sound" and fill in "Commandline" with:'
|
||||
elog '"echo %s | festival --tts"'
|
||||
elog
|
||||
elog "You will now need to install ${PN} dictionary files. If"
|
||||
elog "you have not, execute the below to get a list of dictionaries:"
|
||||
elog
|
||||
elog " emerge -s ${PN}-"
|
||||
|
||||
gnome2_pkg_postinst
|
||||
}
|
@ -1,35 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-java/asm/asm-3.2.ebuild,v 1.6 2012/04/15 18:11:31 vapier Exp $
|
||||
|
||||
WANT_ANT_TASKS="ant-owanttask"
|
||||
JAVA_PKG_IUSE="doc source"
|
||||
|
||||
inherit java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="Bytecode manipulation framework for Java"
|
||||
HOMEPAGE="http://asm.objectweb.org"
|
||||
SRC_URI="http://download.forge.objectweb.org/${PN}/${P}.tar.gz"
|
||||
LICENSE="BSD"
|
||||
SLOT="3"
|
||||
IUSE=""
|
||||
KEYWORDS="amd64 ~ia64 ppc ppc64 x86 ~x86-fbsd ~sparc-solaris ~x86-solaris"
|
||||
|
||||
DEPEND=">=virtual/jdk-1.5"
|
||||
RDEPEND=">=virtual/jre-1.5"
|
||||
|
||||
# Needs deps we don't have yet
|
||||
RESTRICT="test"
|
||||
|
||||
EANT_DOC_TARGET="jdoc"
|
||||
|
||||
# Fails if this property is not set
|
||||
EANT_EXTRA_ARGS="-Dobjectweb.ant.tasks.path=foobar"
|
||||
|
||||
src_install() {
|
||||
for x in output/dist/lib/*.jar ; do
|
||||
java-pkg_newjar ${x} $(basename ${x/-${PV}})
|
||||
done
|
||||
use doc && java-pkg_dojavadoc output/dist/doc/javadoc/user/
|
||||
use source && java-pkg_dosrc src/*
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
do not hardcode /usr/include paths
|
||||
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -4316,7 +4316,7 @@ fi
|
||||
|
||||
# first curses configure check
|
||||
ac_save_cppflags="$CPPFLAGS"
|
||||
-CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
|
||||
+CPPFLAGS="$CPPFLAGS `$PKG_CONFIG --cflags ncursesw`"
|
||||
|
||||
AC_CHECK_HEADERS(curses.h ncurses.h)
|
||||
|
@ -0,0 +1,40 @@
|
||||
do not hardcode /usr/include paths
|
||||
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -668,6 +668,8 @@ AC_ARG_WITH(cxx_main,
|
||||
])
|
||||
AC_MSG_RESULT($with_cxx_main)
|
||||
|
||||
+AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
|
||||
+
|
||||
preset_cxx="$CXX"
|
||||
if test -z "$CXX"
|
||||
then
|
||||
@@ -1513,7 +1515,7 @@ dnl AC_MSG_RESULT($cpp_type)
|
||||
# checks for header files
|
||||
AC_HEADER_STDC
|
||||
ac_save_cppflags="$CPPFLAGS"
|
||||
-CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
|
||||
+CPPFLAGS="$CPPFLAGS `$PKG_CONFIG --cflags ncursesw`"
|
||||
AC_CHECK_HEADERS(asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
|
||||
fcntl.h grp.h \
|
||||
ieeefp.h io.h langinfo.h libintl.h ncurses.h process.h pthread.h \
|
||||
@@ -2225,8 +2227,6 @@ LIBS="$withval $LIBS"
|
||||
],
|
||||
[AC_MSG_RESULT(no)])
|
||||
|
||||
-AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
|
||||
-
|
||||
# Check for use of the system expat library
|
||||
AC_MSG_CHECKING(for --with-system-expat)
|
||||
AC_ARG_WITH(system_expat,
|
||||
@@ -4273,7 +4273,7 @@ then
|
||||
fi
|
||||
|
||||
ac_save_cppflags="$CPPFLAGS"
|
||||
-CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
|
||||
+CPPFLAGS="$CPPFLAGS `$PKG_CONFIG --cflags ncursesw`"
|
||||
# On HP/UX 11.0, mvwdelch is a block with a return statement
|
||||
AC_MSG_CHECKING(whether mvwdelch is an expression)
|
||||
AC_CACHE_VAL(ac_cv_mvwdelch_is_expression,
|
@ -0,0 +1,13 @@
|
||||
do not hardcode /usr/include paths
|
||||
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -4402,7 +4402,7 @@ fi
|
||||
|
||||
# first curses header check
|
||||
ac_save_cppflags="$CPPFLAGS"
|
||||
-CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
|
||||
+CPPFLAGS="$CPPFLAGS `$PKG_CONFIG --cflags ncursesw`"
|
||||
|
||||
AC_CHECK_HEADERS(curses.h ncurses.h)
|
||||
|
@ -0,0 +1,318 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-3.4.3.ebuild,v 1.2 2015/03/03 06:49:14 vapier Exp $
|
||||
|
||||
EAPI="4"
|
||||
WANT_LIBTOOL="none"
|
||||
|
||||
inherit autotools eutils flag-o-matic multilib pax-utils python-utils-r1 toolchain-funcs multiprocessing
|
||||
|
||||
MY_P="Python-${PV/_/}"
|
||||
PATCHSET_VERSION="3.4.3-0"
|
||||
|
||||
DESCRIPTION="An interpreted, interactive, object-oriented programming language"
|
||||
HOMEPAGE="http://www.python.org/"
|
||||
SRC_URI="http://www.python.org/ftp/python/${PV%_rc*}/${MY_P}.tar.xz
|
||||
http://dev.gentoo.org/~floppym/python/python-gentoo-patches-${PATCHSET_VERSION}.tar.xz"
|
||||
|
||||
LICENSE="PSF-2"
|
||||
SLOT="3.4"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="build elibc_uclibc examples gdbm hardened ipv6 +ncurses +readline sqlite +ssl +threads tk wininst +xml"
|
||||
|
||||
# Do not add a dependency on dev-lang/python to this ebuild.
|
||||
# If you need to apply a patch which requires python for bootstrapping, please
|
||||
# run the bootstrap code on your dev box and include the results in the
|
||||
# patchset. See bug 447752.
|
||||
|
||||
RDEPEND="app-arch/bzip2
|
||||
app-arch/xz-utils
|
||||
>=sys-libs/zlib-1.1.3
|
||||
virtual/libffi
|
||||
virtual/libintl
|
||||
!build? (
|
||||
gdbm? ( sys-libs/gdbm[berkdb] )
|
||||
ncurses? (
|
||||
>=sys-libs/ncurses-5.2
|
||||
readline? ( >=sys-libs/readline-4.1 )
|
||||
)
|
||||
sqlite? ( >=dev-db/sqlite-3.3.8:3 )
|
||||
ssl? ( dev-libs/openssl )
|
||||
tk? (
|
||||
>=dev-lang/tk-8.0
|
||||
dev-tcltk/blt
|
||||
dev-tcltk/tix
|
||||
)
|
||||
xml? ( >=dev-libs/expat-2.1 )
|
||||
)
|
||||
!!<sys-apps/sandbox-2.6-r1"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
>=sys-devel/autoconf-2.65
|
||||
!sys-devel/gcc[libffi]"
|
||||
RDEPEND+=" !build? ( app-misc/mime-types )"
|
||||
PDEPEND="app-admin/eselect-python
|
||||
app-admin/python-updater"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_prepare() {
|
||||
# Ensure that internal copies of expat, libffi and zlib are not used.
|
||||
rm -fr Modules/expat
|
||||
rm -fr Modules/_ctypes/libffi*
|
||||
rm -fr Modules/zlib
|
||||
|
||||
if tc-is-cross-compiler; then
|
||||
# Invokes BUILDPYTHON, which is built for the host arch
|
||||
local EPATCH_EXCLUDE="*_regenerate_platform-specific_modules.patch"
|
||||
fi
|
||||
|
||||
EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
|
||||
epatch "${FILESDIR}/${PN}-3.4.3-ncurses-pkg-config.patch"
|
||||
|
||||
sed -i -e "s:@@GENTOO_LIBDIR@@:$(get_libdir):g" \
|
||||
Lib/distutils/command/install.py \
|
||||
Lib/distutils/sysconfig.py \
|
||||
Lib/site.py \
|
||||
Lib/sysconfig.py \
|
||||
Lib/test/test_site.py \
|
||||
Makefile.pre.in \
|
||||
Modules/Setup.dist \
|
||||
Modules/getpath.c \
|
||||
setup.py || die "sed failed to replace @@GENTOO_LIBDIR@@"
|
||||
|
||||
# Disable ABI flags.
|
||||
sed -e "s/ABIFLAGS=\"\${ABIFLAGS}.*\"/:/" -i configure.ac || die "sed failed"
|
||||
|
||||
epatch_user
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
if use build; then
|
||||
# Disable extraneous modules with extra dependencies.
|
||||
export PYTHON_DISABLE_MODULES="gdbm _curses _curses_panel readline _sqlite3 _tkinter _elementtree pyexpat"
|
||||
export PYTHON_DISABLE_SSL="1"
|
||||
else
|
||||
local disable
|
||||
use gdbm || disable+=" gdbm"
|
||||
use ncurses || disable+=" _curses _curses_panel"
|
||||
use readline || disable+=" readline"
|
||||
use sqlite || disable+=" _sqlite3"
|
||||
use ssl || export PYTHON_DISABLE_SSL="1"
|
||||
use tk || disable+=" _tkinter"
|
||||
use xml || disable+=" _elementtree pyexpat" # _elementtree uses pyexpat.
|
||||
export PYTHON_DISABLE_MODULES="${disable}"
|
||||
|
||||
if ! use xml; then
|
||||
ewarn "You have configured Python without XML support."
|
||||
ewarn "This is NOT a recommended configuration as you"
|
||||
ewarn "may face problems parsing any XML documents."
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ -n "${PYTHON_DISABLE_MODULES}" ]]; then
|
||||
einfo "Disabled modules: ${PYTHON_DISABLE_MODULES}"
|
||||
fi
|
||||
|
||||
if [[ "$(gcc-major-version)" -ge 4 ]]; then
|
||||
append-flags -fwrapv
|
||||
fi
|
||||
|
||||
filter-flags -malign-double
|
||||
|
||||
[[ "${ARCH}" == "alpha" ]] && append-flags -fPIC
|
||||
|
||||
# https://bugs.gentoo.org/show_bug.cgi?id=50309
|
||||
if is-flagq -O3; then
|
||||
is-flagq -fstack-protector-all && replace-flags -O3 -O2
|
||||
use hardened && replace-flags -O3 -O2
|
||||
fi
|
||||
|
||||
# Export CXX so it ends up in /usr/lib/python3.X/config/Makefile.
|
||||
tc-export CXX
|
||||
# The configure script fails to use pkg-config correctly.
|
||||
# http://bugs.python.org/issue15506
|
||||
export ac_cv_path_PKG_CONFIG=$(tc-getPKG_CONFIG)
|
||||
|
||||
# Set LDFLAGS so we link modules with -lpython3.2 correctly.
|
||||
# Needed on FreeBSD unless Python 3.2 is already installed.
|
||||
# Please query BSD team before removing this!
|
||||
append-ldflags "-L."
|
||||
|
||||
local dbmliborder
|
||||
if use gdbm; then
|
||||
dbmliborder+="${dbmliborder:+:}gdbm"
|
||||
fi
|
||||
|
||||
BUILD_DIR="${WORKDIR}/${CHOST}"
|
||||
mkdir -p "${BUILD_DIR}" || die
|
||||
cd "${BUILD_DIR}" || die
|
||||
|
||||
ECONF_SOURCE="${S}" OPT="" \
|
||||
econf \
|
||||
--with-fpectl \
|
||||
--enable-shared \
|
||||
$(use_enable ipv6) \
|
||||
$(use_with threads) \
|
||||
--infodir='${prefix}/share/info' \
|
||||
--mandir='${prefix}/share/man' \
|
||||
--with-computed-gotos \
|
||||
--with-dbmliborder="${dbmliborder}" \
|
||||
--with-libc="" \
|
||||
--enable-loadable-sqlite-extensions \
|
||||
--with-system-expat \
|
||||
--with-system-ffi \
|
||||
--without-ensurepip
|
||||
|
||||
if use threads && grep -q "#define POSIX_SEMAPHORES_NOT_ENABLED 1" pyconfig.h; then
|
||||
eerror "configure has detected that the sem_open function is broken."
|
||||
eerror "Please ensure that /dev/shm is mounted as a tmpfs with mode 1777."
|
||||
die "Broken sem_open function (bug 496328)"
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Avoid invoking pgen for cross-compiles.
|
||||
touch Include/graminit.h Python/graminit.c || die
|
||||
|
||||
cd "${BUILD_DIR}" || die
|
||||
emake CPPFLAGS="" CFLAGS="" LDFLAGS=""
|
||||
|
||||
# Work around bug 329499. See also bug 413751 and 457194.
|
||||
if has_version dev-libs/libffi[pax_kernel]; then
|
||||
pax-mark E python
|
||||
else
|
||||
pax-mark m python
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Tests will not work when cross compiling.
|
||||
if tc-is-cross-compiler; then
|
||||
elog "Disabling tests due to crosscompiling."
|
||||
return
|
||||
fi
|
||||
|
||||
cd "${BUILD_DIR}" || die
|
||||
|
||||
# Skip failing tests.
|
||||
local skipped_tests="gdb"
|
||||
|
||||
for test in ${skipped_tests}; do
|
||||
mv "${S}"/Lib/test/test_${test}.py "${T}"
|
||||
done
|
||||
|
||||
local -x PYTHONDONTWRITEBYTECODE=
|
||||
emake test EXTRATESTOPTS="-u-network" CPPFLAGS= CFLAGS= LDFLAGS= < /dev/tty
|
||||
local result=$?
|
||||
|
||||
for test in ${skipped_tests}; do
|
||||
mv "${T}/test_${test}.py" "${S}"/Lib/test
|
||||
done
|
||||
|
||||
elog "The following tests have been skipped:"
|
||||
for test in ${skipped_tests}; do
|
||||
elog "test_${test}.py"
|
||||
done
|
||||
|
||||
elog "If you would like to run them, you may:"
|
||||
elog "cd '${EPREFIX}/usr/$(get_libdir)/python${SLOT}/test'"
|
||||
elog "and run the tests separately."
|
||||
|
||||
if [[ ${result} -ne 0 ]]; then
|
||||
die "emake test failed"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local libdir=${ED}/usr/$(get_libdir)/python${SLOT}
|
||||
|
||||
cd "${BUILD_DIR}" || die
|
||||
|
||||
emake DESTDIR="${D}" altinstall
|
||||
|
||||
sed \
|
||||
-e "s/\(CONFIGURE_LDFLAGS=\).*/\1/" \
|
||||
-e "s/\(PY_LDFLAGS=\).*/\1/" \
|
||||
-i "${libdir}/config-${SLOT}/Makefile" || die "sed failed"
|
||||
|
||||
# Backwards compat with Gentoo divergence.
|
||||
dosym python${SLOT}-config /usr/bin/python-config-${SLOT}
|
||||
|
||||
# Fix collisions between different slots of Python.
|
||||
rm -f "${ED}usr/$(get_libdir)/libpython3.so"
|
||||
|
||||
if use build; then
|
||||
rm -fr "${ED}usr/bin/idle${SLOT}" "${libdir}/"{idlelib,sqlite3,test,tkinter}
|
||||
else
|
||||
use elibc_uclibc && rm -fr "${libdir}/test"
|
||||
use sqlite || rm -fr "${libdir}/"{sqlite3,test/test_sqlite*}
|
||||
use tk || rm -fr "${ED}usr/bin/idle${SLOT}" "${libdir}/"{idlelib,tkinter,test/test_tk*}
|
||||
fi
|
||||
|
||||
use threads || rm -fr "${libdir}/multiprocessing"
|
||||
use wininst || rm -f "${libdir}/distutils/command/"wininst-*.exe
|
||||
|
||||
dodoc "${S}"/Misc/{ACKS,HISTORY,NEWS}
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
find "${S}"/Tools -name __pycache__ -print0 | xargs -0 rm -fr
|
||||
doins -r "${S}"/Tools
|
||||
fi
|
||||
insinto /usr/share/gdb/auto-load/usr/$(get_libdir) #443510
|
||||
local libname=$(printf 'e:\n\t@echo $(INSTSONAME)\ninclude Makefile\n' | \
|
||||
emake --no-print-directory -s -f - 2>/dev/null)
|
||||
newins "${S}"/Tools/gdb/libpython.py "${libname}"-gdb.py
|
||||
|
||||
newconfd "${FILESDIR}/pydoc.conf" pydoc-${SLOT}
|
||||
newinitd "${FILESDIR}/pydoc.init" pydoc-${SLOT}
|
||||
sed \
|
||||
-e "s:@PYDOC_PORT_VARIABLE@:PYDOC${SLOT/./_}_PORT:" \
|
||||
-e "s:@PYDOC@:pydoc${SLOT}:" \
|
||||
-i "${ED}etc/conf.d/pydoc-${SLOT}" "${ED}etc/init.d/pydoc-${SLOT}" || die "sed failed"
|
||||
|
||||
# for python-exec
|
||||
python_export python${SLOT} EPYTHON PYTHON PYTHON_SITEDIR
|
||||
|
||||
# if not using a cross-compiler, use the fresh binary
|
||||
if ! tc-is-cross-compiler; then
|
||||
local PYTHON=./python
|
||||
local -x LD_LIBRARY_PATH=${LD_LIBRARY_PATH+${LD_LIBRARY_PATH}:}.
|
||||
fi
|
||||
|
||||
echo "EPYTHON='${EPYTHON}'" > epython.py
|
||||
python_domodule epython.py
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if has_version "<${CATEGORY}/${PN}-${SLOT}" && ! has_version ">=${CATEGORY}/${PN}-${SLOT}_alpha"; then
|
||||
python_updater_warning="1"
|
||||
fi
|
||||
}
|
||||
|
||||
eselect_python_update() {
|
||||
if [[ -z "$(eselect python show)" || ! -f "${EROOT}usr/bin/$(eselect python show)" ]]; then
|
||||
eselect python update
|
||||
fi
|
||||
|
||||
if [[ -z "$(eselect python show --python${PV%%.*})" || ! -f "${EROOT}usr/bin/$(eselect python show --python${PV%%.*})" ]]; then
|
||||
eselect python update --python${PV%%.*}
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
eselect_python_update
|
||||
|
||||
if [[ "${python_updater_warning}" == "1" ]]; then
|
||||
ewarn "You have just upgraded from an older version of Python."
|
||||
ewarn
|
||||
ewarn "Please adjust PYTHON_TARGETS (if so desired), and run emerge with the --newuse or --changed-use option to rebuild packages installing python modules."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
eselect_python_update
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST amodem-1.9.tar.gz 19301 SHA256 a668abe618446a6925b4262cbd884ea9f2ef38bf44481d37f09cf1f1f0989c95 SHA512 92206cc45d58605f3bc2f00c466712e9ca7e4af6e257817483e69c9f84cdcf8996c99872360b1717f584357b395d81c907493180318bf8b93c6f0ad40caf1305 WHIRLPOOL a1c0ec6cbcf4d18890d22f1c051e78dc904a4bbca3d745fc7615ea93eca57f1110038e21a4091479d0ba75f4d5c885d361ec05b6b51d0385498ac328987f5318
|
@ -0,0 +1,18 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/amodem/amodem-1.9.ebuild,v 1.1 2015/03/02 23:57:56 blueness Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3,3_4} pypy pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Transmit data between two computers using audio"
|
||||
HOMEPAGE="https://github.com/romanz/amodem"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>proxy-maintainers</herd>
|
||||
<maintainer>
|
||||
<email>blueness@gentoo.org</email>
|
||||
<name>Anthony G. Basile</name>
|
||||
</maintainer>
|
||||
<maintainer>
|
||||
<email>luke-jr+gentoobugs@utopios.org</email>
|
||||
<name>Luke Dashjr</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue