parent
60a52ecd4b
commit
6b929bed88
@ -1,3 +1,4 @@
|
||||
DIST httpd-2.2.31.tar.bz2 5610489 SHA256 f32f9d19f535dac63b06cb55dfc023b40dcd28196b785f79f9346779e22f26ac SHA512 5aa47d4b76f692bbd8b309135ff99152df98cf69b505b9daf3f13f7f2a31443eaf4995161adfbc47a133b4d0e091fda2d95fc6b87a956f0ada18d7466ee28e74 WHIRLPOOL a2e3e53c51719cb6f7e641b41788cd89ce7b4d2ea105b403bfa3b3d4479b69c5604228269062f66722594e105e91121d05b1c9f27ca7dc4ecfcf339da8b8375c
|
||||
DIST httpd-2.2.32.tar.bz2 5777509 SHA256 527bc9d8092d784daf08910dd6c9d2681d6a2325055b2cc69806a0a7df7ed650 SHA512 b1802579f4fc950705ddcf0a24f502ffadbd91d5693fdd3b290ac7ca40122f8fa48132ad1055afae9b841dd55e8bb343239be07ca431b0f60ea081f5c2fad2c3 WHIRLPOOL ee2f1cb74b77f4b3eae7d58bb9bf2728d95a6e215a460d85abf60e220b816cb0e22080169167e3610872e3165951f1cc9ac753f02e46dc75e047a98a1b7384a5
|
||||
DIST httpd-2.4.25.tar.bz2 6398218 SHA256 f87ec2df1c9fee3e6bfde3c8b855a3ddb7ca1ab20ca877bd0e2b6bf3f05c80b2 SHA512 6ba4ce1dcef71416cf1c0de2468c002767b5637a75744daf5beb0edd045749a751b3826c4132f594c48e4b33ca8e1b25ebfb63ac4c8b759ca066a89d3261fb22 WHIRLPOOL ccb783875632241e8acf7b43c59163c25b13357b307416abaa3adb0ac868fc547b3cff9585b347e98a8663ec26bea3edad4d42604e6ae86b0db5f769fc11d072
|
||||
DIST httpd-2.4.26.tar.bz2 6524642 SHA256 a07eb52fafc879e0149d31882f7da63173e72df4478db4dc69f7a775b663d387 SHA512 4b32f01f17c912011f24bf3991430d474be13836af41b26c072e3c1eab2b45a3c52851eb00423e046c59fc16e1f501d64daaee3f2469b2745857ec1982966c9a WHIRLPOOL ff70140efd98c53e741292949e980943e86c82cd7d4eda34a38b185a960fd9667c67cdb21abd346f492e746d503a90d5ee3b6492940b5f289716ecdbf57f628f
|
||||
|
@ -0,0 +1,106 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
inherit flag-o-matic eutils multilib toolchain-funcs
|
||||
|
||||
DESCRIPTION="Useful Apache tools - htdigest, htpasswd, ab, htdbm"
|
||||
HOMEPAGE="https://httpd.apache.org/"
|
||||
SRC_URI="mirror://apache/httpd/httpd-${PV}.tar.bz2"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc64-solaris ~x64-solaris"
|
||||
IUSE="libressl ssl"
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND=">=dev-libs/apr-1.5.0:1
|
||||
dev-libs/apr-util:1
|
||||
dev-libs/expat
|
||||
dev-libs/libpcre
|
||||
kernel_linux? ( sys-apps/util-linux )
|
||||
ssl? (
|
||||
!libressl? ( dev-libs/openssl:0= )
|
||||
libressl? ( dev-libs/libressl:0= )
|
||||
)"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/libtool"
|
||||
|
||||
S="${WORKDIR}/httpd-${PV}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-2.4.7-Makefile.patch" #459446
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# This package really should upgrade to using pcre's .pc file.
|
||||
cat <<-\EOF >"${T}"/pcre-config
|
||||
#!/bin/bash
|
||||
flags=()
|
||||
for flag; do
|
||||
if [[ ${flag} == "--version" ]]; then
|
||||
flags+=( --modversion )
|
||||
else
|
||||
flags+=( "${flag}" )
|
||||
fi
|
||||
done
|
||||
exec ${PKG_CONFIG} libpcre "${flags[@]}"
|
||||
EOF
|
||||
chmod a+x "${T}"/pcre-config
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Brain dead check.
|
||||
tc-is-cross-compiler && export ap_cv_void_ptr_lt_long="no"
|
||||
|
||||
tc-export PKG_CONFIG
|
||||
|
||||
# Instead of filtering --as-needed (bug #128505), append --no-as-needed
|
||||
#append-ldflags $(no-as-needed)
|
||||
|
||||
# econf overwrites the stuff from config.layout.
|
||||
ac_cv_path_PKGCONFIG=${PKG_CONFIG} \
|
||||
econf \
|
||||
--libexecdir="${EPREFIX}"/usr/$(get_libdir)/apache2/modules \
|
||||
--sbindir="${EPREFIX}"/usr/sbin \
|
||||
--with-perl="${EPREFIX}"/usr/bin/perl \
|
||||
--with-expat="${EPREFIX}"/usr \
|
||||
--with-z="${EPREFIX}"/usr \
|
||||
--with-apr="${SYSROOT}${EPREFIX}"/usr \
|
||||
--with-apr-util="${SYSROOT}${EPREFIX}"/usr \
|
||||
--with-pcre="${T}"/pcre-config \
|
||||
$(use_enable ssl) \
|
||||
$(usex ssl '--with-ssl="${EPREFIX}"/usr' '')
|
||||
sed -i \
|
||||
-e '/^LTFLAGS/s:--silent::' \
|
||||
build/rules.mk build/config_vars.mk || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake -C support
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake -C support DESTDIR="${D}" install
|
||||
dodoc CHANGES
|
||||
doman docs/man/{dbmmanage,htdigest,htpasswd,htdbm,ab,logresolve}.1 \
|
||||
docs/man/{htcacheclean,rotatelogs}.8
|
||||
|
||||
# Providing compatiblity symlinks for #177697 (which we'll stop to install
|
||||
# at some point).
|
||||
pushd "${ED}"/usr/sbin >/dev/null || die
|
||||
local i
|
||||
for i in *; do
|
||||
dosym ${i} /usr/sbin/${i}2
|
||||
done
|
||||
popd >/dev/null || die
|
||||
|
||||
# Provide a symlink for ab-ssl
|
||||
if use ssl; then
|
||||
dosym ab /usr/bin/ab-ssl
|
||||
dosym ab /usr/bin/ab2-ssl
|
||||
fi
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST cpio-2.11.tar.bz2 1018483 SHA256 bb820bfd96e74fc6ce43104f06fe733178517e7f5d1cdee553773e8eff7d5bbd SHA512 b6ccb3e121ea29780219d21c9cd6267c2f7b7ae72fb899bb80e1c54cc33e9eac5363443d93dbfbe37e8e8d295dad2724ac607f0543cc62797919605f68c396aa WHIRLPOOL 3e19212f8d5c16de0d531d189fa9fc288ff90d6299c1f3f98f61e182bb0ec278705ae5021c85c7aaeab869ad36b2b3bcd11327a746cde0bf5a596049d711d9cd
|
||||
DIST cpio-2.12.tar.bz2 1258605 SHA256 70998c5816ace8407c8b101c9ba1ffd3ebbecba1f5031046893307580ec1296e SHA512 0cd4da5f2fbca179ab4e666a5f878414c086a5f98bce4c76273f21d9b2a6fe422d901b5d453826c5f81bbe363aa015047a1e99779ad1a451c8feca6205c63120 WHIRLPOOL 2990d54b0832e36239737fbd71f197b28703ec22de8dbbab57c7b97dab88a6107cf5464e4dd0bbf208f2c3d49839c7c2abe8ef68c1f2318ff7018d0b07f179fc
|
||||
|
@ -1,36 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit autotools eutils
|
||||
|
||||
DESCRIPTION="A file archival tool which can also read and write tar files"
|
||||
HOMEPAGE="https://www.gnu.org/software/cpio/cpio.html"
|
||||
SRC_URI="mirror://gnu/cpio/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="nls"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${P}-stat.patch #328531
|
||||
epatch "${FILESDIR}"/${P}-no-gets.patch #424974
|
||||
epatch "${FILESDIR}"/${P}-non-gnu-compilers.patch #275295
|
||||
epatch "${FILESDIR}"/${P}-security.patch #530512 #536010
|
||||
epatch "${FILESDIR}"/${P}-symlink-bad-length-test.patch #554760
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_enable nls) \
|
||||
--bindir="${EPREFIX}"/bin \
|
||||
--with-rmt="${EPREFIX}"/usr/sbin/rmt
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
rm "${ED}"/usr/share/man/man1/mt.1 || die
|
||||
}
|
@ -1,26 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="A file archival tool which can also read and write tar files"
|
||||
HOMEPAGE="https://www.gnu.org/software/cpio/cpio.html"
|
||||
SRC_URI="mirror://gnu/cpio/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="nls"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-2.12-non-gnu-compilers.patch #275295
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_enable nls) \
|
||||
--bindir="${EPREFIX}"/bin \
|
||||
--with-rmt="${EPREFIX}"/usr/sbin/rmt
|
||||
}
|
@ -1,24 +0,0 @@
|
||||
https://bugs.gentoo.org/424974
|
||||
|
||||
hack until gzip pulls a newer gnulib version
|
||||
|
||||
From 66712c23388e93e5c518ebc8515140fa0c807348 Mon Sep 17 00:00:00 2001
|
||||
From: Eric Blake <eblake@redhat.com>
|
||||
Date: Thu, 29 Mar 2012 13:30:41 -0600
|
||||
Subject: [PATCH] stdio: don't assume gets any more
|
||||
|
||||
Gnulib intentionally does not have a gets module, and now that C11
|
||||
and glibc have dropped it, we should be more proactive about warning
|
||||
any user on a platform that still has a declaration of this dangerous
|
||||
interface.
|
||||
|
||||
--- a/gnu/stdio.in.h
|
||||
+++ b/gnu/stdio.in.h
|
||||
@@ -125,7 +125,6 @@
|
||||
so any use of gets warrants an unconditional warning. Assume it is
|
||||
always declared, since it is required by C89. */
|
||||
#undef gets
|
||||
-_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
|
||||
|
||||
#if @GNULIB_FOPEN@
|
||||
# if @REPLACE_FOPEN@
|
@ -1,18 +0,0 @@
|
||||
srcshelton@gmail.com: Patch for IRIX
|
||||
|
||||
http://bugs.gentoo.org/show_bug.cgi?id=275295
|
||||
|
||||
Sent upstream:
|
||||
https://savannah.gnu.org/patch/?7838
|
||||
|
||||
--- src/cpiohdr.h.dist 2009-06-24 15:41:26.983725240 +0100
|
||||
+++ src/cpiohdr.h 2009-06-24 15:41:59.753567720 +0100
|
||||
@@ -24,6 +24,8 @@
|
||||
|
||||
#ifdef HAVE_ATTRIB_PACKED
|
||||
#define ATTRIB_PACKED __attribute__((packed))
|
||||
+#else
|
||||
+#define ATTRIB_PACKED
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_PRAGMA_PACK
|
@ -1,25 +0,0 @@
|
||||
http://bugs.gentoo.org/328531
|
||||
|
||||
From 3a7a1820d4cecbd77c7b74c785af5942510bf080 Mon Sep 17 00:00:00 2001
|
||||
From: Sergey Poznyakoff <gray@gnu.org.ua>
|
||||
Date: Thu, 22 Jul 2010 13:13:34 +0300
|
||||
Subject: [PATCH] Minor fix.
|
||||
|
||||
* src/filetypes.h: Remove declarations of stat and lstat.
|
||||
---
|
||||
src/filetypes.h | 2 --
|
||||
1 files changed, 0 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/filetypes.h b/src/filetypes.h
|
||||
index f80faab..81f0c32 100644
|
||||
--- a/src/filetypes.h
|
||||
+++ b/src/filetypes.h
|
||||
@@ -81,5 +81,3 @@
|
||||
#ifndef S_ISLNK
|
||||
#define lstat stat
|
||||
#endif
|
||||
-int lstat ();
|
||||
-int stat ();
|
||||
--
|
||||
1.7.3
|
||||
|
@ -1,39 +0,0 @@
|
||||
https://lists.gnu.org/archive/html/bug-cpio/2015-06/msg00001.html
|
||||
https://bugs.gentoo.org/554760
|
||||
|
||||
this fix is squashed into 0396591026410f91f7a81b4b150bc7285d9f2278
|
||||
(as upstream doesn't seem to understand git)
|
||||
|
||||
>From bebf9662c406d1d137a66c567d8748b489d352e7 Mon Sep 17 00:00:00 2001
|
||||
From: Pavel Raiskup <address@hidden>
|
||||
Date: Thu, 4 Jun 2015 13:27:42 +0200
|
||||
Subject: [PATCH] tests: fix expected output for old file
|
||||
|
||||
Thanks Victor Rodriguez. Upstream thread:
|
||||
http://lists.gnu.org/archive/html/bug-cpio/2015-06/msg00000.html
|
||||
|
||||
* tests/symlink-bad-length.at (STDOUT): Expect the year string
|
||||
'2014' is printed and not time because the file in archive is
|
||||
older than 6 months.
|
||||
* Thanks: Mention Victor.
|
||||
---
|
||||
THANKS | 1 +
|
||||
tests/symlink-bad-length.at | 2 +-
|
||||
2 files changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tests/symlink-bad-length.at b/tests/symlink-bad-length.at
|
||||
index e1a7093..2cdc692 100644
|
||||
--- a/tests/symlink-bad-length.at
|
||||
+++ b/tests/symlink-bad-length.at
|
||||
@@ -57,7 +57,7 @@ cat stderr | grep -v \
|
||||
echo >&2 STDERR
|
||||
],
|
||||
[0],
|
||||
-[-rw-rw-r-- 1 10029 10031 13 Nov 25 11:52 FILE
|
||||
+[-rw-rw-r-- 1 10029 10031 13 Nov 25 2014 FILE
|
||||
],[STDERR
|
||||
])
|
||||
|
||||
--
|
||||
2.1.0
|
||||
|
@ -1,3 +1,2 @@
|
||||
DIST winetricks-20170327.tar.gz 190864 SHA256 ad381386be95f5f2c34a69a6d1d77f3d41d86f883b8bed7ac4699947cf13e97d SHA512 b859ed73ccc3d62aad74a95deb087fd87d153c50b9c4abaa959579d131cdbb37870f3ab2e1495605f58ccd0caf26a5fb4ed858a85ef03ecf5137b9f685295bd5 WHIRLPOOL c5047766517c6bfcab994023339a89c13f101ede1f15050c86bcbaa076e2d895704b991ff5d8628c9eacde70227f4fa4a179664ecfb29a08344f7db42a1787b5
|
||||
DIST winetricks-20170517.tar.gz 637815 SHA256 6699e0169c06d11c5467ae6440d8634575602af2f77430e31a781b2dc1790805 SHA512 ea48658763c45c856e30755c03daf60cf9ba9a46c3e0f88a517ef65549bf2aa2279ea873955c405f5a582c4c2765c4b7c59124fe5d9778eae59746ed7590f2bc WHIRLPOOL 9c93a0f69c234610add35b39b4ca9b128b3d0436bd9015e45bd4577657310cc0e39b7cd4afaef4e62baccb1ca8168d22f90d6932a3af4c815db6629205e5992e
|
||||
DIST winetricks-20170614.tar.gz 637249 SHA256 c31a51b006511b0ee47c662ef0ef98dd77c6ae410b083927c27674200974d173 SHA512 8186657000dfb99ed971e6b9ff992c34fc6a72204f2814d00bde525ee352202d292983a931021906aa661764f84cfe3ce93138d1cca5cc19e00e936b5ff47748 WHIRLPOOL 21b5eb8c5dd1c58b1d5428bc4bd65da5e4280364eb7d1a1a831b7758169c0a3a7db240644928d5cce4e6fb3435ddae0aec9dcccadb5444051b185252e8742b94
|
||||
DIST winetricks-gentoo-2012.11.24.tar.bz2 6398 SHA256 dded8c294cc5c2e71e4a5d1531ab165178cf3d2d1d890d0656368c2e499bfeb9 SHA512 59c93b73f3a7b2d11aefcde2ff66659ff1de21ad4b5f232f4b60572f3a48b15a6c49f369b1696862bf1b33fde190bf5598945e9536fb41ddec42d8def4d2be2a WHIRLPOOL 268da9e06712a678fbbcfff8eac1fca364b5e46f0a9c48a591eb88f03260b1a55f203eb2908bfe1f0a534b77c866127ff6f7049b0e43fe8abeaaa26fe55de75b
|
||||
|
@ -1,87 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit gnome2-utils eutils
|
||||
|
||||
if [[ ${PV} == "99999999" ]] ; then
|
||||
EGIT_REPO_URI="git://github.com/Winetricks/${PN}.git"
|
||||
inherit git-r3
|
||||
SRC_URI=""
|
||||
else
|
||||
SRC_URI="https://github.com/Winetricks/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="amd64 x86"
|
||||
fi
|
||||
|
||||
wtg=winetricks-gentoo-2012.11.24
|
||||
|
||||
SRC_URI="${SRC_URI}
|
||||
gtk? ( https://dev.gentoo.org/~tetromino/distfiles/wine/${wtg}.tar.bz2 )
|
||||
kde? ( https://dev.gentoo.org/~tetromino/distfiles/wine/${wtg}.tar.bz2 )"
|
||||
|
||||
DESCRIPTION="Easy way to install DLLs needed to work around problems in Wine"
|
||||
HOMEPAGE="http://winetricks.org http://wiki.winehq.org/winetricks"
|
||||
|
||||
LICENSE="LGPL-2.1+"
|
||||
SLOT="0"
|
||||
IUSE="gtk kde rar"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="app-arch/cabextract
|
||||
app-arch/p7zip
|
||||
app-arch/unzip
|
||||
net-misc/wget
|
||||
x11-misc/xdg-utils
|
||||
|| (
|
||||
app-emulation/wine
|
||||
virtual/wine
|
||||
)
|
||||
gtk? ( gnome-extra/zenity )
|
||||
kde? ( kde-apps/kdialog )
|
||||
rar? ( app-arch/unrar )"
|
||||
|
||||
# Uses a non-standard "Wine" category, which is provided by app-emulation/wine; #451552
|
||||
QA_DESKTOP_FILE="usr/share/applications/winetricks.desktop"
|
||||
|
||||
# Tests require network access and run Wine, which is unreliable from a portage environment.
|
||||
RESTRICT="test"
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} == "99999999" ]] ; then
|
||||
git-r3_src_unpack
|
||||
if use gtk || use kde; then
|
||||
unpack ${wtg}.tar.bz2
|
||||
fi
|
||||
else
|
||||
default
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
if use gtk || use kde; then
|
||||
cd "${WORKDIR}/${wtg}" || die
|
||||
domenu winetricks.desktop
|
||||
insinto /usr/share/icons/hicolor/scalable/apps
|
||||
doins wine-winetricks.svg
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if use gtk || use kde; then
|
||||
gnome2_icon_savelist
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use gtk || use kde; then
|
||||
gnome2_icon_cache_update
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
if use gtk || use kde; then
|
||||
gnome2_icon_cache_update
|
||||
fi
|
||||
}
|
@ -1,254 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit eutils flag-o-matic toolchain-funcs multilib prefix
|
||||
|
||||
# Official patchlevel
|
||||
# See ftp://ftp.cwru.edu/pub/bash/bash-4.4-patches/
|
||||
PLEVEL=${PV##*_p}
|
||||
MY_PV=${PV/_p*}
|
||||
MY_PV=${MY_PV/_/-}
|
||||
MY_P=${PN}-${MY_PV}
|
||||
is_release() {
|
||||
case ${PV} in
|
||||
*_alpha*|*_beta*|*_rc*) return 1 ;;
|
||||
*) return 0 ;;
|
||||
esac
|
||||
}
|
||||
[[ ${PV} != *_p* ]] && PLEVEL=0
|
||||
patches() {
|
||||
local opt=$1 plevel=${2:-${PLEVEL}} pn=${3:-${PN}} pv=${4:-${MY_PV}}
|
||||
[[ ${plevel} -eq 0 ]] && return 1
|
||||
eval set -- {1..${plevel}}
|
||||
set -- $(printf "${pn}${pv/\.}-%03d " "$@")
|
||||
if [[ ${opt} == -s ]] ; then
|
||||
echo "${@/#/${DISTDIR}/}"
|
||||
else
|
||||
local u
|
||||
for u in ftp://ftp.cwru.edu/pub/bash mirror://gnu/${pn} ; do
|
||||
printf "${u}/${pn}-${pv}-patches/%s " "$@"
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
# The version of readline this bash normally ships with.
|
||||
READLINE_VER="7.0"
|
||||
|
||||
DESCRIPTION="The standard GNU Bourne again shell"
|
||||
HOMEPAGE="http://tiswww.case.edu/php/chet/bash/bashtop.html"
|
||||
if is_release ; then
|
||||
SRC_URI="mirror://gnu/bash/${MY_P}.tar.gz $(patches)"
|
||||
else
|
||||
SRC_URI="ftp://ftp.cwru.edu/pub/bash/${MY_P}.tar.gz"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="afs bashlogger examples mem-scramble +net nls plugins +readline"
|
||||
|
||||
DEPEND=">=sys-libs/ncurses-5.2-r2:0=
|
||||
readline? ( >=sys-libs/readline-${READLINE_VER}:0= )
|
||||
nls? ( virtual/libintl )"
|
||||
RDEPEND="${DEPEND}
|
||||
!<sys-apps/portage-2.1.6.7_p1
|
||||
!<sys-apps/paludis-0.26.0_alpha5"
|
||||
# we only need yacc when the .y files get patched (bash42-005)
|
||||
#DEPEND+=" virtual/yacc"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
pkg_setup() {
|
||||
if is-flag -malign-double ; then #7332
|
||||
eerror "Detected bad CFLAGS '-malign-double'. Do not use this"
|
||||
eerror "as it breaks LFS (struct stat64) on x86."
|
||||
die "remove -malign-double from your CFLAGS mr ricer"
|
||||
fi
|
||||
if use bashlogger ; then
|
||||
ewarn "The logging patch should ONLY be used in restricted (i.e. honeypot) envs."
|
||||
ewarn "This will log ALL output you enter into the shell, you have been warned."
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${MY_P}.tar.gz
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Include official patches
|
||||
[[ ${PLEVEL} -gt 0 ]] && epatch $(patches -s)
|
||||
|
||||
# Clean out local libs so we know we use system ones w/releases.
|
||||
if is_release ; then
|
||||
rm -rf lib/{readline,termcap}/*
|
||||
touch lib/{readline,termcap}/Makefile.in # for config.status
|
||||
sed -ri -e 's:\$[(](RL|HIST)_LIBSRC[)]/[[:alpha:]]*.h::g' Makefile.in || die
|
||||
fi
|
||||
|
||||
# Prefixify hardcoded path names. No-op for non-prefix.
|
||||
hprefixify pathnames.h.in
|
||||
|
||||
# Avoid regenerating docs after patches #407985
|
||||
sed -i -r '/^(HS|RL)USER/s:=.*:=:' doc/Makefile.in || die
|
||||
touch -r . doc/*
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=()
|
||||
|
||||
# For descriptions of these, see config-top.h
|
||||
# bashrc/#26952 bash_logout/#90488 ssh/#24762 mktemp/#574426
|
||||
append-cppflags \
|
||||
-DDEFAULT_PATH_VALUE=\'\"${EPREFIX}/usr/local/sbin:${EPREFIX}/usr/local/bin:${EPREFIX}/usr/sbin:${EPREFIX}/usr/bin:${EPREFIX}/sbin:${EPREFIX}/bin\"\' \
|
||||
-DSTANDARD_UTILS_PATH=\'\"${EPREFIX}/bin:${EPREFIX}/usr/bin:${EPREFIX}/sbin:${EPREFIX}/usr/sbin\"\' \
|
||||
-DSYS_BASHRC=\'\"${EPREFIX}/etc/bash/bashrc\"\' \
|
||||
-DSYS_BASH_LOGOUT=\'\"${EPREFIX}/etc/bash/bash_logout\"\' \
|
||||
-DNON_INTERACTIVE_LOGIN_SHELLS \
|
||||
-DSSH_SOURCE_BASHRC \
|
||||
$(use bashlogger && echo -DSYSLOG_HISTORY)
|
||||
|
||||
# Don't even think about building this statically without
|
||||
# reading Bug 7714 first. If you still build it statically,
|
||||
# don't come crying to us with bugs ;).
|
||||
#use static && export LDFLAGS="${LDFLAGS} -static"
|
||||
use nls || myconf+=( --disable-nls )
|
||||
|
||||
# Historically, we always used the builtin readline, but since
|
||||
# our handling of SONAME upgrades has gotten much more stable
|
||||
# in the PM (and the readline ebuild itself preserves the old
|
||||
# libs during upgrades), linking against the system copy should
|
||||
# be safe.
|
||||
# Exact cached version here doesn't really matter as long as it
|
||||
# is at least what's in the DEPEND up above.
|
||||
export ac_cv_rl_version=${READLINE_VER%%_*}
|
||||
|
||||
# Force linking with system curses ... the bundled termcap lib
|
||||
# sucks bad compared to ncurses. For the most part, ncurses
|
||||
# is here because readline needs it. But bash itself calls
|
||||
# ncurses in one or two small places :(.
|
||||
|
||||
if is_release ; then
|
||||
# Use system readline only with released versions.
|
||||
myconf+=( --with-installed-readline=. )
|
||||
fi
|
||||
|
||||
if use plugins; then
|
||||
append-ldflags -Wl,-rpath,/usr/$(get_libdir)/bash
|
||||
else
|
||||
# Disable the plugins logic by hand since bash doesn't
|
||||
# provide a way of doing it.
|
||||
export ac_cv_func_dl{close,open,sym}=no \
|
||||
ac_cv_lib_dl_dlopen=no ac_cv_header_dlfcn_h=no
|
||||
sed -i \
|
||||
-e '/LOCAL_LDFLAGS=/s:-rdynamic::' \
|
||||
configure || die
|
||||
fi
|
||||
tc-export AR #444070
|
||||
econf \
|
||||
--docdir='$(datarootdir)'/doc/${PF} \
|
||||
--htmldir='$(docdir)/html' \
|
||||
--with-curses \
|
||||
$(use_with afs) \
|
||||
$(use_enable net net-redirections) \
|
||||
--disable-profiling \
|
||||
$(use_enable mem-scramble) \
|
||||
$(use_with mem-scramble bash-malloc) \
|
||||
$(use_enable readline) \
|
||||
$(use_enable readline history) \
|
||||
$(use_enable readline bang-history) \
|
||||
"${myconf[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake
|
||||
|
||||
if use plugins ; then
|
||||
emake -C examples/loadables all others
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local d f
|
||||
|
||||
default
|
||||
|
||||
dodir /bin
|
||||
mv "${ED}"/usr/bin/bash "${ED}"/bin/ || die
|
||||
dosym bash /bin/rbash
|
||||
|
||||
insinto /etc/bash
|
||||
doins "${FILESDIR}"/bash_logout
|
||||
doins "$(prefixify_ro "${FILESDIR}"/bashrc)"
|
||||
keepdir /etc/bash/bashrc.d
|
||||
insinto /etc/skel
|
||||
for f in bash{_logout,_profile,rc} ; do
|
||||
newins "${FILESDIR}"/dot-${f} .${f}
|
||||
done
|
||||
|
||||
local sed_args=(
|
||||
-e "s:#${USERLAND}#@::"
|
||||
-e '/#@/d'
|
||||
)
|
||||
if ! use readline ; then
|
||||
sed_args+=( #432338
|
||||
-e '/^shopt -s histappend/s:^:#:'
|
||||
-e 's:use_color=true:use_color=false:'
|
||||
)
|
||||
fi
|
||||
sed -i \
|
||||
"${sed_args[@]}" \
|
||||
"${ED}"/etc/skel/.bashrc \
|
||||
"${ED}"/etc/bash/bashrc || die
|
||||
|
||||
if use plugins ; then
|
||||
exeinto /usr/$(get_libdir)/bash
|
||||
doexe $(echo examples/loadables/*.o | sed 's:\.o::g')
|
||||
insinto /usr/include/bash-plugins
|
||||
doins *.h builtins/*.h include/*.h lib/{glob/glob.h,tilde/tilde.h}
|
||||
fi
|
||||
|
||||
if use examples ; then
|
||||
for d in examples/{functions,misc,scripts,startup-files} ; do
|
||||
exeinto /usr/share/doc/${PF}/${d}
|
||||
insinto /usr/share/doc/${PF}/${d}
|
||||
for f in ${d}/* ; do
|
||||
if [[ ${f##*/} != PERMISSION ]] && [[ ${f##*/} != *README ]] ; then
|
||||
doexe ${f}
|
||||
else
|
||||
doins ${f}
|
||||
fi
|
||||
done
|
||||
done
|
||||
fi
|
||||
|
||||
doman doc/*.1
|
||||
newdoc CWRU/changelog ChangeLog
|
||||
dosym bash.info /usr/share/info/bashref.info
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if [[ -e ${EROOT}/etc/bashrc ]] && [[ ! -d ${EROOT}/etc/bash ]] ; then
|
||||
mkdir -p "${EROOT}"/etc/bash
|
||||
mv -f "${EROOT}"/etc/bashrc "${EROOT}"/etc/bash/
|
||||
fi
|
||||
|
||||
if [[ -L ${EROOT}/bin/sh ]] ; then
|
||||
# rewrite the symlink to ensure that its mtime changes. having /bin/sh
|
||||
# missing even temporarily causes a fatal error with paludis.
|
||||
local target=$(readlink "${EROOT}"/bin/sh)
|
||||
local tmp=$(emktemp "${EROOT}"/bin)
|
||||
ln -sf "${target}" "${tmp}"
|
||||
mv -f "${tmp}" "${EROOT}"/bin/sh
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# If /bin/sh does not exist, provide it
|
||||
if [[ ! -e ${EROOT}/bin/sh ]] ; then
|
||||
ln -sf bash "${EROOT}"/bin/sh
|
||||
fi
|
||||
}
|
@ -1,255 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit eutils flag-o-matic toolchain-funcs multilib prefix
|
||||
|
||||
# Official patchlevel
|
||||
# See ftp://ftp.cwru.edu/pub/bash/bash-4.4-patches/
|
||||
PLEVEL=${PV##*_p}
|
||||
MY_PV=${PV/_p*}
|
||||
MY_PV=${MY_PV/_/-}
|
||||
MY_P=${PN}-${MY_PV}
|
||||
is_release() {
|
||||
case ${PV} in
|
||||
*_alpha*|*_beta*|*_rc*) return 1 ;;
|
||||
*) return 0 ;;
|
||||
esac
|
||||
}
|
||||
[[ ${PV} != *_p* ]] && PLEVEL=0
|
||||
patches() {
|
||||
local opt=$1 plevel=${2:-${PLEVEL}} pn=${3:-${PN}} pv=${4:-${MY_PV}}
|
||||
[[ ${plevel} -eq 0 ]] && return 1
|
||||
eval set -- {1..${plevel}}
|
||||
set -- $(printf "${pn}${pv/\.}-%03d " "$@")
|
||||
if [[ ${opt} == -s ]] ; then
|
||||
echo "${@/#/${DISTDIR}/}"
|
||||
else
|
||||
local u
|
||||
for u in ftp://ftp.cwru.edu/pub/bash mirror://gnu/${pn} ; do
|
||||
printf "${u}/${pn}-${pv}-patches/%s " "$@"
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
# The version of readline this bash normally ships with.
|
||||
READLINE_VER="7.0"
|
||||
|
||||
DESCRIPTION="The standard GNU Bourne again shell"
|
||||
HOMEPAGE="http://tiswww.case.edu/php/chet/bash/bashtop.html"
|
||||
if is_release ; then
|
||||
SRC_URI="mirror://gnu/bash/${MY_P}.tar.gz $(patches)"
|
||||
else
|
||||
SRC_URI="ftp://ftp.cwru.edu/pub/bash/${MY_P}.tar.gz"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="afs bashlogger examples mem-scramble +net nls plugins +readline"
|
||||
|
||||
DEPEND=">=sys-libs/ncurses-5.2-r2:0=
|
||||
readline? ( >=sys-libs/readline-${READLINE_VER}:0= )
|
||||
nls? ( virtual/libintl )"
|
||||
RDEPEND="${DEPEND}
|
||||
!<sys-apps/portage-2.1.6.7_p1
|
||||
!<sys-apps/paludis-0.26.0_alpha5"
|
||||
# we only need yacc when the .y files get patched (bash42-005)
|
||||
#DEPEND+=" virtual/yacc"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
pkg_setup() {
|
||||
if is-flag -malign-double ; then #7332
|
||||
eerror "Detected bad CFLAGS '-malign-double'. Do not use this"
|
||||
eerror "as it breaks LFS (struct stat64) on x86."
|
||||
die "remove -malign-double from your CFLAGS mr ricer"
|
||||
fi
|
||||
if use bashlogger ; then
|
||||
ewarn "The logging patch should ONLY be used in restricted (i.e. honeypot) envs."
|
||||
ewarn "This will log ALL output you enter into the shell, you have been warned."
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${MY_P}.tar.gz
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Include official patches
|
||||
[[ ${PLEVEL} -gt 0 ]] && epatch $(patches -s)
|
||||
epatch "${FILESDIR}"/${PN}-4.4-popd-offset-overflow.patch #600174
|
||||
|
||||
# Clean out local libs so we know we use system ones w/releases.
|
||||
if is_release ; then
|
||||
rm -rf lib/{readline,termcap}/*
|
||||
touch lib/{readline,termcap}/Makefile.in # for config.status
|
||||
sed -ri -e 's:\$[(](RL|HIST)_LIBSRC[)]/[[:alpha:]]*.h::g' Makefile.in || die
|
||||
fi
|
||||
|
||||
# Prefixify hardcoded path names. No-op for non-prefix.
|
||||
hprefixify pathnames.h.in
|
||||
|
||||
# Avoid regenerating docs after patches #407985
|
||||
sed -i -r '/^(HS|RL)USER/s:=.*:=:' doc/Makefile.in || die
|
||||
touch -r . doc/*
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=()
|
||||
|
||||
# For descriptions of these, see config-top.h
|
||||
# bashrc/#26952 bash_logout/#90488 ssh/#24762 mktemp/#574426
|
||||
append-cppflags \
|
||||
-DDEFAULT_PATH_VALUE=\'\"${EPREFIX}/usr/local/sbin:${EPREFIX}/usr/local/bin:${EPREFIX}/usr/sbin:${EPREFIX}/usr/bin:${EPREFIX}/sbin:${EPREFIX}/bin\"\' \
|
||||
-DSTANDARD_UTILS_PATH=\'\"${EPREFIX}/bin:${EPREFIX}/usr/bin:${EPREFIX}/sbin:${EPREFIX}/usr/sbin\"\' \
|
||||
-DSYS_BASHRC=\'\"${EPREFIX}/etc/bash/bashrc\"\' \
|
||||
-DSYS_BASH_LOGOUT=\'\"${EPREFIX}/etc/bash/bash_logout\"\' \
|
||||
-DNON_INTERACTIVE_LOGIN_SHELLS \
|
||||
-DSSH_SOURCE_BASHRC \
|
||||
$(use bashlogger && echo -DSYSLOG_HISTORY)
|
||||
|
||||
# Don't even think about building this statically without
|
||||
# reading Bug 7714 first. If you still build it statically,
|
||||
# don't come crying to us with bugs ;).
|
||||
#use static && export LDFLAGS="${LDFLAGS} -static"
|
||||
use nls || myconf+=( --disable-nls )
|
||||
|
||||
# Historically, we always used the builtin readline, but since
|
||||
# our handling of SONAME upgrades has gotten much more stable
|
||||
# in the PM (and the readline ebuild itself preserves the old
|
||||
# libs during upgrades), linking against the system copy should
|
||||
# be safe.
|
||||
# Exact cached version here doesn't really matter as long as it
|
||||
# is at least what's in the DEPEND up above.
|
||||
export ac_cv_rl_version=${READLINE_VER%%_*}
|
||||
|
||||
# Force linking with system curses ... the bundled termcap lib
|
||||
# sucks bad compared to ncurses. For the most part, ncurses
|
||||
# is here because readline needs it. But bash itself calls
|
||||
# ncurses in one or two small places :(.
|
||||
|
||||
if is_release ; then
|
||||
# Use system readline only with released versions.
|
||||
myconf+=( --with-installed-readline=. )
|
||||
fi
|
||||
|
||||
if use plugins; then
|
||||
append-ldflags -Wl,-rpath,/usr/$(get_libdir)/bash
|
||||
else
|
||||
# Disable the plugins logic by hand since bash doesn't
|
||||
# provide a way of doing it.
|
||||
export ac_cv_func_dl{close,open,sym}=no \
|
||||
ac_cv_lib_dl_dlopen=no ac_cv_header_dlfcn_h=no
|
||||
sed -i \
|
||||
-e '/LOCAL_LDFLAGS=/s:-rdynamic::' \
|
||||
configure || die
|
||||
fi
|
||||
tc-export AR #444070
|
||||
econf \
|
||||
--docdir='$(datarootdir)'/doc/${PF} \
|
||||
--htmldir='$(docdir)/html' \
|
||||
--with-curses \
|
||||
$(use_with afs) \
|
||||
$(use_enable net net-redirections) \
|
||||
--disable-profiling \
|
||||
$(use_enable mem-scramble) \
|
||||
$(use_with mem-scramble bash-malloc) \
|
||||
$(use_enable readline) \
|
||||
$(use_enable readline history) \
|
||||
$(use_enable readline bang-history) \
|
||||
"${myconf[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake
|
||||
|
||||
if use plugins ; then
|
||||
emake -C examples/loadables all others
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local d f
|
||||
|
||||
default
|
||||
|
||||
dodir /bin
|
||||
mv "${ED}"/usr/bin/bash "${ED}"/bin/ || die
|
||||
dosym bash /bin/rbash
|
||||
|
||||
insinto /etc/bash
|
||||
doins "${FILESDIR}"/bash_logout
|
||||
doins "$(prefixify_ro "${FILESDIR}"/bashrc)"
|
||||
keepdir /etc/bash/bashrc.d
|
||||
insinto /etc/skel
|
||||
for f in bash{_logout,_profile,rc} ; do
|
||||
newins "${FILESDIR}"/dot-${f} .${f}
|
||||
done
|
||||
|
||||
local sed_args=(
|
||||
-e "s:#${USERLAND}#@::"
|
||||
-e '/#@/d'
|
||||
)
|
||||
if ! use readline ; then
|
||||
sed_args+=( #432338
|
||||
-e '/^shopt -s histappend/s:^:#:'
|
||||
-e 's:use_color=true:use_color=false:'
|
||||
)
|
||||
fi
|
||||
sed -i \
|
||||
"${sed_args[@]}" \
|
||||
"${ED}"/etc/skel/.bashrc \
|
||||
"${ED}"/etc/bash/bashrc || die
|
||||
|
||||
if use plugins ; then
|
||||
exeinto /usr/$(get_libdir)/bash
|
||||
doexe $(echo examples/loadables/*.o | sed 's:\.o::g')
|
||||
insinto /usr/include/bash-plugins
|
||||
doins *.h builtins/*.h include/*.h lib/{glob/glob.h,tilde/tilde.h}
|
||||
fi
|
||||
|
||||
if use examples ; then
|
||||
for d in examples/{functions,misc,scripts,startup-files} ; do
|
||||
exeinto /usr/share/doc/${PF}/${d}
|
||||
insinto /usr/share/doc/${PF}/${d}
|
||||
for f in ${d}/* ; do
|
||||
if [[ ${f##*/} != PERMISSION ]] && [[ ${f##*/} != *README ]] ; then
|
||||
doexe ${f}
|
||||
else
|
||||
doins ${f}
|
||||
fi
|
||||
done
|
||||
done
|
||||
fi
|
||||
|
||||
doman doc/*.1
|
||||
newdoc CWRU/changelog ChangeLog
|
||||
dosym bash.info /usr/share/info/bashref.info
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if [[ -e ${EROOT}/etc/bashrc ]] && [[ ! -d ${EROOT}/etc/bash ]] ; then
|
||||
mkdir -p "${EROOT}"/etc/bash
|
||||
mv -f "${EROOT}"/etc/bashrc "${EROOT}"/etc/bash/
|
||||
fi
|
||||
|
||||
if [[ -L ${EROOT}/bin/sh ]] ; then
|
||||
# rewrite the symlink to ensure that its mtime changes. having /bin/sh
|
||||
# missing even temporarily causes a fatal error with paludis.
|
||||
local target=$(readlink "${EROOT}"/bin/sh)
|
||||
local tmp=$(emktemp "${EROOT}"/bin)
|
||||
ln -sf "${target}" "${tmp}"
|
||||
mv -f "${tmp}" "${EROOT}"/bin/sh
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# If /bin/sh does not exist, provide it
|
||||
if [[ ! -e ${EROOT}/bin/sh ]] ; then
|
||||
ln -sf bash "${EROOT}"/bin/sh
|
||||
fi
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST tiled-0.18.2.tar.gz 6409369 SHA256 575e110dd4904f785222d9a298f63eddf5c5b0b8f1450cb684ef3a9ae91292cd SHA512 6cb6844541fc4e52e05e8d12974af395161fbe0c03dddd9be362b6df7a88620ddf13c3a96f8cdb175662d3ae13f162137cf74b6b4c2664ca7dd753e3cb48cd26 WHIRLPOOL 2945156eb99f88d65fa276e1d9a52724e09c996b35fa2bf1d198a41f5785cd52da3d090c268ac4a445dbf94cac12b66ab515b0786ff8bcd9798176220cc937bf
|
||||
DIST tiled-1.0.0.tar.gz 6575292 SHA256 a5e5f1f3ec9428f124e1fbe65ac3b7ab3c17dc13a3c0d489ff6d356f7f6ad43c SHA512 a5d8af9a1aeae5c4a9eefc865e28ad22c61dad6d04878867c495bbc0c9491723bc51ed30e428fd4d1eaed5c752f90e595d46cc46cde745588556a8b9fa2db727 WHIRLPOOL 7a8241314a60f6ad2c78b4067772475e151645d6668a0f975d177332334f52e79b5ee7e648395e67214d98889bf9d73da5a82d60c4a52a35c5e7cba05df6932d
|
||||
DIST tiled-1.0.1.tar.gz 6599078 SHA256 0753ce0878e151af3423a7db132d614ee8cdb3856fecf486469b0ac76e95e5f8 SHA512 c092c8ff3ad8f13cf8433d7a513e1c67bbee07195fcf8bd2f3ce4da011697b2f9c792d606df2b0d5b43308d51fd8459e139a25928470a11a05660d6109a7e08f WHIRLPOOL 1b4ffbe001b8a4c62b1af473368ac1ec0d8580f7a942fff48a223cf46f0e16c1a1901599ee8e94cf9a3dff6057f70bf27cd236742a25bd743a5bdda9829716a7
|
||||
|
@ -0,0 +1,64 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
inherit gnome2-utils multilib python-single-r1 qmake-utils xdg
|
||||
|
||||
DESCRIPTION="A general purpose tile map editor"
|
||||
HOMEPAGE="http://www.mapeditor.org/"
|
||||
SRC_URI="https://github.com/bjorn/tiled/archive/v${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD BSD-2 GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="examples python"
|
||||
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-qt/qtcore-5.6:5
|
||||
>=dev-qt/qtgui-5.6:5
|
||||
>=dev-qt/qtnetwork-5.6:5
|
||||
>=dev-qt/qtopengl-5.6:5
|
||||
>=dev-qt/qtwidgets-5.6:5
|
||||
sys-libs/zlib
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-qt/linguist-tools:5
|
||||
"
|
||||
|
||||
DOCS=( AUTHORS COPYING NEWS.md README.md )
|
||||
|
||||
pkg_setup() {
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
eqmake5 LIBDIR="/usr/$(get_libdir)" PREFIX="/usr" DISABLE_PYTHON_PLUGIN="$(usex !python)"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake INSTALL_ROOT="${D}" install
|
||||
|
||||
einstalldocs
|
||||
|
||||
if use examples ; then
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
dodoc -r examples
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_icon_cache_update
|
||||
xdg_desktop_database_update
|
||||
xdg_mimeinfo_database_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_icon_cache_update
|
||||
xdg_desktop_database_update
|
||||
xdg_mimeinfo_database_update
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST apr-util-1.5.4.tar.bz2 694427 SHA256 a6cf327189ca0df2fb9d5633d7326c460fe2b61684745fd7963e79a6dd0dc82e SHA512 ca877d8e444218c4ba0f28063ee075ddcd6c0a487b692dc80ef442fe775ec4eeb337c6957853772e8082e27edcb450d7e909c2c6c3ab4a95bbf0a5ee5ea4a2d1 WHIRLPOOL bc4ce82785513f4bf2207bb26758abc79e6bfef62a57d3e2ead570abc618b321c302390b9dcd8eab1ec44a9e5d398c2cc4d35af2549636e20d7c20678725ac2e
|
||||
DIST apr-util-1.6.0.tar.bz2 428750 SHA256 8474c93fa74b56ac6ca87449abe3e155723d5f534727f3f33283f6631a48ca4c SHA512 dc88c13ef6116ed1c67584436cb8ca94ef77d358cb60c7cafab953d36d00564776414faed43397755e79bcf1b14dfca81cad2e280a2dd4c31f6e4559583effd0 WHIRLPOOL a41e90c781d6fd0792ba4d4941744d61bee2289b72529ccca92fbcb671234e80d7faee7e6fa8cf86e6f2d822e6429cff17721a96fdb6527f0802cbd6ed4c1284
|
||||
|
@ -0,0 +1,137 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
# Usually apr-util has the same PV as apr, but in case of security fixes, this may change.
|
||||
# APR_PV="${PV}"
|
||||
APR_PV="1.6.2"
|
||||
|
||||
inherit autotools db-use eutils libtool multilib toolchain-funcs
|
||||
|
||||
DESCRIPTION="Apache Portable Runtime Utility Library"
|
||||
HOMEPAGE="http://apr.apache.org/"
|
||||
SRC_URI="mirror://apache/apr/${P}.tar.bz2"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="1"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="berkdb doc freetds gdbm ldap libressl mysql nss odbc openssl postgres sqlite static-libs"
|
||||
#RESTRICT="test"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/expat
|
||||
>=dev-libs/apr-${APR_PV}:1
|
||||
berkdb? ( >=sys-libs/db-4:= )
|
||||
freetds? ( dev-db/freetds )
|
||||
gdbm? ( sys-libs/gdbm )
|
||||
ldap? ( =net-nds/openldap-2* )
|
||||
mysql? ( =virtual/mysql-5* )
|
||||
nss? ( dev-libs/nss )
|
||||
odbc? ( dev-db/unixODBC )
|
||||
openssl? (
|
||||
!libressl? ( dev-libs/openssl:0 )
|
||||
libressl? ( dev-libs/libressl )
|
||||
)
|
||||
postgres? ( dev-db/postgresql:= )
|
||||
sqlite? ( dev-db/sqlite:3 )
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
>=sys-devel/libtool-2.4.2
|
||||
doc? ( app-doc/doxygen )
|
||||
"
|
||||
|
||||
DOCS=(CHANGES NOTICE README)
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.5.3-sysroot.patch #385775
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Fix usage of libmysqlclient (bug #620230)
|
||||
grep -lrF "libmysqlclient_r" "${S}" \
|
||||
| xargs sed 's@libmysqlclient_r@libmysqlclient@g' -i \
|
||||
|| die
|
||||
|
||||
mv configure.{in,ac} || die
|
||||
eautoreconf
|
||||
elibtoolize
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=(
|
||||
--datadir="${EPREFIX}"/usr/share/apr-util-1
|
||||
--with-apr="${SYSROOT}${EPREFIX}"/usr
|
||||
--with-expat="${EPREFIX}"/usr
|
||||
--without-sqlite2
|
||||
$(use_with freetds)
|
||||
$(use_with gdbm)
|
||||
$(use_with ldap)
|
||||
$(use_with mysql)
|
||||
$(use_with nss)
|
||||
$(use_with odbc)
|
||||
$(use_with openssl)
|
||||
$(use_with postgres pgsql)
|
||||
$(use_with sqlite sqlite3)
|
||||
)
|
||||
|
||||
tc-is-static-only && myconf+=( --disable-util-dso )
|
||||
|
||||
if use berkdb; then
|
||||
local db_version
|
||||
db_version="$(db_findver sys-libs/db)" || die "Unable to find Berkeley DB version"
|
||||
db_version="$(db_ver_to_slot "${db_version}")"
|
||||
db_version="${db_version/\./}"
|
||||
myconf+=(
|
||||
--with-dbm=db${db_version}
|
||||
# We use $T for the libdir because otherwise it'd simply be the normal
|
||||
# system libdir. That's pointless as the compiler will search it for
|
||||
# us already. This makes cross-compiling and such easier.
|
||||
--with-berkeley-db="${SYSROOT}$(db_includedir 2>/dev/null):${T}"
|
||||
)
|
||||
else
|
||||
myconf+=( --without-berkeley-db )
|
||||
fi
|
||||
|
||||
if use nss || use openssl ; then
|
||||
myconf+=( --with-crypto ) # 518708
|
||||
fi
|
||||
|
||||
econf "${myconf[@]}"
|
||||
# Use the current env build settings rather than whatever apr was built with.
|
||||
sed -i -r \
|
||||
-e "/^(apr_builddir|apr_builders|top_builddir)=/s:=:=${SYSROOT}:" \
|
||||
-e "/^CC=/s:=.*:=$(tc-getCC):" \
|
||||
-e '/^(C|CPP|CXX|LD)FLAGS=/d' \
|
||||
-e '/^LTFLAGS/s:--silent::' \
|
||||
build/rules.mk || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake
|
||||
use doc && emake dox
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
find "${ED}" -name "*.la" -delete || die
|
||||
if [[ -d "${ED%/}/usr/$(get_libdir)/apr-util-${SLOT}" ]] ; then
|
||||
find "${ED%/}/usr/$(get_libdir)/apr-util-${SLOT}" -name "*.a" -delete || die
|
||||
fi
|
||||
if ! use static-libs ; then
|
||||
find "${ED}" -name "*.a" -not -name "*$(get_libname)" -delete || die
|
||||
fi
|
||||
|
||||
if use doc ; then
|
||||
docinto html
|
||||
dodoc -r docs/dox/html/*
|
||||
fi
|
||||
|
||||
# This file is only used on AIX systems, which Gentoo is not,
|
||||
# and causes collisions between the SLOTs, so remove it.
|
||||
rm "${ED%/}/usr/$(get_libdir)/aprutil.exp" || die
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST apr-1.5.2.tar.bz2 826885 SHA256 7d03ed29c22a7152be45b8e50431063736df9e1daa1ddf93f6a547ba7a28f67a SHA512 d1156ad16abf07887797777b56c2147c890f16d8445829b3e3b4917950d24c5fd2f8febd439992467a5ea0511da562c0fb4a7cfd8a235ab55882388bfa2b919d WHIRLPOOL 3f6fbb9410f7cd3ace2f80f361a02b190e14d744f38dbd6f87a5c60b4b1c4a99cd902ba9351a235d9f3bab044a981de21fb6c193d3ab3caba2448bf6c4e1bd1b
|
||||
DIST apr-1.6.2.tar.bz2 853363 SHA256 09109cea377bab0028bba19a92b5b0e89603df9eab05c0f7dbd4dd83d48dcebd SHA512 20f449fde522f186b919b64ce6f90073b267557e17438607d31af917eca7941222dd7a7379d66f1430ff68f7e28fbccd140d24f3ca7aae8a876a550b19de284a WHIRLPOOL 4fd43497ed091f9da2a8c8a57017344dc7492b18793e8a16eae480ddbba8f18ebc66925418d8b5fa8fa6fa023b59a482d62c8ba1ee49a575aa6f7918b703ea30
|
||||
|
@ -0,0 +1,146 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit autotools libtool multilib toolchain-funcs
|
||||
|
||||
DESCRIPTION="Apache Portable Runtime Library"
|
||||
HOMEPAGE="http://apr.apache.org/"
|
||||
SRC_URI="mirror://apache/apr/${P}.tar.bz2"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="1"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="doc elibc_FreeBSD older-kernels-compatibility selinux static-libs +urandom"
|
||||
|
||||
CDEPEND="elibc_glibc? ( >=sys-apps/util-linux-2.16 )
|
||||
elibc_mintlib? ( >=sys-apps/util-linux-2.18 )"
|
||||
RDEPEND="${CDEPEND}
|
||||
selinux? ( sec-policy/selinux-apache )"
|
||||
DEPEND="${CDEPEND}
|
||||
>=sys-devel/libtool-2.4.2
|
||||
doc? ( app-doc/doxygen )"
|
||||
|
||||
DOCS=( CHANGES NOTICE README )
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.5.0-mint.patch
|
||||
"${FILESDIR}"/${PN}-1.5.0-libtool.patch
|
||||
"${FILESDIR}"/${PN}-1.5.0-cross-types.patch
|
||||
"${FILESDIR}"/${PN}-1.5.0-sysroot.patch #385775
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
AT_M4DIR="build" eautoreconf
|
||||
elibtoolize
|
||||
|
||||
eapply "${FILESDIR}/config.layout.patch"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=(
|
||||
--enable-layout=gentoo
|
||||
--enable-nonportable-atomics
|
||||
--enable-posix-shm
|
||||
--enable-threads
|
||||
$(use_enable static-libs static)
|
||||
)
|
||||
|
||||
[[ ${CHOST} == *-mint* ]] && export ac_cv_func_poll=no
|
||||
|
||||
if use older-kernels-compatibility; then
|
||||
local apr_cv_accept4 apr_cv_dup3 apr_cv_epoll_create1 apr_cv_sock_cloexec
|
||||
export apr_cv_accept4="no"
|
||||
export apr_cv_dup3="no"
|
||||
export apr_cv_epoll_create1="no"
|
||||
export apr_cv_sock_cloexec="no"
|
||||
fi
|
||||
if tc-is-cross-compiler; then
|
||||
# The apache project relies heavily on AC_TRY_RUN and doesn't
|
||||
# have any sane cross-compiling fallback logic.
|
||||
export \
|
||||
ac_cv_file__dev_zero="yes" \
|
||||
ac_cv_func_sem_open="yes" \
|
||||
ac_cv_negative_eai="yes" \
|
||||
ac_cv_o_nonblock_inherited="no" \
|
||||
ac_cv_struct_rlimit="yes" \
|
||||
ap_cv_atomic_builtins="yes" \
|
||||
apr_cv_accept4="yes" \
|
||||
apr_cv_dup3="yes" \
|
||||
apr_cv_epoll="yes" \
|
||||
apr_cv_epoll_create1="yes" \
|
||||
apr_cv_gai_addrconfig="yes" \
|
||||
apr_cv_mutex_recursive="yes" \
|
||||
apr_cv_mutex_robust_shared="yes" \
|
||||
apr_cv_process_shared_works="yes" \
|
||||
apr_cv_pthreads_lib="-pthread" \
|
||||
apr_cv_sock_cloexec="yes" \
|
||||
apr_cv_tcp_nodelay_with_cork="yes"
|
||||
fi
|
||||
|
||||
if use urandom; then
|
||||
myconf+=( --with-devrandom=/dev/urandom )
|
||||
elif (( ${CHOST#*-hpux11.} <= 11 )); then
|
||||
: # no /dev/*random on hpux11.11 and before, $PN detects this.
|
||||
else
|
||||
myconf+=( --with-devrandom=/dev/random )
|
||||
fi
|
||||
|
||||
tc-is-static-only && myconf+=( --disable-dso )
|
||||
|
||||
# shl_load does not search runpath, but hpux11 supports dlopen
|
||||
[[ ${CHOST} == *-hpux11* ]] && myconf+=( --enable-dso=dlfcn )
|
||||
|
||||
if [[ ${CHOST} == *-solaris2.10 ]]; then
|
||||
case $(<$([[ ${CHOST} != ${CBUILD} ]] && echo "${EPREFIX}/usr/${CHOST}")/usr/include/atomic.h) in
|
||||
*atomic_cas_ptr*) ;;
|
||||
*)
|
||||
elog "You do not have Solaris Patch ID "$(
|
||||
[[ ${CHOST} == sparc* ]] && echo 118884 || echo 118885
|
||||
)" (Problem 4954703) installed on your host ($(hostname)),"
|
||||
elog "using generic atomic operations instead."
|
||||
myconf+=( --disable-nonportable-atomics )
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
if tc-is-cross-compiler; then
|
||||
# This header is the same across targets, so use the build compiler.
|
||||
emake tools/gen_test_char
|
||||
tc-export_build_env BUILD_CC
|
||||
${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_CPPFLAGS} ${BUILD_LDFLAGS} \
|
||||
tools/gen_test_char.c -o tools/gen_test_char || die
|
||||
fi
|
||||
|
||||
emake
|
||||
|
||||
if use doc; then
|
||||
emake dox
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
# Prallel install breaks since apr-1.5.1
|
||||
#make -j1 DESTDIR="${D}" install || die
|
||||
|
||||
find "${ED}" \( -name "*.a" -o -name "*.la" \) -delete || die
|
||||
|
||||
if use doc; then
|
||||
docinto html
|
||||
dodoc -r docs/dox/html/*
|
||||
fi
|
||||
|
||||
# This file is only used on AIX systems, which Gentoo is not,
|
||||
# and causes collisions between the SLOTs, so remove it.
|
||||
# Even in Prefix, we don't need this on AIX.
|
||||
rm -f "${ED%/}/usr/$(get_libdir)/apr.exp"
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST expat-2.2.0.tar.bz2 414352 SHA256 d9e50ff2d19b3538bd2127902a89987474e1a4db8e43a66a4d1a712ab9a504ff SHA512 2be1a6eea87b439374bfacb1fbb8e814fd8a085d5dfd3ca3be69d1af29b5dc93d36cbdec5f6843ca6d5910843c7ffbc498adc2a561b9dcece488edf3c6f8c7c8 WHIRLPOOL b1914e2c23170dabab6fce4fb0eb2511dc8dcde8db986a7cdf6b236d262fb756fb0955cb4c1fc7475a1ad3d9c005b632e42850dcf3af66f4cc87fe4ecfc3cb47
|
||||
DIST expat-2.2.1.tar.bz2 405441 SHA256 1868cadae4c82a018e361e2b2091de103cd820aaacb0d6cfa49bd2cd83978885 SHA512 74089b55872df16f214a4baba0143e6353736dfa34063391293bb2760aa3e5118d9ccb3592e07c74c9d52a2a5b91496e15153f28214c4c01242d95b3019b67ea WHIRLPOOL f571ee00d43813c20d81d02d5d25f3fd4fdec3ec5a6aa331a965b4373ca681053e4e66d22fed4523f9a207333b80eb5e63c78d2e36e0c2b5a64ad1c38b0fe38a
|
||||
|
@ -0,0 +1,78 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
inherit eutils libtool multilib toolchain-funcs multilib-minimal
|
||||
|
||||
DESCRIPTION="Stream-oriented XML parser library"
|
||||
HOMEPAGE="http://expat.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/expat/${P}.tar.bz2"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
|
||||
IUSE="elibc_FreeBSD examples static-libs unicode"
|
||||
RDEPEND="abi_x86_32? ( !<=app-emulation/emul-linux-x86-baselibs-20130224-r6
|
||||
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] )"
|
||||
|
||||
DOCS=( AUTHORS Changes README )
|
||||
|
||||
multilib_src_configure() {
|
||||
local myconf="$(use_enable static-libs static)"
|
||||
|
||||
mkdir -p "${BUILD_DIR}"{u,w} || die
|
||||
|
||||
ECONF_SOURCE="${S}" econf ${myconf}
|
||||
|
||||
if use unicode; then
|
||||
pushd "${BUILD_DIR}"w >/dev/null
|
||||
CPPFLAGS="${CPPFLAGS} -DXML_UNICODE" ECONF_SOURCE="${S}" econf ${myconf}
|
||||
popd >/dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
emake
|
||||
|
||||
if use unicode; then
|
||||
pushd "${BUILD_DIR}"w >/dev/null
|
||||
emake buildlib LIBRARY=libexpatw.la
|
||||
popd >/dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake install DESTDIR="${D}"
|
||||
|
||||
if use unicode; then
|
||||
pushd "${BUILD_DIR}"w >/dev/null
|
||||
emake installlib DESTDIR="${D}" LIBRARY=libexpatw.la
|
||||
popd >/dev/null
|
||||
|
||||
pushd "${ED}"/usr/$(get_libdir)/pkgconfig >/dev/null
|
||||
cp expat.pc expatw.pc
|
||||
sed -i -e '/^Libs/s:-lexpat:&w:' expatw.pc || die
|
||||
popd >/dev/null
|
||||
fi
|
||||
|
||||
if multilib_is_native_abi ; then
|
||||
# libgeom in /lib and ifconfig in /sbin require libexpat on FreeBSD since
|
||||
# we stripped the libbsdxml copy starting from freebsd-lib-8.2-r1
|
||||
use elibc_FreeBSD && gen_usr_ldscript -a expat
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
|
||||
# Note: Use of HTML_DOCS would add unwanted "doc" subfolder
|
||||
docinto html
|
||||
dodoc doc/*.{css,html,png}
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
doins examples/*.c
|
||||
fi
|
||||
|
||||
prune_libtool_files
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST python-gflags-2.0.tar.gz 65094 SHA256 0dff6360423f3ec08cbe3bfaf37b339461a54a21d13be0dd5d9c9999ce531078 SHA512 43bddf631501f08537167c3915a6ace9a5e70b1bac0351614b07d3de1e149475c2cbb04a9770096dc033fefd35d12eea0b4c849f5660f9950db1129023dd36ac WHIRLPOOL 23769400b455352ea9f0d0a09f78df1ddc640a59c3bb65bafc1a0020d678453ed35aec3ee4224a8ded1b83f0b1c62c348c77b1065dc034bbe29a5a177f93f0ad
|
||||
DIST python-gflags-3.1.1.tar.gz 52633 SHA256 aaff6449ca74320c709052e4664a52337832b2338f4a4267088564f3e98f6c63 SHA512 28009cdc09b94b416af5237d3897d6ab516cc3b6a3eed18a31adb8c199f31a8c7d07b1d69794cb37de84b50eefbde1de57f9f0afaeac0a4747b352f4024ef12c WHIRLPOOL 2b0bdc5150b87d98c07431203c57aa94e535b564ab4cd3a2e307b9d5030360e06172853c9497895c5b42cc5058ac9c4b73d10db14e935f2569693b86cec7de05
|
||||
|
@ -1,29 +0,0 @@
|
||||
The scripts are installed as 'data' rather than scripts.
|
||||
http://code.google.com/p/python-gflags/issues/detail?id=12
|
||||
|
||||
From d544cdad63faa5a53ba524e39f091f4a18e1eeb8 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
|
||||
Date: Sun, 16 Dec 2012 16:27:13 +0100
|
||||
Subject: [PATCH] Install Python scripts using 'scripts' key.
|
||||
|
||||
This is necessary to ensure that the shebangs are properly replaced when
|
||||
installing for multiple Python implementations.
|
||||
---
|
||||
setup.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 573db2d..ddad318 100755
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -39,6 +39,6 @@ setup(name='python-gflags',
|
||||
author_email='google-gflags@googlegroups.com',
|
||||
url='http://code.google.com/p/python-gflags',
|
||||
py_modules=["gflags", "gflags_validators"],
|
||||
- data_files=[("bin", ["gflags2man.py"])],
|
||||
+ scripts=["gflags2man.py"],
|
||||
include_package_data=True,
|
||||
)
|
||||
--
|
||||
1.8.0.2
|
||||
|
@ -1,28 +0,0 @@
|
||||
http://bugs.gentoo.org/475134
|
||||
|
||||
From 6e93aa28e1e116619a82e1b78ffbc15ce1133d51 Mon Sep 17 00:00:00 2001
|
||||
From: Michael Marineau <mike@marineau.org>
|
||||
Date: Thu, 27 Jun 2013 19:26:23 -0400
|
||||
Subject: [PATCH 3/3] Skip a permissions check when running as root.
|
||||
|
||||
---
|
||||
tests/gflags_unittest.py | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/tests/gflags_unittest.py b/tests/gflags_unittest.py
|
||||
index 091ebd9..ddd3b5c 100755
|
||||
--- a/tests/gflags_unittest.py
|
||||
+++ b/tests/gflags_unittest.py
|
||||
@@ -1111,6 +1111,9 @@ class LoadFromFlagFileTest(googletest.TestCase):
|
||||
|
||||
def testMethod_flagfiles_NoPermissions(self):
|
||||
"""Test that --flagfile raises except on file that is unreadable."""
|
||||
+ # This test doesn't work as root
|
||||
+ if os.getuid() == 0:
|
||||
+ return
|
||||
tmp_files = self._SetupTestFiles()
|
||||
# specify our temp file on the fake cmd line
|
||||
fake_cmd_line = ('fooScript --SomeFlag some_arg --flagfile=%s'
|
||||
--
|
||||
1.8.1.5
|
||||
|
@ -1,68 +0,0 @@
|
||||
https://bugs.gentoo.org/447482
|
||||
|
||||
------------------------------------------------------------------------
|
||||
r41 | jwilliams@endpoint.com | 2012-02-21 17:17:32 -0500 (Tue, 21 Feb 2012) | 5 lines
|
||||
|
||||
Unit test updates for Python 2.7 compatibility
|
||||
|
||||
* Add "msg" parameter to our versions of the test functions
|
||||
* Change regex to match the updated 2.7 float() ValueError response
|
||||
|
||||
|
||||
Index: tests/gflags_googletest.py
|
||||
===================================================================
|
||||
--- tests/gflags_googletest.py (revision 40)
|
||||
+++ tests/gflags_googletest.py (revision 41)
|
||||
@@ -88,22 +88,22 @@ def MultiLineEqual(expected, actual):
|
||||
|
||||
|
||||
class TestCase(unittest.TestCase):
|
||||
- def assertListEqual(self, list1, list2):
|
||||
+ def assertListEqual(self, list1, list2, msg=None):
|
||||
"""Asserts that, when sorted, list1 and list2 are identical."""
|
||||
# This exists in python 2.7, but not previous versions. Use the
|
||||
# built-in version if possible.
|
||||
if hasattr(unittest.TestCase, "assertListEqual"):
|
||||
- unittest.TestCase.assertListEqual(self, Sorted(list1), Sorted(list2))
|
||||
+ unittest.TestCase.assertListEqual(self, Sorted(list1), Sorted(list2), msg)
|
||||
else:
|
||||
- self.assertEqual(Sorted(list1), Sorted(list2))
|
||||
+ self.assertEqual(Sorted(list1), Sorted(list2), msg)
|
||||
|
||||
- def assertMultiLineEqual(self, expected, actual):
|
||||
+ def assertMultiLineEqual(self, expected, actual, msg=None):
|
||||
# This exists in python 2.7, but not previous versions. Use the
|
||||
# built-in version if possible.
|
||||
if hasattr(unittest.TestCase, "assertMultiLineEqual"):
|
||||
- unittest.TestCase.assertMultiLineEqual(self, expected, actual)
|
||||
+ unittest.TestCase.assertMultiLineEqual(self, expected, actual, msg)
|
||||
else:
|
||||
- self.assertTrue(MultiLineEqual(expected, actual))
|
||||
+ self.assertTrue(MultiLineEqual(expected, actual), msg)
|
||||
|
||||
def assertRaisesWithRegexpMatch(self, exception, regexp, fn, *args, **kwargs):
|
||||
try:
|
||||
Index: tests/gflags_unittest.py
|
||||
===================================================================
|
||||
--- tests/gflags_unittest.py (revision 40)
|
||||
+++ tests/gflags_unittest.py (revision 41)
|
||||
@@ -814,7 +814,7 @@ class MultiNumericalFlagsTest(googletest
|
||||
|
||||
self.assertRaisesWithRegexpMatch(
|
||||
gflags.IllegalFlagValue,
|
||||
- 'flag --m_float2=abc: invalid literal for float\(\): abc',
|
||||
+ 'flag --m_float2=abc: (invalid literal for float\(\)||could not convert string to float): abc',
|
||||
gflags.DEFINE_multi_float, 'm_float2', ['abc'], 'desc')
|
||||
|
||||
# Test non-parseable command line values.
|
||||
@@ -831,7 +831,7 @@ class MultiNumericalFlagsTest(googletest
|
||||
argv = ('./program', '--m_float2=def')
|
||||
self.assertRaisesWithRegexpMatch(
|
||||
gflags.IllegalFlagValue,
|
||||
- 'flag --m_float2=def: invalid literal for float\(\): def',
|
||||
+ 'flag --m_float2=def: (invalid literal for float\(\)||could not convert string to float): def',
|
||||
FLAGS, argv)
|
||||
|
||||
|
||||
|
||||
------------------------------------------------------------------------
|
@ -1,58 +0,0 @@
|
||||
Tests try to write to /tmp (sandbox).
|
||||
http://code.google.com/p/python-gflags/issues/detail?id=13
|
||||
|
||||
From 4a430830e75bfe2228e9d953b12f74a20ec2cb8f Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
|
||||
Date: Sun, 16 Dec 2012 16:53:24 +0100
|
||||
Subject: [PATCH] Use tempfile.mkdtemp() to create temporary directory.
|
||||
|
||||
This creates an unique directory, and respects TMPDIR.
|
||||
---
|
||||
tests/gflags_unittest.py | 11 ++++++-----
|
||||
1 file changed, 6 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/tests/gflags_unittest.py b/tests/gflags_unittest.py
|
||||
index 8e948bf..fcddb7b 100755
|
||||
--- a/tests/gflags_unittest.py
|
||||
+++ b/tests/gflags_unittest.py
|
||||
@@ -38,6 +38,7 @@ import cStringIO
|
||||
import sys
|
||||
import os
|
||||
import shutil
|
||||
+import tempfile
|
||||
|
||||
import gflags
|
||||
from flags_modules_for_testing import module_foo
|
||||
@@ -907,17 +908,16 @@ class LoadFromFlagFileTest(googletest.TestCase):
|
||||
flag_values=self.flag_values)
|
||||
self.files_to_delete = []
|
||||
|
||||
+ # Figure out where to create temporary files
|
||||
+ self.tmp_path = tempfile.mkdtemp(prefix='gflags_unittest')
|
||||
+
|
||||
def tearDown(self):
|
||||
self._RemoveTestFiles()
|
||||
|
||||
def _SetupTestFiles(self):
|
||||
""" Creates and sets up some dummy flagfile files with bogus flags"""
|
||||
|
||||
- # Figure out where to create temporary files
|
||||
- tmp_path = '/tmp/flags_unittest'
|
||||
- if os.path.exists(tmp_path):
|
||||
- shutil.rmtree(tmp_path)
|
||||
- os.makedirs(tmp_path)
|
||||
+ tmp_path = self.tmp_path
|
||||
|
||||
try:
|
||||
tmp_flag_file_1 = open(tmp_path + '/UnitTestFile1.tst', 'w')
|
||||
@@ -973,6 +973,7 @@ class LoadFromFlagFileTest(googletest.TestCase):
|
||||
os.remove(file_name)
|
||||
except OSError, e_msg:
|
||||
print '%s\n, Problem deleting test file' % e_msg
|
||||
+ shutil.rmtree(self.tmp_path)
|
||||
#end RemoveTestFiles def
|
||||
|
||||
def _ReadFlagsFromFiles(self, argv, force_gnu):
|
||||
--
|
||||
1.8.0.2
|
||||
|
@ -1,37 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
PYTHON_COMPAT=( python2_7 pypy )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Google's Python argument parsing library"
|
||||
HOMEPAGE="https://github.com/google/python-gflags"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ~ppc64 ~s390 ~sh x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
RDEPEND=""
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-scripts-install.patch
|
||||
"${FILESDIR}"/${P}-tests-respect-tmpdir.patch
|
||||
"${FILESDIR}"/${P}-skip-test-as-root.patch #475134
|
||||
"${FILESDIR}"/${P}-tests-python-2.7.patch #447482
|
||||
)
|
||||
|
||||
python_test() {
|
||||
# https://code.google.com/p/python-gflags/issues/detail?id=15&thanks=15&ts=1372948007
|
||||
local t
|
||||
cd tests || die
|
||||
for t in *.py; do
|
||||
# (it's ok to run the gflags_googletest.py too)
|
||||
"${PYTHON}" "${t}" || die "Tests fail with ${EPYTHON}"
|
||||
done
|
||||
}
|
@ -0,0 +1,92 @@
|
||||
From bf172ae289a1348842005a9421797970f9b72060 Mon Sep 17 00:00:00 2001
|
||||
From: Konstantin Tokarev <annulen@yandex.ru>
|
||||
Date: Thu, 4 May 2017 15:12:37 +0300
|
||||
Subject: [PATCH] Fix compilation with ICU 59
|
||||
|
||||
Upstream fix: https://bugs.webkit.org/show_bug.cgi?id=171612
|
||||
|
||||
Task-number: QTBUG-60532
|
||||
Change-Id: I6014feea213aa70ebe40b09d9d1a03fd1ed3c843
|
||||
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
|
||||
---
|
||||
Source/JavaScriptCore/API/JSStringRef.cpp | 6 +++---
|
||||
Source/JavaScriptCore/runtime/DateConversion.cpp | 3 ++-
|
||||
Source/WTF/wtf/TypeTraits.h | 3 +++
|
||||
Source/WebKit2/Shared/API/c/WKString.cpp | 2 +-
|
||||
4 files changed, 9 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/Source/JavaScriptCore/API/JSStringRef.cpp b/Source/JavaScriptCore/API/JSStringRef.cpp
|
||||
index 812f3d413..77a3fd0f4 100644
|
||||
--- a/Source/JavaScriptCore/API/JSStringRef.cpp
|
||||
+++ b/Source/JavaScriptCore/API/JSStringRef.cpp
|
||||
@@ -37,7 +37,7 @@ using namespace WTF::Unicode;
|
||||
JSStringRef JSStringCreateWithCharacters(const JSChar* chars, size_t numChars)
|
||||
{
|
||||
initializeThreading();
|
||||
- return OpaqueJSString::create(chars, numChars).leakRef();
|
||||
+ return OpaqueJSString::create(reinterpret_cast<const UChar*>(chars), numChars).leakRef();
|
||||
}
|
||||
|
||||
JSStringRef JSStringCreateWithUTF8CString(const char* string)
|
||||
@@ -62,7 +62,7 @@ JSStringRef JSStringCreateWithUTF8CString(const char* string)
|
||||
JSStringRef JSStringCreateWithCharactersNoCopy(const JSChar* chars, size_t numChars)
|
||||
{
|
||||
initializeThreading();
|
||||
- return OpaqueJSString::create(StringImpl::createWithoutCopying(chars, numChars, WTF::DoesNotHaveTerminatingNullCharacter)).leakRef();
|
||||
+ return OpaqueJSString::create(StringImpl::createWithoutCopying(reinterpret_cast<const UChar*>(chars), numChars, WTF::DoesNotHaveTerminatingNullCharacter)).leakRef();
|
||||
}
|
||||
|
||||
JSStringRef JSStringRetain(JSStringRef string)
|
||||
@@ -83,7 +83,7 @@ size_t JSStringGetLength(JSStringRef string)
|
||||
|
||||
const JSChar* JSStringGetCharactersPtr(JSStringRef string)
|
||||
{
|
||||
- return string->characters();
|
||||
+ return reinterpret_cast<const JSChar*>(string->characters());
|
||||
}
|
||||
|
||||
size_t JSStringGetMaximumUTF8CStringSize(JSStringRef string)
|
||||
diff --git a/Source/JavaScriptCore/runtime/DateConversion.cpp b/Source/JavaScriptCore/runtime/DateConversion.cpp
|
||||
index 0b57f012d..05e27338b 100644
|
||||
--- a/Source/JavaScriptCore/runtime/DateConversion.cpp
|
||||
+++ b/Source/JavaScriptCore/runtime/DateConversion.cpp
|
||||
@@ -107,7 +107,8 @@ String formatDateTime(const GregorianDateTime& t, DateTimeFormat format, bool as
|
||||
#if OS(WINDOWS)
|
||||
TIME_ZONE_INFORMATION timeZoneInformation;
|
||||
GetTimeZoneInformation(&timeZoneInformation);
|
||||
- const WCHAR* timeZoneName = t.isDST() ? timeZoneInformation.DaylightName : timeZoneInformation.StandardName;
|
||||
+ const WCHAR* winTimeZoneName = t.isDST() ? timeZoneInformation.DaylightName : timeZoneInformation.StandardName;
|
||||
+ String timeZoneName(reinterpret_cast<const UChar*>(winTimeZoneName));
|
||||
#else
|
||||
struct tm gtm = t;
|
||||
char timeZoneName[70];
|
||||
diff --git a/Source/WTF/wtf/TypeTraits.h b/Source/WTF/wtf/TypeTraits.h
|
||||
index 9df2c95cf..f5d6121fd 100644
|
||||
--- a/Source/WTF/wtf/TypeTraits.h
|
||||
+++ b/Source/WTF/wtf/TypeTraits.h
|
||||
@@ -72,6 +72,9 @@ namespace WTF {
|
||||
template<> struct IsInteger<unsigned long> { static const bool value = true; };
|
||||
template<> struct IsInteger<long long> { static const bool value = true; };
|
||||
template<> struct IsInteger<unsigned long long> { static const bool value = true; };
|
||||
+#if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__) || (defined(_HAS_CHAR16_T_LANGUAGE_SUPPORT) && _HAS_CHAR16_T_LANGUAGE_SUPPORT)
|
||||
+ template<> struct IsInteger<char16_t> { static const bool value = true; };
|
||||
+#endif
|
||||
#if !COMPILER(MSVC) || defined(_NATIVE_WCHAR_T_DEFINED)
|
||||
template<> struct IsInteger<wchar_t> { static const bool value = true; };
|
||||
#endif
|
||||
diff --git a/Source/WebKit2/Shared/API/c/WKString.cpp b/Source/WebKit2/Shared/API/c/WKString.cpp
|
||||
index cbac67dd8..23400a64e 100644
|
||||
--- a/Source/WebKit2/Shared/API/c/WKString.cpp
|
||||
+++ b/Source/WebKit2/Shared/API/c/WKString.cpp
|
||||
@@ -55,7 +55,7 @@ size_t WKStringGetLength(WKStringRef stringRef)
|
||||
size_t WKStringGetCharacters(WKStringRef stringRef, WKChar* buffer, size_t bufferLength)
|
||||
{
|
||||
COMPILE_ASSERT(sizeof(WKChar) == sizeof(UChar), WKStringGetCharacters_sizeof_WKChar_matches_UChar);
|
||||
- return (toImpl(stringRef)->getCharacters(static_cast<UChar*>(buffer), bufferLength));
|
||||
+ return (toImpl(stringRef)->getCharacters(reinterpret_cast<UChar*>(buffer), bufferLength));
|
||||
}
|
||||
|
||||
size_t WKStringGetMaximumUTF8CStringSize(WKStringRef stringRef)
|
||||
--
|
||||
2.13.1
|
||||
|
@ -1,2 +1,3 @@
|
||||
DIST twitter-text-1.14.2.gem 48128 SHA256 d71abba271418cbe79e28905678a6ec8ae72ccad478865f4cb3fc89f51338d52 SHA512 0262d44e1db6c4dd5b8724cbe0b53bbe540700f217b3566d8ab76b86c20c39c7fa64cdcbe4e9c6b7daeb2a1a60d798cffa6a28ab0ade70558fc580e77d557ae0 WHIRLPOOL 10bc8be3a1f1e1285da5a57ef4a3580fedb272cc68637cf02b878e4c369762b0e375ded567ff0fc80cc13f02cf6ff2f144ad7d8bd42ed6736dab0dc106a759ed
|
||||
DIST twitter-text-1.14.5.gem 48128 SHA256 5e04dcddc13e71b75938c7219501c43ef122139b18686229d83ed4b93955e2d9 SHA512 0087667577a6491cb57d537abdcb7c617cec395d43ca016d3bdc8d82af869fb99b17450a90ac188f45f548e27f9a73bc3c8cad7783fdd4142eb405deff1a51df WHIRLPOOL 04fbd5ec46549546dbdda3c93895f1d2acb0def863895dc1abc9d8078a2ea26b71b3874b8f370d2b0dfa701acedf2486fbee48c5be1771ef40e7f3d5b06224ae
|
||||
DIST twitter-text-1.14.6.gem 48128 SHA256 6f69b094c0672aedd4e9fc57eeba8a9934ba9ab5c6340acce7453bd82cee97f1 SHA512 6c9003df1ac424d6f4ee9beddd8f0e53332c49340e8bad03bd36d302b7208f453a9550c0143ca2e34e876fc586226e431c1bca67e042cc5f48a05a4e23c8ecda WHIRLPOOL 7071a78ab6699955d39c027e27e338c641d4db9f8a3e8caf72a8a9d976f6518b7a508ca0979a7bfae15eca7fd5abde034aa09506006b70ff8d2eba64cbef2d44
|
||||
|
@ -0,0 +1,30 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
USE_RUBY="ruby21 ruby22 ruby23"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_TEST="rspec"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_DOC="rdoc"
|
||||
RUBY_FAKEGEM_EXTRADOC="README.md"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="Text handling for Twitter"
|
||||
HOMEPAGE="https://github.com/twitter/twitter-text"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
ruby_add_rdepend "=dev-ruby/unf-0.1*"
|
||||
|
||||
ruby_add_bdepend "test? ( >=dev-ruby/multi_json-1.3
|
||||
>=dev-ruby/nokogiri-1.5.10 )"
|
||||
|
||||
all_ruby_prepare() {
|
||||
sed -i -e 's/2.14.0/2.14/' twitter-text.gemspec || die
|
||||
sed -i -e '/simplecov/,/end/ s:^:#:' spec/spec_helper.rb || die
|
||||
}
|
@ -1,3 +1,5 @@
|
||||
DIST astyle_2.04_linux.tar.gz 156974 SHA256 70b37f4853c418d1e2632612967eebf1bdb93dfbe558c51d7d013c9b4e116b60 SHA512 bc0f6351fac4198ab969251342c4e453064b07512a2d06825a93c75daf86b06469c9971f35fbadad872d23368dc546019d8d174e07ceaad6e10007f562fdeffd WHIRLPOOL d9aa3f537885e373d791204652ed5c8d5231be0840ef5dde3714bb8c9c524e327585a51b7b14da1aae2952f7c9248401bc2769290bc5828d15f030f41d95c1fe
|
||||
DIST astyle_2.05.1_linux.tar.gz 152765 SHA256 fbdfc6f1966a972d19a215927266c76d4183eee235ed1e2bd7ec551c2a270eac SHA512 853bf84cb196f2300ca00fb7f18fe336764f1205ae0674a75c1a019bf734495d8fb3d9b6aca0ea258b6632921fb268906128c1afb80596532489749cd2cbe495 WHIRLPOOL ceef3bfa64632a4fe9afcc332fdf742e60b6e7d21655449372bd6c89db7444eddf6bbfee48684bb9f18e119cf040f36c62544cfc8bb040ed83095e9aed9fce56
|
||||
DIST astyle_2.06_linux.tar.gz 162037 SHA256 3b7212210dc139e8f648e004b758c0be1b3ceb1694b22a879202d2b833db7c7e SHA512 e2da96b45d06385b284ed3107309dfa4fad904910a729232bdb8554b40332a673d33e1f153ffb2ebb0342c73098b79980628678be9dde45a4d4d23237fe8a8c5 WHIRLPOOL 02696ffbfb7f621d45ff8140f75cda38cce8587349269d9b87aba56a365f4375c7ce1ca67b3c0af8e1c6f627397d016ecc907437b4085599f24d2927b86c7878
|
||||
DIST astyle_3.0.1_linux.tar.gz 172483 SHA256 6c3ab029e0e4a75e2e603d449014374aa8269218fdd03a4aaa46ab743b1912fd SHA512 3e8d617c0ec89682bfb076081bb63ae9d44e897de0c85d5109b28adbbfe0620d5dacf59a4bd96ac30a5a4fcb3be136758e9c6fe2c69258b37956c212890a7158 WHIRLPOOL 62f5e81d37f22c45da890cdf7214ce1f7b30db64c29710c217b315d769e0f584eefa6907d2984e3577255ce031d43f90550ba2a5c5664397a651ca0b16d14671
|
||||
DIST astyle_3.0_linux.tar.gz 172303 SHA256 983e4fe87f20427ddf0d06fa5ba046b5ee95347f9ada33a681af3892426a4ff3 SHA512 77ef75139b08a91829373558753d78a3253f23a2a53a81f591d8877ba31b9a5163fbe8453894366aebbe287051259a568e725ee3b5e68d8ed4852a12d7798f9d WHIRLPOOL a6fb79f6202df85260adbf92ce529efc905bd9aaa093d7fa270d39adf9d34146a365479376dc9271cdc9334cb4f15c782436a1f2d0fdbc03be8a7979c38f23d6
|
||||
|
@ -0,0 +1,84 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit eutils flag-o-matic toolchain-funcs versionator java-pkg-opt-2
|
||||
|
||||
DESCRIPTION="Artistic Style is a re-indenter and reformatter for C++, C and Java source code"
|
||||
HOMEPAGE="http://astyle.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/astyle/astyle_${PV}_linux.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
|
||||
IUSE="examples java static-libs"
|
||||
|
||||
DEPEND="app-arch/xz-utils
|
||||
java? ( >=virtual/jdk-1.6:= )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}/${PN}"
|
||||
|
||||
src_prepare() {
|
||||
if use java ; then
|
||||
java-pkg-opt-2_src_prepare
|
||||
sed -e "s:^\(JAVAINCS\s*\)=.*$:\1= $(java-pkg_get-jni-cflags):" \
|
||||
-e "s:ar crs:$(tc-getAR) crs:" \
|
||||
-i build/gcc/Makefile || die
|
||||
else
|
||||
default
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
append-cxxflags -std=c++11
|
||||
tc-export CXX
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake -f ../build/gcc/Makefile -C src \
|
||||
${PN} \
|
||||
shared \
|
||||
$(usev java) \
|
||||
$(usex static-libs static '')
|
||||
}
|
||||
|
||||
src_install() {
|
||||
doheader src/${PN}.h
|
||||
|
||||
pushd src/bin >/dev/null || die
|
||||
dobin ${PN}
|
||||
|
||||
# ex: libastyle.so.3.0.1
|
||||
dolib.so lib${PN}.so.${PV}
|
||||
# ex: libastyle.so.3
|
||||
dosym lib${PN}.so.${PV} /usr/$(get_libdir)/lib${PN}.so.$(get_major_version)
|
||||
if use java ; then
|
||||
dolib.so lib${PN}j.so.${PV}
|
||||
dosym lib${PN}j.so.${PV} /usr/$(get_libdir)/lib${PN}j.so.$(get_major_version)
|
||||
fi
|
||||
if use static-libs ; then
|
||||
dolib lib${PN}.a
|
||||
fi
|
||||
popd >/dev/null || die
|
||||
if use examples ; then
|
||||
docinto examples
|
||||
dodoc -r file/.
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
fi
|
||||
local HTML_DOCS=( doc/. )
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -n "$REPLACING_VERSIONS" && "$(get_major_version $REPLACING_VERSIONS)" -lt 3 ]]; then
|
||||
elog "Artistic Style 3.0 introduces new configuration verbiage more fitting"
|
||||
elog "for modern use. Some options that were valid in 2.06 or older are now"
|
||||
elog "deprecated. For more information, consult astyle's release notes at"
|
||||
elog "http://astyle.sourceforge.net/news.html. To view offline, see:"
|
||||
elog
|
||||
elog "${ROOT}usr/share/doc/${P}/html"
|
||||
fi
|
||||
}
|
@ -0,0 +1,84 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit eutils flag-o-matic toolchain-funcs versionator java-pkg-opt-2
|
||||
|
||||
DESCRIPTION="Artistic Style is a re-indenter and reformatter for C++, C and Java source code"
|
||||
HOMEPAGE="http://astyle.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/astyle/astyle_${PV}_linux.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
|
||||
IUSE="examples java static-libs"
|
||||
|
||||
DEPEND="app-arch/xz-utils
|
||||
java? ( >=virtual/jdk-1.6:= )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}/${PN}"
|
||||
|
||||
src_prepare() {
|
||||
if use java ; then
|
||||
java-pkg-opt-2_src_prepare
|
||||
sed -e "s:^\(JAVAINCS\s*\)=.*$:\1= $(java-pkg_get-jni-cflags):" \
|
||||
-e "s:ar crs:$(tc-getAR) crs:" \
|
||||
-i build/gcc/Makefile || die
|
||||
else
|
||||
default
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
append-cxxflags -std=c++11
|
||||
tc-export CXX
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake -f ../build/gcc/Makefile -C src \
|
||||
${PN} \
|
||||
shared \
|
||||
$(usev java) \
|
||||
$(usex static-libs static '')
|
||||
}
|
||||
|
||||
src_install() {
|
||||
doheader src/${PN}.h
|
||||
|
||||
pushd src/bin >/dev/null || die
|
||||
dobin ${PN}
|
||||
|
||||
# ex: libastyle.so.3.0.0
|
||||
dolib.so lib${PN}.so.${PV}.0
|
||||
# ex: libastyle.so.3
|
||||
dosym lib${PN}.so.${PV}.0 /usr/$(get_libdir)/lib${PN}.so.$(get_major_version)
|
||||
if use java ; then
|
||||
dolib.so lib${PN}j.so.${PV}.0
|
||||
dosym lib${PN}j.so.${PV}.0 /usr/$(get_libdir)/lib${PN}j.so.$(get_major_version)
|
||||
fi
|
||||
if use static-libs ; then
|
||||
dolib lib${PN}.a
|
||||
fi
|
||||
popd >/dev/null || die
|
||||
if use examples ; then
|
||||
docinto examples
|
||||
dodoc -r file/.
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
fi
|
||||
local HTML_DOCS=( doc/. )
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -n "$REPLACING_VERSIONS" && "$(get_major_version $REPLACING_VERSIONS)" -lt 3 ]]; then
|
||||
elog "Artistic Style 3.0 introduces new configuration verbiage more fitting"
|
||||
elog "for modern use. Some options that were valid in 2.06 or older are now"
|
||||
elog "deprecated. For more information, consult astyle's release notes at"
|
||||
elog "http://astyle.sourceforge.net/news.html. To view offline, see:"
|
||||
elog
|
||||
elog "${ROOT}usr/share/doc/${P}/html"
|
||||
fi
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST valgrind-3.12.0.tar.bz2 12788556 SHA256 67ca4395b2527247780f36148b084f5743a68ab0c850cb43e4a5b4b012cf76a1 SHA512 2c083f7c2e74dc58600397726d9d3af7a2cea40fe3d8733149886d1d77867e6c09996e5be1c58dd932f3662acf7363e04eeadbc0f9c8f0dac089e605024229be WHIRLPOOL 136dd4f358bd18165a5801083cc73fc269a84bf491880af9842e789feea62181e16ca4c099db06fb4ffacf0cb0189b1b29d64790cc4202442f6f6b71ce4c6eea
|
||||
DIST valgrind-3.13.0.tar.bz2 14723076 SHA256 d76680ef03f00cd5e970bbdcd4e57fb1f6df7d2e2c071635ef2be74790190c3b SHA512 34e1013cd3815d30a459b86220e871bb0a6209cc9e87af968f347083693779f022e986f211bdf1a5184ad7370cde12ff2cfca8099967ff94732970bd04a97009 WHIRLPOOL 5ec5c371f8fb22813b895eaa3ee1dbb3c32bb998ad4b646d4b252a694d9b40a1543234cb7208445d8ca557e779ce30e9d0503a36bb9e4240a245c5d5d802c8a4
|
||||
|
@ -0,0 +1,95 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
inherit autotools flag-o-matic toolchain-funcs multilib pax-utils
|
||||
|
||||
DESCRIPTION="An open-source memory debugger for GNU/Linux"
|
||||
HOMEPAGE="http://www.valgrind.org"
|
||||
SRC_URI="ftp://sourceware.org/pub/valgrind/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
|
||||
IUSE="mpi"
|
||||
|
||||
DEPEND="mpi? ( virtual/mpi )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
# Correct hard coded doc location
|
||||
sed -i -e "s:doc/valgrind:doc/${PF}:" docs/Makefile.am || die
|
||||
|
||||
# Don't force multiarch stuff on OSX, bug #306467
|
||||
sed -i -e 's:-arch \(i386\|x86_64\)::g' Makefile.all.am || die
|
||||
|
||||
# Respect CFLAGS, LDFLAGS
|
||||
eapply "${FILESDIR}"/${PN}-3.7.0-respect-flags.patch
|
||||
|
||||
# Changing Makefile.all.am to disable SSP
|
||||
eapply "${FILESDIR}"/${PN}-3.7.0-fno-stack-protector.patch
|
||||
|
||||
# Allow users to test their own patches
|
||||
eapply_user
|
||||
|
||||
# Regenerate autotools files
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf
|
||||
|
||||
# Respect ar, bug #468114
|
||||
tc-export AR
|
||||
|
||||
# -fomit-frame-pointer "Assembler messages: Error: junk `8' after expression"
|
||||
# while compiling insn_sse.c in none/tests/x86
|
||||
# -fstack-protector more undefined references to __guard and __stack_smash_handler
|
||||
# because valgrind doesn't link to glibc (bug #114347)
|
||||
# -m64 -mx32 for multilib-portage, bug #398825
|
||||
# -ggdb3 segmentation fault on startup
|
||||
filter-flags -fomit-frame-pointer
|
||||
filter-flags -fstack-protector
|
||||
filter-flags -m64 -mx32
|
||||
replace-flags -ggdb3 -ggdb2
|
||||
|
||||
if use amd64 || use ppc64; then
|
||||
! has_multilib_profile && myconf="${myconf} --enable-only64bit"
|
||||
fi
|
||||
|
||||
# Force bitness on darwin, bug #306467
|
||||
use x86-macos && myconf="${myconf} --enable-only32bit"
|
||||
use x64-macos && myconf="${myconf} --enable-only64bit"
|
||||
|
||||
# Don't use mpicc unless the user asked for it (bug #258832)
|
||||
if ! use mpi; then
|
||||
myconf="${myconf} --without-mpicc"
|
||||
fi
|
||||
|
||||
econf ${myconf}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
dodoc AUTHORS FAQ.txt NEWS README*
|
||||
|
||||
pax-mark m "${ED}"/usr/$(get_libdir)/valgrind/*-*-linux
|
||||
|
||||
if [[ ${CHOST} == *-darwin* ]] ; then
|
||||
# fix install_names on shared libraries, can't turn them into bundles,
|
||||
# as dyld won't load them any more then, bug #306467
|
||||
local l
|
||||
for l in "${ED}"/usr/lib/valgrind/*.so ; do
|
||||
install_name_tool -id "${EPREFIX}"/usr/lib/valgrind/${l##*/} "${l}"
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Valgrind will not work if glibc does not have debug symbols."
|
||||
elog "To fix this you can add splitdebug to FEATURES in make.conf"
|
||||
elog "and remerge glibc. See:"
|
||||
elog "https://bugs.gentoo.org/show_bug.cgi?id=214065"
|
||||
elog "https://bugs.gentoo.org/show_bug.cgi?id=274771"
|
||||
elog "https://bugs.gentoo.org/show_bug.cgi?id=388703"
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST libextractor-1.0.1.tar.gz 7894265 SHA256 3251cbb4324defee1e641de44afb11156b13d676e27e01e031c6e06d904e1ece SHA512 616db2880cfc3b8974107b24346472e5650c5ce4b7580c4b78bcbff41bb1eea313a732891d1eced74a7d90518be7da481859dff98365212cd728d0d19447619c WHIRLPOOL c83561506e3f98f5b212bea23bce44ed42287fde03dbcf2ab2f5cec4ff37a1dba2fc9a2cf1beb984e96518b12ae5ac4561a2acc3b949acb9307bd26eda9006d5
|
||||
DIST libextractor-1.3.tar.gz 7942021 SHA256 868ad64c9a056d6b923d451d746935bffb1ddf5d89c3eb4f67d786001a3f7b7f SHA512 38ed47e5e5f50ddf216408f698a104900baa3b03cc8a81a14e63afd30b3e3922acda17363d88d9ba1356ebf70287c8a5152ff6933a36ec1042ca0d832218d45d WHIRLPOOL aeb8305d9efbe6e52632bb7281ea6df26c417c8bbe1398fdc0106653e3b4109095ea734c84f92ede03bd6406c69b362ee4590a0c964c550d8878f890b32b52d9
|
||||
|
@ -0,0 +1,27 @@
|
||||
--- a/src/plugins/exiv2_extractor.cc 2013-06-25 13:02:05.000000000 +0200
|
||||
+++ b/src/plugins/exiv2_extractor.cc 2017-06-10 14:22:57.000000000 +0200
|
||||
@@ -180,7 +180,11 @@
|
||||
*
|
||||
* @return -1 on error
|
||||
*/
|
||||
+#if EXIV2_VERSION >= EXIV2_MAKE_VERSION(0,26,0)
|
||||
+ virtual size_t size (void) const;
|
||||
+#else
|
||||
virtual long int size (void) const;
|
||||
+#endif
|
||||
|
||||
/**
|
||||
* Check if file is open.
|
||||
@@ -445,7 +449,11 @@
|
||||
*
|
||||
* @return -1 on error
|
||||
*/
|
||||
-long int
|
||||
+#if EXIV2_VERSION >= EXIV2_MAKE_VERSION(0,26,0)
|
||||
+size_t
|
||||
+#else
|
||||
+long int
|
||||
+#endif
|
||||
ExtractorIO::size (void) const
|
||||
{
|
||||
return (long) ec->get_size (ec->cls);
|
@ -1,128 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=4
|
||||
inherit eutils flag-o-matic multilib toolchain-funcs
|
||||
|
||||
DESCRIPTION="A library used to extract metadata from files of arbitrary type"
|
||||
HOMEPAGE="https://www.gnu.org/software/libextractor/"
|
||||
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm ppc ppc64 x86"
|
||||
IUSE="+archive +bzip2 ffmpeg flac gif gsf gtk jpeg mp4 +magic midi mpeg qt4 tidy tiff vorbis +zlib" # test
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="app-text/iso-codes
|
||||
>=dev-libs/glib-2
|
||||
media-gfx/exiv2
|
||||
sys-devel/libtool
|
||||
virtual/libiconv
|
||||
virtual/libintl
|
||||
archive? ( app-arch/libarchive )
|
||||
bzip2? ( app-arch/bzip2 )
|
||||
ffmpeg? ( virtual/ffmpeg )
|
||||
flac? (
|
||||
media-libs/flac
|
||||
media-libs/libogg
|
||||
)
|
||||
gif? ( media-libs/giflib )
|
||||
gsf? ( gnome-extra/libgsf )
|
||||
gtk? ( x11-libs/gtk+:3 )
|
||||
jpeg? ( virtual/jpeg )
|
||||
mp4? ( media-libs/libmp4v2:0 )
|
||||
magic? ( sys-apps/file )
|
||||
midi? ( media-libs/libsmf )
|
||||
mpeg? ( media-libs/libmpeg2 )
|
||||
qt4? (
|
||||
dev-qt/qtgui:4
|
||||
dev-qt/qtsvg:4
|
||||
)
|
||||
tidy? ( app-text/htmltidy )
|
||||
tiff? ( media-libs/tiff:0 )
|
||||
vorbis? (
|
||||
media-libs/libogg
|
||||
media-libs/libvorbis
|
||||
)
|
||||
zlib? ( sys-libs/zlib )
|
||||
!<app-crypt/pkcrack-1.2.2-r1
|
||||
!sci-biology/glimmer
|
||||
!sci-chemistry/pdb-extract"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/gettext
|
||||
virtual/pkgconfig"
|
||||
# test? ( app-forensics/zzuf )
|
||||
|
||||
DOCS="AUTHORS ChangeLog NEWS README TODO"
|
||||
|
||||
src_prepare() {
|
||||
# m4/ax_create_pkgconfig_info.m4 is passing environment LDFLAGS to Libs:
|
||||
sed -i \
|
||||
-e '/^ax_create_pkgconfig_ldflags=/s:$LDFLAGS ::' \
|
||||
-e 's:ac_cv_header_tidy_tidy_h:ac_cv_header_tidy_h:g' \
|
||||
-e 's:tidy/tidy.h:tidy.h:g' \
|
||||
-e 's:tidy/buffio.h:buffio.h:g' \
|
||||
configure src/plugins/html_extractor.c || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
e_ac_cv() {
|
||||
export ac_cv_"$@"
|
||||
}
|
||||
|
||||
e_ac_cv {lib_rpm_rpmReadPackageFile,prog_HAVE_ZZUF}=no
|
||||
|
||||
if use flac; then
|
||||
e_ac_cv header_FLAC_all_h=yes
|
||||
e_ac_cv lib_FLAC_FLAC__stream_decoder_init_stream=yes
|
||||
else
|
||||
e_ac_cv header_FLAC_all_h=no
|
||||
e_ac_cv lib_FLAC_FLAC__stream_decoder_init_stream=no
|
||||
e_ac_cv lib_FLAC_FLAC__stream_decoder_init_ogg_stream=no
|
||||
fi
|
||||
|
||||
e_ac_cv header_archive_h=$(usex archive)
|
||||
e_ac_cv header_bzlib_h=$(usex bzip2)
|
||||
e_ac_cv header_gif_lib_h=$(usex gif)
|
||||
e_ac_cv header_jpeglib_h=$(usex jpeg)
|
||||
e_ac_cv header_magic_h=$(usex magic)
|
||||
e_ac_cv header_mpeg2dec_mpeg2_h=$(usex mpeg)
|
||||
e_ac_cv header_tiffio_h=$(usex tiff)
|
||||
e_ac_cv header_vorbis_vorbisfile_h=$(usex vorbis)
|
||||
e_ac_cv header_zlib_h=$(usex zlib)
|
||||
e_ac_cv lib_tidy_tidyInitSource=$(usex tidy)
|
||||
e_ac_cv lib_mp4v2_MP4ReadProvider=$(usex mp4)
|
||||
e_ac_cv lib_smf_smf_load_from_memory=$(usex midi)
|
||||
|
||||
local myconf
|
||||
|
||||
if use qt4; then
|
||||
append-cppflags "$($(tc-getPKG_CONFIG) --cflags-only-I QtGui QtSvg)"
|
||||
append-ldflags "$($(tc-getPKG_CONFIG) --libs-only-L QtGui QtSvg)"
|
||||
else
|
||||
myconf='--without-qt'
|
||||
fi
|
||||
|
||||
# gstreamer support is for 1.0, no 0.10 support
|
||||
econf \
|
||||
--disable-static \
|
||||
--enable-experimental \
|
||||
--enable-glib \
|
||||
$(use_enable gsf) \
|
||||
--disable-gnome \
|
||||
$(use_enable ffmpeg) \
|
||||
--with-gtk_version=$(usex gtk 3.0.0 false) \
|
||||
--without-gstreamer \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake -j1
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue