parent
a61d9b46bf
commit
ebe48b0fdf
@ -0,0 +1,19 @@
|
||||
From 6a6a442585fcdf534cc448706a1be2d460862bdf Mon Sep 17 00:00:00 2001
|
||||
From: Viktor Tusa <tusa@balabit.hu>
|
||||
Date: Wed, 26 Mar 2014 17:05:08 +0100
|
||||
Subject: [PATCH] value-pairs: Fixed a memory leak in value-pairs.
|
||||
|
||||
We should free the elements of the GPtrArray too, not just the GPtrArray.
|
||||
|
||||
Signed-off-by: Viktor Tusa <tusa@balabit.hu>
|
||||
|
||||
--- lib/value-pairs.c.orig 2014-03-27 18:16:45.492827781 -0400
|
||||
+++ lib/value-pairs.c 2014-03-27 18:16:56.785426734 -0400
|
||||
@@ -651,6 +651,7 @@
|
||||
NULL), so treat that normally. */
|
||||
key = g_strdup(g_ptr_array_index(tokens, tokens->len - 1));
|
||||
|
||||
+ g_ptr_array_foreach(tokens, g_free, NULL);
|
||||
g_ptr_array_free(tokens, TRUE);
|
||||
|
||||
return key;
|
@ -1,2 +1,2 @@
|
||||
DIST lynis-1.3.0.tar.gz 119797 SHA256 fe265965eb1ce8fac352e0bddea1d5ec6508c319bf88a5f63c2edecf2af6de54 SHA512 a2cf40fbc245e9ed89740026374f3b61110cc1e0282899284699a2271cb4996f30d0a91562d3e2eaf5eb165ab89d0860127ceeb5767aec1d5538b879657a76a8 WHIRLPOOL c19aaaf2f9ccd8141a86b1eeecf129ab83006b50ed428eb1801b58811b441f3c5cfea37d1333cf58fd372b3f40026735bdc2e44ace3de399a27e2e0dd8300fa3
|
||||
DIST lynis-1.4.7.tar.gz 144231 SHA256 634569923deb4852e20d6122ff4c30d976bb45da41677eac0dcd3125c233ef4d SHA512 8e4f16257b0cec752c43e3d7eac8d3319336f67cf6384c939f6b03d7bfcdfbc5b30b1ae9b24a4843fd1ccc3d10d4c6f4f9e7b14f1630231aaa05618c0b4f0774 WHIRLPOOL d6bf3f4429526deebe8e48918daa26a34fee80daf3c5027e1ee77aa8afea3996d281653f53fede5ddaadcc42cf99a79424ccb52f39352cf39d83fd6972a055d1
|
||||
DIST lynis-1.4.8.tar.gz 144374 SHA256 f219bc254464ef8993fb659f9292a4727fd23f7a0e3d6eb13f379ebdd70464f4 SHA512 ff75d5a3f6336e6497d73bbee09b84aebdeb7b6d2715edef69e2ed5f8ae516f20158d72f6e8cc920dd71c47008612f0e19ae820a345c584959cea99bcfcd2a3c WHIRLPOOL 84dadb89a7429d194f8a5d34c436d78e2b24cade05b464c62f888cabe257a7806bbab5421332c569a42c71101e78b199f0791b7675ad1509e59a742e10fc8745
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-forensics/lynis/lynis-1.4.7.ebuild,v 1.1 2014/03/21 19:21:37 idl0r Exp $
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-forensics/lynis/lynis-1.4.8.ebuild,v 1.1 2014/03/27 22:30:51 idl0r Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
@ -0,0 +1,17 @@
|
||||
https://lists.gnu.org/archive/html/bug-bash/2014-03/msg00172.html
|
||||
|
||||
*** ../bash-4.3-patched/parse.y 2014-02-11 09:42:10.000000000 -0500
|
||||
--- parse.y 2014-03-27 16:33:29.000000000 -0400
|
||||
***************
|
||||
*** 2425,2429 ****
|
||||
if (shell_input_line_terminator != EOF)
|
||||
{
|
||||
! if (shell_input_line_size < SIZE_MAX && shell_input_line_len > shell_input_line_size - 3)
|
||||
shell_input_line = (char *)xrealloc (shell_input_line,
|
||||
1 + (shell_input_line_size += 2));
|
||||
--- 2425,2429 ----
|
||||
if (shell_input_line_terminator != EOF)
|
||||
{
|
||||
! if (shell_input_line_size < SIZE_MAX-3 && (shell_input_line_len+3 > shell_input_line_size))
|
||||
shell_input_line = (char *)xrealloc (shell_input_line,
|
||||
1 + (shell_input_line_size += 2));
|
@ -0,0 +1,119 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/lua/lua-5.1.5-r1.ebuild,v 1.1 2014/03/28 05:38:36 vapier Exp $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit eutils multilib portability toolchain-funcs versionator
|
||||
|
||||
DESCRIPTION="A powerful light-weight programming language designed for extending applications"
|
||||
HOMEPAGE="http://www.lua.org/"
|
||||
SRC_URI="http://www.lua.org/ftp/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~arm-linux ~x86-linux"
|
||||
IUSE="+deprecated emacs readline static"
|
||||
|
||||
RDEPEND="readline? ( sys-libs/readline )"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/libtool"
|
||||
PDEPEND="emacs? ( app-emacs/lua-mode )"
|
||||
|
||||
src_prepare() {
|
||||
local PATCH_PV=$(get_version_component_range 1-2)
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-${PATCH_PV}-make-r1.patch
|
||||
epatch "${FILESDIR}"/${PN}-${PATCH_PV}-module_paths.patch
|
||||
|
||||
#EPATCH_SOURCE="${FILESDIR}/${PV}" EPATCH_SUFFIX="upstream.patch" epatch
|
||||
|
||||
# correct lua versioning
|
||||
sed -i -e 's/\(LIB_VERSION = \)6:1:1/\16:5:1/' src/Makefile
|
||||
|
||||
sed -i -e 's:\(/README\)\("\):\1.gz\2:g' doc/readme.html
|
||||
|
||||
if ! use deprecated ; then
|
||||
# patches from 5.1.4 still apply
|
||||
epatch "${FILESDIR}"/${PN}-5.1.4-deprecated.patch
|
||||
epatch "${FILESDIR}"/${PN}-5.1.4-test.patch
|
||||
fi
|
||||
|
||||
if ! use readline ; then
|
||||
epatch "${FILESDIR}"/${PN}-${PATCH_PV}-readline.patch
|
||||
fi
|
||||
|
||||
# Using dynamic linked lua is not recommended for performance
|
||||
# reasons. http://article.gmane.org/gmane.comp.lang.lua.general/18519
|
||||
# Mainly, this is of concern if your arch is poor with GPRs, like x86
|
||||
# Note that this only affects the interpreter binary (named lua), not the lua
|
||||
# compiler (built statically) nor the lua libraries (both shared and static
|
||||
# are installed)
|
||||
if use static ; then
|
||||
epatch "${FILESDIR}"/${PN}-${PATCH_PV}-make_static-r1.patch
|
||||
fi
|
||||
|
||||
# We want packages to find our things...
|
||||
sed -i \
|
||||
-e 's:/usr/local:'${EPREFIX}'/usr:' \
|
||||
-e "s:\([/\"]\)\<lib\>:\1$(get_libdir):g" \
|
||||
etc/lua.pc src/luaconf.h || die
|
||||
}
|
||||
|
||||
# no need for a configure phase
|
||||
src_configure() { true; }
|
||||
|
||||
src_compile() {
|
||||
tc-export CC
|
||||
myflags=
|
||||
# what to link to liblua
|
||||
liblibs="-lm"
|
||||
liblibs="${liblibs} $(dlopen_lib)"
|
||||
|
||||
# what to link to the executables
|
||||
mylibs=
|
||||
if use readline; then
|
||||
mylibs="-lreadline"
|
||||
fi
|
||||
|
||||
cd src
|
||||
emake CC="${CC}" CFLAGS="-DLUA_USE_LINUX ${CFLAGS}" \
|
||||
RPATH="${EPREFIX}/usr/$(get_libdir)/" \
|
||||
LUA_LIBS="${mylibs}" \
|
||||
LIB_LIBS="${liblibs}" \
|
||||
V=${PV} \
|
||||
gentoo_all || die "emake failed"
|
||||
|
||||
mv lua_test ../test/lua.static
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake INSTALL_TOP="${ED}/usr" INSTALL_LIB="${ED}/usr/$(get_libdir)" \
|
||||
V=${PV} gentoo_install \
|
||||
|| die "emake install gentoo_install failed"
|
||||
|
||||
dodoc HISTORY README
|
||||
dohtml doc/*.html doc/*.png doc/*.css doc/*.gif
|
||||
|
||||
doicon etc/lua.ico
|
||||
insinto /usr/$(get_libdir)/pkgconfig
|
||||
doins etc/lua.pc
|
||||
|
||||
doman doc/lua.1 doc/luac.1
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local positive="bisect cf echo env factorial fib fibfor hello printf sieve
|
||||
sort trace-calls trace-globals"
|
||||
local negative="readonly"
|
||||
local test
|
||||
|
||||
cd "${S}"
|
||||
for test in ${positive}; do
|
||||
test/lua.static test/${test}.lua || die "test $test failed"
|
||||
done
|
||||
|
||||
for test in ${negative}; do
|
||||
test/lua.static test/${test}.lua && die "test $test failed"
|
||||
done
|
||||
}
|
@ -0,0 +1,320 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-3.3.5.ebuild,v 1.1 2014/03/28 01:35:30 floppym Exp $
|
||||
|
||||
EAPI="4"
|
||||
WANT_AUTOMAKE="none"
|
||||
WANT_LIBTOOL="none"
|
||||
|
||||
inherit autotools eutils flag-o-matic multilib pax-utils python-utils-r1 toolchain-funcs multiprocessing
|
||||
|
||||
MY_P="Python-${PV}"
|
||||
PATCHSET_VERSION="${PV}-0"
|
||||
|
||||
DESCRIPTION="An interpreted, interactive, object-oriented programming language"
|
||||
HOMEPAGE="http://www.python.org/"
|
||||
SRC_URI="http://www.python.org/ftp/python/${PV}/${MY_P}.tar.xz
|
||||
http://dev.gentoo.org/~floppym/python/python-gentoo-patches-${PATCHSET_VERSION}.tar.xz
|
||||
mirror://gentoo/python-gentoo-patches-${PATCHSET_VERSION}.tar.xz"
|
||||
|
||||
LICENSE="PSF-2"
|
||||
SLOT="3.3"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="build doc 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
|
||||
)
|
||||
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 )
|
||||
doc? ( dev-python/python-docs:${SLOT} )"
|
||||
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"
|
||||
|
||||
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
|
||||
|
||||
eautoconf
|
||||
eautoheader
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
PYTHONDONTWRITEBYTECODE="" emake test EXTRATESTOPTS="-u -network" FLAGS="" 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."
|
||||
ewarn
|
||||
ewarn "For legacy packages, you should switch active version of Python and run 'python-updater [options]' to rebuild Python modules."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
eselect_python_update
|
||||
}
|
@ -0,0 +1,321 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-3.4.0.ebuild,v 1.1 2014/03/28 01:45:34 floppym Exp $
|
||||
|
||||
EAPI="4"
|
||||
WANT_AUTOMAKE="none"
|
||||
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.0-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
|
||||
mirror://gentoo/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
|
||||
)
|
||||
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"
|
||||
|
||||
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
|
||||
|
||||
eautoconf
|
||||
eautoheader
|
||||
}
|
||||
|
||||
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."
|
||||
ewarn
|
||||
ewarn "For legacy packages, you should switch active version of Python and run 'python-updater [options]' to rebuild Python modules."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
eselect_python_update
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST pbr-0.5.21.tar.gz 123902 SHA256 bba90ab981fc2c086650dad4413e4626cc8b199f1c848959469f26224d3ab381 SHA512 6c60deb8489f33df3491c113047de8811aeeefaa18ab5fd780f1024ae2dcdaf939c570078e22720b0eb22085bc8659717964b102ac0f4889bf9804553f059c5e WHIRLPOOL 2015c6578eef583a5884549d9257d71ff8fa8e93f3a2fc8903c8cbb12f9d6f1dbdd4f29ea74656c2ab981adc717c4ac39155b2718f7d2e06d7b7914d861ac4c7
|
||||
DIST pbr-0.5.23.tar.gz 128773 SHA256 032903366eabe6a388dfd6fdc1f4ef72558d7b9be6313bc24619c2a8d71b6087 SHA512 91889672e8c7cc6949c6e1180728f04242d546d112ac5dbe1d3b63e3a6c293072d68a1c95fdfd4d68404261d459270768e5d77b1a5596f3f0547e246c52a585d WHIRLPOOL 744b12fae6292f90330b81459b046ca91031918ad2ea0d56baebe40671f5bde85ab13d83263899d3a36b424788f9e15f5bc427a00dd0eb899def0c8a46cc2d7f
|
||||
DIST pbr-0.7.0.tar.gz 78021 SHA256 1680e9add47561abf6aed6c18d5d9bf3c8b8f22bd9931373f28348e10c5b9fce SHA512 14ff8996aa3ea20c65c8a9121efc8b7ef0c75b352994ac6aeba11b4bac4a4dc07015b31dbcb0f27097b02a3725f4b999d7967908db25ff6f93b9fa684e3c1095 WHIRLPOOL 77dd7840924edcc5c93294e495f6b5ccd6d9ae7024324f20ca2a124b19ef07d15d491aabede7daf51e830512e31918d403509e6804d5518e95b32285c781949f
|
||||
|
@ -0,0 +1,61 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/pbr/pbr-0.7.0.ebuild,v 1.1 2014/03/27 21:48:40 prometheanfire Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_7,3_2,3_3} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="PBR is a library that injects some useful and sensible default
|
||||
behaviors into your setuptools run."
|
||||
HOMEPAGE="https://github.com/openstack-dev/pbr"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="test"
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? ( >=dev-python/coverage-3.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/fixtures-0.3.14[${PYTHON_USEDEP}]
|
||||
~dev-python/flake8-2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/subunit-0.0.18[${PYTHON_USEDEP}]
|
||||
>=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}]
|
||||
<dev-python/sphinx-1.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}]
|
||||
>=dev-python/testresources-0.2.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/testscenarios-0.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/testtools-0.9.34[${PYTHON_USEDEP}] )"
|
||||
RDEPEND=">dev-python/pip-1.4[${PYTHON_USEDEP}]"
|
||||
|
||||
python_prepare() {
|
||||
if [[ "${EPYTHON}" == "python3.2" ]]; then
|
||||
2to3-3.2 -f unicode -nw --no-diffs pbr
|
||||
fi
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# These tests pass run within the source and don't represent failures but rather
|
||||
# work outside the sandbox constraints
|
||||
sed -e s':test_changelog:_&:' -i pbr/tests/test_packaging.py || die
|
||||
sed -e s':test_console_script_develop:_&:' -i pbr/tests/test_core.py || die
|
||||
|
||||
sed -e s':test_authors:_&:' -i pbr/tests/test_packaging.py || die
|
||||
sed -e s':test_global_setup_hooks:_&:' -i pbr/tests/test_hooks.py \
|
||||
-e s':test_custom_commands_known:_&:' \
|
||||
-e s':test_command_hooks:_&:' \
|
||||
-i pbr/tests/test_hooks.py
|
||||
sed -e s':test_setup_py_keywords:_&:' \
|
||||
-e s':test_sdist_git_extra_file:_&:' \
|
||||
-e s':test_sdist_extra_file:_&:' \
|
||||
-e s':test_console_script_install:_&:' \
|
||||
-i pbr/tests/test_core.py || die
|
||||
sed -e s':test_custom_build_py_command:_&:' \
|
||||
-i pbr/tests/test_commands.py || die
|
||||
|
||||
testr init
|
||||
testr run || die "Testsuite failed under ${EPYTHON}"
|
||||
#flake8 "${PN}"/tests || die "Run over tests folder by flake8 drew error"
|
||||
}
|
@ -1,3 +1,2 @@
|
||||
DIST pyserial-2.5.tar.gz 106278 SHA256 eddd22280e0dac0888c6cddd8906ebd902fa42467fee151c43ecde4196bbf511 SHA512 22c610c9b2115b23928e86198e0c0bd840b95cadf6983d8847fd164e6f94ffbf7fddf6f4fc710a8ccb21ae954bcf13f73561e6fcf47d69d745f996d0cf152d6e WHIRLPOOL e56eab24c294b448a8dd05e35ef62bc01270d787bc4a7767f9756a193106d6df472ee37142daf6eef867b2ef3af71a34014e9e4d06d45fd5b3d0535fe5815422
|
||||
DIST pyserial-2.6.tar.gz 116289 SHA256 049dbcda0cd475d3be903e721d60889ee2cc4ec3b62892a81ecef144196413ed SHA512 41682f8fafb6c5fa9642d3a0a3d6d0648101c38d157005f9c4e019e55d534953486072caf05647d8828b0e19c8259cc61cac856a570bf09904922ffd175fad2d WHIRLPOOL d632521d4687751f3056eda3ef254d603a7450d09457deed4d12136ee690d8af8d9aea1b8f8aebe9ec877a00bec5fa54933d2bff0cec281de0b676dde3d86e55
|
||||
DIST pyserial-2.7.tar.gz 122081 SHA256 3542ec0838793e61d6224e27ff05e8ce4ba5a5c5cc4ec5c6a3e8d49247985477 SHA512 3fc8d9425a47ebcd37db1fcc58182854b48c9abd6642f35fba2d21458d864ae448105d704dc0d880832ba7516fa16f108f24363bd5fa9f083ea79a4ac614339b WHIRLPOOL ae6b4df86220617f7fbc1f1e4085a7e85dca645a6d84339163b40fc7a15f14b879ef7a729d3d23d0300f9ee04b21d6c24d13a791d520aef3f3ad141c6acd9b68
|
||||
|
@ -0,0 +1,13 @@
|
||||
diff -ur pyserial-2.7.orig/documentation/conf.py pyserial-2.7/documentation/conf.py
|
||||
--- documentation/conf.py 2013-10-18 00:29:53.000000000 +0800
|
||||
+++ documentation/conf.py 2014-03-28 12:41:08.848807687 +0800
|
||||
@@ -192,9 +192,3 @@
|
||||
|
||||
# If false, no module index is generated.
|
||||
#latex_use_modindex = True
|
||||
-
|
||||
-# for external links to standard library
|
||||
-intersphinx_mapping = {
|
||||
- #~ 'python': ('http://docs.python.org', None),
|
||||
- 'py': ('http://docs.python.org', None),
|
||||
- }
|
@ -1,28 +0,0 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/pyserial/pyserial-2.5-r1.ebuild,v 1.9 2011/08/27 21:19:46 neurogeek Exp $
|
||||
|
||||
EAPI="3"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
|
||||
inherit distutils eutils
|
||||
|
||||
DESCRIPTION="Python Serial Port Extension"
|
||||
HOMEPAGE="http://pyserial.sourceforge.net/ http://sourceforge.net/projects/pyserial/ http://pypi.python.org/pypi/pyserial"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="PSF-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND=""
|
||||
|
||||
DOCS="CHANGES.txt README.txt"
|
||||
PYTHON_MODNAME="serial"
|
||||
|
||||
src_prepare() {
|
||||
distutils_src_prepare
|
||||
epatch "${FILESDIR}/${P}-python-3.patch"
|
||||
}
|
@ -1,23 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/pyserial/pyserial-2.6.ebuild,v 1.3 2012/05/08 23:59:28 aballier Exp $
|
||||
|
||||
EAPI="3"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
|
||||
inherit distutils
|
||||
|
||||
DESCRIPTION="Python Serial Port Extension"
|
||||
HOMEPAGE="http://pyserial.sourceforge.net/ http://sourceforge.net/projects/pyserial/ http://pypi.python.org/pypi/pyserial"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="PSF-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND=""
|
||||
|
||||
DOCS="CHANGES.txt README.txt"
|
||||
PYTHON_MODNAME="serial"
|
@ -0,0 +1,38 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/pyserial/pyserial-2.7-r1.ebuild,v 1.1 2014/03/28 05:20:38 idella4 Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} pypy2_0 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python Serial Port Extension"
|
||||
HOMEPAGE="http://pyserial.sourceforge.net/ http://sourceforge.net/projects/pyserial/ http://pypi.python.org/pypi/pyserial"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="PSF-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
|
||||
IUSE="doc examples"
|
||||
|
||||
DEPEND="
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
|
||||
RDEPEND=""
|
||||
PATCHES=( "${FILESDIR}"/mapping.patch )
|
||||
DOCS=( CHANGES.txt README.txt )
|
||||
|
||||
python_prepare_all() {
|
||||
# Usual avoid d'loading un-needed objects.inv file
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C documentation html
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( documentation/_build/html/. )
|
||||
use examples && local EXAMPLES=( examples/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
DIST python-heatclient-0.2.2.tar.gz 40892 SHA256 1ccd0d04928429a3928d9e7057db28de893659d3200f15c4da43de7fb731392b SHA512 b29e097a59c3e773e51a932011714d893e51692bdc9b76ea3431d5b642a8fdafb6237af25516a495c9c88ad344193da01af17db7d344e35e4debc614f814dd7a WHIRLPOOL df9997b97babe7aa57b2a44d5e25b8db53d542fcb563e14eb28ce8b25892912ebed1ea8c0b571ec1986aefb41efa07da2eea6709c777fc99da321f173e55f688
|
||||
DIST python-heatclient-0.2.4.tar.gz 44387 SHA256 b56c2f2249496e40fa8eba80e59966a0ba792f4bc86524feb48f3d2e20d3bdd0 SHA512 e78a5dbabf85cdd95b4439d1f262929771ad1958261fe4d35f0b7beb5911c99dadf9ffc22317dcdc9dd54a9b4540d89c0969a2a0ca0928ae21ea241967389aeb WHIRLPOOL 3ae1358c6e14d55eb67284561c648b9e5433e44a100f0392d36248e7c267f87839ddc205dc917425f480da95905a59c9410076abf298c0b41a9da464465a9efe
|
||||
DIST python-heatclient-0.2.5.tar.gz 48071 SHA256 f1d8d07947aa619498640aef84927e5f7a82efc566cc5f6260e146ddbcbc6ba8 SHA512 22deca348cf9787984cac66da5a40606a654276fd7ff356da85984db88167bf4a3cbe0ea275d10973db04ed9f9b9a0cf563b808e98682aa9801a5acaf22fa5ea WHIRLPOOL 584b49236d1ae97b70dd32154b35b2f49ad5aed1b579e402f07a93a956c49ef611d5869a1f333fab9543d1e7caff448dab01db175576c350264e292c927cd7cd
|
||||
DIST python-heatclient-0.2.6.tar.gz 68473 SHA256 544d2436f016675a02e179e0f7a99207b4134750e8ddfcc19326fb1e3d9067d5 SHA512 74e5bb3a52d05fcab6fdfa3546aeda8976a8cdf5b2dd6929a628771054ca121009ad9e9d8dcef944290f57cb138a350501f32501a797a3801735ebbf654c9eda WHIRLPOOL c42fe1bb04ba90837fb1907483342de7fb064d9f48c9074ffd98122aa2c13d15f8b51a42b890cab2671cad7f3a9f85364f6e46bc7be12296c7703aa5aa1b9bbd
|
||||
DIST python-heatclient-0.2.8.tar.gz 73534 SHA256 772069e5fdd393996750ba5f40b50212a2ae6f209b820d75826bb7197b289324 SHA512 0124c0901abeba335c252ce18571fd65091c4608180693946b60016be68f5218b8669ceb713a8661e83c94434b67459ad9769e990bf2768758a0d0899c8fbdfc WHIRLPOOL 18add2b40e7f887ca2d2d3c8f622c1300c08807c40c1e923f1a212b8ec9293155475903e82dc2a9ab8370a5246449820162031d18703d6c40ceaf230e9102372
|
||||
|
@ -1,45 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/python-heatclient/python-heatclient-0.2.2-r1.ebuild,v 1.1 2013/09/13 19:36:04 prometheanfire Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="This is a client library for Heat built on the Heat orchestration
|
||||
API."
|
||||
HOMEPAGE="https://github.com/openstack/python-heatclient"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? ( dev-python/mox[${PYTHON_USEDEP}]
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
dev-python/nose-exclude[${PYTHON_USEDEP}]
|
||||
dev-python/nosexcover[${PYTHON_USEDEP}]
|
||||
dev-python/nosehtmloutput[${PYTHON_USEDEP}]
|
||||
dev-python/openstack-nose-plugin[${PYTHON_USEDEP}]
|
||||
~dev-python/pep8-1.4.5[${PYTHON_USEDEP}]
|
||||
>=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/setuptools-git-0.4[${PYTHON_USEDEP}] )"
|
||||
RDEPEND=">=dev-python/d2to1-0.2.10[${PYTHON_USEDEP}]
|
||||
dev-python/httplib2[${PYTHON_USEDEP}]
|
||||
>=dev-python/iso8601-0.1.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/prettytable-0.6[${PYTHON_USEDEP}]
|
||||
<dev-python/prettytable-0.8[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-keystoneclient-0.2[${PYTHON_USEDEP}]
|
||||
<dev-python/python-keystoneclient-0.3[${PYTHON_USEDEP}]
|
||||
virtual/python-argparse[${PYTHON_USEDEP}]"
|
||||
|
||||
PATCHES=(
|
||||
)
|
||||
# "${FILESDIR}/0.2.3-CVE-2013-2104.patch"
|
||||
|
||||
python_test() {
|
||||
${PYTHON} setup.py nosetests || die
|
||||
}
|
@ -0,0 +1,55 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/python-heatclient/python-heatclient-0.2.8.ebuild,v 1.1 2014/03/27 21:52:18 prometheanfire Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="This is a client library for Heat built on the Heat orchestration
|
||||
API."
|
||||
HOMEPAGE="https://github.com/openstack/python-heatclient"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="doc test"
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
>=dev-python/pbr-0.6[${PYTHON_USEDEP}]
|
||||
<dev-python/pbr-1.0[${PYTHON_USEDEP}]
|
||||
test? ( >=dev-python/hacking-0.8.0[${PYTHON_USEDEP}]
|
||||
<dev-python/hacking-0.9[${PYTHON_USEDEP}]
|
||||
>=dev-python/coverage-3.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/fixtures-0.3.14[${PYTHON_USEDEP}]
|
||||
>=dev-python/mock-1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/mox3-0.7.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}]
|
||||
<dev-python/sphinx-1.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/testscenarios-0.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}]
|
||||
>=dev-python/testtools-0.9.34[${PYTHON_USEDEP}] )"
|
||||
RDEPEND="virtual/python-argparse[${PYTHON_USEDEP}]
|
||||
>=dev-python/iso8601-0.1.8[${PYTHON_USEDEP}]
|
||||
>=dev-python/prettytable-0.7[${PYTHON_USEDEP}]
|
||||
<dev-python/prettytable-0.8[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-keystoneclient-0.6.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyyaml-3.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/six-1.4.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-1.1[${PYTHON_USEDEP}]"
|
||||
|
||||
python_compile_all() {
|
||||
use doc && sphinx-build -b html -c doc/source/ doc/source/ doc/source/html
|
||||
}
|
||||
|
||||
python_test() {
|
||||
"${PYTHON}" setup.py testr --coverage
|
||||
"${PYTHON}" setup.py testr --slowest
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( doc/source/html/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1,5 +1,2 @@
|
||||
DIST python-keystoneclient-0.2.5.tar.gz 196496 SHA256 3985ab402b3b63510f387df639658687ee001c047ed710bee9a46219ebc31e2b SHA512 2c14d039a80a8b8ac65c974410722b5726b2f0f94c238b60ac93d09828abcf4518cec16af10387ccaa5e1639a5c9e168afa32623e507899c8486152c3d785c8b WHIRLPOOL aa82ee7f157c8573978b04b485068cc5d3f3f8bcfc4e573b8ed631b23ca3ffd8eb47830449c13da5e93e674c42a23c1efb072ffd5005c93a3c6f84a12e1b4063
|
||||
DIST python-keystoneclient-0.3.1.tar.gz 209845 SHA256 bfc149b2d161bfe168be0fde41d9e75f2c0a99b9f398672f92c7c54c6f62fa26 SHA512 e79a4ab0b8e2c99a94efd6bf6690abd15cf41ea6b4e605c1a3534ee9788cb38239b6cd43e2956bd513b1149ab359af63eb46c7a61a9ebe3f3c1005068a7533de WHIRLPOOL ab4636f77e8de91fe38718f3f43a9f81d4bde69ed02710fe0d02ce1e8965f728c53fff6f28780981e7303c16fe43a33c9c30ac21a7cb1cfc8a2e855bc47c1f36
|
||||
DIST python-keystoneclient-0.3.2.tar.gz 231132 SHA256 cfa6766fd3141cd4dbb5ebf126a4b14095dd0aafee71a753fff9f6a0b4ab8a65 SHA512 914dd7366936f09cd8500564d3842e855b2cc005e1ec48488d133ffcc7fe6f1a302777d62b99e262b86ec82220502452cfcf9146f43e7b3704592be4ac77ffe3 WHIRLPOOL f3f751e63749850a72ad5e2ddda38c5917ae6226057ad063d71bd7341d739d69ffd4173d09637302a92f31853e8f57e1cc6abb03f50f8f1c0654e6f29bff9329
|
||||
DIST python-keystoneclient-0.4.1.tar.gz 255751 SHA256 bc9b27000e5bbfbb06030a69af81e08ced99568d97fd257972ef80637f6e0704 SHA512 f423a49d02c694f2d945efd39cbd17a3149934b367771891a45a8f43c8a2492800fd3068e68a8a59237f013fd575a355bbac81298ef26e6973f1b0bd66fc6bad WHIRLPOOL 91162321e838ff5022676b76f1d56551dd0b602f8d95fd14fa957744154eead4597d3347623e8c32f594d4ea9e6fab94d10d8dd8d51cb83591fbcc6fbfccb641
|
||||
DIST python-keystoneclient-0.6.0.tar.gz 231787 SHA256 9cfe5e851fbfce0a63438003c3a1f436b8e07bf694740b330859ffcad1d5fba6 SHA512 f4413ef5d12a141fba2121dd6f88b9dffeec59bc4602b10f45942de37fae97f702b42b479cc9dc7ec8d2f2e5ff97753bb3a68f932d3f51b38c48bc8f0ee3e7ef WHIRLPOOL 691b60514d6109366daf1efe0a93e2ec3a463abcf1589e5d102c933b86cd57a7999c54eeffb32ca8408df9059bc82e84da03bd6b6069eb31941534d299eefcd9
|
||||
DIST python-keystoneclient-0.7.1.tar.gz 242347 SHA256 176a5e2c28fd0513783b2c8a21b8540d73d7c49706aa3651fea28d0e5029a062 SHA512 9fc52a0d36fc3188adf4bf20fcac52ab6edee41a115c9a2e20b82d6cddf5b4f23887241bc656d2a5f0a3c4c5cea9ec145c8585f9dd36e28147ee946ac6b8b79c WHIRLPOOL 29b6d7e74a63719dea82872488b708975839bc1dae71b123fd89c69d5d15445bdcb3a6fa5cc9f84fd0401ad4f9d7668b5fe3f2a25f4ed50c38747e82bb76009f
|
||||
|
@ -1,59 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/python-keystoneclient/python-keystoneclient-0.3.1.ebuild,v 1.8 2013/12/19 02:05:16 prometheanfire Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
#PYTHON_COMPAT=( python2_5 python2_6 python2_7 )
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A client for the OpenStack Keystone API"
|
||||
HOMEPAGE="https://github.com/openstack/python-keystoneclient"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? ( dev-python/Babel[${PYTHON_USEDEP}]
|
||||
dev-python/coverage[${PYTHON_USEDEP}]
|
||||
dev-python/fixtures[${PYTHON_USEDEP}]
|
||||
dev-python/keyring[${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/mox[${PYTHON_USEDEP}]
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
dev-python/nose-exclude[${PYTHON_USEDEP}]
|
||||
dev-python/nosehtmloutput[${PYTHON_USEDEP}]
|
||||
dev-python/openstack-nose-plugin[${PYTHON_USEDEP}]
|
||||
=dev-python/pep8-1.4.5[${PYTHON_USEDEP}]
|
||||
>=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}]
|
||||
<dev-python/testtools-0.9.25[${PYTHON_USEDEP}]
|
||||
dev-python/unittest2[${PYTHON_USEDEP}]
|
||||
>=dev-python/webob-1.0.8[${PYTHON_USEDEP}] )"
|
||||
RDEPEND=">=dev-python/d2to1-0.2.10[${PYTHON_USEDEP}]
|
||||
<dev-python/d2to1-0.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/iso8601-0.1.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-config-1.1.0[${PYTHON_USEDEP}]
|
||||
<dev-python/oslo-config-1.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pbr-0.5[${PYTHON_USEDEP}]
|
||||
<dev-python/pbr-0.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/prettytable-0.6[${PYTHON_USEDEP}]
|
||||
<dev-python/prettytable-0.8[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-0.8.8[${PYTHON_USEDEP}]
|
||||
dev-python/simplejson[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
virtual/python-argparse[${PYTHON_USEDEP}]"
|
||||
|
||||
PATCHES=(
|
||||
)
|
||||
|
||||
python_test() {
|
||||
# https://bugs.launchpad.net/python-keystoneclient/+bug/1243528
|
||||
# https://bugs.launchpad.net/python-keystoneclient/+bug/1174410; last touched on
|
||||
# 2013-05-29 with 'importance: Undecided â Medium' and never worked since.
|
||||
nosetests -I 'test_http*' -e test_auth_token_middleware.py || die "testsuite failed"
|
||||
}
|
@ -1,67 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/python-keystoneclient/python-keystoneclient-0.3.2.ebuild,v 1.6 2013/12/19 02:05:16 prometheanfire Exp $
|
||||
|
||||
EAPI=5
|
||||
#testsuite has unpretty httpretty deps
|
||||
#PYTHON_COMPAT=( python2_5 python2_6 python2_7 )
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A client for the OpenStack Keystone API"
|
||||
HOMEPAGE="https://github.com/openstack/python-keystoneclient"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
#Note: https://github.com/gabrielfalcao/HTTPretty/blob/b5827151ddde2e3fed49f5a1ca7f2bb2ef8876a1/requirements.txt
|
||||
#https://github.com/openstack/python-keystoneclient/blob/0.3.2/test-requirements.txt
|
||||
#https://bugs.launchpad.net/python-keystoneclient/+bug/1243528
|
||||
# >=dev-python/httpretty-0.6.3[${PYTHON_USEDEP}]
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
>=dev-python/pbr-0.5.21[${PYTHON_USEDEP}]
|
||||
<dev-python/pbr-1.0[${PYTHON_USEDEP}]
|
||||
test? ( >=dev-python/hacking-0.5.6[${PYTHON_USEDEP}]
|
||||
<dev-python/hacking-0.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/coverage-3.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/fixtures-0.3.12[${PYTHON_USEDEP}]
|
||||
>=dev-python/keyring-1.6.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/mock-0.8.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/mox-0.5.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/pycrypto-2.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/testrepository-0.0.17[${PYTHON_USEDEP}]
|
||||
<dev-python/testtools-0.9.25[${PYTHON_USEDEP}]
|
||||
>=dev-python/webob-1.2.3[${PYTHON_USEDEP}]
|
||||
<dev-python/webob-1.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/Babel-0.9.6[${PYTHON_USEDEP}] )"
|
||||
RDEPEND="virtual/python-argparse[${PYTHON_USEDEP}]
|
||||
>=dev-python/iso8601-0.1.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/prettytable-0.6[${PYTHON_USEDEP}]
|
||||
<dev-python/prettytable-0.8[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-1.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/simplejson-2.0.9[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-config-1.1.0[${PYTHON_USEDEP}]
|
||||
dev-python/netaddr[${PYTHON_USEDEP}]"
|
||||
|
||||
PATCHES=(
|
||||
)
|
||||
|
||||
python_test() {
|
||||
# https://bugs.launchpad.net/python-keystoneclient/+bug/1243528
|
||||
# https://bugs.launchpad.net/python-keystoneclient/+bug/1174410; last touched on
|
||||
# 2013-05-29 with 'importance: Undecided â Medium' and never worked since.
|
||||
sed -e 's:test_encrypt_cache_data:_&:' \
|
||||
-e 's:test_no_memcache_protection:_&:' \
|
||||
-e 's:test_sign_cache_data:_&:' \
|
||||
-i tests/test_auth_token_middleware.py
|
||||
rm -f $(find . -name "test_http*") || die
|
||||
testr init
|
||||
testr run || die "testsuite failed under python2.7"
|
||||
flake8 tests || die "run over tests folder by flake8 drew error"
|
||||
}
|
@ -1,69 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/python-keystoneclient/python-keystoneclient-0.4.1.ebuild,v 1.3 2014/01/06 10:44:44 idella4 Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A client for the OpenStack Keystone API"
|
||||
HOMEPAGE="https://github.com/openstack/python-keystoneclient"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc examples test"
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
>=dev-python/pbr-0.5.21[${PYTHON_USEDEP}]
|
||||
<dev-python/pbr-1.0[${PYTHON_USEDEP}]
|
||||
test? ( >=dev-python/hacking-0.5.6[${PYTHON_USEDEP}]
|
||||
<dev-python/hacking-0.8[${PYTHON_USEDEP}]
|
||||
>=dev-python/coverage-3.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/fixtures-0.3.14[${PYTHON_USEDEP}]
|
||||
>=dev-python/keyring-1.6.1[${PYTHON_USEDEP}]
|
||||
<dev-python/keyring-2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/httpretty-0.6.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/mock-1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/mox-0.5.3[${PYTHON_USEDEP}]
|
||||
>=dev-python/pycrypto-2.6[${PYTHON_USEDEP}]
|
||||
>=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/testrepository-0.0.17[${PYTHON_USEDEP}]
|
||||
<dev-python/testtools-0.9.33[${PYTHON_USEDEP}]
|
||||
>=dev-python/webob-1.2.3[${PYTHON_USEDEP}]
|
||||
<dev-python/webob-1.3[${PYTHON_USEDEP}]
|
||||
) "
|
||||
|
||||
RDEPEND="virtual/python-argparse[${PYTHON_USEDEP}]
|
||||
>=dev-python/iso8601-0.1.4[${PYTHON_USEDEP}]
|
||||
>=dev-python/prettytable-0.6[${PYTHON_USEDEP}]
|
||||
<dev-python/prettytable-0.8[${PYTHON_USEDEP}]
|
||||
>=dev-python/requests-1.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/simplejson-2.0.9[${PYTHON_USEDEP}]
|
||||
>=dev-python/six-1.4.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-config-1.2.0[${PYTHON_USEDEP}]
|
||||
dev-python/netaddr[${PYTHON_USEDEP}]
|
||||
>=dev-python/Babel-1.3[${PYTHON_USEDEP}]"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/sphinx_mapping.patch
|
||||
)
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C doc html
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# https://bugs.launchpad.net/python-keystoneclient/+bug/1243528
|
||||
testr init
|
||||
testr run || die "testsuite failed under python2.7"
|
||||
flake8 ${PN/python-/}/tests || die "run over tests folder by flake8 drew error"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( doc/build/html/. )
|
||||
use examples && local EXAMPLES=( examples/.)
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -0,0 +1,57 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/subunit/subunit-0.0.18.ebuild,v 1.1 2014/03/27 21:47:34 prometheanfire Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} pypy2_0 )
|
||||
|
||||
inherit distutils-r1 eutils
|
||||
|
||||
DESCRIPTION="A streaming protocol for test results"
|
||||
HOMEPAGE="https://launchpad.net/subunit http://pypi.python.org/pypi/python-subunit"
|
||||
SRC_URI="http://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0 BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~x86 ~x86-fbsd"
|
||||
#need to keyword the following in =dev-python/extras-0.0.3 then readd the keywords here
|
||||
#ia64 s390 sh sparc amd64-fbsd
|
||||
IUSE="static-libs"
|
||||
|
||||
RDEPEND=">=dev-python/testtools-0.9.34[${PYTHON_USEDEP}]
|
||||
dev-python/extras[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
dev-lang/perl
|
||||
dev-libs/check
|
||||
dev-util/cppunit
|
||||
virtual/pkgconfig"
|
||||
|
||||
src_configure() {
|
||||
econf --enable-shared $(use_enable static-libs static)
|
||||
distutils-r1_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake
|
||||
distutils-r1_src_compile
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local -x PATH="${PWD}/shell/share:${PATH}"
|
||||
local -x PYTHONPATH=python
|
||||
"${PYTHON}" -m testtools.run all_tests.test_suite || die "Testing failed with ${EPYTHON}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local targets=(
|
||||
install-include_subunitHEADERS
|
||||
install-pcdataDATA
|
||||
install-exec-local
|
||||
install-libLTLIBRARIES
|
||||
)
|
||||
emake DESTDIR="${D}" "${targets[@]}"
|
||||
prune_libtool_files
|
||||
distutils-r1_src_install
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST odamex-src-0.6.2.tar.bz2 8451290 SHA256 70534ee0b88f759269b807190f347acacc1a0ff4f9e9e90edeab9aa99d4f316e SHA512 83bdb7b850a6a6c3670fa9eeeccca6501ea90f26bcef2437e5530a43d40c9cdd408de15183d4fe991becc13f58666c86586660522d102680148df4c12dd27104 WHIRLPOOL d024220bc2b743fd6512981ce3d58fa8562e9cfc3712158e308172ba1c3b1a2de076969015601a418d14be25af5ebe366e6353bb66f523837a29ad5c56af1c64
|
||||
DIST odamex-src-0.6.3.tar.bz2 8439487 SHA256 ad0d2a1d86288e26438cb012fd8898d5b3b4cc1d466250105b4b740013d940da SHA512 86a57f359b1bfb1cf84c674aa71c7c91e2aabbe07e9f77de7914031a6584b547a11c7f59ea422756ea41dcfc1d50b7dfd74be764812a0e1ce1c69969403b1990 WHIRLPOOL 272a89b5941cb48af861e198e9c8de5b78a4edb0ea1e830ad33610c2147fab232dcff02bdd0db0b6b460cca8573b56cbbb83bc7cc98d80af0d8780beb0add7ed
|
||||
DIST odamex-src-0.6.4.tar.bz2 8449818 SHA256 7832fed1e0cca992c746fd0f7e876b090c0f244f2d1d5230ffa3df8b33ce0f6a SHA512 0a917568cfc4bd4d9921cb82185cbbc318bce493bc66e489093e45401ec4c7596148778648e5078f13c50824470a040a995aa50c7956e2446c90920254c8129f WHIRLPOOL 9d95a9422ab382ccd5f4fc7d89f0558e30c604e18a33eec3bb074ae446258f030ec67d4738e1c517d89c9a4e09aea6e3a84651d7c8b1df9a88a26077c1b319b4
|
||||
DIST odamex-src-0.7.0.tar.bz2 8435860 SHA256 d0306ddca3d5534672e6f0c547092d8f3f6f815686e4f6b21d6521afae1fd73b SHA512 410f3c2588e4d57006e5bb50eaa0f6c1a83cf197ce40daabb958667483eb6c85138206ac74b8aee64c4208c4360415ad16d1698534be5c7abec1493a0f91aa8b WHIRLPOOL 91ca8f658435f4503df8a2d5f52b1ef1cf34229373c4e1c3918b7eb919ae54e3a416618ce184d54c6ebc25bdfe6fea96f8933f98d859562b4972f89bd5c320ff
|
||||
|
@ -0,0 +1,89 @@
|
||||
From 1352b633388dd9d82b8cb7e3d11932d0b569da4e Mon Sep 17 00:00:00 2001
|
||||
From: hasufell <hasufell@gentoo.org>
|
||||
Date: Thu, 27 Mar 2014 21:07:37 +0100
|
||||
Subject: [PATCH 1/4] make install destinations modifiable
|
||||
|
||||
---
|
||||
CMakeLists.txt | 5 +++--
|
||||
client/CMakeLists.txt | 2 +-
|
||||
master/CMakeLists.txt | 4 ++++
|
||||
odalaunch/CMakeLists.txt | 2 +-
|
||||
server/CMakeLists.txt | 2 +-
|
||||
5 files changed, 10 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 11e52d1..262e3db 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -1,4 +1,5 @@
|
||||
include(CMakeDependentOption)
|
||||
+include(GNUInstallDirs)
|
||||
|
||||
project(Odamex)
|
||||
cmake_minimum_required(VERSION 2.8)
|
||||
@@ -113,10 +114,10 @@ if(NOT APPLE)
|
||||
set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY OFF)
|
||||
else()
|
||||
install(FILES odamex.wad LICENSE README
|
||||
- DESTINATION share/odamex
|
||||
+ DESTINATION ${CMAKE_INSTALL_DATADIR}/odamex
|
||||
COMPONENT common)
|
||||
install(FILES ${CONFIG_SAMPLES}
|
||||
- DESTINATION share/odamex/config-samples
|
||||
+ DESTINATION ${CMAKE_INSTALL_DATADIR}/odamex/config-samples
|
||||
COMPONENT common)
|
||||
|
||||
option(ODAMEX_COMPONENT_PACKAGES "Create several rpm/deb packages for repository maintainers." OFF)
|
||||
diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt
|
||||
index 510b820..3f73ab5 100644
|
||||
--- a/client/CMakeLists.txt
|
||||
+++ b/client/CMakeLists.txt
|
||||
@@ -228,7 +228,7 @@ if(SDL_FOUND AND SDLMIXER_FOUND)
|
||||
COMPONENT client)
|
||||
else()
|
||||
install(TARGETS odamex
|
||||
- RUNTIME DESTINATION bin
|
||||
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
COMPONENT client)
|
||||
endif()
|
||||
endif()
|
||||
diff --git a/master/CMakeLists.txt b/master/CMakeLists.txt
|
||||
index 7fc386b..5bdc048 100644
|
||||
--- a/master/CMakeLists.txt
|
||||
+++ b/master/CMakeLists.txt
|
||||
@@ -14,3 +14,7 @@ if(WIN32)
|
||||
elseif(SOLARIS)
|
||||
target_link_libraries(odamast socket nsl)
|
||||
endif()
|
||||
+
|
||||
+if(UNIX)
|
||||
+ install( TARGETS odamast DESTINATION ${CMAKE_INSTALL_BINDIR} )
|
||||
+endif()
|
||||
diff --git a/odalaunch/CMakeLists.txt b/odalaunch/CMakeLists.txt
|
||||
index 4ca5920..0b134ef 100644
|
||||
--- a/odalaunch/CMakeLists.txt
|
||||
+++ b/odalaunch/CMakeLists.txt
|
||||
@@ -71,7 +71,7 @@ if(wxWidgets_FOUND)
|
||||
COMPONENT odalaunch)
|
||||
else()
|
||||
install(TARGETS odalaunch
|
||||
- RUNTIME DESTINATION bin
|
||||
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
COMPONENT odalaunch)
|
||||
endif()
|
||||
|
||||
diff --git a/server/CMakeLists.txt b/server/CMakeLists.txt
|
||||
index b046714..d33b974 100644
|
||||
--- a/server/CMakeLists.txt
|
||||
+++ b/server/CMakeLists.txt
|
||||
@@ -73,6 +73,6 @@ elseif(WIN32)
|
||||
COMPONENT server)
|
||||
else()
|
||||
install(TARGETS odasrv
|
||||
- RUNTIME DESTINATION bin
|
||||
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
COMPONENT server)
|
||||
endif()
|
||||
--
|
||||
1.9.1
|
||||
|
@ -0,0 +1,110 @@
|
||||
From 851bc58a74eadd89838c924167f27df1b9d3be37 Mon Sep 17 00:00:00 2001
|
||||
From: hasufell <hasufell@gentoo.org>
|
||||
Date: Thu, 27 Mar 2014 21:14:20 +0100
|
||||
Subject: [PATCH 2/4] add various cmake options
|
||||
|
||||
---
|
||||
CMakeLists.txt | 26 ++++++++++++++++++++++----
|
||||
client/CMakeLists.txt | 34 ++++++++++++++++++++--------------
|
||||
2 files changed, 42 insertions(+), 18 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 262e3db..91d5c50 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -1,6 +1,13 @@
|
||||
include(CMakeDependentOption)
|
||||
include(GNUInstallDirs)
|
||||
|
||||
+# options
|
||||
+option(BUILD_CLIENT "Build client target" 1)
|
||||
+option(BUILD_SERVER "Build server target" 1)
|
||||
+option(BUILD_MASTER "Build master server target" 1)
|
||||
+cmake_dependent_option( BUILD_ODALAUNCH "Build odalaunch target" 1 BUILD_CLIENT 0 )
|
||||
+cmake_dependent_option( ENABLE_PORTMIDI "Enable portmidi support" 1 BUILD_CLIENT 0 )
|
||||
+
|
||||
project(Odamex)
|
||||
cmake_minimum_required(VERSION 2.8)
|
||||
|
||||
@@ -73,10 +80,21 @@ if(USE_INTREE_PORTMIDI)
|
||||
endif()
|
||||
|
||||
# Subdirectories for Odamex projects
|
||||
-add_subdirectory(client)
|
||||
-add_subdirectory(server)
|
||||
-add_subdirectory(master)
|
||||
-add_subdirectory(odalaunch)
|
||||
+if(BUILD_CLIENT)
|
||||
+ add_subdirectory(client)
|
||||
+endif()
|
||||
+if(BUILD_SERVER)
|
||||
+ add_subdirectory(server)
|
||||
+endif()
|
||||
+if(BUILD_MASTER)
|
||||
+ add_subdirectory(master)
|
||||
+endif()
|
||||
+if(BUILD_ODALAUNCH)
|
||||
+ add_subdirectory(odalaunch)
|
||||
+endif()
|
||||
+if(NOT BUILD_CLIENT AND NOT BUILD_SERVER AND NOT BUILD_MASTER)
|
||||
+ message(FATAL_ERROR "No target chosen, doing nothing.")
|
||||
+endif()
|
||||
|
||||
# Disable the ag-odalaunch target completely: -DNO_AG-ODALAUNCH_TARGET
|
||||
# This is only really useful when setting up a universal build.
|
||||
diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt
|
||||
index 3f73ab5..7363c5a 100644
|
||||
--- a/client/CMakeLists.txt
|
||||
+++ b/client/CMakeLists.txt
|
||||
@@ -107,17 +107,21 @@ include_directories(${PNG_INCLUDE_DIRS})
|
||||
add_definitions(-DUSE_PNG)
|
||||
|
||||
# PortMidi configuration
|
||||
-if(USE_INTREE_PORTMIDI)
|
||||
- include_directories(../libraries/portmidi/pm_common/ ../libraries/portmidi/porttime/)
|
||||
- add_definitions(-DPORTMIDI)
|
||||
+if(ENABLE_PORTMIDI)
|
||||
+ if(USE_INTREE_PORTMIDI)
|
||||
+ include_directories(../libraries/portmidi/pm_common/ ../libraries/portmidi/porttime/)
|
||||
+ add_definitions(-DPORTMIDI)
|
||||
+ else()
|
||||
+ find_package(PortMidi QUIET)
|
||||
+ if(PORTMIDI_FOUND)
|
||||
+ include_directories(${PORTMIDI_INCLUDE_DIR})
|
||||
+ add_definitions(-DPORTMIDI)
|
||||
+ else()
|
||||
+ message(WARNING "PortMidi not found, client will be built without PortMidi support.")
|
||||
+ endif()
|
||||
+ endif()
|
||||
else()
|
||||
- find_package(PortMidi QUIET)
|
||||
- if(PORTMIDI_FOUND)
|
||||
- include_directories(${PORTMIDI_INCLUDE_DIR})
|
||||
- add_definitions(-DPORTMIDI)
|
||||
- else()
|
||||
- message(WARNING "PortMidi not found, client will be built without PortMidi support.")
|
||||
- endif()
|
||||
+ message(STATUS "Portmidi disabled.")
|
||||
endif()
|
||||
|
||||
# Find Mac frameworks
|
||||
@@ -147,10 +151,12 @@ if(SDL_FOUND AND SDLMIXER_FOUND)
|
||||
target_link_libraries(odamex ${ZLIB_LIBRARY})
|
||||
target_link_libraries(odamex ${PNG_LIBRARY} ${ZLIB_LIBRARY})
|
||||
|
||||
- if(USE_INTREE_PORTMIDI)
|
||||
- target_link_libraries(odamex portmidi-static)
|
||||
- elseif(PORTMIDI_FOUND)
|
||||
- target_link_libraries(odamex ${PORTMIDI_LIBRARIES})
|
||||
+ if(ENABLE_PORTMIDI)
|
||||
+ if(USE_INTREE_PORTMIDI)
|
||||
+ target_link_libraries(odamex portmidi-static)
|
||||
+ elseif(PORTMIDI_FOUND)
|
||||
+ target_link_libraries(odamex ${PORTMIDI_LIBRARIES})
|
||||
+ endif()
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
--
|
||||
1.9.1
|
||||
|
@ -0,0 +1,67 @@
|
||||
From 9af4e992ff9fa10816beba36478c711ac2c8542a Mon Sep 17 00:00:00 2001
|
||||
From: hasufell <hasufell@gentoo.org>
|
||||
Date: Thu, 27 Mar 2014 21:17:21 +0100
|
||||
Subject: [PATCH 3/4] add odamex.wad install destination to wad search path
|
||||
|
||||
---
|
||||
CMakeLists.txt | 9 +++++++++
|
||||
common/d_main.cpp | 2 ++
|
||||
config.h.in | 6 ++++++
|
||||
3 files changed, 17 insertions(+)
|
||||
create mode 100644 config.h.in
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 91d5c50..a06613e 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -13,6 +13,15 @@
|
||||
|
||||
set(PROJECT_VERSION 0.7.0)
|
||||
set(PROJECT_COPYRIGHT "2006-2014")
|
||||
+
|
||||
+configure_file (
|
||||
+ "${PROJECT_SOURCE_DIR}/config.h.in"
|
||||
+ "${PROJECT_BINARY_DIR}/config.h"
|
||||
+ )
|
||||
+
|
||||
+include_directories(
|
||||
+ ${PROJECT_BINARY_DIR}
|
||||
+)
|
||||
|
||||
# Default build type
|
||||
if(NOT MSVC)
|
||||
diff --git a/common/d_main.cpp b/common/d_main.cpp
|
||||
index 31d4f59..be0ffd2 100644
|
||||
--- a/common/d_main.cpp
|
||||
+++ b/common/d_main.cpp
|
||||
@@ -23,6 +23,7 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#include "version.h"
|
||||
+#include "config.h"
|
||||
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
@@ -506,6 +507,7 @@ static std::string BaseFileSearch(std::string file, std::string ext = "", std::s
|
||||
D_AddSearchDir(dirs, getenv("DOOMWADDIR"), separator);
|
||||
D_AddSearchDir(dirs, getenv("DOOMWADPATH"), separator);
|
||||
D_AddSearchDir(dirs, getenv("HOME"), separator);
|
||||
+ D_AddSearchDir(dirs, CMAKE_WADDIR, separator);
|
||||
|
||||
// [AM] Search additional paths based on platform
|
||||
D_AddPlatformSearchDirs(dirs);
|
||||
diff --git a/config.h.in b/config.h.in
|
||||
new file mode 100644
|
||||
index 0000000..e91b3a6
|
||||
--- /dev/null
|
||||
+++ b/config.h.in
|
||||
@@ -0,0 +1,6 @@
|
||||
+#ifndef CONFIG_H
|
||||
+#define CONFIG_H
|
||||
+
|
||||
+#define CMAKE_WADDIR "@CMAKE_INSTALL_DATADIR@"
|
||||
+
|
||||
+#endif
|
||||
--
|
||||
1.9.1
|
||||
|
@ -0,0 +1,58 @@
|
||||
From 672b2e61f3c0347c29746a4a22fe3ab912e88d62 Mon Sep 17 00:00:00 2001
|
||||
From: hasufell <hasufell@gentoo.org>
|
||||
Date: Thu, 27 Mar 2014 21:19:48 +0100
|
||||
Subject: [PATCH 4/4] use CMAKE_BINDIR as default bin patch in odalauncher
|
||||
|
||||
---
|
||||
config.h.in | 1 +
|
||||
odalaunch/src/dlg_main.cpp | 6 +++++-
|
||||
2 files changed, 6 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/config.h.in b/config.h.in
|
||||
index e91b3a6..7019a02 100644
|
||||
--- a/config.h.in
|
||||
+++ b/config.h.in
|
||||
@@ -2,5 +2,6 @@
|
||||
#define CONFIG_H
|
||||
|
||||
#define CMAKE_WADDIR "@CMAKE_INSTALL_DATADIR@"
|
||||
+#define CMAKE_BINDIR "@CMAKE_INSTALL_BINDIR@"
|
||||
|
||||
#endif
|
||||
diff --git a/odalaunch/src/dlg_main.cpp b/odalaunch/src/dlg_main.cpp
|
||||
index a95a5f6..abbfc0a 100644
|
||||
--- a/odalaunch/src/dlg_main.cpp
|
||||
+++ b/odalaunch/src/dlg_main.cpp
|
||||
@@ -27,6 +27,7 @@
|
||||
#include "str_utils.h"
|
||||
|
||||
#include "md5.h"
|
||||
+#include "config.h"
|
||||
|
||||
#include <wx/settings.h>
|
||||
#include <wx/menu.h>
|
||||
@@ -42,6 +43,7 @@
|
||||
#include <wx/process.h>
|
||||
#include <wx/toolbar.h>
|
||||
#include <wx/xrc/xmlres.h>
|
||||
+#include <wx/string.h>
|
||||
#include <wx/cmdline.h>
|
||||
|
||||
#ifdef __WXMSW__
|
||||
@@ -205,10 +207,12 @@ dlgMain::dlgMain(wxWindow* parent, wxWindowID id)
|
||||
}
|
||||
#endif
|
||||
|
||||
+ const char *cmake_bindir_str = CMAKE_BINDIR;
|
||||
+ wxString cmake_bindir = wxString::FromAscii(cmake_bindir_str);
|
||||
launchercfg_s.get_list_on_start = 1;
|
||||
launchercfg_s.show_blocked_servers = 0;
|
||||
launchercfg_s.wad_paths = wxGetCwd();
|
||||
- launchercfg_s.odamex_directory = wxGetCwd();
|
||||
+ launchercfg_s.odamex_directory = cmake_bindir;
|
||||
|
||||
m_LstCtrlServers = XRCCTRL(*this, "Id_LstCtrlServers", LstOdaServerList);
|
||||
m_LstCtrlPlayers = XRCCTRL(*this, "Id_LstCtrlPlayers", LstOdaPlayerList);
|
||||
--
|
||||
1.9.1
|
||||
|
@ -0,0 +1,35 @@
|
||||
From: Julian Ospald <hasufell@gentoo.org>
|
||||
Date: Thu Mar 27 21:16:02 UTC 2014
|
||||
Subject: unbundle miniupnpc
|
||||
|
||||
--- a/server/CMakeLists.txt
|
||||
+++ b/server/CMakeLists.txt
|
||||
@@ -29,8 +29,7 @@
|
||||
set(JSONCPP_SOURCE ${JSONCPP_DIR}/jsoncpp.cpp)
|
||||
|
||||
# MiniUPnPc
|
||||
-set(MINIUPNPC_DIR ../libraries/libminiupnpc)
|
||||
-set(MINIUPNPC_STATIC_LIBRARIES upnpc-static)
|
||||
+set(MINIUPNPC_DIR /usr/include/miniupnpc)
|
||||
|
||||
# Platform definitions
|
||||
define_platform()
|
||||
@@ -54,7 +53,7 @@
|
||||
${COMMON_SOURCES} ${COMMON_HEADERS}
|
||||
${SERVER_SOURCES} ${SERVER_HEADERS}
|
||||
${SERVER_WIN32_HEADERS} ${SERVER_WIN32_RESOURCES})
|
||||
-target_link_libraries(odasrv ${MINIUPNPC_STATIC_LIBRARIES})
|
||||
+target_link_libraries(odasrv -lminiupnpc)
|
||||
|
||||
if(WIN32)
|
||||
target_link_libraries(odasrv winmm wsock32)
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -71,7 +71,6 @@
|
||||
set(UPNPC_BUILD_TESTS OFF CACHE INTERNAL "" FORCE)
|
||||
set(UPNPC_INSTALL OFF CACHE INTERNAL "" FORCE)
|
||||
mark_as_advanced(FORCE UPNPC_INSTALL)
|
||||
-add_subdirectory(libraries/libminiupnpc)
|
||||
|
||||
# PortMidi
|
||||
cmake_dependent_option(USE_INTREE_PORTMIDI "Compile with the version of PortMidi included in the source tree." ON "WIN32" OFF)
|
@ -0,0 +1,116 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/games-engines/odamex/odamex-0.7.0.ebuild,v 1.1 2014/03/27 21:20:52 hasufell Exp $
|
||||
|
||||
EAPI=5
|
||||
WX_GTK_VER="3.0"
|
||||
inherit cmake-utils eutils gnome2-utils wxwidgets games
|
||||
|
||||
MY_P=${PN}-src-${PV}
|
||||
DESCRIPTION="An online multiplayer, free software engine for Doom and Doom II"
|
||||
HOMEPAGE="http://odamex.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/Odamex/${PV}/${MY_P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="dedicated +odalaunch master portmidi server"
|
||||
|
||||
RDEPEND="
|
||||
dedicated? ( >=net-libs/miniupnpc-1.8 )
|
||||
!dedicated? (
|
||||
media-libs/libpng:0
|
||||
>=media-libs/libsdl-1.2.9[X,audio,joystick,video]
|
||||
>=media-libs/sdl-mixer-1.2.6
|
||||
odalaunch? ( x11-libs/wxGTK:${WX_GTK_VER}[X] )
|
||||
portmidi? ( media-libs/portmidi )
|
||||
server? ( >=net-libs/miniupnpc-1.8 )
|
||||
)"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S=${WORKDIR}/src-${PV:2:3}
|
||||
|
||||
pkg_pretend() {
|
||||
if ! test-flag-CXX -std=c++11; then
|
||||
die "You need at least GCC 4.7.x or Clang >= 3.0 for C++11-specific compiler flags"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/1-${P}-install-rules.patch \
|
||||
"${FILESDIR}"/2-${P}-cmake-options.patch \
|
||||
"${FILESDIR}"/3-${P}-wad-search-path.patch \
|
||||
"${FILESDIR}"/4-${P}-odalauncher-bin-path.patch \
|
||||
"${FILESDIR}"/${P}-miniupnpc.patch
|
||||
|
||||
rm -r libraries/libminiupnpc || die
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DUSE_INTREE_PORTMIDI=OFF
|
||||
-DCMAKE_INSTALL_BINDIR="${GAMES_BINDIR}"
|
||||
-DCMAKE_INSTALL_DATADIR="${GAMES_DATADIR}"
|
||||
$(cmake-utils_use_build master MASTER)
|
||||
)
|
||||
|
||||
if use dedicated ; then
|
||||
mycmakeargs+=(
|
||||
-DBUILD_CLIENT=OFF
|
||||
-DBUILD_ODALAUNCH=OFF
|
||||
-DBUILD_SERVER=ON
|
||||
-DENABLE_PORTMIDI=OFF
|
||||
)
|
||||
else
|
||||
mycmakeargs+=(
|
||||
-DBUILD_CLIENT=ON
|
||||
$(cmake-utils_use_build odalaunch ODALAUNCH)
|
||||
$(cmake-utils_use_build server SERVER)
|
||||
$(cmake-utils_use_enable portmidi PORTMIDI)
|
||||
)
|
||||
fi
|
||||
|
||||
append-cxxflags -std=c++11
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake-utils_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
|
||||
if ! use dedicated ; then
|
||||
newicon -s 128 "${S}/media/icon_${PN}_128.png" "${PN}.png"
|
||||
make_desktop_entry ${PN}
|
||||
|
||||
if use odalaunch ; then
|
||||
newicon -s 128 "${S}/media/icon_odalaunch_128.png" "odalaunch.png"
|
||||
make_desktop_entry odalaunch "Odamex Launcher" odalaunch
|
||||
fi
|
||||
fi
|
||||
|
||||
prepgamesdirs
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
games_pkg_preinst
|
||||
gnome2_icon_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
games_pkg_postinst
|
||||
einfo
|
||||
elog "This is just the engine, you will need doom resource files in order to play."
|
||||
elog "Check: http://odamex.net/wiki/FAQ#What_data_files_are_required.3F"
|
||||
einfo
|
||||
gnome2_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_icon_cache_update
|
||||
}
|
@ -1,4 +1,6 @@
|
||||
DIST liquidwar6-0.0.13beta.tar.gz 25544158 SHA256 a27332c451460617e2833aaeaf81ed153a7270f87b1c322814c049b43e3f4eca SHA512 505067665fc48d5044f887a7a95a449569bb8c112f9ac975623d22ede8692afa6fc949b15395175a39395161616fedb0b429d737aa4d115e3b392d3e2b51eff6 WHIRLPOOL 341a4544a215a11322bbb478ace8a6844882340b1c8a3c0a0d6ab43b03766897e29a2d00dce14dd9a1f32b39a3178052526bb934789a4848170aa60264c769b6
|
||||
DIST liquidwar6-0.2.3551.tar.gz 26483549 SHA256 7f0dc9cba9fff4c2a2896108bda97fd055edef51e48779d2bb1fc268361692d9 SHA512 9ad976a6b2f2c31eada755f3d5740ca2f31ee91136ce52b57118eee607e65ec171d9cd60a84e6ffa7325e9d0a26c168c339f063007bcb707e365c955ed7a48dd WHIRLPOOL 26fe36cc87ce5efc022159a288b5e17bf9252688eedfb451071fe6702bdce621c35014752582cf8ad0798c60a589018855551271bd8f1cc9dab884468949cac5
|
||||
DIST liquidwar6-0.4.3681.tar.gz 26531646 SHA256 942f5547199462fea521717b94517d6415d90573d948e94922f7b15271a4a8e0 SHA512 4154c8d3c2ceb128cf2d27a4682c89a30d3610f695b2e05f8d4e33c13fb54aaab3bb4a2b5c6dbcc43ff5d24991ea57a521716c94e15d8dd05dc384c22a37f52a WHIRLPOOL 4f502f572082c89469126eb97cfb181c28980783203f73b51a577c9a9e6cd28936f76c50892757320cb8dbee8b44319790a5ca7715d7cf096664043233fd5647
|
||||
DIST liquidwar6-extra-maps-0.0.13beta.tar.gz 16066532 SHA256 f6bab8b5746f02f50ef2800a94a86eedb6e9cbf919d60921e62a1f965511d2dd SHA512 0f3b742e498c3f2e8354fb53f057d0fed0af3b1edfef41a7688ce7871c229908b2c1ca2f06556a803e7ecb491a6592282ed6291a1b271263a9dc3e634d481fa2 WHIRLPOOL dd7b655dde9066a2d16072140f132e34d58d3fc444cd2f31355af5e335a84d95805f879dae2fc6f8c7624a409de7e31be4c3bd80695e5a1aa70f4cf9cfb87b02
|
||||
DIST liquidwar6-extra-maps-0.2.3551.tar.gz 16183550 SHA256 1acb398907d2c89e26f0f7baae11e88024968be52fa0c6534ce8305b32271f6b SHA512 da2bb6dae319a7a0b430467166395d5e433cca112cd867a93f02eee5472412831118a9e2a7657430c4c7296065d91df2264f69a41ae1f6b75807fa9be67d5338 WHIRLPOOL bd6aef458f3ee96be08f01c81bbe38d93ade67076daf34780d03a9ab342030cef072a84d48e3752ef5f67939d2cae658d93dc14d875c0204f234c6f549ca4b29
|
||||
DIST liquidwar6-extra-maps-0.4.3681.tar.gz 16191302 SHA256 32ffe94781aade93ca26919220b434a26dbde9260655bf6733f19d5df41abc65 SHA512 e767adc4402f803824145fd12f79eb2cbf9b34aea12065123a558dfb6704bd7ab1861b453e794f7a612d4fa75d0f6024ef410b2700eea08a279d6857b9dc2ba7 WHIRLPOOL d53b3e28b4a26aba780e35a825c1fa7f33ea00bf4884b44685a550cf6c04d0a2cf296dd29ecf5d7884ca91a8f560988dce7b4ae1c819a92bbaa5cc59900e154b
|
||||
|
@ -0,0 +1,111 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/games-strategy/liquidwar6/liquidwar6-0.4.3681.ebuild,v 1.1 2014/03/27 22:11:44 hasufell Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit autotools eutils toolchain-funcs games
|
||||
|
||||
MY_PV=${PV/_beta/beta}
|
||||
MY_P=${PN}-${MY_PV}
|
||||
|
||||
DESCRIPTION="Unique multiplayer wargame between liquids"
|
||||
HOMEPAGE="http://www.gnu.org/software/liquidwar6/"
|
||||
SRC_URI="http://www.ufoot.org/download/liquidwar/v6/${MY_PV}/${MY_P}.tar.gz
|
||||
maps? ( http://www.ufoot.org/download/liquidwar/v6/${MY_PV}/${PN}-extra-maps-${MY_PV}.tar.gz )"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc gles2 gtk libcaca +maps nls +ogg openmp readline test"
|
||||
|
||||
# yes, cunit is rdep
|
||||
RDEPEND="dev-db/sqlite:3
|
||||
dev-libs/expat
|
||||
dev-scheme/guile
|
||||
dev-util/cunit
|
||||
media-libs/freetype:2
|
||||
media-libs/libpng:0
|
||||
media-libs/libsdl[X,opengl,video]
|
||||
media-libs/sdl-image[jpeg,png]
|
||||
media-libs/sdl-ttf
|
||||
net-misc/curl
|
||||
sys-devel/libtool:2
|
||||
sys-libs/zlib
|
||||
virtual/glu
|
||||
virtual/jpeg
|
||||
virtual/opengl
|
||||
libcaca? ( media-libs/libcaca )
|
||||
gles2? ( media-libs/mesa[gles2] )
|
||||
gtk? ( x11-libs/gtk+:2 )
|
||||
nls? ( virtual/libintl
|
||||
virtual/libiconv )
|
||||
ogg? (
|
||||
media-libs/libsdl[X,audio,opengl,video]
|
||||
media-libs/sdl-mixer[vorbis]
|
||||
)
|
||||
readline? ( sys-libs/ncurses
|
||||
sys-libs/readline )"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-lang/perl
|
||||
nls? ( sys-devel/gettext )"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
S_MAPS=${WORKDIR}/${PN}-extra-maps-${MY_PV}
|
||||
|
||||
pkg_setup() {
|
||||
if use openmp; then
|
||||
if [[ $(tc-getCC) == *gcc ]] && ! tc-has-openmp ; then
|
||||
ewarn "OpenMP is not available in your current selected gcc"
|
||||
die "need openmp capable gcc"
|
||||
fi
|
||||
fi
|
||||
games_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-0.2.3551-{ldconfig,paths}.patch
|
||||
|
||||
sed -i \
|
||||
-e 's/-Werror//' \
|
||||
configure.ac || die
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# configure fails with cunit disabled
|
||||
egamesconf \
|
||||
$(use_enable nls) \
|
||||
--enable-cunit \
|
||||
$(use_enable gtk) \
|
||||
--enable-mod-gl1 \
|
||||
$(use_enable gles2 mod-gles2) \
|
||||
$(use_enable libcaca mod-caca) \
|
||||
$(use_enable openmp) \
|
||||
$(use_enable ogg mod-ogg) \
|
||||
$(use_enable !ogg silent) \
|
||||
$(use_enable readline console) \
|
||||
--disable-static \
|
||||
--datarootdir=/usr/share \
|
||||
--mandir=/usr/share/man \
|
||||
--docdir=/usr/share/doc/${PF} \
|
||||
--htmldir=/usr/share/doc/${PF}/html
|
||||
|
||||
if use maps; then
|
||||
cd "${S_MAPS}" || die
|
||||
egamesconf
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
use doc && emake html
|
||||
use maps && emake -C "${S_MAPS}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
use maps && emake -C "${S_MAPS}" DESTDIR="${D}" install
|
||||
prune_libtool_files --all
|
||||
prepgamesdirs
|
||||
}
|
@ -1,2 +1,4 @@
|
||||
DIST libjpeg-turbo-1.3.0.tar.gz 1361603 SHA256 2657008cfc08aadbaca065bd9f8964b8a2c0abd03e73da5b5f09c1216be31234 SHA512 4d34c3c5f2cdd70b2a3d1b55eeb4ce59cb3d4b8d22bb6d43c2ec844b7eb5685b55a9b1b46ad2bc5f2756b5f5535ccad032791c3b932af9c1efc502aa5e701053 WHIRLPOOL 13c1366b9bef87cab42c88f75d1ff7eddb4ea745e0056154f1f3fb27deedee077d662395bada3bd5c18d6f8bf744d0b1f3d465967d33b453ea2acc327a6f166f
|
||||
DIST libjpeg-turbo-1.3.1.tar.gz 1390282 SHA256 c132907417ddc40ed552fe53d6b91d5fecbb14a356a60ddc7ea50d6be9666fb9 SHA512 6b02dc617e291b357230ef3e8cfcd27f9acc8c3e9f1c869ab0a08e9e13711b87156c6cd1aaa1a6406a873fc6732f44c8a7d94a5d6688d24b14ac63a96ee52081 WHIRLPOOL f978b24d0a4e63a421822c2114c0cfc87cbc1dedd648ddc2e97e24ee19dc5584433b1da7d41a64f0ae37b50799a273165aaec6f1377ed35a7971dbe8a0b6a8d5
|
||||
DIST libjpeg8_8d-1.debian.tar.gz 13676 SHA256 70ec6689b0ad85739802cf3ebbdcc12ea01e21edd8f931c614b25b44cf199057 SHA512 7def4f13524f0af3b9adf35a370027a18f43b9a635f56a17d5bb7883370db8b18b8a12737d0f0cb4b0287ccf8fb474eb5f754de6b398ffe7d522c54e5bf68040 WHIRLPOOL 94526c31d401eb14c9bf0f7115e13a27886ad58863e25d6653eba2b2f5ef260ec272368d2b9d9934bd75b1e5b5f1afc97230e540248efc24d6e85e5680399d27
|
||||
DIST libjpeg8_8d-2.debian.tar.gz 14764 SHA256 9b36468b2aba24d63d3c87625de89f31834ac429e6dec7d68d86a52b5110219c SHA512 8c5959fb7583a2d61e9442187f67b91b45e72d9dd30db3360d583a3b5d8e1a908db5659f760bdd455b3056e6ae3535b2fd3b847df3d58b140a1816b754003675 WHIRLPOOL bda41c37f3f57733fcd86969126f6dbede2fbf633b0168265a7fe353fb7f3cd995a94e7987bac472957ec6fb0b2dc34d5dd646f0de79e06bc94e59d7cf440939
|
||||
|
@ -0,0 +1,121 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/media-libs/libjpeg-turbo/libjpeg-turbo-1.3.1.ebuild,v 1.1 2014/03/27 21:49:06 ssuominen Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit autotools eutils java-pkg-opt-2 libtool toolchain-funcs multilib-minimal
|
||||
|
||||
DESCRIPTION="MMX, SSE, and SSE2 SIMD accelerated JPEG library"
|
||||
HOMEPAGE="http://libjpeg-turbo.virtualgl.org/ http://sourceforge.net/projects/libjpeg-turbo/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
|
||||
mirror://debian/pool/main/libj/libjpeg8/libjpeg8_8d-2.debian.tar.gz"
|
||||
|
||||
LICENSE="BSD IJG"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos"
|
||||
IUSE="java static-libs"
|
||||
|
||||
ASM_DEPEND="|| ( dev-lang/nasm dev-lang/yasm )"
|
||||
COMMON_DEPEND="!media-libs/jpeg:0
|
||||
!media-libs/jpeg:62
|
||||
abi_x86_32? ( !<=app-emulation/emul-linux-x86-baselibs-20130224-r5
|
||||
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] )"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
java? ( >=virtual/jre-1.5 )"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
amd64? ( ${ASM_DEPEND} )
|
||||
x86? ( ${ASM_DEPEND} )
|
||||
amd64-fbsd? ( ${ASM_DEPEND} )
|
||||
x86-fbsd? ( ${ASM_DEPEND} )
|
||||
amd64-linux? ( ${ASM_DEPEND} )
|
||||
x86-linux? ( ${ASM_DEPEND} )
|
||||
x64-macos? ( ${ASM_DEPEND} )
|
||||
java? ( >=virtual/jdk-1.5 )"
|
||||
|
||||
MULTILIB_WRAPPED_HEADERS=( /usr/include/jconfig.h )
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-1.2.0-x32.patch #420239
|
||||
|
||||
if [[ -x ./configure ]]; then
|
||||
elibtoolize
|
||||
else
|
||||
eautoreconf
|
||||
fi
|
||||
|
||||
epunt_cxx #424689
|
||||
|
||||
java-pkg-opt-2_src_prepare
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local myconf=()
|
||||
if multilib_is_native_abi; then
|
||||
myconf+=( $(use_with java) )
|
||||
if use java; then
|
||||
export JAVACFLAGS="$(java-pkg_javac-args)"
|
||||
export JNI_CFLAGS="$(java-pkg_get-jni-cflags)"
|
||||
fi
|
||||
else
|
||||
myconf+=( --without-java )
|
||||
fi
|
||||
[[ ${ABI} == "x32" ]] && myconf+=( --without-simd ) #420239
|
||||
|
||||
ECONF_SOURCE=${S} \
|
||||
econf \
|
||||
$(use_enable static-libs static) \
|
||||
--with-mem-srcdst \
|
||||
"${myconf[@]}"
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
local _java_makeopts
|
||||
use java && _java_makeopts="-j1"
|
||||
emake ${_java_makeopts}
|
||||
|
||||
if multilib_is_native_abi; then
|
||||
pushd ../debian/extra >/dev/null
|
||||
emake CC="$(tc-getCC)" CFLAGS="${LDFLAGS} ${CFLAGS}"
|
||||
popd >/dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
emake test
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake \
|
||||
DESTDIR="${D}" \
|
||||
docdir="${EPREFIX}"/usr/share/doc/${PF} \
|
||||
exampledir="${EPREFIX}"/usr/share/doc/${PF} \
|
||||
install
|
||||
|
||||
if multilib_is_native_abi; then
|
||||
pushd "${WORKDIR}"/debian/extra >/dev/null
|
||||
emake \
|
||||
DESTDIR="${D}" prefix="${EPREFIX}"/usr \
|
||||
INSTALL="install -m755" INSTALLDIR="install -d -m755" \
|
||||
install
|
||||
popd >/dev/null
|
||||
|
||||
if use java; then
|
||||
rm -rf "${ED}"/usr/classes
|
||||
java-pkg_dojar java/turbojpeg.jar
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
prune_libtool_files
|
||||
|
||||
insinto /usr/share/doc/${PF}/html
|
||||
doins -r "${S}"/doc/html/*
|
||||
newdoc "${WORKDIR}"/debian/changelog changelog.debian
|
||||
if use java; then
|
||||
insinto /usr/share/doc/${PF}/html/java
|
||||
doins -r "${S}"/java/doc/*
|
||||
newdoc "${S}"/java/README README.java
|
||||
fi
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue