parent
93bd0ff97b
commit
1cb7a48590
@ -0,0 +1,30 @@
|
||||
http://bugs.gentoo.org/show_bug.cgi?id=302773
|
||||
|
||||
--- tailor.h.old 2010-01-29 11:13:02.000000000 +0000
|
||||
+++ tailor.h 2010-01-29 13:18:15.000000000 +0000
|
||||
@@ -69,9 +69,6 @@
|
||||
# include <io.h>
|
||||
# define OS_CODE 0x00
|
||||
# define SET_BINARY_MODE(fd) setmode(fd, O_BINARY)
|
||||
-# if !defined(NO_ASM) && !defined(ASMV)
|
||||
-# define ASMV
|
||||
-# endif
|
||||
#else
|
||||
# define near
|
||||
#endif
|
||||
@@ -182,7 +179,6 @@
|
||||
# define PATH_SEP2 ':'
|
||||
# define STDC_HEADERS
|
||||
# define OS_CODE 0x01
|
||||
-# define ASMV
|
||||
# ifdef __GNUC__
|
||||
# define HAVE_DIRENT_H
|
||||
# define HAVE_FCNTL_H
|
||||
@@ -201,7 +197,6 @@
|
||||
#endif
|
||||
|
||||
#if defined(ATARI) || defined(atarist)
|
||||
-# define ASMV
|
||||
# define OS_CODE 0x05
|
||||
# ifdef TOSFS
|
||||
# define PATH_SEP2 '\\'
|
@ -0,0 +1,118 @@
|
||||
From ed8383c618e124cfa708c9ee87563fcdf2f4649c Mon Sep 17 00:00:00 2001
|
||||
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
|
||||
Date: Fri, 19 Dec 2014 18:53:34 -0500
|
||||
Subject: [PATCH] sm: Avoid double-free on iconv failure
|
||||
|
||||
* sm/minip12.c: (p12_build) if jnlib_iconv_open fails, avoid
|
||||
double-free of pwbuf.
|
||||
|
||||
--
|
||||
|
||||
Observed by Joshua Rogers <honey@internot.info>, who proposed a
|
||||
slightly different fix.
|
||||
|
||||
Debian-Bug-Id: 773472
|
||||
|
||||
Added fix at a second place - wk.
|
||||
---
|
||||
sm/minip12.c | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/agent/minip12.c b/agent/minip12.c
|
||||
index 01b91b7..ca4d248 100644
|
||||
--- a/agent/minip12.c
|
||||
+++ b/agent/minip12.c
|
||||
@@ -2422,6 +2422,7 @@ p12_build (gcry_mpi_t *kparms, const void *cert, size_t certlen,
|
||||
" requested charset '%s': %s\n",
|
||||
charset, strerror (errno));
|
||||
gcry_free (pwbuf);
|
||||
+ pwbuf = NULL;
|
||||
goto failure;
|
||||
}
|
||||
|
||||
@@ -2436,6 +2437,7 @@ p12_build (gcry_mpi_t *kparms, const void *cert, size_t certlen,
|
||||
" requested charset '%s': %s\n",
|
||||
charset, strerror (errno));
|
||||
gcry_free (pwbuf);
|
||||
+ pwbuf = NULL;
|
||||
jnlib_iconv_close (cd);
|
||||
goto failure;
|
||||
}
|
||||
--
|
||||
1.7.10.4
|
||||
|
||||
From b0b3803e8c2959dd67ca96debc54b5c6464f0d41 Mon Sep 17 00:00:00 2001
|
||||
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
|
||||
Date: Fri, 19 Dec 2014 18:07:55 -0500
|
||||
Subject: [PATCH] scd: Avoid double-free on error condition in scd
|
||||
|
||||
* scd/command.c (cmd_readkey): avoid double-free of cert
|
||||
|
||||
--
|
||||
|
||||
When ksba_cert_new() fails, cert will be double-freed.
|
||||
|
||||
Debian-Bug-Id: 773471
|
||||
|
||||
Original patch changed by wk to do the free only at leave.
|
||||
---
|
||||
scd/command.c | 6 ++----
|
||||
1 file changed, 2 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/scd/command.c b/scd/command.c
|
||||
index dd4191f..1cc580a 100644
|
||||
--- a/scd/command.c
|
||||
+++ b/scd/command.c
|
||||
@@ -804,10 +804,8 @@ cmd_readkey (assuan_context_t ctx, char *line)
|
||||
|
||||
rc = ksba_cert_new (&kc);
|
||||
if (rc)
|
||||
- {
|
||||
- xfree (cert);
|
||||
- goto leave;
|
||||
- }
|
||||
+ goto leave;
|
||||
+
|
||||
rc = ksba_cert_init_from_mem (kc, cert, ncert);
|
||||
if (rc)
|
||||
{
|
||||
--
|
||||
1.7.10.4
|
||||
|
||||
From abd5f6752d693b7f313c19604f0723ecec4d39a6 Mon Sep 17 00:00:00 2001
|
||||
From: Werner Koch <wk@gnupg.org>
|
||||
Date: Mon, 22 Dec 2014 12:16:46 +0100
|
||||
Subject: [PATCH] dirmngr,gpgsm: Return NULL on fail
|
||||
|
||||
* dirmngr/ldapserver.c (ldapserver_parse_one): Set SERVER to NULL.
|
||||
* sm/gpgsm.c (parse_keyserver_line): Ditto.
|
||||
--
|
||||
|
||||
Reported-by: Joshua Rogers <git@internot.info>
|
||||
|
||||
"If something inside the ldapserver_parse_one function failed,
|
||||
'server' would be freed, then returned, leading to a
|
||||
use-after-free. This code is likely copied from sm/gpgsm.c, which
|
||||
was also susceptible to this bug."
|
||||
|
||||
Signed-off-by: Werner Koch <wk@gnupg.org>
|
||||
---
|
||||
dirmngr/ldapserver.c | 1 +
|
||||
sm/gpgsm.c | 1 +
|
||||
2 files changed, 2 insertions(+)
|
||||
|
||||
diff --git a/sm/gpgsm.c b/sm/gpgsm.c
|
||||
index 3398d17..72bceb4 100644
|
||||
--- a/sm/gpgsm.c
|
||||
+++ b/sm/gpgsm.c
|
||||
@@ -862,6 +862,7 @@ parse_keyserver_line (char *line,
|
||||
{
|
||||
log_info (_("%s:%u: skipping this line\n"), filename, lineno);
|
||||
keyserver_list_free (server);
|
||||
+ server = NULL;
|
||||
}
|
||||
|
||||
return server;
|
||||
--
|
||||
1.7.10.4
|
||||
|
@ -0,0 +1,130 @@
|
||||
From ed8383c618e124cfa708c9ee87563fcdf2f4649c Mon Sep 17 00:00:00 2001
|
||||
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
|
||||
Date: Fri, 19 Dec 2014 18:53:34 -0500
|
||||
Subject: [PATCH] sm: Avoid double-free on iconv failure
|
||||
|
||||
* sm/minip12.c: (p12_build) if jnlib_iconv_open fails, avoid
|
||||
double-free of pwbuf.
|
||||
|
||||
--
|
||||
|
||||
Observed by Joshua Rogers <honey@internot.info>, who proposed a
|
||||
slightly different fix.
|
||||
|
||||
Debian-Bug-Id: 773472
|
||||
|
||||
Added fix at a second place - wk.
|
||||
---
|
||||
sm/minip12.c | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/sm/minip12.c b/sm/minip12.c
|
||||
index 01b91b7..ca4d248 100644
|
||||
--- a/sm/minip12.c
|
||||
+++ b/sm/minip12.c
|
||||
@@ -2422,6 +2422,7 @@ p12_build (gcry_mpi_t *kparms, const void *cert, size_t certlen,
|
||||
" requested charset '%s': %s\n",
|
||||
charset, strerror (errno));
|
||||
gcry_free (pwbuf);
|
||||
+ pwbuf = NULL;
|
||||
goto failure;
|
||||
}
|
||||
|
||||
@@ -2436,6 +2437,7 @@ p12_build (gcry_mpi_t *kparms, const void *cert, size_t certlen,
|
||||
" requested charset '%s': %s\n",
|
||||
charset, strerror (errno));
|
||||
gcry_free (pwbuf);
|
||||
+ pwbuf = NULL;
|
||||
jnlib_iconv_close (cd);
|
||||
goto failure;
|
||||
}
|
||||
--
|
||||
1.7.10.4
|
||||
|
||||
From b0b3803e8c2959dd67ca96debc54b5c6464f0d41 Mon Sep 17 00:00:00 2001
|
||||
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
|
||||
Date: Fri, 19 Dec 2014 18:07:55 -0500
|
||||
Subject: [PATCH] scd: Avoid double-free on error condition in scd
|
||||
|
||||
* scd/command.c (cmd_readkey): avoid double-free of cert
|
||||
|
||||
--
|
||||
|
||||
When ksba_cert_new() fails, cert will be double-freed.
|
||||
|
||||
Debian-Bug-Id: 773471
|
||||
|
||||
Original patch changed by wk to do the free only at leave.
|
||||
---
|
||||
scd/command.c | 6 ++----
|
||||
1 file changed, 2 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/scd/command.c b/scd/command.c
|
||||
index dd4191f..1cc580a 100644
|
||||
--- a/scd/command.c
|
||||
+++ b/scd/command.c
|
||||
@@ -804,10 +804,8 @@ cmd_readkey (assuan_context_t ctx, char *line)
|
||||
|
||||
rc = ksba_cert_new (&kc);
|
||||
if (rc)
|
||||
- {
|
||||
- xfree (cert);
|
||||
- goto leave;
|
||||
- }
|
||||
+ goto leave;
|
||||
+
|
||||
rc = ksba_cert_init_from_mem (kc, cert, ncert);
|
||||
if (rc)
|
||||
{
|
||||
--
|
||||
1.7.10.4
|
||||
|
||||
From abd5f6752d693b7f313c19604f0723ecec4d39a6 Mon Sep 17 00:00:00 2001
|
||||
From: Werner Koch <wk@gnupg.org>
|
||||
Date: Mon, 22 Dec 2014 12:16:46 +0100
|
||||
Subject: [PATCH] dirmngr,gpgsm: Return NULL on fail
|
||||
|
||||
* dirmngr/ldapserver.c (ldapserver_parse_one): Set SERVER to NULL.
|
||||
* sm/gpgsm.c (parse_keyserver_line): Ditto.
|
||||
--
|
||||
|
||||
Reported-by: Joshua Rogers <git@internot.info>
|
||||
|
||||
"If something inside the ldapserver_parse_one function failed,
|
||||
'server' would be freed, then returned, leading to a
|
||||
use-after-free. This code is likely copied from sm/gpgsm.c, which
|
||||
was also susceptible to this bug."
|
||||
|
||||
Signed-off-by: Werner Koch <wk@gnupg.org>
|
||||
---
|
||||
dirmngr/ldapserver.c | 1 +
|
||||
sm/gpgsm.c | 1 +
|
||||
2 files changed, 2 insertions(+)
|
||||
|
||||
diff --git a/dirmngr/ldapserver.c b/dirmngr/ldapserver.c
|
||||
index 20a574c..5808c5b 100644
|
||||
--- a/dirmngr/ldapserver.c
|
||||
+++ b/dirmngr/ldapserver.c
|
||||
@@ -125,6 +125,7 @@ ldapserver_parse_one (char *line,
|
||||
{
|
||||
log_info (_("%s:%u: skipping this line\n"), filename, lineno);
|
||||
ldapserver_list_free (server);
|
||||
+ server = NULL;
|
||||
}
|
||||
|
||||
return server;
|
||||
diff --git a/sm/gpgsm.c b/sm/gpgsm.c
|
||||
index 3398d17..72bceb4 100644
|
||||
--- a/sm/gpgsm.c
|
||||
+++ b/sm/gpgsm.c
|
||||
@@ -862,6 +862,7 @@ parse_keyserver_line (char *line,
|
||||
{
|
||||
log_info (_("%s:%u: skipping this line\n"), filename, lineno);
|
||||
keyserver_list_free (server);
|
||||
+ server = NULL;
|
||||
}
|
||||
|
||||
return server;
|
||||
--
|
||||
1.7.10.4
|
||||
|
@ -0,0 +1,165 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-crypt/gnupg/gnupg-2.0.26-r3.ebuild,v 1.1 2014/12/31 18:27:16 alonbl Exp $
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit eutils flag-o-matic toolchain-funcs
|
||||
|
||||
DESCRIPTION="The GNU Privacy Guard, a GPL pgp replacement"
|
||||
HOMEPAGE="http://www.gnupg.org/"
|
||||
SRC_URI="mirror://gnupg/gnupg/${P}.tar.bz2"
|
||||
# SRC_URI="ftp://ftp.gnupg.org/gcrypt/${PN}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="bzip2 doc ldap nls mta readline static selinux smartcard tools usb"
|
||||
|
||||
COMMON_DEPEND_LIBS="
|
||||
>=dev-libs/libassuan-2
|
||||
>=dev-libs/libgcrypt-1.4:0=
|
||||
>=dev-libs/libgpg-error-1.11
|
||||
>=dev-libs/libksba-1.0.7
|
||||
>=dev-libs/pth-1.3.7
|
||||
>=net-misc/curl-7.10
|
||||
sys-libs/zlib
|
||||
bzip2? ( app-arch/bzip2 )
|
||||
readline? ( sys-libs/readline )
|
||||
smartcard? ( usb? ( virtual/libusb:0 ) )
|
||||
ldap? ( net-nds/openldap )"
|
||||
COMMON_DEPEND_BINS="|| ( app-crypt/pinentry app-crypt/pinentry-qt )"
|
||||
|
||||
# Existence of executables is checked during configuration.
|
||||
DEPEND="${COMMON_DEPEND_LIBS}
|
||||
${COMMON_DEPEND_BINS}
|
||||
static? (
|
||||
>=dev-libs/libassuan-2[static-libs]
|
||||
>=dev-libs/libgcrypt-1.4:0=[static-libs]
|
||||
>=dev-libs/libgpg-error-1.11[static-libs]
|
||||
>=dev-libs/libksba-1.0.7[static-libs]
|
||||
>=dev-libs/pth-1.3.7[static-libs]
|
||||
>=net-misc/curl-7.10[static-libs]
|
||||
sys-libs/zlib[static-libs]
|
||||
bzip2? ( app-arch/bzip2[static-libs] )
|
||||
)
|
||||
nls? ( sys-devel/gettext )
|
||||
doc? ( sys-apps/texinfo )"
|
||||
|
||||
RDEPEND="!static? ( ${COMMON_DEPEND_LIBS} )
|
||||
${COMMON_DEPEND_BINS}
|
||||
mta? ( virtual/mta )
|
||||
!<=app-crypt/gnupg-2.0.1
|
||||
selinux? ( sec-policy/selinux-gpg )
|
||||
nls? ( virtual/libintl )"
|
||||
|
||||
REQUIRED_USE="smartcard? ( !static )"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${PN}-2.0.17-gpgsm-gencert.patch"
|
||||
epatch "${FILESDIR}/${P}-Need-to-init-the-trustdb-for-import.patch"
|
||||
epatch "${FILESDIR}/${P}-misc-cve.patch"
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=()
|
||||
|
||||
# 'USE=static' support was requested:
|
||||
# gnupg1: bug #29299
|
||||
# gnupg2: bug #159623
|
||||
use static && append-ldflags -static
|
||||
|
||||
if use smartcard; then
|
||||
myconf+=(
|
||||
--enable-scdaemon
|
||||
$(use_enable usb ccid-driver)
|
||||
)
|
||||
else
|
||||
myconf+=( --disable-scdaemon )
|
||||
fi
|
||||
|
||||
if use elibc_SunOS || use elibc_AIX; then
|
||||
myconf+=( --disable-symcryptrun )
|
||||
else
|
||||
myconf+=( --enable-symcryptrun )
|
||||
fi
|
||||
|
||||
econf \
|
||||
--docdir="${EPREFIX}/usr/share/doc/${PF}" \
|
||||
--enable-gpg \
|
||||
--enable-gpgsm \
|
||||
--enable-agent \
|
||||
--without-adns \
|
||||
"${myconf[@]}" \
|
||||
$(use_enable bzip2) \
|
||||
$(use_enable nls) \
|
||||
$(use_enable mta mailto) \
|
||||
$(use_enable ldap) \
|
||||
$(use_with readline) \
|
||||
CC_FOR_BUILD="$(tc-getBUILD_CC)"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
|
||||
if use doc; then
|
||||
cd doc
|
||||
emake html
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
use tools && dobin tools/{convert-from-106,gpg-check-pattern} \
|
||||
tools/{gpg-zip,gpgconf,gpgsplit,lspgpot,mail-signed-keys,make-dns-cert}
|
||||
|
||||
emake DESTDIR="${D}" -f doc/Makefile uninstall-nobase_dist_docDATA
|
||||
rm "${ED}"/usr/share/gnupg/help* || die
|
||||
|
||||
dodoc ChangeLog NEWS README THANKS TODO VERSION doc/FAQ doc/DETAILS \
|
||||
doc/HACKING doc/TRANSLATE doc/OpenPGP doc/KEYSERVER doc/help*
|
||||
|
||||
dosym gpg2 /usr/bin/gpg
|
||||
dosym gpgv2 /usr/bin/gpgv
|
||||
dosym gpg2keys_hkp /usr/libexec/gpgkeys_hkp
|
||||
dosym gpg2keys_finger /usr/libexec/gpgkeys_finger
|
||||
dosym gpg2keys_curl /usr/libexec/gpgkeys_curl
|
||||
if use ldap; then
|
||||
dosym gpg2keys_ldap /usr/libexec/gpgkeys_ldap
|
||||
fi
|
||||
echo ".so man1/gpg2.1" > "${ED}"/usr/share/man/man1/gpg.1
|
||||
echo ".so man1/gpgv2.1" > "${ED}"/usr/share/man/man1/gpgv.1
|
||||
|
||||
dodir /etc/env.d
|
||||
echo "CONFIG_PROTECT=/usr/share/gnupg/qualified.txt" >> "${ED}"/etc/env.d/30gnupg
|
||||
|
||||
if use doc; then
|
||||
dohtml doc/gnupg.html/* doc/*.png
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "If you wish to view images emerge:"
|
||||
elog "media-gfx/xloadimage, media-gfx/xli or any other viewer"
|
||||
elog "Remember to use photo-viewer option in configuration file to activate"
|
||||
elog "the right viewer."
|
||||
elog
|
||||
|
||||
if use smartcard; then
|
||||
elog "To use your OpenPGP smartcard (or token) with GnuPG you need one of"
|
||||
use usb && elog " - a CCID-compatible reader, used directly through libusb;"
|
||||
elog " - sys-apps/pcsc-lite and a compatible reader device;"
|
||||
elog " - dev-libs/openct and a compatible reader device;"
|
||||
elog " - a reader device and drivers exporting either PC/SC or CT-API interfaces."
|
||||
elog ""
|
||||
elog "General hint: you probably want to try installing sys-apps/pcsc-lite and"
|
||||
elog "app-crypt/ccid first."
|
||||
fi
|
||||
|
||||
ewarn "Please remember to restart gpg-agent if a different version"
|
||||
ewarn "of the agent is currently used. If you are unsure of the gpg"
|
||||
ewarn "agent you are using please run 'killall gpg-agent',"
|
||||
ewarn "and to start a fresh daemon just run 'gpg-agent --daemon'."
|
||||
}
|
@ -0,0 +1,247 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/app-shells/bash/bash-4.3_p33.ebuild,v 1.1 2015/01/01 07:27:18 vapier Exp $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
inherit eutils flag-o-matic toolchain-funcs multilib
|
||||
|
||||
# Official patchlevel
|
||||
# See ftp://ftp.cwru.edu/pub/bash/bash-4.3-patches/
|
||||
PLEVEL=${PV##*_p}
|
||||
MY_PV=${PV/_p*}
|
||||
MY_PV=${MY_PV/_/-}
|
||||
MY_P=${PN}-${MY_PV}
|
||||
[[ ${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="6.3"
|
||||
|
||||
DESCRIPTION="The standard GNU Bourne again shell"
|
||||
HOMEPAGE="http://tiswww.case.edu/php/chet/bash/bashtop.html"
|
||||
SRC_URI="mirror://gnu/bash/${MY_P}.tar.gz $(patches)"
|
||||
[[ ${PV} == *_rc* ]] && SRC_URI+=" ftp://ftp.cwru.edu/pub/bash/${MY_P}.tar.gz"
|
||||
|
||||
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 vanilla"
|
||||
|
||||
DEPEND=">=sys-libs/ncurses-5.2-r2
|
||||
readline? ( >=sys-libs/readline-${READLINE_VER} )
|
||||
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 [[ ${PV} != *_rc* ]] ; 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
|
||||
|
||||
# Avoid regenerating docs after patches #407985
|
||||
sed -i -r '/^(HS|RL)USER/s:=.*:=:' doc/Makefile.in || die
|
||||
touch -r . doc/*
|
||||
|
||||
epatch "${FILESDIR}"/${PN}-4.3-compat-lvl.patch
|
||||
epatch "${FILESDIR}"/${PN}-4.3-parse-time-keyword.patch
|
||||
epatch "${FILESDIR}"/${PN}-4.3-append-process-segfault.patch
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=()
|
||||
|
||||
# For descriptions of these, see config-top.h
|
||||
# bashrc/#26952 bash_logout/#90488 ssh/#24762
|
||||
append-cppflags \
|
||||
-DDEFAULT_PATH_VALUE=\'\"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\"\' \
|
||||
-DSTANDARD_UTILS_PATH=\'\"/bin:/usr/bin:/sbin:/usr/sbin\"\' \
|
||||
-DSYS_BASHRC=\'\"/etc/bash/bashrc\"\' \
|
||||
-DSYS_BASH_LOGOUT=\'\"/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 [[ ${PV} != *_rc* ]] ; 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
|
||||
newins "${FILESDIR}"/bashrc-r1 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
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-haskell/contravariant/contravariant-1.2.0.1.ebuild,v 1.1 2015/01/01 02:23:47 gienah Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
# ebuild generated by hackport 0.4.4.9999
|
||||
|
||||
CABAL_FEATURES="lib profile haddock hoogle hscolour"
|
||||
inherit haskell-cabal
|
||||
|
||||
DESCRIPTION="Contravariant functors"
|
||||
HOMEPAGE="http://github.com/ekmett/contravariant/"
|
||||
SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="+tagged"
|
||||
|
||||
RDEPEND=">=dev-haskell/semigroups-0.15.2:=[profile?] <dev-haskell/semigroups-1:=[profile?]
|
||||
>=dev-haskell/transformers-0.2:=[profile?] <dev-haskell/transformers-0.5:=[profile?]
|
||||
>=dev-haskell/transformers-compat-0.3:=[profile?] <dev-haskell/transformers-compat-1:=[profile?]
|
||||
>=dev-haskell/void-0.6:=[profile?] <dev-haskell/void-1:=[profile?]
|
||||
>=dev-lang/ghc-7.4.1:=
|
||||
tagged? ( >=dev-haskell/tagged-0.4.4:=[profile?] <dev-haskell/tagged-1:=[profile?] )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-haskell/cabal-1.6
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
haskell-cabal_src_configure \
|
||||
$(cabal_flag tagged tagged)
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-haskell/hspec-expectations/hspec-expectations-0.6.1.1.ebuild,v 1.1 2015/01/01 03:43:18 gienah Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
# ebuild generated by hackport 0.4.4.9999
|
||||
|
||||
CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
|
||||
inherit haskell-cabal
|
||||
|
||||
DESCRIPTION="Catchy combinators for HUnit"
|
||||
HOMEPAGE="https://github.com/sol/hspec-expectations#readme"
|
||||
SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-haskell/hunit:=[profile?]
|
||||
>=dev-lang/ghc-7.4.1:=
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-haskell/cabal-1.8
|
||||
test? ( >=dev-haskell/hspec-2 <dev-haskell/hspec-3
|
||||
dev-haskell/markdown-unlit
|
||||
dev-haskell/silently )
|
||||
"
|
@ -0,0 +1,25 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-haskell/parallel/parallel-3.2.0.6.ebuild,v 1.1 2015/01/01 02:27:45 gienah Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
# ebuild generated by hackport 0.4.4.9999
|
||||
|
||||
CABAL_FEATURES="lib profile haddock hoogle hscolour"
|
||||
inherit haskell-cabal
|
||||
|
||||
DESCRIPTION="Parallel programming library"
|
||||
HOMEPAGE="http://hackage.haskell.org/package/parallel"
|
||||
SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="3/${PV}"
|
||||
KEYWORDS="~amd64 ~sparc ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=dev-lang/ghc-7.4.1:=
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-haskell/cabal-1.10
|
||||
"
|
@ -0,0 +1,62 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/cython/cython-0.21.2.ebuild,v 1.2 2015/01/01 04:41:31 floppym Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
|
||||
|
||||
inherit distutils-r1 flag-o-matic toolchain-funcs
|
||||
|
||||
MY_PN="Cython"
|
||||
MY_P="${MY_PN}-${PV/_/}"
|
||||
|
||||
DESCRIPTION="A Python to C compiler"
|
||||
HOMEPAGE="http://www.cython.org/ http://pypi.python.org/pypi/Cython"
|
||||
SRC_URI="http://www.cython.org/release/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
|
||||
IUSE="doc examples test"
|
||||
|
||||
RDEPEND=""
|
||||
# On testing, setuptools invokes an error in running the testsuite cited in a number of recent bugs
|
||||
# spanning several packages. This bug has been fixed in the recent release of version 9.1
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-python/setuptools-9.1[${PYTHON_USEDEP}]
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
||||
test? ( dev-python/numpy[${PYTHON_USEDEP}] )"
|
||||
|
||||
S="${WORKDIR}/${MY_PN}-${PV%_*}"
|
||||
|
||||
python_compile() {
|
||||
if ! python_is_python3; then
|
||||
local CFLAGS="${CFLAGS}"
|
||||
local CXXFLAGS="${CXXFLAGS}"
|
||||
append-flags -fno-strict-aliasing
|
||||
fi
|
||||
|
||||
# Python gets confused when it is in sys.path before build.
|
||||
local PYTHONPATH=
|
||||
export PYTHONPATH
|
||||
|
||||
distutils-r1_python_compile
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && unset XDG_CONFIG_HOME && emake -C docs html
|
||||
}
|
||||
|
||||
python_test() {
|
||||
tc-export CC
|
||||
"${PYTHON}" runtests.py -vv --work-dir "${BUILD_DIR}"/tests \
|
||||
|| die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
local DOCS=( CHANGES.rst README.txt ToDo.txt USAGE.txt )
|
||||
use doc && local HTML_DOCS=( docs/build/html/. )
|
||||
use examples && local EXAMPLES=( Demos/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -0,0 +1,163 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-python/wxpython/wxpython-3.0.2.0.ebuild,v 1.1 2014/12/31 17:38:10 floppym Exp $
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python{2_6,2_7} )
|
||||
WX_GTK_VER="3.0"
|
||||
|
||||
inherit alternatives distutils-r1 eutils fdo-mime flag-o-matic wxwidgets
|
||||
|
||||
MY_PN="wxPython-src"
|
||||
|
||||
DESCRIPTION="A blending of the wxWindows C++ class library with Python"
|
||||
HOMEPAGE="http://www.wxpython.org/"
|
||||
SRC_URI="
|
||||
mirror://sourceforge/wxpython/${MY_PN}-${PV}.tar.bz2
|
||||
examples? ( mirror://sourceforge/wxpython/wxPython-demo-${PV}.tar.bz2 )"
|
||||
|
||||
LICENSE="wxWinLL-3"
|
||||
SLOT="3.0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
|
||||
IUSE="cairo examples libnotify opengl"
|
||||
|
||||
RDEPEND="
|
||||
dev-lang/python-exec:2[${PYTHON_USEDEP}]
|
||||
>=x11-libs/wxGTK-${PV}:${WX_GTK_VER}=[libnotify=,opengl?,tiff,X]
|
||||
dev-libs/glib:2
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
media-libs/libpng:0=
|
||||
media-libs/tiff:0
|
||||
virtual/jpeg
|
||||
x11-libs/gtk+:2
|
||||
x11-libs/pango[X]
|
||||
cairo? ( >=dev-python/pycairo-1.8.4[${PYTHON_USEDEP}] )
|
||||
opengl? ( dev-python/pyopengl[${PYTHON_USEDEP}] )"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
S="${WORKDIR}/${MY_PN}-${PV}/wxPython"
|
||||
DOC_S="${WORKDIR}/wxPython-${PV}"
|
||||
|
||||
# The hacky build system seems to be broken with out-of-source builds,
|
||||
# and installs 'wx' package globally.
|
||||
DISTUTILS_IN_SOURCE_BUILD=1
|
||||
|
||||
python_prepare_all() {
|
||||
sed -i "s:cflags.append('-O3'):pass:" config.py || die "sed failed"
|
||||
|
||||
if use examples; then
|
||||
cd "${DOC_S}"
|
||||
epatch "${FILESDIR}"/${PN}-${SLOT}-wxversion-demo.patch
|
||||
fi
|
||||
|
||||
cd "${S}"
|
||||
local PATCHES=(
|
||||
"${FILESDIR}"/${PN}-3.0.0.0-wxversion-scripts.patch
|
||||
# drop editra - we have it as a separate package now
|
||||
"${FILESDIR}"/${PN}-2.8.11-drop-editra.patch
|
||||
"${FILESDIR}"/${PN}-2.8-no-preservatives-added.patch
|
||||
# fix handling egg_info command
|
||||
"${FILESDIR}"/${PN}-2.8.12.1-disable-egging-mode.patch
|
||||
)
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
need-wxwidgets unicode
|
||||
|
||||
mydistutilsargs=(
|
||||
WX_CONFIG="${WX_CONFIG}"
|
||||
WXPORT=gtk2
|
||||
UNICODE=1
|
||||
BUILD_GLCANVAS=$(usex opengl 1 0)
|
||||
)
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
# We need to have separate libdirs due to hackery, bug #455332.
|
||||
distutils-r1_python_compile \
|
||||
build --build-purelib "${BUILD_DIR}"/lib.common
|
||||
}
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install \
|
||||
build --build-purelib "${BUILD_DIR}"/lib.common
|
||||
|
||||
# adjust the filenames for wxPython slots.
|
||||
local file
|
||||
for file in "${D}$(python_get_sitedir)"/wx{version.*,.pth}; do
|
||||
mv "${file}" "${file}-${SLOT}" || die
|
||||
done
|
||||
cd "${ED}"usr/lib/python-exec/"${EPYTHON}" || die
|
||||
for file in *; do
|
||||
mv "${file}" "${file}-${SLOT}" || die
|
||||
|
||||
# wrappers are common to all impls, so a parallel run may
|
||||
# move it for us. ln+rm is more failure-proof.
|
||||
ln -fs ../lib/python-exec/python-exec2 "${ED}usr/bin/${file}-${SLOT}" || die
|
||||
rm -f "${ED}usr/bin/${file}"
|
||||
done
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
dodoc docs/{CHANGES,PyManual,README,wxPackage,wxPythonManual}.txt
|
||||
|
||||
for x in {Py{AlaMode,Crust,Shell},XRCed}; do
|
||||
newmenu distrib/${x}.desktop ${x}-${SLOT}.desktop
|
||||
done
|
||||
newicon wx/py/PyCrust_32.png PyCrust-${SLOT}.png
|
||||
newicon wx/py/PySlices_32.png PySlices-${SLOT}.png
|
||||
newicon wx/tools/XRCed/XRCed_32.png XRCed-${SLOT}.png
|
||||
|
||||
if use examples; then
|
||||
docinto demo
|
||||
dodoc -r "${DOC_S}"/demo/.
|
||||
docinto samples
|
||||
dodoc -r "${DOC_S}"/samples/.
|
||||
|
||||
[[ -e ${docdir}/samples/embedded/embedded ]] \
|
||||
&& rm -f "${docdir}"/samples/embedded/embedded
|
||||
|
||||
docompress -x /usr/share/doc/${PF}/{demo,samples}
|
||||
fi
|
||||
distutils-r1_python_install_all
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
fdo-mime_desktop_database_update
|
||||
|
||||
create_symlinks() {
|
||||
alternatives_auto_makesym "$(python_get_sitedir)/wx.pth" "$(python_get_sitedir)/wx.pth-[0-9].[0-9]"
|
||||
alternatives_auto_makesym "$(python_get_sitedir)/wxversion.py" "$(python_get_sitedir)/wxversion.py-[0-9].[0-9]"
|
||||
}
|
||||
python_foreach_impl create_symlinks
|
||||
|
||||
echo
|
||||
elog "Gentoo uses the Multi-version method for SLOT'ing."
|
||||
elog "Developers, see this site for instructions on using"
|
||||
elog "it with your apps:"
|
||||
elog "http://wiki.wxpython.org/index.cgi/MultiVersionInstalls"
|
||||
if use examples; then
|
||||
echo
|
||||
elog "The demo.py app which contains demo modules with"
|
||||
elog "documentation and source code has been installed at"
|
||||
elog "/usr/share/doc/${PF}/demo/demo.py"
|
||||
echo
|
||||
elog "More example apps and modules can be found in"
|
||||
elog "/usr/share/doc/${PF}/samples/"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
fdo-mime_desktop_database_update
|
||||
|
||||
update_symlinks() {
|
||||
alternatives_auto_makesym "$(python_get_sitedir)/wx.pth" "$(python_get_sitedir)/wx.pth-[0-9].[0-9]"
|
||||
alternatives_auto_makesym "$(python_get_sitedir)/wxversion.py" "$(python_get_sitedir)/wxversion.py-[0-9].[0-9]"
|
||||
}
|
||||
python_foreach_impl update_symlinks
|
||||
}
|
@ -1,4 +1,16 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
DIST rb-readline-0.5.1.gem 96256 SHA256 da4eb0aa71c4225e01f5b51e11a640b462fa325d85451428ce34190d04622aad SHA512 e74c7b6bff49ad5949f596cf8ce7db9204e3e7586093bd843d5e567598f78ddb46fd9aeaebe851e7086a15e2a8eb6c722ca6f7a3802accc7bbacc90a42b79236 WHIRLPOOL 664dc195eac86fe46d62aadeb458644d9a66225c8b8a64e57c30d72765bd18b3092a67795829ccaea624842e647d99a4ef9065dc51b809002d458a53d0f59ecd
|
||||
DIST rb-readline-0.5.2.gem 96256 SHA256 2b2417d94b75bb868d112cbdaa89986d01ba5af37587bfbbac3ff4d852c034f3 SHA512 7b4d314484fe8a66aecae4f997876189c57f05afdd6d1053cabfb6f41ebd38d347db24b648bfe468a5ad58c7a12ab59791553f3091ce17d9c89694690c7e7ff0 WHIRLPOOL d148b3cb227f96a206197a2ef4a36f3924926cbd9daa71441bb92094cb07a0918d9e464f0409ae52a512eae79fff5e6dd5a56c78302abfb86f549b4d3104c648
|
||||
EBUILD rb-readline-0.5.1.ebuild 526 SHA256 69165bb31b9651ae7666b4d221f82feb14fbeb5f6b2d976cdca59df7718d8d0e SHA512 87db979fb037f144510a5c099b94810331d3ff1ef5db11f82c3dc65d350dd4febac51a66a54e7cb4e8a1a844e98ba280203e8066913d96ac0cb9c248adffdc0c WHIRLPOOL 877ed6f23bd0ec896623b44fd6e7c04a3c179d77c3120206fdf10dc06cafccf35dec46389a3c8684e70adbaa83d2d19970229e8c49d8ba228f199e70bcf9acf1
|
||||
MISC ChangeLog 510 SHA256 b4d80b0d0417d6340b983ff539c7d7a99de7ec4badcfec62c9a4f59649e0d412 SHA512 11314f9bc8f754391c10ed533f6853f092fbe8805dc95350e500e8b6537d2b880773732e5476409f019aa4bcf86ab5229c3af02ac77e779084be31f5d7f9f090 WHIRLPOOL fe45adce354b0d48023cc0844b8df951fb77c4d9f4dc69b9f53653383a675c481eaf5ef13c6790bff82a77768a4f297da8aa264b2b0dd6b5136217586e82d7ca
|
||||
EBUILD rb-readline-0.5.2.ebuild 696 SHA256 23f637b2ad9dd3550f0e3cac09a2d535dd46d3eb7e96dc3a1c4d981aa64424b8 SHA512 96b29f2706b9db008a2c40db9d367eb2d8ea868e8ee7b3586e3d60bac127e7912f2fd9df34bc9a1a36a1f44c6cad1fb3425daedd0852af63f4d082ad4f0d1dce WHIRLPOOL 26d14c7909005d0e939b349be9398171c51a859530035c25d5a116e179f3d627232ac2ceba6d4006e2d1d7e3dd3f47a3f33680b65e7a3432fa1e814c2c00ced4
|
||||
MISC ChangeLog 662 SHA256 d696aea925bc676a5791ba7e1a9a920f4675016ffa166dad9e9c92950f2c4728 SHA512 f1be573324c35a7451fdb6fbc9e939e5837661f6dbf123ac8e05246bdb7b4b69d2d8c20f38e20e7e715cd2ba0f30ee0f22ba67dd81cc7aadd234dcc30b5d42a1 WHIRLPOOL 6a8c0cfb9e1f9a64c8a2fccada42d87262f4c824c2f75ff691a3735fe4916bd82a6bb97e0457f5ae8276c6cf79443f4a5c950581327f91072b70583fc83681b2
|
||||
MISC metadata.xml 292 SHA256 cb7bc08e56161cfd708e9e743a5792b5d7793847c2e8b94506cc372281fd6dc6 SHA512 b1f870f4f237affb1473f6d4bfcb870143365e564d8be3ed8ca39a72cc16896f545ef7b97e606b2a39e0fc4161e5ff4512cc0c27186cc12e017d65aebf3edb3c WHIRLPOOL 2d526ce30fb6f82eff831ae6effcec383371d14c57be74b529577123475864e370e7d4b0541c4e88dfc5a2a4cdac58fee3fe8d947b564da84925d12a265ca318
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2
|
||||
|
||||
iF0EAREIAAYFAlSk/OkACgkQiIP6VqMIqNf87gD2O5f0UgA6Xmv1AB0s8OxgAxiF
|
||||
BCH4tT/4b4mJvdQIDgD+NnQ2pYgqzt2jooA7mVTke/QhMGISDsIeRJO4oF83jKU=
|
||||
=O3vL
|
||||
-----END PGP SIGNATURE-----
|
||||
|
@ -0,0 +1,22 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rb-readline/rb-readline-0.5.2.ebuild,v 1.1 2015/01/01 07:53:09 graaff Exp $
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby19 ruby20 ruby21 ruby22"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_DOC="rdoc"
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="Ruby implementation of the GNU readline C library"
|
||||
HOMEPAGE="http://rubygems.org/gems/rb-readline"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE=""
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Skip a test that fails when run in the ebuild environment.
|
||||
sed -i -e '/test_readline_with_default_parameters_does_not_error/,/end/ s:^:#:' test/test_readline.rb || die
|
||||
}
|
@ -1,6 +1,9 @@
|
||||
AUX bub-n-bros-1.6-home.patch 2035 RMD160 6ba15ad4bbd1f2463abfe7962e75690646808c53 SHA1 f790c118adb5d1396c3e880b5dca83253619f7c5 SHA256 13bfced9b7b4bbb543ba32fa209bcf7d313a2f6c0dda979d71dba83dd717ff95
|
||||
AUX bub-n-bros-1.6-python25.patch 1066 RMD160 98c6363fc76009fb19e2a5459ab06540cbf3f7db SHA1 fc81e2c34cd0f3be921559a7f99abd350f9ffc12 SHA256 57534f2e7b94fe48d4c6da20dd16257136832171adae6f959492d3c3363821d4
|
||||
DIST bubbros-1.6.tar.bz2 9052959 RMD160 f4da90058650f07f4c50d33dd9b42be336c660df SHA1 17cd2811e11effde3ee41289725ea8fae86b70cd SHA256 dd197e60a23e09800010f3a5906feb77847e6eeaa7cfd47d803a85daa0bcf255
|
||||
EBUILD bub-n-bros-1.6.ebuild 1549 RMD160 07d7f65d718e67faf1a02a293044e56347e13683 SHA1 a167f0a9a5453539a38a299b2c1567ed5b06790a SHA256 3e65f8af5909346ce5b085b69c435a51effc6d5418f31b61202be9cc049021b2
|
||||
MISC ChangeLog 2428 RMD160 985de41b8ae5b9a58229566cd02283916dd0ff04 SHA1 e005fa275e73329c94017726d16f61daa13a7395 SHA256 7e3c1e3fcb3b24a1725c45787d4cbe82c10e77ee23153b302e97e50baa930b50
|
||||
MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3
|
||||
AUX bub-n-bros-1.6-home.patch 2035 SHA256 13bfced9b7b4bbb543ba32fa209bcf7d313a2f6c0dda979d71dba83dd717ff95 SHA512 77362d4b1daa02f59daa34bc31f6a68506a14eaa4633d04ee3f21f9c8244089e35568bff001a997659de07a4640af84d2ed14807242561e876634d7192f8ab34 WHIRLPOOL 4386739ee5bb2ae406daec9981da4ef3e56ecd9ee04ea30807b37cb796874827826031b50c2e38fbb37d3ddf3585575c8f9da104ccd099f8091ca023e090dc8d
|
||||
AUX bub-n-bros-1.6-python25.patch 1066 SHA256 57534f2e7b94fe48d4c6da20dd16257136832171adae6f959492d3c3363821d4 SHA512 d2c19560cf5bcbebcbcadc151c206b1eecc4e2dbe2754e92f014feeedb1301a58a6fff466e9c738babc3d0fbc5d535925bd8edae3e105c1de68041f9a43d73e8 WHIRLPOOL 191b6aef50b99a3af692527edad04cadc754902e00b8f5514b4552bae6fd6440b182d7163914f421f1dd9410ae285adca61c9e2951d2f3743898baf2e5e14558
|
||||
AUX bub-n-bros-1.6.2-home.patch 2035 SHA256 13bfced9b7b4bbb543ba32fa209bcf7d313a2f6c0dda979d71dba83dd717ff95 SHA512 77362d4b1daa02f59daa34bc31f6a68506a14eaa4633d04ee3f21f9c8244089e35568bff001a997659de07a4640af84d2ed14807242561e876634d7192f8ab34 WHIRLPOOL 4386739ee5bb2ae406daec9981da4ef3e56ecd9ee04ea30807b37cb796874827826031b50c2e38fbb37d3ddf3585575c8f9da104ccd099f8091ca023e090dc8d
|
||||
DIST bubbros-1.6.2.tar.gz 11568771 SHA256 0ad8a359c4632071a9c85c2684bae32aa0fa278632c49f092dc4078cfb9858c4 SHA512 a05fca8e31655e4bade60cd085f29796d789b349f005c715bf0e37e51f0bacb9d8b9650f3b10470917ee25421d32443e01132816a2f508e359302aa2c6d18ddb WHIRLPOOL 6ed0f68cab694399aef4c75ab0633c9c355cbc5328c72fffacd20612c6cf0cc67b06db65dc808307bd036caba19f1d7e35fedd6c756104e9c1c5ce1054b8a43f
|
||||
DIST bubbros-1.6.tar.bz2 9052959 SHA256 dd197e60a23e09800010f3a5906feb77847e6eeaa7cfd47d803a85daa0bcf255 SHA512 6f798363d0b4e6cb8f15b2d3e09f30ed34e9a5066a7dc1b96dfc4f413f07f2d042cdc8c6bd8a721df1bc1f677c11790461047fbf8ddd63d889c8c71f61b0711e WHIRLPOOL a0ca4fdddbbdbab80ac63bf8d92e2396350e59b507a2dd78a797c2c732e6bddc9a911e96a307a6698c45ce01254f136be77ddfc92cb165662dd5fb7d5b02f47c
|
||||
EBUILD bub-n-bros-1.6.2.ebuild 1594 SHA256 6cf8f57c07cb2bf23b2d9bc809925a648d514a745caa1a070b19dd278bc3519a SHA512 500888fed12769b0a86ae5a0bcdf1c06ca3a2b69bcba79ad2a4dde3d90fad82b3994d2e231e56606b793de07fbde0212aad02e17764950a0ec985080ae2fc0d7 WHIRLPOOL 9716dfd1621df40adb67f0187ddf277c74e6744b17a9a9644023e9962b07be84100ea31e9ae5c197bb0c647e3b02380b26cf5de3fbbb34e7ff147967014cd324
|
||||
EBUILD bub-n-bros-1.6.ebuild 1549 SHA256 3e65f8af5909346ce5b085b69c435a51effc6d5418f31b61202be9cc049021b2 SHA512 7826be3052e760d361133061319f01df9c4a30d7c876dc818611f05fdb08098854025cc3606dfb65dffb373a8662d5099383a67761177076191b07ba3c7275e4 WHIRLPOOL 8dcfcfaeaf7e3262e518cddaae1b6c299e6c42753c84c645cd79a5f1aa450f323901fc3c9d14fa1cce85971d7ff45a135e76184dacb916df8612df2a320f17a3
|
||||
MISC ChangeLog 2599 SHA256 e919c9873485bafe8481405b3b47e4df3828d6ec805aa1a2cd20382be1b47611 SHA512 67890a3fde6f1f24446916a7a8101e8388da23af305422a0cff2ffb3173c610b8c94f3ab6106e18e90175dbffc05d2e0089b9422c2d975de2b0019ae6b522794 WHIRLPOOL d7548e958767733137e598b83e4c0b7d2f7a38325c2ac1130f39eb9d9671ece529a17358d24602da0304c4d8c191126325837cd5a789ca29feca23030294a585
|
||||
MISC metadata.xml 158 SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 SHA512 d954564236b67b6ab97846b73f74e715e8f1bec2dba6595e9a5046c2e8c3b93f4879c293f9d1d02d99a533bee56156dae3f31a485697128c51af14cdbfdada8a WHIRLPOOL d03e7293d09d794d61c095a423f945b3644355a247f270a73ca8d30b4dfe9c98244297536bfd1a4bd6c14794aa1152eca20fd83bfdf3e1e74d4f676152d35ada
|
||||
|
@ -0,0 +1,69 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/games-arcade/bub-n-bros/bub-n-bros-1.6.2.ebuild,v 1.1 2015/01/01 06:01:49 mr_bones_ Exp $
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
inherit eutils python-single-r1 games
|
||||
|
||||
MY_P=${P/-n-}
|
||||
DESCRIPTION="A multiplayer clone of the famous Bubble Bobble game"
|
||||
HOMEPAGE="http://bub-n-bros.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="MIT Artistic-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86 ~x86-fbsd"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-python/pygame[${PYTHON_USEDEP}]
|
||||
${PYTHON_DEPS}"
|
||||
RDEPEND=${DEPEND}
|
||||
REQUIRED_USE=${PYTHON_REQUIRED_USE}
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
games_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
ecvs_clean
|
||||
epatch "${FILESDIR}"/${P}-home.patch
|
||||
python_fix_shebang .
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Compile the "statesaver" extension module to enable the Clock bonus
|
||||
cd "${S}"/bubbob
|
||||
${EPYTHON} setup.py build_ext -i || die
|
||||
|
||||
# Compile the extension module required for the X Window client
|
||||
cd "${S}"/display
|
||||
${EPYTHON} setup.py build_ext -i || die
|
||||
|
||||
# Build images
|
||||
cd "${S}"/bubbob/images
|
||||
${EPYTHON} buildcolors.py || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local dir=$(games_get_libdir)/${PN}
|
||||
|
||||
exeinto "${dir}"
|
||||
doexe *.py
|
||||
|
||||
insinto "${dir}"
|
||||
doins -r bubbob common display java http2 metaserver
|
||||
|
||||
dodir "${GAMES_BINDIR}"
|
||||
dosym "${dir}"/BubBob.py "${GAMES_BINDIR}"/bubnbros
|
||||
|
||||
python_optimize "${D}${dir}"
|
||||
|
||||
newicon http2/data/bob.png ${PN}.png
|
||||
make_desktop_entry bubnbros Bub-n-Bros
|
||||
|
||||
prepgamesdirs
|
||||
}
|
@ -0,0 +1,51 @@
|
||||
--- bubbob/images.py 2007-09-08 17:03:41.000000000 +0200
|
||||
+++ bubbob/images.py 2007-09-08 17:57:45.000000000 +0200
|
||||
@@ -454,7 +454,6 @@
|
||||
# check and maybe regenerate the colored image files
|
||||
file = os.path.join('images', 'buildcolors.py')
|
||||
g = {'__name__': '__auto__', '__file__': file}
|
||||
- execfile(file, g)
|
||||
# replace the entries 'filename_%d.ppm' by a family of entries,
|
||||
# one for each color
|
||||
sprmap = {}
|
||||
--- display/pclient.py 2007-09-08 17:03:41.000000000 +0200
|
||||
+++ display/pclient.py 2007-09-08 17:57:45.000000000 +0200
|
||||
@@ -162,8 +162,8 @@
|
||||
if mode[-1].has_key('cfgfile'):
|
||||
self.trackcfgfile = mode[-1]['cfgfile']
|
||||
else:
|
||||
- self.trackcfgfile = os.path.join(DataChunk.SOURCEDIR,
|
||||
- 'http2', 'config.txt')
|
||||
+ self.trackcfgfile = os.path.join(os.environ.get('HOME'),
|
||||
+ '.bubnbros')
|
||||
self.udpsock = None
|
||||
self.udpsock_low = None
|
||||
self.udpsock2 = None
|
||||
--- http2/httppages.py 2007-09-08 17:03:41.000000000 +0200
|
||||
+++ http2/httppages.py 2007-09-08 17:57:45.000000000 +0200
|
||||
@@ -38,7 +38,7 @@
|
||||
|
||||
|
||||
class PageServer:
|
||||
- CONFIGFILE = 'config.txt'
|
||||
+ CONFIGFILE = '.bubnbros'
|
||||
localservers = None
|
||||
|
||||
def __init__(self, Game):
|
||||
@@ -46,7 +46,7 @@
|
||||
self.seed = hex(random.randrange(0x1000, 0x10000))
|
||||
#self.unique_actions = {}
|
||||
self.localhost = gamesrv.HOSTNAME
|
||||
- self.filename = os.path.join(LOCALDIR, self.CONFIGFILE)
|
||||
+ self.filename = os.path.join(os.environ.get('HOME'), self.CONFIGFILE)
|
||||
data = self.loadoptionfile()
|
||||
self.globaloptions = Options(data.get('*', {}))
|
||||
self.localoptions = Options(data.get(self.localhost, {}))
|
||||
@@ -333,7 +333,6 @@
|
||||
'buildcolors.py')
|
||||
if os.path.exists(file):
|
||||
g = {'__name__': '__auto__', '__file__': file}
|
||||
- execfile(file, g)
|
||||
|
||||
if port:
|
||||
address = '%s:%s' % (host, port)
|
@ -0,0 +1,12 @@
|
||||
diff -ru rocksndiamonds-3.3.1.2.orig/src/Makefile rocksndiamonds-3.3.1.2/src/Makefile
|
||||
--- rocksndiamonds-3.3.1.2.orig/src/Makefile 2013-11-24 08:05:56.000000000 -0500
|
||||
+++ rocksndiamonds-3.3.1.2/src/Makefile 2014-12-31 15:47:37.539941795 -0500
|
||||
@@ -255,7 +255,7 @@
|
||||
# build targets
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
-all: $(AUTOCONF) libgame_dir game_em_dir game_sp_dir $(PROGNAME)
|
||||
+all: $(PROGNAME)
|
||||
|
||||
$(PROGNAME): $(RNDLIBS) $(TIMESTAMP_FILE) $(OBJS) $(ICON)
|
||||
$(CC) $(PROFILING) $(OBJS) $(ICON) $(RNDLIBS) $(LDFLAGS) -o $(PROGNAME)
|
@ -0,0 +1,29 @@
|
||||
diff -up rocksndiamonds-3.3.0.1/src/libgame/setup.c.CVE-2011-4606 rocksndiamonds-3.3.0.1/src/libgame/setup.c
|
||||
--- rocksndiamonds-3.3.0.1/src/libgame/setup.c.CVE-2011-4606 2011-12-12 14:28:30.083078680 -0500
|
||||
+++ rocksndiamonds-3.3.0.1/src/libgame/setup.c 2011-12-12 14:34:36.758744753 -0500
|
||||
@@ -1293,11 +1293,14 @@ void sortTreeInfo(TreeInfo **node_first)
|
||||
#define MODE_W_ALL (S_IWUSR | S_IWGRP | S_IWOTH)
|
||||
#define MODE_X_ALL (S_IXUSR | S_IXGRP | S_IXOTH)
|
||||
|
||||
+#define MODE_R_PRIVATE (S_IRUSR)
|
||||
#define MODE_W_PRIVATE (S_IWUSR)
|
||||
+#define MODE_X_PRIVATE (S_IXUSR)
|
||||
+
|
||||
#define MODE_W_PUBLIC (S_IWUSR | S_IWGRP)
|
||||
#define MODE_W_PUBLIC_DIR (S_IWUSR | S_IWGRP | S_ISGID)
|
||||
|
||||
-#define DIR_PERMS_PRIVATE (MODE_R_ALL | MODE_X_ALL | MODE_W_PRIVATE)
|
||||
+#define DIR_PERMS_PRIVATE (MODE_R_PRIVATE | MODE_X_PRIVATE | MODE_W_PRIVATE)
|
||||
#define DIR_PERMS_PUBLIC (MODE_R_ALL | MODE_X_ALL | MODE_W_PUBLIC_DIR)
|
||||
|
||||
#define FILE_PERMS_PRIVATE (MODE_R_ALL | MODE_W_PRIVATE)
|
||||
@@ -1456,7 +1459,8 @@ void createDirectory(char *dir, char *te
|
||||
if (running_setgid)
|
||||
posix_umask(last_umask & group_umask);
|
||||
else
|
||||
- dir_mode |= MODE_W_ALL;
|
||||
+ if (permission_class == PERMS_PUBLIC)
|
||||
+ dir_mode |= MODE_W_ALL;
|
||||
|
||||
if (!fileExists(dir))
|
||||
if (posix_mkdir(dir, dir_mode) != 0)
|
@ -0,0 +1,110 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/games-arcade/rocksndiamonds/rocksndiamonds-3.3.1.2.ebuild,v 1.1 2014/12/31 21:19:46 mr_bones_ Exp $
|
||||
|
||||
EAPI=5
|
||||
inherit flag-o-matic eutils games
|
||||
|
||||
DESCRIPTION="A Boulderdash clone"
|
||||
HOMEPAGE="http://www.artsoft.org/rocksndiamonds/"
|
||||
SRC_URI="http://www.artsoft.org/RELEASES/unix/rocksndiamonds/${P}.tar.gz
|
||||
http://www.artsoft.org/RELEASES/rocksndiamonds/levels/Contributions-1.2.0.zip
|
||||
http://www.artsoft.org/RELEASES/rocksndiamonds/levels/BD2K3-1.0.0.zip
|
||||
http://www.artsoft.org/RELEASES/rocksndiamonds/levels/Boulder_Dash_Dream-1.0.0.zip
|
||||
http://www.artsoft.org/RELEASES/rocksndiamonds/levels/rnd-contrib-1.0.0.tar.gz
|
||||
http://www.artsoft.org/RELEASES/rocksndiamonds/levels/Snake_Bite-1.0.0.zip
|
||||
http://www.artsoft.org/RELEASES/rocksndiamonds/levels/Sokoban-1.0.0.zip
|
||||
http://www.artsoft.org/RELEASES/unix/rocksndiamonds/levels/rockslevels-emc-1.0.tar.gz
|
||||
http://www.artsoft.org/RELEASES/unix/rocksndiamonds/levels/rockslevels-sp-1.0.tar.gz
|
||||
http://www.artsoft.org/RELEASES/unix/rocksndiamonds/levels/rockslevels-dx-1.0.tar.gz
|
||||
mirror://gentoo/rnd_jue-v8.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE="X sdl"
|
||||
|
||||
RDEPEND="X? ( x11-libs/libX11 )
|
||||
!sdl? ( x11-libs/libX11 )
|
||||
sdl? (
|
||||
>=media-libs/libsdl-1.2.3[joystick,video]
|
||||
>=media-libs/sdl-mixer-1.2.4[mod,mp3,timidity]
|
||||
media-libs/sdl-net
|
||||
>=media-libs/sdl-image-1.2.2[gif]
|
||||
media-libs/smpeg
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/unzip
|
||||
X? ( x11-libs/libXt )
|
||||
!sdl? ( x11-libs/libXt )"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${P}.tar.gz
|
||||
cd "${S}"
|
||||
unpack \
|
||||
rockslevels-emc-1.0.tar.gz \
|
||||
rockslevels-sp-1.0.tar.gz \
|
||||
rockslevels-dx-1.0.tar.gz
|
||||
cd levels
|
||||
unpack \
|
||||
rnd_jue-v8.tar.bz2 \
|
||||
BD2K3-1.0.0.zip \
|
||||
rnd-contrib-1.0.0.tar.gz \
|
||||
Snake_Bite-1.0.0.zip \
|
||||
Contributions-1.2.0.zip \
|
||||
Boulder_Dash_Dream-1.0.0.zip \
|
||||
Sokoban-1.0.0.zip
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# make it parallel-friendly.
|
||||
epatch \
|
||||
"${FILESDIR}"/${P}-parallel-build.patch \
|
||||
"${FILESDIR}"/${P}-perms.patch
|
||||
sed -i \
|
||||
-e 's:\$(MAKE_CMD):$(MAKE) -C $(SRC_DIR):' \
|
||||
-e '/^MAKE/d' \
|
||||
-e '/^CC/d' \
|
||||
Makefile || die
|
||||
|
||||
sed -i \
|
||||
-e '/^LDFLAGS/s/=/+=/' \
|
||||
src/Makefile || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
replace-cpu-flags k6 k6-1 k6-2 i586
|
||||
|
||||
local makeopts="RO_GAME_DIR=${GAMES_DATADIR}/${PN} RW_GAME_DIR=${GAMES_STATEDIR}/${PN}"
|
||||
if use X || { ! use X && ! use sdl; } ; then
|
||||
emake -j1 clean
|
||||
emake ${makeopts} OPTIONS="${CFLAGS}" x11
|
||||
mv rocksndiamonds{,.x11}
|
||||
fi
|
||||
if use sdl ; then
|
||||
emake -j1 clean
|
||||
emake ${makeopts} OPTIONS="${CFLAGS}" sdl
|
||||
mv rocksndiamonds{,.sdl}
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if use X || { ! use X && ! use sdl; } ; then
|
||||
dogamesbin rocksndiamonds.x11
|
||||
fi
|
||||
if use sdl ; then
|
||||
dogamesbin rocksndiamonds.sdl
|
||||
dosym rocksndiamonds.sdl "${GAMES_BINDIR}/rocksndiamonds"
|
||||
else
|
||||
dosym rocksndiamonds.x11 "${GAMES_BINDIR}/rocksndiamonds"
|
||||
fi
|
||||
insinto "${GAMES_DATADIR}/${PN}"
|
||||
doins -r docs graphics levels music sounds
|
||||
|
||||
newman rocksndiamonds.{1,6}
|
||||
dodoc CREDITS ChangeLog README
|
||||
newicon graphics/gfx_classic/rocks_icon_32x32.pcx ${PN}.pcx
|
||||
make_desktop_entry rocksndiamonds "Rocks 'N' Diamonds" /usr/share/pixmaps/${PN}.pcx
|
||||
|
||||
prepgamesdirs
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue