Sync with portage [Wed Oct 19 16:02:14 MSK 2016].

mhiretskiy 591
root 8 years ago
parent 58a108f79e
commit 6d8bd163f8

@ -1,2 +1,3 @@
DIST bonnie++-1.96.tgz 105183 SHA256 9c9d87bf09ac5a42a915ceeb9d8bb8358c0ca4642d86b85ed48ca5f15ee3456c SHA512 d389545be68eb236382ac1cc361d171e28b6204c9ea2427a6d4743086fb16a3a1ee78acc35fd0706237d8d90dd8403872ed743583496b1e2512fa57242ff0bb8 WHIRLPOOL 57b04f3cac809bd66e32c895c857bfce969ae16a207eecef743b5c522b6d7496bf518d352a673011fba3e9073f541a274cbc9a4ae5ddd88b37cb386ea2b2e5d4
DIST bonnie++-1.97.2.tgz 102533 SHA256 3f34a4c52ae9b2c3d493af8f794ba18cbf6732e9b76c3a4fa64549d95d914ce3 SHA512 e8303720be9a4ebcc454dbc8906a6843d63909c5101d66524a126ce0db3db7113d01edb7ed2f292bf9d08a6799579c4960f0ee4595019fbacda1601eba52a170 WHIRLPOOL 1f66eef8a583ce9cb851a6c301019ba76d104bf3a6322d504cd7c8d1eb073c48235efcff6fec2b2f49207aa696db1071c55c94a3943a01917b2a7aa7349b0b73
DIST bonnie++-1.97.tgz 102604 SHA256 44f5a05937648a6526ba99354555d7d15f2dd392e55d3436f6746da6f6c35982 SHA512 985fd4d0ef643fda5363e61609a5d73206ecfdd1c27470cc7babeaf9b7d87136c6bf40f62366d3f3ea58c50a307fa62aea59dc5efa69854fff9c43d1c940d3ab WHIRLPOOL 23af9926691868a208fd69f7ec401fa0c2332835ccc63e4b0143497faabb02f21ddd56a41014b532287f4418e0ac92c712aff2bc0657ad2512961fa5aa3567b9

@ -0,0 +1,39 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="6"
DESCRIPTION="Hard drive bottleneck testing benchmark suite"
HOMEPAGE="http://www.coker.com.au/bonnie++/"
SRC_URI="http://www.coker.com.au/bonnie++/experimental/${P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
IUSE="debug"
S="${WORKDIR}/${P}"
PATCHES=(
"${FILESDIR}/${PN}-1.96-compile-flags.patch" #426788
"${FILESDIR}"/${PN}-1.97-zcav-array-indexing-fix.patch #309319
)
DOCS=( README.txt README-2.00 debian/changelog credits.txt )
HTML_DOCS=( readme.html )
src_configure() {
econf \
$(usex debug "--enable-debug" "") \
--disable-stripping
}
src_install() {
dobin bonnie++ zcav bon_csv2html bon_csv2txt
sed -i -e \
"s:/usr/share/doc/bonnie++:${EPREFIX}/usr/share/doc/${PF}/html:g" \
bonnie++.8 || die #431684
doman bon_csv2html.1 bon_csv2txt.1 bonnie++.8 zcav.8
einstalldocs
}

@ -1,4 +1,3 @@
DIST gpgme-1.5.5.tar.bz2 976383 SHA256 0b3d3d5107680c594777aae65882a1ff6dd1ba629a83432e719c8b82a743c207 SHA512 a01b84c1ae2a7c647b2de793fc05d39c4bf4a2d1b7378934e437857823f11ca9e9c1f3b32302d69a3a84d0be1fee1e1c86874355031b8fa6b40f4ad56ecc72ad WHIRLPOOL f3ad4282a254cf1ab8d01184df787a773fa7963a42157da93bee11430263fa86166f12f051e2b11d13be99ce1f0939d565cb02a8fba93ab6afed73ca7b2c0041
DIST gpgme-1.6.0.tar.bz2 983573 SHA256 b09de4197ac280b102080e09eaec6211d081efff1963bf7821cf8f4f9916099d SHA512 b7ccccc2bac246b0759c8752cadd3e77f03da39711badfc66d0f21cefab3f3b07fe1038611ad9ca1c16a8a48d7e831dcca68d83d052456a4cf794a73e287d41b WHIRLPOOL 4e753156474097dba9db2905954d1754ca408066996a01cbc7266a24654eb7c2323043f40495cc3c227d8eef540eeca47de4c23bb329a2d34604d5a4d3828970
DIST gpgme-1.7.0-build-32bit.patch 31933 SHA256 933eb074334b3f241290e2ff11b16165a028062b543395de4592a4678656153c SHA512 04be159ea211ed3bc921a65fb7a489e22c98c8e03dfe2457c38045bf8be335db8d2d56ab16de4bab49f62af40cd19dfd53bfb373a77db10853d011ec583c1dde WHIRLPOOL c69c7b0e8cfea89ff6490857790dec6cda06cc43d0d6ff6546c29c99c9bef3b7c4a377daf2949d9669169a35570dc9a859e9ab604c02c89c9e9768bd5347fe4c
DIST gpgme-1.7.0.tar.bz2 1281708 SHA256 71f55fed0f2b3eaf7a606e59772aa645ce3ffff322d361ce359951b3f755cc48 SHA512 8c5891104bd531d555fc4c22086cfdea9f18be6885200f02e087d695d0518e311527a227f2c41e0dc1156cc0985265d0bee6c4504de7e2d2de0bc543a1036b5a WHIRLPOOL aaf60c5a30f9161bf8edb24e583e6a83e4a6e28abe7d9878d1d36b5ab34507ff2a47695dc4856c4fdad59463a5d56de1d8d35dee3315dfa54758c8445d9f706e
DIST gpgme-1.7.1.tar.bz2 1285809 SHA256 d0abe1449395315eac37e4e45076bbb82732cedf94210937b37776e10cdc2bb6 SHA512 b8c2e2aa1f413748dc8b0f9f63ef5d1ddbb00dfd82f63a28b7162cf5d8af2a33f7ba29a309da5244ad6e23a561b99716d47d02956d03ece16d06af6ff77f200c WHIRLPOOL a7eea63ba23bf034c18565c171353ed01464f814d6d8cddb4047df402a2bd4830dd719cd4f7feb41038dd8871f3064d5b7e4ffaa6e5a9bf204d42618eb7b0788

@ -1,115 +0,0 @@
From e5bccea346379a70fd9cb910c4ead9642227747f Mon Sep 17 00:00:00 2001
From: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Sat, 24 Sep 2016 01:26:19 +0300
Subject: [PATCH] build: lang: python: cleanups
1. Make setup.py executable when generated.
2. Add prepare target to enable prepare the source tree without building
anything. This is handy to enable standard distutils build outside of
gpgme build system.
3. Treat data.h in similar manner as other VPATH issues, just symlink it
to the srcdir to simplify build, remove the CFLAGS requirement of
distutils.
The above does not alter the behavior of current build but supports the
following sequence:
$ mkdir build
$ cd build
$ ../configure --enable-languages=
$ make
$ cd lang/python
$ make prepare
$ ./setup.py build
$ ./setup.py install
Notice the standard use of distutils which is required for package
manager to control the python selection and build process.
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
---
configure.ac | 2 +-
lang/python/Makefile.am | 16 ++++++++++------
lang/python/gpgme.i | 2 +-
3 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/configure.ac b/configure.ac
index 4a29f2f..efa1f19 100644
--- a/configure.ac
+++ b/configure.ac
@@ -886,9 +886,9 @@ AC_CONFIG_FILES([lang/Makefile lang/cl/Makefile lang/cl/gpgme.asd])
AM_COND_IF([HAVE_DOXYGEN], [AC_CONFIG_FILES([lang/qt/doc/Doxyfile])])
AC_CONFIG_FILES(lang/qt/doc/Makefile)
AC_CONFIG_FILES([lang/python/Makefile
- lang/python/setup.py
lang/python/pyme/version.py
lang/python/tests/Makefile])
+AC_CONFIG_FILES([lang/python/setup.py], [chmod a+x lang/python/setup.py])
AC_OUTPUT
echo "
diff --git a/lang/python/Makefile.am b/lang/python/Makefile.am
index 2271ce0..9866f53 100644
--- a/lang/python/Makefile.am
+++ b/lang/python/Makefile.am
@@ -46,24 +46,28 @@ COPY_FILES_PYME = \
# For VPATH builds we need to copy some files because Python's
# distutils are not VPATH-aware.
-copystamp: $(COPY_FILES) $(COPY_FILES_PYME)
+copystamp: $(COPY_FILES) $(COPY_FILES_PYME) data.h
if test "$(srcdir)" != "$(builddir)" ; then \
cp -R $(COPY_FILES) . ; \
cp -R $(COPY_FILES_PYME) pyme ; \
fi
touch $@
+data.h:
+ ln -s "$(top_srcdir)/src/data.h"
+
all-local: copystamp
for PYTHON in $(PYTHONS); do \
- CFLAGS="$(CFLAGS) -I$(top_srcdir)" \
- $$PYTHON setup.py build --verbose ; \
+ $$PYTHON setup.py build --verbose ; \
done
dist/pyme3-$(VERSION).tar.gz dist/pyme3-$(VERSION).tar.gz.asc: copystamp
- CFLAGS="$(CFLAGS) -I$(top_srcdir)" \
- $(PYTHON) setup.py sdist --verbose
+ $(PYTHON) setup.py sdist --verbose
gpg2 --detach-sign --armor dist/pyme3-$(VERSION).tar.gz
+.PHONY: prepare
+prepare: copystamp
+
.PHONY: sdist
sdist: dist/pyme3-$(VERSION).tar.gz dist/pyme3-$(VERSION).tar.gz.asc
@@ -72,7 +76,7 @@ upload: dist/pyme3-$(VERSION).tar.gz dist/pyme3-$(VERSION).tar.gz.asc
twine upload $^
CLEANFILES = gpgme.h errors.i gpgme_wrap.c pyme/gpgme.py \
- copystamp
+ data.h copystamp
# Remove the rest.
#
diff --git a/lang/python/gpgme.i b/lang/python/gpgme.i
index 84addae..ac666f4 100644
--- a/lang/python/gpgme.i
+++ b/lang/python/gpgme.i
@@ -183,7 +183,7 @@
representation of struct gpgme_data for an very efficient check if
the buffer has been modified. */
%{
-#include "src/data.h" /* For struct gpgme_data. */
+#include "data.h" /* For struct gpgme_data. */
%}
#endif
--
2.7.3

@ -1,40 +0,0 @@
From 516022b0cd1a43973a467bb5b7e6813b9444d608 Mon Sep 17 00:00:00 2001
From: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Fri, 23 Sep 2016 22:46:39 +0300
Subject: [PATCH] build: tests: remove non working
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
---
lang/qt/tests/Makefile.am | 2 +-
tests/gpg/Makefile.am | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lang/qt/tests/Makefile.am b/lang/qt/tests/Makefile.am
index a41dc8c..e05c8a3 100644
--- a/lang/qt/tests/Makefile.am
+++ b/lang/qt/tests/Makefile.am
@@ -25,7 +25,7 @@ TESTS_ENVIRONMENT = GNUPGHOME=$(abs_builddir)
EXTRA_DIST = initial.test
TESTS = initial.test t-keylist t-keylocate t-ownertrust t-tofuinfo \
- t-encrypt t-wkspublish
+ t-wkspublish
moc_files = t-keylist.moc t-keylocate.moc t-ownertrust.moc t-tofuinfo.moc \
t-encrypt.moc t-support.hmoc t-wkspublish.moc
diff --git a/tests/gpg/Makefile.am b/tests/gpg/Makefile.am
index 9877843..90a1dfd 100644
--- a/tests/gpg/Makefile.am
+++ b/tests/gpg/Makefile.am
@@ -36,7 +36,7 @@ endif
c_tests = \
t-encrypt t-encrypt-sym t-encrypt-sign t-sign t-signers \
- t-decrypt t-verify t-decrypt-verify t-sig-notation t-export \
+ t-decrypt t-verify t-decrypt-verify t-export \
t-import t-trustlist t-edit t-keylist t-keylist-sig t-wait \
t-encrypt-large t-file-name t-gpgconf t-encrypt-mixed $(tests_unix)
--
2.7.3

@ -1,82 +0,0 @@
From c2f352363615a4581e01999eb4230f4921cc6f9f Mon Sep 17 00:00:00 2001
From: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Fri, 23 Sep 2016 23:05:35 +0300
Subject: [PATCH] build: avoid build tests if not required
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
---
lang/qt/tests/Makefile.am | 2 +-
tests/Makefile.am | 2 +-
tests/gpg/Makefile.am | 2 +-
tests/gpgsm/Makefile.am | 2 +-
tests/opassuan/Makefile.am | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/lang/qt/tests/Makefile.am b/lang/qt/tests/Makefile.am
index 36ecfe4..63186e7 100644
--- a/lang/qt/tests/Makefile.am
+++ b/lang/qt/tests/Makefile.am
@@ -62,7 +62,7 @@ nodist_t_keylist_SOURCES = $(moc_files)
BUILT_SOURCES = $(moc_files)
-noinst_PROGRAMS = t-keylist t-keylocate t-ownertrust t-tofuinfo t-encrypt \
+check_PROGRAMS = t-keylist t-keylocate t-ownertrust t-tofuinfo t-encrypt \
run-keyformailboxjob t-wkspublish
CLEANFILES = secring.gpg pubring.gpg pubring.kbx trustdb.gpg dirmngr.conf \
diff --git a/tests/Makefile.am b/tests/Makefile.am
index c71914f..b698e11 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -31,7 +31,7 @@ LDADD = ../src/libgpgme.la @GPG_ERROR_LIBS@
noinst_HEADERS = run-support.h
-noinst_PROGRAMS = $(TESTS) run-keylist run-export run-import run-sign \
+check_PROGRAMS = $(TESTS) run-keylist run-export run-import run-sign \
run-verify run-encrypt run-identify run-decrypt run-genkey \
run-keysign run-tofu
diff --git a/tests/gpg/Makefile.am b/tests/gpg/Makefile.am
index 90a1dfd..671a2f3 100644
--- a/tests/gpg/Makefile.am
+++ b/tests/gpg/Makefile.am
@@ -64,7 +64,7 @@ LDADD = ../../src/libgpgme.la
t_thread1_LDADD = ../../src/libgpgme-pthread.la -lpthread
# We don't run t-genkey in the test suite, because it takes too long
-noinst_PROGRAMS = $(c_tests) t-genkey
+check_PROGRAMS = $(c_tests) t-genkey
clean-local:
-$(top_srcdir)/tests/start-stop-agent --stop
diff --git a/tests/gpgsm/Makefile.am b/tests/gpgsm/Makefile.am
index 41645b6..1bdb712 100644
--- a/tests/gpgsm/Makefile.am
+++ b/tests/gpgsm/Makefile.am
@@ -40,7 +40,7 @@ LDADD = ../../src/libgpgme.la
# We don't run t-genkey in the test suite, because it takes too long
# and needs a working pinentry.
-noinst_PROGRAMS = $(c_tests) t-genkey cms-keylist cms-decrypt
+check_PROGRAMS = $(c_tests) t-genkey cms-keylist cms-decrypt
key_id = 32100C27173EF6E9C4E9A25D3D69F86D37A4F939
diff --git a/tests/opassuan/Makefile.am b/tests/opassuan/Makefile.am
index 31d26ed..608b608 100644
--- a/tests/opassuan/Makefile.am
+++ b/tests/opassuan/Makefile.am
@@ -27,7 +27,7 @@ EXTRA_DIST =
AM_CPPFLAGS = -I$(top_builddir)/src @GPG_ERROR_CFLAGS@
LDADD = ../../src/libgpgme.la
-noinst_PROGRAMS = $(TESTS) t-command
+check_PROGRAMS = $(TESTS) t-command
DISTCLEANFILES =
--
2.7.3

@ -7,17 +7,16 @@ EAPI="6"
PYTHON_COMPAT=( python2_7 python3_{3,4} )
DISTUTILS_OPTIONAL=1
inherit autotools distutils-r1 eutils qmake-utils
inherit distutils-r1 eutils qmake-utils
DESCRIPTION="GnuPG Made Easy is a library for making GnuPG easier to use"
HOMEPAGE="http://www.gnupg.org/related_software/gpgme"
SRC_URI="mirror://gnupg/gpgme/${P}.tar.bz2
https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gpgme.git;a=patch;h=a142f187b7ddb2728ec3e1743da4a0c4538ab40a -> gpgme-1.7.0-build-32bit.patch"
SRC_URI="mirror://gnupg/gpgme/${P}.tar.bz2"
LICENSE="GPL-2 LGPL-2.1"
SLOT="1/11" # subslot = soname major version
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x64-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE="common-lisp static-libs cxx python qt5 test"
IUSE="common-lisp static-libs cxx python qt5"
RDEPEND="app-crypt/gnupg
>=dev-libs/libassuan-2.0.2
@ -31,17 +30,12 @@ RDEPEND="app-crypt/gnupg
#doc? ( app-doc/doxygen[dot] )
DEPEND="${RDEPEND}
python? ( dev-lang/swig )
qt5? (
test? ( dev-qt/qttest:5 )
)"
qt5? ( dev-qt/qttest:5 )"
REQUIRED_USE="qt5? ( cxx )"
PATCHES=(
"${FILESDIR}"/${PN}-1.1.8-et_EE.patch
"${FILESDIR}"/${P}-build-tests.patch
"${FILESDIR}"/${P}-build-tests-disable.patch
"${FILESDIR}"/${P}-build-python.patch
)
do_python() {
@ -53,12 +47,7 @@ do_python() {
}
src_prepare() {
sed -e '/a\/lang\/cpp\/src\/context_glib.cpp/,+30d' "${DISTDIR}/gpgme-1.7.0-build-32bit.patch" > "${T}/gpgme-1.7.0-build-32bit.patch"
PATCHES+=(
"${T}"/${P}-build-32bit.patch
)
default
eautoreconf
do_python
}
@ -69,12 +58,11 @@ src_configure() {
if use qt5; then
languages+=( "qt" )
#use doc ||
export DOXYGEN=
export DOXYGEN=true
export MOC="$(qt5_get_bindir)/moc"
fi
econf \
--includedir="${EPREFIX}/usr/include/gpgme" \
--enable-languages="${languages[*]}" \
$(use_enable static-libs static)
@ -92,4 +80,9 @@ src_install() {
default
do_python
prune_libtool_files
# backward compatibility for gentoo
# in the past we had slots
dodir /usr/include/gpgme
dosym ../gpgme.h /usr/include/gpgme/gpgme.h
}

@ -10,7 +10,7 @@ SRC_URI="mirror://sourceforge/arabeyes/${P}.tar.gz"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="alpha amd64 ~hppa ~ia64 ~mips ~ppc ~sparc ~x86"
KEYWORDS="alpha amd64 ~hppa ~ia64 ~mips ~ppc ~sparc x86"
IUSE=""
DEPEND=">=app-text/duali-0.2.0-r1"

@ -1,30 +0,0 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
IUSE=""
DESCRIPTION="Dictionary data for the Arab dictionary project duali"
HOMEPAGE="http://www.arabeyes.org/project.php?proj=Duali"
SRC_URI="mirror://sourceforge/arabeyes/${P}.tar.gz"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 amd64 ia64 ppc ~sparc alpha ~hppa ~mips"
DEPEND="app-text/duali"
src_compile() {
dict2db --path ./ || die
}
src_install() {
insinto /usr/share/duali
if [[ -e stems.db ]]; then
doins stems.db prefixes.db suffixes.db || die
else
doins stemsdb prefixesdb suffixesdb || die
fi
doins tableab tableac tablebc || die
dodoc README
}

@ -1,4 +1,4 @@
# Copyright 1999-2014 Gentoo Foundation
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@ -14,7 +14,7 @@ SRC_URI="http://pysmssend.silverarrow.org/files/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
KEYWORDS="amd64 x86"
IUSE="qt4"
DEPEND=">dev-python/mechanize-0.1.7b[${PYTHON_USEDEP}]

@ -1,45 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="3"
PYTHON_DEPEND="2:2.5"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="2.4 3.*"
inherit distutils eutils
DESCRIPTION="Python Application for sending sms over multiple ISPs"
HOMEPAGE="http://pysmssend.silverarrow.org/"
SRC_URI="http://pysmssend.silverarrow.org/files/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="qt4"
DEPEND=">dev-python/mechanize-0.1.7b
qt4? ( dev-python/PyQt4[X] )"
RDEPEND="${DEPEND}"
PYTHON_MODNAME="pysmssendmod"
src_prepare() {
python_convert_shebangs -r 2 .
}
src_install() {
distutils_src_install
if use qt4; then
insinto /usr/share/${PN}/Icons || die "insinto failed"
doins Icons/* || die "doins failed"
doicon Icons/pysmssend.png || die "doicon failed"
dobin pysmssend pysmssendcmd || die "failed to create executables"
make_desktop_entry pysmssend pySMSsend pysmssend \
"Applications;Network" || die "make_desktop_entry failed"
else
dobin pysmssendcmd || die "failed to create executable"
dosym pysmssendcmd /usr/bin/pysmssend || die "dosym failed"
fi
dodoc README AUTHORS TODO || die "dodoc failed"
}

@ -1,30 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=4
PYTHON_DEPEND=2
inherit python
DESCRIPTION="clock and two countdown functions that can minimize to the tray"
HOMEPAGE="http://xyne.archlinux.ca/projects/pystopwatch"
SRC_URI="http://xyne.archlinux.ca/projects/${PN}/src/${P}.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
RDEPEND="dev-python/pygtk:2"
DEPEND=""
src_prepare() {
unpack ./man/${PN}.1.gz
}
src_install() {
dobin ${PN}
doman ${PN}.1
}

@ -1,4 +1,4 @@
# Copyright 1999-2014 Gentoo Foundation
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@ -16,7 +16,7 @@ SRC_URI="http://collector.skumleren.net/releases/collector-${PV}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~ppc ~sparc ~x86"
KEYWORDS="amd64 ~ppc ~sparc x86"
IUSE=""
DEPEND=""

@ -1,39 +0,0 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="3"
PYTHON_DEPEND="2"
PYTHON_USE_WITH="gdbm"
inherit distutils
DESCRIPTION="python script for downloading webcomics"
HOMEPAGE="http://collector.skumleren.net/"
SRC_URI="http://collector.skumleren.net/releases/collector-${PV}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc sparc x86"
IUSE=""
DEPEND=""
RDEPEND=""
S="${WORKDIR}/collector-${PV}"
DOCS="UPGRADE"
PYTHON_MODNAME="Collector.py"
pkg_setup() {
python_set_active_version 2
python_pkg_setup
}
pkg_postinst() {
distutils_pkg_postinst
ewarn "If you are upgrading from an earlier version of Collector, please"
ewarn "read UPGRADE. This new version will not be able to use your old"
ewarn "archives if you do not follow the upgrade instructions!"
}

@ -1,4 +1,4 @@
# Copyright 1999-2014 Gentoo Foundation
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@ -14,7 +14,7 @@ SRC_URI="http://download.gna.org/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~x86"
KEYWORDS="amd64 x86"
IUSE=""
src_prepare() {

@ -1,31 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="3"
PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.*"
inherit distutils
DESCRIPTION="CLI todo list manager based on the 'Getting Things Done' philosophy"
HOMEPAGE="https://gna.org/projects/yagtd/"
SRC_URI="http://download.gna.org/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
PYTHON_MODNAME="gtd.py yagtd.py"
src_prepare() {
#fix doc install location
sed -i -e "s:\/doc\/yagtd:\/doc\/${P}:g" setup.py || die
}
src_install() {
distutils_src_install
dosym /usr/bin/yagtd.py /usr/bin/yagtd
}

@ -1,4 +1,4 @@
# Copyright 1999-2015 Gentoo Foundation
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@ -14,7 +14,7 @@ SRC_URI="http://dl.cihar.com/${PN}/releases/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~x86"
KEYWORDS="amd64 x86"
IUSE="bluetooth curl dbi debug irda mysql nls postgres python usb"
# TODO: figure out a way to disable gudev

@ -1,108 +0,0 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
PYTHON_DEPEND="python? 2"
inherit eutils cmake-utils python
DESCRIPTION="A tool to handle your cellular phone"
HOMEPAGE="http://www.wammu.eu/"
SRC_URI="http://dl.cihar.com/${PN}/releases/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="bash-completion bluetooth curl dbi debug irda mysql nls postgres python usb"
RDEPEND="bluetooth? ( net-wireless/bluez )
curl? ( net-misc/curl )
usb? ( virtual/libusb:1 )
mysql? ( virtual/mysql )
postgres? ( dev-db/postgresql[server] )
dbi? ( >=dev-db/libdbi-0.8.3 )
dev-util/dialog"
DEPEND="${RDEPEND}
irda? ( virtual/os-headers )
nls? ( sys-devel/gettext )"
# sys-devel/gettext is needed for creating .mo files
# Supported languages and translated documentation
# Be sure all languages are prefixed with a single space!
MY_AVAILABLE_LINGUAS=" af ar bg ca cs da de el en_GB es et fi fr gl he hu id it ko nl pl pt_BR ru sk sv sw tr zh_CN zh_TW"
IUSE="${IUSE} ${MY_AVAILABLE_LINGUAS// / linguas_}"
pkg_setup() {
if use python; then
python_set_active_version 2
python_pkg_setup
fi
}
src_prepare() {
epatch "${FILESDIR}/${PN}-skip-locktest.patch"
epatch "${FILESDIR}/${PN}-1.32.0-bashcompdir.patch"
local lang support_linguas=no
for lang in ${MY_AVAILABLE_LINGUAS} ; do
if use linguas_${lang} ; then
support_linguas=yes
break
fi
done
# install all languages when all selected LINGUAS aren't supported
if [ "${support_linguas}" = "yes" ]; then
for lang in ${MY_AVAILABLE_LINGUAS} ; do
if ! use linguas_${lang} ; then
rm -rf locale/${lang} || die
fi
done
fi
}
src_configure() {
# debug flag is used inside cmake-utils.eclass
local mycmakeargs=(
$(cmake-utils_use_with bluetooth Bluez) \
$(cmake-utils_use_with irda IRDA) \
$(cmake-utils_use_with curl CURL) \
$(cmake-utils_use_with usb USB) \
$(cmake-utils_use_with python PYTHON) \
$(cmake-utils_use_with mysql MySQL) \
$(cmake-utils_use_with postgres Postgres) \
$(cmake-utils_use_with dbi LibDBI) \
$(cmake-utils_use_with nls GettextLibs) \
$(cmake-utils_use_with nls Iconv) \
-DBUILD_SHARED_LIBS=ON \
-DINSTALL_DOC_DIR="share/doc/${PF}"
)
if ! use bash-completion; then
mycmakeargs+=( -DINSTALL_BASH_COMPLETION=OFF )
fi
if use python; then
mycmakeargs+=( -DBUILD_PYTHON="$(PYTHON -a)" )
fi
cmake-utils_src_configure
}
src_compile() {
cmake-utils_src_compile
}
src_test() {
LD_LIBRARY_PATH="${WORKDIR}/${PN}_build/common" cmake-utils_src_test
}
src_install() {
cmake-utils_src_install
}
pkg_postinst() {
use python && python_mod_optimize gammu
}
pkg_postrm() {
use python && python_mod_cleanup gammu
}

@ -1,2 +1 @@
DIST wammu-0.35.tar.bz2 572550 SHA256 fba70bb0a067f20bb5da5f16061e6cc70a49761ca11f49a897af678271666d7a SHA512 c9c24a170d0a1b1507799f77719d544a04b0c894172e0158efc782f25ec894eaa65e2a89b53db431a96b5f88ccadf4dddc5025ba84ac09d54aa5d37b2e658461 WHIRLPOOL 8b6b4edc77c46f20b449077f198d4e51ad81edd6846c69a4945ebf207ae01431a3cb31541e8f07c1b8c90fa37c2034acec771e5d563e0bf756aba1f175f93a9f
DIST wammu-0.40.tar.bz2 687062 SHA256 cffd4fc6cc7b9433b3f589d51671a5ac5e188abbf676ebe0ce94011933fdb2ff SHA512 2ed5d5cdd63b3731808c5fa8cc36caf394c4ccf714eb4ef39a25f1e7967d8ccf8b69db5aeff37ff0d1bbf7cefec51fe070a5f0b90d0cb8271f1a3d243eaf06fd WHIRLPOOL b05dac88593c5ae3c01f63984824690991a347e4efff2bf3595b1088d9903843e018690845391ab48f62ab7d17f11d0b3a801103a1c408822b1c9afdd88f7150

@ -1,66 +0,0 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="3"
PYTHON_DEPEND="2"
inherit distutils
DESCRIPTION="Front-end for gammu to access mobile phones easily"
HOMEPAGE="http://www.wammu.eu/"
SRC_URI="http://dl.cihar.com/wammu/v0/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="bluetooth gnome"
RDEPEND=">=app-mobilephone/gammu-1.25.0[python]
>=dev-python/wxpython-2.8
bluetooth? ( dev-python/pybluez
gnome? ( net-wireless/gnome-bluetooth )
)"
DEPEND="${RDEPEND}"
# Supported languages and translated documentation
# Be sure all languages are prefixed with a single space!
MY_AVAILABLE_LINGUAS=" af bg ca cs da de el es et fi fr gl he hu id it ko nl pl pt_BR ru sk sv zh_CN zh_TW"
IUSE="${IUSE} ${MY_AVAILABLE_LINGUAS// / linguas_}"
pkg_setup() {
python_set_active_version 2
python_pkg_setup
}
src_prepare() {
local lang support_linguas=no
for lang in ${MY_AVAILABLE_LINGUAS} ; do
if use linguas_${lang} ; then
support_linguas=yes
break
fi
done
# install all languages when all selected LINGUAS aren't supported
if [ "${support_linguas}" = "yes" ]; then
for lang in ${MY_AVAILABLE_LINGUAS} ; do
if ! use linguas_${lang} ; then
rm -r locale/${lang} || die
fi
done
fi
python_convert_shebangs -r 2 .
}
src_compile() {
# SKIPWXCHECK: else 'import wx' results in
# Xlib: connection to ":0.0" refused by server
SKIPWXCHECK=yes distutils_src_compile
}
src_install() {
DOCS="AUTHORS FAQ"
SKIPWXCHECK=yes distutils_src_install
}

@ -14,7 +14,7 @@ SRC_URI="http://dl.cihar.com/wammu/v0/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~x86"
KEYWORDS="amd64 x86"
IUSE="bluetooth gnome"
RDEPEND="|| ( ( >=app-mobilephone/gammu-1.36 dev-python/python-gammu )

@ -1,5 +1,5 @@
DIST lyx-2.0.8.1.tar.xz 10481988 SHA256 fa0a9c6070554e0d12d24e9b3c4a1e5fc2ee853b3fbe83e2a415635cdc973c59 SHA512 17e313d3118dfe439f5251384f2fffdb45ffef5ec515953b7af0762d35c8e156a9338de698cea91cf8b3cedca1fc08364d8f3c50c9345f304d57004af695f901 WHIRLPOOL 6a9ef2df39861d373e1c6288f5443f910632a09ed4d84e409efe06459f2f39d3c30462b3a26aafe37c5216b765882e7ab5189e7d164b71def97f50877784754c
DIST lyx-2.1.4.tar.xz 10928716 SHA256 d13548cf183f2fc241df8121420933702491a7460c78a0ef6dba0e9e438ef32a SHA512 7547950e3c11e88f0ccf2cacb56709f9722d4cd03a5ee751af4489f6d343e13ee6b4e0ff7b830532572975c6cc9506686ade2afa5093f765d21b4d1b9ee7339d WHIRLPOOL a5d8533902fd5dd5a696645941c532bfe35eeaf76f411798a0aafcd01674e678dd65d2c0a58af09a6739adaf80f821a2676c340a349fca61929edfc5a9389938
DIST lyx-2.1.5.tar.xz 10361112 SHA256 2e677591aebdd484efb7d2920357f1358f9525ab1feaa59a63a8cf92b7ee2cf3 SHA512 6f8c62ff96458d0c8c8057ae1e587be4c63bd3bdf2d4f095c24d447017034eda8c6b645efbd258f0956a9bbfe5fde2f90df36515be7b8a94cb63674bc3a58672 WHIRLPOOL 46ee376a7ef9594d22c0c5385e07221dbc5fb3ae1c8e3e754cbc11f53d665d2c9db66a250716fc03384f23ec7133556cca0c500555c471bb7be288c47fc13db5
DIST lyx-2.2.0.tar.xz 14640052 SHA256 d867986870e3f7451f0d4512c60d9c3c7682da59c6c638f18b731f4ad3fa7c80 SHA512 3bc6a3dcd2271d942d1d34cf5f7b7c74d1d58499d070e5b7c056ee03d5195467a4230d18a65e9a591e76655970413370fd6233495c8d3ab977270488082425df WHIRLPOOL 5cd3b13ad8852d4ed5c59a11872547f0bb602119ce2ddbc29c5f7c240b7ca091cf341c0d22ff13c63980057706abf4a35cf5d03625545f598261c98ec4292497
DIST lyx-2.2.1.tar.xz 15522104 SHA256 db6b722f4526d44e09609adcacb6acef38eb7a11c7cde91ffe0d1d54ef94740f SHA512 9403b6e2e957698bed8f95d412d20838c12e192c8525b11fa54d2741a40c598906352c3e9ba728bc7d597c288d0dc6673d65bdea12232135cb9927d00259d435 WHIRLPOOL b33d0846cef5da278c68300c95aa5d36a0d008858d7b5e8b7f303928df5620fe3912baf12f4a1237c96a96d65288c733656ff0dec82e566dddfe0d8549be025a
DIST lyx-2.2.2.tar.xz 15490148 SHA256 a85c3d7412c4069f8a1f5af4eb172948ae9a50394602f6318ab5c8e990aa5568 SHA512 5057a06f0c37cb2beadb92414eec495ba0619f6c8a9fb5372a9feb90fe0d8bf850de5c94bbf618c8e27bd64404ae6687c48ee24aa6e1bd35580eb3b77d71d45e WHIRLPOOL 0962289b07f767fee7eb7a9b9ae4da99f04a8c3e63f3fe7d4db798bc339772921534e7b1caefc3c0812cc815995d272dee8e365a7c357965acbebd5d6a1930c3

@ -1,4 +1,2 @@
DIST openerp-6.1-1.tar.gz 73310629 SHA256 a89016d706f1693833590d2ce5cf7768fb3586213661014adad5ed16cdc77cd7 SHA512 0cf407fda4d7ce414b548310018609381157e656069b5224bb05ae6dbf7d534b9acbbb5be561ec1f9a26786ec6fc9b917fb78faff3c67340916f663ccb5297cf WHIRLPOOL 384ae795df9d23c07a6e06c0c468cb6d9af0c2625648bda5d895271f2d1e07d00b81e7da3d4255f709d5eed299166c65b29ec335a71307ea1a3f6775b590befe
DIST openerp-7.0-20130219-002614.tar.gz 60420142 SHA256 e4408348259fa8bf86909035a4f86417671f09ac6c4a9ec50c4a55a69e5a3674 SHA512 15cb43d1a698da751a0109c256dd8875b7a064541ee7550c66d70c03143aa6486eb39b05966b1ef77e4cf9b0d333101e84fb8508411a7acf9b0a44a0f8897f3a WHIRLPOOL c4a5840fa9d76840f0da645e4a107296750d32161f21d81b22ba579b35172d2abe2fb24126e2c69de18e0b13a4555a82e938291728f6c370451a150a218fbbeb
DIST openerp-7.0-20140125-002455.tar.gz 64214375 SHA256 2bf832dda8f8e844476bb76cd60be84da1cc219e97be9da15b0a95b1e537bc4e SHA512 a923fe3240cf44f6384f18bd37853d15fe132aab97494e713f095253cd4b72d32a89e33ba3623a523b81b9863da6d5bca24c4020b20829975e4185d6e5093b3e WHIRLPOOL 5a4fcb37a6ea800e63294fe6b9dcbb3f82e91d1f0adfe412935b699b8e0c2901914dcfc5c0c62e2b289e057ecb4f30c5a4c06887c2d8e893ce1c1b03e6f5ce62
DIST openerp-8.0dev-20140125-000101.tar.gz 82648176 SHA256 647c4a5ec28340f7c5a32dd50173b98bf62dd18ba00cc1929538a8803c704da0 SHA512 560f0cd9aadfb010dfba1a114ca17ed8dc7b63fffdd93325811b87530e97a8e629c46442e777bd0c53fb38b1a985e769e3fb5f5edf66b9b45f21be3e8973aedd WHIRLPOOL 1fb6e185250c08e948b11f2ca6581723055eefd0edb6a7999029b950b064c7aebf23a83bc014240c2d2d78284fcf8292761b6cc7733f270f14bfd4a98673a222

@ -1,105 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="3"
PYTHON_DEPEND="2"
inherit eutils distutils user
DESCRIPTION="Open Source ERP & CRM"
HOMEPAGE="http://www.openerp.com/"
FNAME="${PN}-6.1-1"
SRC_URI="http://nightly.openerp.com/6.1/releases/${FNAME}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="postgres ldap ssl"
CDEPEND="postgres? ( dev-db/postgresql[server] )
dev-python/lxml
dev-python/psycopg:2
dev-python/pychart
dev-python/reportlab
media-gfx/pydot
dev-python/vobject
dev-python/mako
dev-python/pyyaml
dev-python/Babel
dev-python/gdata
ldap? ( dev-python/python-ldap )
dev-python/python-openid
dev-python/werkzeug
dev-python/xlwt
dev-python/feedparser
dev-python/python-dateutil
dev-python/pywebdav
ssl? ( dev-python/pyopenssl )
dev-python/vatnumber
dev-python/zsi"
RDEPEND="${CDEPEND}"
DEPEND="${CDEPEND}"
OPENERP_USER="openerp"
OPENERP_GROUP="openerp"
S="${WORKDIR}/${FNAME}"
pkg_setup() {
python_set_active_version 2
python_pkg_setup
}
src_prepare() {
epatch "${FILESDIR}/${PN}-6.1-setup.py.patch"
}
src_install() {
distutils_src_install
doinitd "${FILESDIR}/${PN}-2" "${PN}"
newconfd "${FILESDIR}/openerp-confd-2" "${PN}"
keepdir /var/log/openerp
insinto /etc/logrotate.d
newins "${FILESDIR}"/openerp.logrotate openerp || die
dodir /etc/openerp
insinto /etc/openerp
newins "${FILESDIR}"/openerp.cfg openerp.cfg || die
}
pkg_preinst() {
enewgroup ${OPENERP_GROUP}
enewuser ${OPENERP_USER} -1 -1 -1 ${OPENERP_GROUP}
fowners ${OPENERP_USER}:${OPENERP_GROUP} /var/run/openerp
fowners ${OPENERP_USER}:${OPENERP_GROUP} /var/log/openerp
fowners -R ${OPENERP_USER}:${OPENERP_GROUP} "$(python_get_sitedir)/${PN}/addons/"
use postgres || sed -i '6,8d' "${D}/etc/init.d/openerp" || die "sed failed"
}
pkg_postinst() {
chown ${OPENERP_USER}:${OPENERP_GROUP} /var/run/openerp
chown ${OPENERP_USER}:${OPENERP_GROUP} /var/log/openerp
chown -R ${OPENERP_USER}:${OPENERP_GROUP} "$(python_get_sitedir)/${PN}/addons/"
elog "In order to setup the initial database, run:"
elog " emerge --config =${CATEGORY}/${PF}"
elog "Be sure the database is started before"
}
pquery() {
psql -q -At -U postgres -d template1 -c "$@"
}
pkg_config() {
einfo "In the following, the 'postgres' user will be used."
if ! pquery "SELECT usename FROM pg_user WHERE usename = '${OPENERP_USER}'" | grep -q ${OPENERP_USER}; then
ebegin "Creating database user ${OPENERP_USER}"
createuser --username=postgres --createdb --no-adduser ${OPENERP_USER}
eend $? || die "Failed to create database user"
fi
}

@ -1,108 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="3"
PYTHON_DEPEND="2"
inherit eutils distutils user
DESCRIPTION="Open Source ERP & CRM"
HOMEPAGE="http://www.openerp.com/"
#yes, this is definitely a horrible URI
MY_PV=${PV/7.0./7.0-}
FNAME="${PN}-${MY_PV}-002614"
SRC_URI="http://nightly.openerp.com/7.0/nightly/src/${FNAME}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="+postgres ldap ssl"
CDEPEND="!app-office/openerp-web
postgres? ( dev-db/postgresql[server] )
dev-python/psutil
dev-python/docutils
dev-python/lxml
dev-python/psycopg:2
dev-python/pychart
dev-python/reportlab
media-gfx/pydot
dev-python/vobject
dev-python/mako
dev-python/pyyaml
dev-python/Babel
dev-python/gdata
ldap? ( dev-python/python-ldap )
dev-python/python-openid
dev-python/werkzeug
dev-python/xlwt
dev-python/feedparser
dev-python/python-dateutil
dev-python/pywebdav
ssl? ( dev-python/pyopenssl )
dev-python/vatnumber
dev-python/zsi
dev-python/mock
dev-python/unittest2
dev-python/jinja
dev-python/matplotlib"
RDEPEND="${CDEPEND}"
DEPEND="${CDEPEND}"
OPENERP_USER="openerp"
OPENERP_GROUP="openerp"
S="${WORKDIR}/${FNAME}"
pkg_setup() {
python_set_active_version 2
python_pkg_setup
}
src_install() {
distutils_src_install
newinitd "${FILESDIR}/${PN}-2" "${PN}"
newconfd "${FILESDIR}/openerp-confd-2" "${PN}"
keepdir /var/log/openerp
insinto /etc/logrotate.d
newins "${FILESDIR}"/openerp.logrotate openerp || die
dodir /etc/openerp
insinto /etc/openerp
newins "${FILESDIR}"/openerp.cfg.2 openerp.cfg || die
}
pkg_preinst() {
enewgroup ${OPENERP_GROUP}
enewuser ${OPENERP_USER} -1 -1 -1 ${OPENERP_GROUP}
fowners ${OPENERP_USER}:${OPENERP_GROUP} /var/log/openerp
fowners -R ${OPENERP_USER}:${OPENERP_GROUP} "$(python_get_sitedir)/${PN}/addons/"
use postgres || sed -i '6,8d' "${D}/etc/init.d/openerp" || die "sed failed"
}
pkg_postinst() {
chown ${OPENERP_USER}:${OPENERP_GROUP} /var/log/openerp
chown -R ${OPENERP_USER}:${OPENERP_GROUP} "$(python_get_sitedir)/${PN}/addons/"
elog "In order to setup the initial database, run:"
elog " emerge --config =${CATEGORY}/${PF}"
elog "Be sure the database is started before"
}
psqlquery() {
psql -q -At -U postgres -d template1 -c "$@"
}
pkg_config() {
einfo "In the following, the 'postgres' user will be used."
if ! psqlquery "SELECT usename FROM pg_user WHERE usename = '${OPENERP_USER}'" | grep -q ${OPENERP_USER}; then
ebegin "Creating database user ${OPENERP_USER}"
createuser --username=postgres --createdb --no-adduser ${OPENERP_USER}
eend $? || die "Failed to create database user"
fi
}

@ -1,2 +1 @@
DIST TaskCoach-1.3.18.tar.gz 2597941 SHA256 58a1ce7a65b58d71f2e029d69bfbf8c7e39b7623d11bfe5820faa6a224e83692 SHA512 07479e26a30ce66f7fc6f4ea8ef3fe3ddd842516ea68966b95dbb660fb0d61f9eb83d3920ca064c5ceeef6f6237d3fd5479c19899ec4cd2ef012ee90d1994e62 WHIRLPOOL 1943407958802b2d19fee638039f113ba2f62a69f74ee68d2859bfa0dfd005b4929b3c7329e79b5b2931ab7cbab511ec5499718425a1eed3a724ed76706f3ce5
DIST TaskCoach-1.4.3.tar.gz 2927984 SHA256 a2885ffefc0d5b55a0cbe47ad1a2d57cde52595cbba786ebf661bd2435071a2b SHA512 ae449ae66d29ec884de680179853d5e39814a4e7b10d8e5ca2066f1c85fda328470852a10600e74ade1e4a52c5cdc8f749eceaf4f861f8852c2f47d654e9fc88 WHIRLPOOL 6ed69b2f478d98129d7d7638a9db074f2439373d2d63b85adfcf3a64fbce254ef1f734197e9d21f3e3babeb7f21924bbc8a74aa27250f3de63871aef9803b72c

@ -1,46 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=3
PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="2.4 2.5 3.*"
PYTHON_MODNAME="buildlib taskcoachlib"
inherit distutils eutils
MY_PN="TaskCoach"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="Simple personal tasks and todo lists manager"
HOMEPAGE="http://www.taskcoach.org https://pypi.python.org/pypi/TaskCoach"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="libnotify"
DEPEND=">=dev-python/wxpython-2.8.9.2:2.8"
RDEPEND="${DEPEND}
libnotify? ( dev-python/notify-python )"
S="${WORKDIR}/${MY_P}"
DOCS="CHANGES.txt"
src_install() {
distutils_src_install
# a bit ugly but...
mv "${D}/usr/bin/taskcoach.py" "${D}/usr/bin/taskcoach" || die
for file in "${D}"/usr/bin/taskcoach.py-*; do
dir=$(dirname ${file})
ver=$(basename ${file})
ver=${ver#taskcoach.py-}
mv "${file}" "${dir}/taskcoach-${ver}" || die
done
doicon "icons.in/${PN}.png" || die
make_desktop_entry ${PN} "Task Coach" ${PN} Office || die
}

@ -16,7 +16,7 @@ SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
KEYWORDS="amd64 x86"
IUSE="libnotify"
DEPEND="

@ -1,3 +1 @@
DIST unoconv-0.6-git.tar.gz 91694 SHA256 df687f06582dbc1768045308b1f04305ccd8f363c8b479ea188f43ca45f58c67 SHA512 c2991d65890738437c3180a8d12371b16cb045601f300ddc252b36ed2698d6412c610a2699ce94ac278987b9b26a9804eebff2df947db687637f6b3158f4b709 WHIRLPOOL ee7324ad406854d62f84dffed2d006d77cc86089f19d9b7d030770ecaf954c0c0e139b02443a24aa93acc05854d8c25e91216f8e131de953f87e443f829e7bef
DIST unoconv-0.6.20131229-git.tar.gz 92085 SHA256 032d2bd06ca59e90d98afd1d7d95f076cec9ca0306d78139cf92695990115934 SHA512 ba347ff257cb3f77ab883491cfbc96391225179cb11efa8c26b21f36bbc2f125f9d565744fab84aa32f4ec41acd4ccc0c7b53a154c2342da9ae5dd3b6e9296bc WHIRLPOOL ca59a0f58c18cf3163712e0ff7c215d518e89020d0ca9e2241a994b1c99d0e9b17c2d52265b4ebbb23c9edf854f8041bc09678979bb96f31db791a2bb59dc2ee
DIST unoconv-0.7.tar.gz 96151 SHA256 b3f58573aba59d3ada7d8f51cd6844b6abc20251cf89820e939dcf9b5a4eb2dc SHA512 3b0837e11f22733e0fbef93dc6aeabd0e2d3d59b6c35a6f7b29b86506a5842bcbffb3e889864d6e14c1e53dd306354690a699257fe60f36ce1d4455ab52b5df7 WHIRLPOOL 4c123ccddb68c2edfbcf20ec8606d434b8daa62726efdfc7e253ccd11fe9e26ffdece2796db34f6dd7ae5fbdf5b20c3eaa3948a749b2c5ae4b5c52a7cf5de3d0

@ -1,51 +0,0 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=3
PYTHON_DEPEND="2"
EGIT_REPO_URI="https://github.com/dagwieers/unoconv.git"
[[ ${PV} == 9999* ]] && SCM_ECLASS="git-2"
inherit eutils python ${SCM_ECLASS}
unset SCM_ECLASS
DESCRIPTION="Convert between document formats supported by Libreoffice"
HOMEPAGE="http://dag.wieers.com/home-made/unoconv/"
[[ ${PV} == 9999* ]] || SRC_URI="https://github.com/dagwieers/${PN}/tarball/${PV} -> ${P}-git.tar.gz"
SRC_URI="https://github.com/dagwieers/${PN}/tarball/a2c7b2f06d799453666639382951142e0bcaad43 -> ${P}-git.tar.gz"
LICENSE="GPL-2"
SLOT="0"
# Don't move KEYWORDS on the previous line or ekeyword won't work # 399061
[[ ${PV} == 9999* ]] || \
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}
!app-text/odt2txt
virtual/ooo
"
pkg_setup() {
python_set_active_version 2
}
src_prepare() {
mv "${WORKDIR}"/dagwieers-${PN}-* "${WORKDIR}"/${P}
cd "${S}"
epatch "${FILESDIR}/timeout.patch"
python_convert_shebangs -r 2 .
}
src_compile() { :; }
src_install() {
emake -j1 doc-install install install-links DESTDIR="${D}" || die
dodoc ChangeLog README.asciidoc || die
}

@ -1,50 +0,0 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=3
PYTHON_DEPEND="2"
EGIT_REPO_URI="https://github.com/dagwieers/unoconv.git"
[[ ${PV} == 9999* ]] && SCM_ECLASS="git-2"
inherit eutils python ${SCM_ECLASS}
unset SCM_ECLASS
DESCRIPTION="Convert between document formats supported by Libreoffice"
HOMEPAGE="http://dag.wieers.com/home-made/unoconv/"
[[ ${PV} == 9999* ]] || SRC_URI="https://github.com/dagwieers/${PN}/tarball/${PV} -> ${P}-git.tar.gz"
LICENSE="GPL-2"
SLOT="0"
# Don't move KEYWORDS on the previous line or ekeyword won't work # 399061
[[ ${PV} == 9999* ]] || \
KEYWORDS="amd64 x86"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}
!app-text/odt2txt
virtual/ooo
"
pkg_setup() {
python_set_active_version 2
}
src_prepare() {
mv "${WORKDIR}"/dagwieers-${PN}-* "${WORKDIR}"/${P}
cd "${S}"
epatch "${FILESDIR}/timeout.patch"
python_convert_shebangs -r 2 .
}
src_compile() { :; }
src_install() {
emake -j1 doc-install install install-links DESTDIR="${D}" || die
dodoc ChangeLog README.asciidoc || die
}

@ -1,4 +1,4 @@
# Copyright 1999-2015 Gentoo Foundation
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@ -17,7 +17,7 @@ SRC_URI="https://github.com/dagwieers/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
KEYWORDS="amd64 x86"
IUSE=""

@ -1,76 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="2"
PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
PYTHON_USE_WITH="xml threads"
RESTRICT_PYTHON_ABIS="3.* 2.7-pypy-* *-jython"
inherit distutils eutils
DESCRIPTION="A GTK+-based frontend to Portage"
HOMEPAGE="http://porthole.sourceforge.net"
SRC_URI="mirror://sourceforge/porthole/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 arm ppc ~sparc x86 ~x86-fbsd"
IUSE="nls"
LANGS="de pl ru vi it fr tr"
for X in $LANGS; do IUSE="${IUSE} linguas_${X}"; done
RDEPEND=">=sys-apps/portage-2.1
dev-python/pygtk:2
gnome-base/libglade:2.0
dev-python/pygtksourceview:2
nls? ( virtual/libintl )"
DEPEND="${RDEPEND}
nls? ( >=sys-devel/gettext-0.14 )"
RESTRICT_PYTHON_ABIS="3.*"
src_prepare() {
epatch "${FILESDIR}/${P}-masking_status.patch" # bug 307037
}
src_compile(){
# Compile localizations if necessary
if use nls ; then
cd scripts
./pocompile.sh -emerge ${LINGUAS} || die "pocompile failed"
fi
}
src_install() {
distutils_src_install
dodoc TODO README NEWS AUTHORS
keepdir /var/log/porthole
fperms g+w /var/log/porthole
keepdir /var/db/porthole
fperms g+w /var/db/porthole
# nls
if use nls; then
# mo directory doesn't exists with nls enabled and unsupported LINGUAS
[[ -d porthole/i18n/mo ]] && domo porthole/i18n/mo/*
fi
}
pkg_preinst() {
chgrp portage "${D}"/var/log/porthole
chgrp portage "${D}"/var/db/porthole
}
pkg_postinst() {
einfo
einfo "Porthole has updated the way that the upgrades are sent to emerge."
einfo "In this new way the user needs to set any 'Settings' menu emerge options"
einfo "Porthole automatically adds '--oneshot' for all upgrades selections"
einfo "Other options recommended are '--noreplace' along with '--update'"
einfo "They allow for portage to skip any packages that might have already"
einfo "been upgraded as a dependency of another previously upgraded package"
einfo
}

@ -1,76 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="2"
PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
PYTHON_USE_WITH="xml threads"
RESTRICT_PYTHON_ABIS="3.* *-jython 2.7-pypy-*"
inherit distutils eutils
DESCRIPTION="A GTK+-based frontend to Portage"
HOMEPAGE="http://porthole.sourceforge.net"
SRC_URI="mirror://sourceforge/porthole/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86 ~x86-fbsd"
IUSE="nls"
LANGS="de pl ru vi it fr tr"
for X in $LANGS; do IUSE="${IUSE} linguas_${X}"; done
RDEPEND=">=sys-apps/portage-2.1
dev-python/pygtk:2
gnome-base/libglade:2.0
dev-python/pygtksourceview:2
nls? ( virtual/libintl )"
DEPEND="${RDEPEND}
nls? ( >=sys-devel/gettext-0.14 )"
src_prepare() {
epatch "${FILESDIR}/${P}-masking_status.patch" # bug 307037
epatch "${FILESDIR}/${P}-missing_import.patch" # bug 323179
}
src_compile(){
# Compile localizations if necessary
if use nls ; then
cd scripts
./pocompile.sh -emerge ${LINGUAS} || die "pocompile failed"
fi
}
src_install() {
distutils_src_install
dodoc TODO README NEWS AUTHORS
keepdir /var/log/porthole
fperms g+w /var/log/porthole
keepdir /var/db/porthole
fperms g+w /var/db/porthole
# nls
if use nls; then
# mo directory doesn't exists with nls enabled and unsupported LINGUAS
[[ -d porthole/i18n/mo ]] && domo porthole/i18n/mo/*
fi
}
pkg_preinst() {
chgrp portage "${D}"/var/log/porthole
chgrp portage "${D}"/var/db/porthole
}
pkg_postinst() {
einfo
einfo "Porthole has updated the way that the upgrades are sent to emerge."
einfo "In this new way the user needs to set any 'Settings' menu emerge options"
einfo "Porthole automatically adds '--oneshot' for all upgrades selections"
einfo "Other options recommended are '--noreplace' along with '--update'"
einfo "They allow for portage to skip any packages that might have already"
einfo "been upgraded as a dependency of another previously upgraded package"
einfo
}

@ -1,77 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="2"
PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
PYTHON_USE_WITH="xml threads"
RESTRICT_PYTHON_ABIS="3.* *-jython 2.7-pypy-*"
inherit distutils eutils
DESCRIPTION="A GTK+-based frontend to Portage"
HOMEPAGE="http://porthole.sourceforge.net"
SRC_URI="mirror://sourceforge/porthole/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86 ~x86-fbsd"
IUSE="nls"
LANGS="de pl ru vi it fr tr"
for X in $LANGS; do IUSE="${IUSE} linguas_${X}"; done
RDEPEND=">=sys-apps/portage-2.1
dev-python/pygtk:2
gnome-base/libglade:2.0
dev-python/pygtksourceview:2
nls? ( virtual/libintl )"
DEPEND="${RDEPEND}
nls? ( >=sys-devel/gettext-0.14 )"
src_prepare() {
epatch "${FILESDIR}/${P}-masking_status.patch" # bug 307037
epatch "${FILESDIR}/${P}-missing_import.patch" # bug 323179
epatch "${FILESDIR}/${P}-missing-attribute.patch" #bug 323179
}
src_compile(){
# Compile localizations if necessary
if use nls ; then
cd scripts
./pocompile.sh -emerge ${LINGUAS} || die "pocompile failed"
fi
}
src_install() {
distutils_src_install
dodoc TODO README NEWS AUTHORS
keepdir /var/log/porthole
fperms g+w /var/log/porthole
keepdir /var/db/porthole
fperms g+w /var/db/porthole
# nls
if use nls; then
# mo directory doesn't exists with nls enabled and unsupported LINGUAS
[[ -d porthole/i18n/mo ]] && domo porthole/i18n/mo/*
fi
}
pkg_preinst() {
chgrp portage "${D}"/var/log/porthole
chgrp portage "${D}"/var/db/porthole
}
pkg_postinst() {
einfo
einfo "Porthole has updated the way that the upgrades are sent to emerge."
einfo "In this new way the user needs to set any 'Settings' menu emerge options"
einfo "Porthole automatically adds '--oneshot' for all upgrades selections"
einfo "Other options recommended are '--noreplace' along with '--update'"
einfo "They allow for portage to skip any packages that might have already"
einfo "been upgraded as a dependency of another previously upgraded package"
einfo
}

@ -38,7 +38,7 @@ SRC_URI="mirror://gnu/bash/${MY_P}.tar.gz $(patches)"
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"
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:0=

@ -1,35 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="2"
PYTHON_DEPEND="2"
inherit python eutils
DESCRIPTION="A script that converts a CHM file into a single PDF file"
HOMEPAGE="https://code.google.com/p/chm2pdf/"
SRC_URI="https://${PN}.googlecode.com/files/${P}.tar.gz"
LICENSE="GPL-2"
KEYWORDS="amd64 x86"
SLOT="0"
IUSE=""
RDEPEND="dev-python/pychm
app-text/htmldoc
|| ( >=dev-libs/chmlib-0.40-r1[examples]
<dev-libs/chmlib-0.40-r1 )"
pkg_setup() {
python_set_active_version 2
}
src_prepare(){
epatch "${FILESDIR}/tempdir.patch"
python_convert_shebangs 2 ${PN}
}
src_install() {
dobin ${PN} || die "failed to create executable"
dodoc README || die "dodoc failed"
}

@ -1,4 +1,4 @@
# Copyright 1999-2015 Gentoo Foundation
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@ -13,7 +13,7 @@ HOMEPAGE="https://code.google.com/p/chm2pdf/"
SRC_URI="https://${PN}.googlecode.com/files/${P}.tar.gz"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"
KEYWORDS="amd64 x86"
SLOT="0"
IUSE=""

@ -19,7 +19,7 @@ SRC_URI="mirror://sourceforge/arabeyes/${P}.tar.bz2"
LICENSE="BSD"
SLOT="0"
KEYWORDS="alpha amd64 ~hppa ~ia64 ~mips ~ppc ~sparc ~x86"
KEYWORDS="alpha amd64 ~hppa ~ia64 ~mips ~ppc ~sparc x86"
IUSE=""
DEPEND="${PYTHON_DEPS}"

@ -1,48 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="3"
PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
inherit python
DESCRIPTION="Arabic dictionary based on the DICT protocol"
HOMEPAGE="http://www.arabeyes.org/project.php?proj=Duali"
SRC_URI="mirror://sourceforge/arabeyes/${P}.tar.bz2"
LICENSE="BSD"
SLOT="0"
KEYWORDS="alpha amd64 ~hppa ia64 ~mips ppc ~sparc x86"
IUSE=""
DEPEND=""
PDEPEND="app-dicts/duali-data"
RESTRICT_PYTHON_ABIS="3.*"
src_install() {
dobin duali dict2db trans2arabic arabic2trans
python_convert_shebangs -r 2 "${ED}usr/bin"
insinto /etc
doins duali.conf
doman doc/man/*
installation() {
insinto $(python_get_sitedir)/pyduali
doins pyduali/*.py
}
python_execute_function installation
dodoc README ChangeLog INSTALL MANIFEST
}
pkg_postinst() {
python_mod_optimize pyduali
}
pkg_postrm() {
python_mod_cleanup pyduali
}

@ -1,2 +1 @@
DIST landslide-1.1.1.tar.gz 156083 SHA256 b7860c6eef973b7deb286d8a32b95c4ccab0cb8460844299b36b0d48e9109b02 SHA512 de0ef010589150bf4fa31e9e7fc4b4261ac3cebe91cc8d02745f3ab1f723a811c8d2117cc61a95c5b21c7e34a0fd280640e13a649efb4bc0de7d15e9a2a1548b WHIRLPOOL e12706a23cff2c5785cd8c4192104c7c000c2eb342e58b110c24ad1eada720308a96ddcf94251fd93b4a42e8235ea3e52cbce075d744a8804a5c108fee49d967
DIST landslide-1.1.3.tar.gz 151003 SHA256 5b0d7c204fef6b06c0997c02c9cb4096b1e7c80fdb548e4ceea9f3b6fa11530f SHA512 2b29c416f8af04c0bf048060e0fe67b0b6a5e293485c5e3f68b9d1ce9d63ef66ca3bc58a96f65705c6918542932ef0a2fa6072b17c4c01cfc1975d283b417152 WHIRLPOOL 1e56326958f41b10e32168fe4b22bf9c383b626c30e58559769c05cf515d3d3395c71ded5acd7f6c49277b5e33ae479cd4fbd570b0cc6a5be32f92c3ff361416

@ -1,29 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=3
PYTHON_DEPEND="2"
inherit distutils python vcs-snapshot
DESCRIPTION="Landslide generates a slideshow using the slides that power the html5-slides presentation"
HOMEPAGE="https://github.com/adamzap/landslide"
SRC_URI="https://github.com/adamzap/landslide/tarball/v${PV} -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64"
IUSE=""
DEPEND=""
RDEPEND="dev-python/docutils
dev-python/jinja
dev-python/markdown
dev-python/pygments"
pkg_setup() {
python_set_active_version 2
python_pkg_setup
}

@ -14,7 +14,7 @@ SRC_URI="https://github.com/adamzap/landslide/tarball/v${PV} -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
KEYWORDS="amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="examples"
DEPEND=""

@ -1,4 +1,4 @@
# Copyright 1999-2015 Gentoo Foundation
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@ -13,7 +13,7 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND="|| ( dev-python/PyPDF2 dev-python/pyPdf )

@ -1,46 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="4"
PYTHON_DEPEND="2"
inherit distutils eutils fdo-mime gnome2-utils
DESCRIPTION="PDF-Shuffler is GUI app that can merge or split pdfs and rotate, crop and rearrange their pages"
HOMEPAGE="https://sourceforge.net/projects/pdfshuffler/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND="dev-python/pyPdf
dev-python/python-poppler"
RDEPEND="${DEPEND}"
DOCS="ChangeLog README TODO AUTHORS"
pkg_setup() {
python_set_active_version 2
python_pkg_setup
}
pkg_preinst() {
gnome2_icon_savelist
}
pkg_postinst() {
distutils_pkg_postinst
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
gnome2_icon_cache_update
}
pkg_postrm() {
distutils_pkg_postrm
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
gnome2_icon_cache_update
}

@ -1,29 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="3"
PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.* 2.5 2.7-pypy-* *-jython"
inherit distutils
MY_P="PyBookReader-${PV}"
DESCRIPTION="A book reader for .fb2 .html and plain text (possibly gzipped)"
HOMEPAGE="http://pybookreader.narod.ru/"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="dev-python/pygtk
dev-libs/libxml2[python]"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${MY_P}"
PYTHON_MODNAME="ornamentbook pybookreader"

@ -1,45 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="3"
PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.* *-jython"
inherit distutils
MY_PN="SilverCity"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="A lexical analyser for many languages"
HOMEPAGE="http://silvercity.sourceforge.net/"
SRC_URI="mirror://sourceforge/silvercity/${MY_P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha amd64 ~ia64 ppc ~ppc64 sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
IUSE=""
DEPEND=""
RDEPEND=""
S="${WORKDIR}/${MY_P}"
PYTHON_NONVERSIONED_EXECUTABLES=("/usr/bin/source2html.py")
PYTHON_MODNAME="${MY_PN}"
src_prepare() {
distutils_src_prepare
# Fix line endings.
find . -type f -exec sed -e 's/\r$//' -i \{\} \; || die "sed failed"
# Fix permissions.
chmod -x CSS/default.css || die "chmod failed"
# Fix shebang.
sed -e 's:#!/usr/home/sweetapp/bin/python:#!/usr/bin/env python:' \
-i PySilverCity/Scripts/cgi-styler-form.py || die "sed failed"
}

@ -1,91 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="2"
PYTHON_USE_WITH="tk"
PYTHON_USE_WITH_OPT="tk"
PYTHON_DEPEND="2"
inherit eutils elisp-common python
DESCRIPTION="A tool for generating marked up documents (HTML, SGML, ...) from a plain text file with markup"
HOMEPAGE="http://txt2tags.org/"
SRC_URI="https://${PN}.googlecode.com/files/${P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc ~ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris"
IUSE="emacs tk vim-syntax"
DEPEND="dev-lang/python
tk? ( dev-lang/tk )
vim-syntax? (
|| (
app-editors/vim
app-editors/gvim
)
)
emacs? ( virtual/emacs )"
RDEPEND="${DEPEND}"
SITEFILE="51${PN}-gentoo.el"
src_compile() {
if use emacs; then
elisp-compile extras/txt2tags-mode.el || die "elisp-compile failed"
fi
}
src_install() {
dobin txt2tags || die
dodoc README ChangeLog* || die
insinto /usr/share/doc/${PF}
doins doc/*.{pdf,t2t} || die
# samples go into "samples" doc directory
docinto samples
dodoc samples/sample.* || die
docinto samples/css
dodoc samples/css/* || die
docinto samples/img
dodoc samples/img/* || die
docinto samples/module
dodoc samples/module/* || die
# extras go into "extras" doc directory
insinto /usr/share/doc/${PF}/extras
doins -r extras/* || die
newman doc/manpage.man txt2tags.1 || die
# make .po files
for pofile in "${S}"/po/*.po; do
msgfmt -o ${pofile%%.po}.mo ${pofile}
done
domo po/*.mo
# emacs support
if use emacs; then
elisp-install ${PN} extras/txt2tags-mode.{el,elc}
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
fi
if use vim-syntax; then
insinto /usr/share/vim/vimfiles/syntax/
doins extras/txt2tags.vim || die
echo 'au BufNewFile,BufRead *.t2t set ft=txt2tags' > "${T}/${PN}.vim"
insinto /usr/share/vim/vimfiles/ftdetect
doins "${T}/${PN}.vim" || die
fi
python_convert_shebangs -r 2 "${D}"
}
pkg_postinst() {
use emacs && elisp-site-regen
}
pkg_postrm() {
use emacs && elisp-site-regen
}

@ -1,2 +1 @@
DIST wklej-0.2.0.tar.gz 4356 SHA256 ba522500a0b48515498c98c9859f171893dd7bddc35e26e80adaa73ee8da8fe5 SHA512 5ae06c2aa09bb4ef84244efad46291f77fbbb01440d5369d25161112db18e2991cb6f7bfe49029aaef818d585be0a5a309e384419da23957e87b1613d43aaee5 WHIRLPOOL e605336dca7d4c874e6b6657cef8c7a05c3d233a82acbd8250c7f809f0353e1748b828bf63fca47e51d942ff47e82707c35d544e85397625fa6c00e698379faf
DIST wklej-0.2.1.tar.gz 4370 SHA256 6b907351b3c10f70e847d0d761615e2b37f09696ad019da583325e6c17524dd1 SHA512 3799a1570f0cc7f1005f69484ceb1c6c88c8a24933beb3e32c0acd758ce29a5a1b6599baeea2b6405ec2da1e4fcb25b2d218b8295c68fa811fa4d53ada96cf0c WHIRLPOOL 8beda97607353bbfbd6e10a1ec91c060db42b74f258020eca9a4160e9f9a3197b9e936763ac37d7083b44b732f9ac64885c3d5445876d7ae404f0790a97b1351

@ -1,37 +0,0 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=3
PYTHON_DEPEND="*:2.6"
inherit eutils python
DESCRIPTION="A wklej.org submitter"
HOMEPAGE="http://wklej.org"
SRC_URI="http://wklej.org/m/apps/wklej-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86 ~x86-fbsd"
IUSE="+vim"
DEPEND=""
RDEPEND="vim? ( app-editors/vim[python] )"
S=${WORKDIR}
src_install() {
if use vim; then
insinto /usr/share/vim/vimfiles/plugin
doins ${PN}.vim || die "Failed to install vim plugin"
fi
dobin ${PN} || die "Failed to install ${PN} script"
dodoc README wklejrc || die "Failed to install readme"
}
pkg_postinst() {
elog "There are lots of changes in ${PV} version"
elog "Check out the documents in /usr/share/doc/${PF}"
}

@ -1,4 +1,4 @@
# Copyright 1999-2015 Gentoo Foundation
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@ -14,7 +14,7 @@ SRC_URI="http://wklej.org/m/apps/wklej-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~x86 ~x86-fbsd"
KEYWORDS="amd64 x86 ~x86-fbsd"
IUSE="+vim"
DEPEND=""

@ -1,4 +1,4 @@
# Copyright 1999-2015 Gentoo Foundation
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@ -14,7 +14,7 @@ SRC_URI="ftp://ftp.logilab.fr/pub/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha ~amd64 ~ia64 ~ppc ~sparc ~x86 ~x86-linux"
KEYWORDS="alpha amd64 ~ia64 ~ppc ~sparc x86 ~x86-linux"
IUSE=""
DEPEND="dev-python/pyxml[${PYTHON_USEDEP}]"

@ -1,3 +1,2 @@
DIST ctemplate-2.2.tar.gz 889458 SHA256 04f3cbc0f7ff36adedc904bce776a0817cc6b704b3c4a04b4df5de66fd7e686f SHA512 b8f2cbebb3988ce5248ef3b4c224a02626bbc77e3ab4cff8d2fb967f421000048c0923c8410cc800ed29f5fa68e1172aefcfde1e2a610372462018cb1b6809bb WHIRLPOOL 242972d6fcc7592e18e3adff93a6279c543d8bc10408aa0c6f543e13c92d8597a8888d64dd8b729cc92dc8f758d6aa03020cb494428f5f033a845262213204c2
DIST ctemplate-2.2_p129.tar.bz2 581172 SHA256 1903533180ed9604e548ee7dfb3b704368bda5ce5e5b84f1e448f966730500d7 SHA512 049ae4a9269f668ae6fc6207609a10609d59d7731c999a2ede191cef26d9203ab32ae87a48d5b08457a83a8dbd2be61621dbb8b2361e2747c63502f4caf4f8e7 WHIRLPOOL 790c2242a003ba8ceba3783be26a6a4a0af71605a6ee867d16eff6771f02b071a51e94d620233420aba6da1a9797a0cebcb9e1dce6626703077546c53873dcad
DIST ctemplate-2.3.tar.bz2 564389 SHA256 6409e74486888be371cf29900ba757e5443c958295f2099359d5ef6a6acceeec SHA512 546645389a8bfed59686b62b43cb7d53714ac98e1b75311c217bb0f3b6201d5d486766b1ce7e35bf15032372e45c36b27008f54085bd0c9ef0dd0b7e04b8e3f5 WHIRLPOOL 9261906ddb6857a378aa9f86a9cd87b6fcb9c79c442ff2b87ddf92021fdd64140f3cb87cbb2b1f3775fa2f5a0d039d1b4ceca3cf07f1efc841fbfb72e9f1467e

@ -1,76 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="4"
inherit elisp-common python
DESCRIPTION="A simple but powerful template language for C++"
HOMEPAGE="https://github.com/olafvdspek/ctemplate"
SRC_URI="https://ctemplate.googlecode.com/files/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 arm ppc x86 ~amd64-linux ~x86-linux"
IUSE="doc emacs vim-syntax static-libs test"
DEPEND="test? ( =dev-lang/python-2* )"
RDEPEND="vim-syntax? ( >=app-editors/vim-core-7 )
emacs? ( virtual/emacs )"
SITEFILE="70ctemplate-gentoo.el"
pkg_setup() {
if use test ; then
python_set_active_version 2
python_pkg_setup
fi
}
src_configure() {
econf \
--enable-shared \
$(use_enable static-libs static)
}
src_compile() {
default
if use emacs ; then
elisp-compile contrib/tpl-mode.el || die "elisp-compile failed"
fi
}
src_install() {
emake DESTDIR="${D}" install
# Installs just every piece
rm -rf "${ED}/usr/share/doc"
dodoc AUTHORS ChangeLog NEWS README
use doc && dohtml doc/*
if use vim-syntax ; then
cd "${S}/contrib"
sh highlighting.vim || die "unpacking vim scripts failed"
insinto /usr/share/vim/vimfiles
doins -r .vim/*
fi
if use emacs ; then
cd "${S}/contrib"
elisp-install ${PN} tpl-mode.el tpl-mode.elc || die "elisp-install failed"
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
fi
find "${ED}" -name '*.la' -exec rm -f {} +
}
pkg_postinst() {
use emacs && elisp-site-regen
}
pkg_postrm() {
use emacs && elisp-site-regen
}

@ -1,4 +1,3 @@
DIST gmock-1.4.0.tar.bz2 946373 SHA256 21d37c154a7b8d7a8562b9dde82db7db0a6c188b985c4a18ff3413daae8caa8c SHA512 df99aae44d23f4b0b4ce9ac24fde9e72508c9a915323dd07fb475c708953b79310c164141d085a04a9203b6abd759336d55a94979495f429c92f11bc4d1b038c WHIRLPOOL 7a4525a589770cd5de21c0b82a7b9a7219b3fcdef605e0b455dfff50bc87ff1432b3989cc7e0c08c42c68083e2618841a77d8afcf4ed51b3f55f09a5a64c4fb2
DIST gmock-1.5.0.tar.bz2 1283432 SHA256 d8689a51fbc13f55509f5842fe7d514839d9fd6092743d145304bc2824fc9197 SHA512 b0a3897c801d14a9f59a07911fa77ae15ddae9bef6e2d818583ff0b5085d35507259c195b43a6fe25af70b4d2eee3796889ffcda91d16ce6e6e5b4e462196aa2 WHIRLPOOL f00854ebdece304006907ea2e3906fbe58578a7a3684d93eb8e9f2c26bd100f751878109d5fd13a31cf58463d759fc09c1b07c035107c127c19f572ff264fd76
DIST gmock-1.6.0.zip 2053682 SHA256 341ad07c31c619ba32c88c2265bc23693da1df062f47f146a7ed340f646d82b7 SHA512 7adff00bb6ff81a6ffb704be71d0747636d69e24b4a8b709e1fb8c177a9a47f6dea8d14fde73034ebfb1529c291c7212a944ad92a34f88abdfe23c2d0b11b6f7 WHIRLPOOL 1a03ff8f2d96287f5deb24f970688f20f3480e77a4a71089ef1399a87f28f616bf0feaedc217e7ac1ca8ca1246e53f5d882f350704be111ae547961949939530
DIST gmock-1.7.0.zip 2167746 SHA256 26fcbb5925b74ad5fc8c26b0495dfc96353f4d553492eb97e85a8a6d2f43095b SHA512 0ab7bb2614f8c00e4842a6819dbc6d9323c42241335078c23eaee53ed420d42f1845d44334eccbf7c114cc88f6ac7a493e20d9b46c58cdba645bbd400eb6db55 WHIRLPOOL 722ea3f8bd4130662386810ae0270baafcecb6b7066e8a361388d530e7a2bad4e10787c921c6bb5cefb15a640f4302d288d07deea58acf8c5f5ca84d82722c8e

@ -1,43 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="4"
inherit libtool
DESCRIPTION="Google's C++ mocking framework"
HOMEPAGE="https://github.com/google/googlemock"
SRC_URI="https://googlemock.googlecode.com/files/${P}.zip"
LICENSE="BSD"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ~ppc64 ~s390 ~sh sparc x86"
IUSE="static-libs"
RDEPEND="=dev-cpp/gtest-${PV}*"
DEPEND="app-arch/unzip
${RDEPEND}"
src_unpack() {
default
# make sure we always use the system one
rm -r "${S}"/gtest/{Makefile,configure}* || die
}
src_prepare() {
sed -i -r \
-e '/^install-(data|exec)-local:/s|^.*$|&\ndisabled-&|' \
Makefile.in
elibtoolize
}
src_configure() {
econf $(use_enable static-libs static)
}
src_install() {
default
dobin scripts/gmock-config
use static-libs || find "${D}" -name '*.la' -delete
}

@ -1,2 +1 @@
DIST gtest-1.6.0.zip 1121697 SHA256 5ec97df8e75b4ee796604e74716d1b50582beba22c5502edd055a7e67a3965d8 SHA512 f4718dfbfa3339bb9449c3f14e5b44ae405ea7df64c10a0957a6300985b71c4642981d069a1382e27ae041a4e2873527a9e442aff978447e795a190f99fac115 WHIRLPOOL 745a49020d4353ed2fa38adfc80bbd777358c831719bbe3b7c90d243f84256615222ba5f04d48d98b9e1a803bb40766799b3aedd575024c19d853d9239a12f8a
DIST gtest-1.7.0.zip 1164254 SHA256 247ca18dd83f53deb1328be17e4b1be31514cedfc1e3424f672bf11fd7e0d60d SHA512 8859369f2dd32cbc2ac01aba029aa3ff20a321f40658b9643aff442d34c33468221866b801b28c66a28af47dbcd362d26941fc98db92b6efb7e41ea5b7be1a07 WHIRLPOOL 0c31a385159551859c1afe76480b3fb1b560d666db9a0afc5cbda92bcd53bf129f85a8f902c6ded0779c2b4c49aacec59ba5a4d5ce316a07bf08174f4fc64049

@ -1,60 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="4"
PYTHON_DEPEND="2"
inherit eutils python autotools
DESCRIPTION="Google C++ Testing Framework"
HOMEPAGE="https://github.com/google/googletest"
SRC_URI="https://googletest.googlecode.com/files/${P}.zip"
LICENSE="BSD"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~ppc-macos"
IUSE="examples static-libs"
DEPEND="app-arch/unzip"
RDEPEND=""
pkg_setup() {
python_pkg_setup
python_set_active_version 2
}
src_prepare() {
sed -i -e "s|/tmp|${T}|g" test/gtest-filepath_test.cc || die
sed -i -r \
-e '/^install-(data|exec)-local:/s|^.*$|&\ndisabled-&|' \
Makefile.am || die
epatch "${FILESDIR}"/configure-fix-pthread-linking.patch #371647
eautoreconf
python_convert_shebangs -r 2 .
}
src_configure() {
econf \
$(use_enable static-libs static)
}
src_test() {
# explicitly use parallel make
emake check || die
}
src_install() {
default
dobin scripts/gtest-config
if ! use static-libs ; then
rm "${ED}"/usr/lib*/*.la || die
fi
if use examples ; then
insinto /usr/share/doc/${PF}/examples
doins samples/*.{cc,h}
fi
}

@ -1,62 +0,0 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
# Python is required for tests and some build tasks.
PYTHON_COMPAT=( python2_7 )
inherit eutils python-any-r1 autotools-multilib
DESCRIPTION="Google C++ Testing Framework"
HOMEPAGE="https://github.com/google/googletest"
SRC_URI="https://googletest.googlecode.com/files/${P}.zip"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
IUSE="examples static-libs"
DEPEND="app-arch/unzip
${PYTHON_DEPS}"
RDEPEND=""
PATCHES=(
"${FILESDIR}/configure-fix-pthread-linking.patch" #371647
)
AUTOTOOLS_AUTORECONF="1"
src_prepare() {
sed -i -e "s|/tmp|${T}|g" test/gtest-filepath_test.cc || die
sed -i -r \
-e '/^install-(data|exec)-local:/s|^.*$|&\ndisabled-&|' \
Makefile.am || die
autotools-multilib_src_prepare
multilib_copy_sources
}
src_configure() {
multilib_parallel_foreach_abi gtest_src_configure
}
src_install() {
autotools-multilib_src_install
multilib_for_best_abi gtest-config_install
if use examples ; then
insinto /usr/share/doc/${PF}/examples
doins samples/*.{cc,h}
fi
}
gtest_src_configure() {
ECONF_SOURCE="${BUILD_DIR}"
autotools-utils_src_configure
}
gtest-config_install() {
dobin "${BUILD_DIR}/scripts/gtest-config"
}

@ -1,60 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="4"
PYTHON_DEPEND="2"
inherit python libtool
DESCRIPTION="Google C++ Testing Framework"
HOMEPAGE="https://github.com/google/googletest"
SRC_URI="https://googletest.googlecode.com/files/${P}.zip"
LICENSE="BSD"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~ppc-macos"
IUSE="examples threads static-libs"
DEPEND="app-arch/unzip"
RDEPEND=""
pkg_setup() {
python_pkg_setup
python_set_active_version 2
}
src_prepare() {
sed -i -e "s|/tmp|${T}|g" test/gtest-filepath_test.cc || die
sed -i -r \
-e '/^install-(data|exec)-local:/s|^.*$|&\ndisabled-&|' \
Makefile.in
elibtoolize
python_convert_shebangs -r 2 .
}
src_configure() {
econf \
$(use_enable static-libs static) \
$(use_with threads pthreads)
}
src_test() {
# explicitly use parallel make
emake check || die
}
src_install() {
default
dobin scripts/gtest-config
if ! use static-libs ; then
rm "${ED}"/usr/lib*/*.la || die
fi
if use examples ; then
insinto /usr/share/doc/${PF}/examples
doins samples/*.{cc,h}
fi
}

@ -3,7 +3,7 @@
# $Id$
EAPI="5"
POSTGRES_COMPAT=( 9.{0,1,2,3,4} )
POSTGRES_COMPAT=( 9.{1,2,3,4} )
inherit autotools eutils versionator
@ -25,7 +25,6 @@ RDEPEND="
dev-db/postgresql:9.3[server]
dev-db/postgresql:9.2[server]
dev-db/postgresql:9.1[server]
dev-db/postgresql:9.0[server]
)
<dev-libs/json-c-0.11
dev-libs/libxml2:2

@ -3,7 +3,7 @@
# $Id$
EAPI="5"
POSTGRES_COMPAT=( 9.{0,1,2,3,4,5} )
POSTGRES_COMPAT=( 9.{1,2,3,4,5} )
inherit autotools eutils versionator
@ -25,7 +25,6 @@ RDEPEND="
dev-db/postgresql:9.3[server]
dev-db/postgresql:9.2[server]
dev-db/postgresql:9.1[server]
dev-db/postgresql:9.0[server]
)
dev-libs/json-c
dev-libs/libxml2:2

@ -141,5 +141,5 @@ pkg_postinst() {
postgresql-config update
elog "To finish installing PostGIS, follow the directions detailed at:"
elog "http://postgis.net/docs/manual-${MY_PV}/postgis_installation.html#create_new_db_extensions"
elog "http://postgis.net/docs/manual-${PGIS}/postgis_installation.html#create_new_db_extensions"
}

@ -3,7 +3,7 @@
# $Id$
EAPI=6
POSTGRES_COMPAT=( 9.{0,1,2,3,4,5} )
POSTGRES_COMPAT=( 9.{1,2,3,4,5} )
inherit autotools eutils versionator subversion
@ -27,7 +27,6 @@ RDEPEND="
dev-db/postgresql:9.3[server]
dev-db/postgresql:9.2[server]
dev-db/postgresql:9.1[server]
dev-db/postgresql:9.0[server]
)
dev-libs/json-c
dev-libs/libxml2:2

@ -0,0 +1,436 @@
/**
* This file is part of javadepchecker
*
* Copyright (C) 2016 Gentoo Foundation
*
* javadepchecker is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
package javadepchecker;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.Enumeration;
import java.util.HashSet;
import java.util.Set;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.Properties;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.CommandLineParser;
import org.apache.commons.cli.HelpFormatter;
import org.apache.commons.cli.Options;
import org.apache.commons.cli.ParseException;
import org.apache.commons.cli.PosixParser;
import org.objectweb.asm.AnnotationVisitor;
import org.objectweb.asm.ClassReader;
import org.objectweb.asm.ClassVisitor;
import org.objectweb.asm.FieldVisitor;
import org.objectweb.asm.Label;
import org.objectweb.asm.MethodVisitor;
import org.objectweb.asm.Opcodes;
import org.objectweb.asm.Type;
/**
* Main Class of javadepchecker
* Gentoo Java Utility to scan class files for unneeded dependencies and
* ophaned class files
*
* @author Petteri Räty <betelgeuse@gentoo.org>
* @author Serkan Kaba <serkan@gentoo.org>
* @author William L. Thomson Jr., <wlt@o-sinc.com>
*/
public final class Main extends ClassVisitor {
static private String image = "";
private Set<String> mDeps = new HashSet<>();
private Set<String> mCurrent = new HashSet<>();
/**
* Empty Constructor, sets ASM op code version
*/
public Main() {
super(Opcodes.ASM5);
}
/**
* Get jar names from the Gentoo package and store in a collection
*
* @param pkg Gentoo package name
* @return a collection of jar names
*/
private static Collection<String> getPackageJars(String pkg) {
ArrayList<String> jars = new ArrayList<>();
try {
Process p = Runtime.getRuntime().exec("java-config -p " + pkg);
p.waitFor();
BufferedReader in;
in = new BufferedReader(new InputStreamReader(p.getInputStream()));
String output = in.readLine();
if (output!=null/* package somehow missing*/ &&
!output.trim().isEmpty()) {
jars.addAll(Arrays.asList(output.split(":")));
}
} catch (InterruptedException | IOException ex) {
Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
}
return jars;
}
/**
* Scan jar for classes to be processed by ASM
*
* @param jar jar file to be processed
* @throws IOException
*/
public void processJar(JarFile jar) throws IOException {
Collections.list(jar.entries())
.stream()
.filter((JarEntry entry) -> (!entry.isDirectory() && entry.getName().endsWith("class")))
.forEach((JarEntry entry) -> {
InputStream is = null;
try {
Main.this.mCurrent.add(entry.getName());
is = jar.getInputStream(entry);
new ClassReader(is).accept(Main.this, 0);
} catch (IOException ex) {
Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
} finally {
try {
if(is!=null)
is.close();
} catch (IOException ex) {
Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
}
}
});
}
/**
* Check if a dependency is needed by a given package
*
* @param pkg Gentoo package name
* @param deps collection of dependencies for the package
* @return boolean if the dependency is needed or not
* @throws IOException
*/
private static boolean depNeeded(String pkg,
Collection<String> deps) throws IOException {
Collection<String> jars = getPackageJars(pkg);
// We have a virtual with VM provider here
if (jars.isEmpty()) {
return true;
}
for (String jarName : jars) {
JarFile jar = new JarFile(jarName);
for (Enumeration<JarEntry> e = jar.entries(); e.hasMoreElements();) {
String name = e.nextElement().getName();
if (deps.contains(name)) {
return true;
}
}
}
return false;
}
/**
* Check for orphaned class files not owned by any package in dependencies
*
* @param pkg Gentoo package name
* @param deps collection of dependencies for the package
* @return boolean if the dependency is found or not
* @throws IOException
*/
private static boolean depsFound(Collection<String> pkgs,
Collection<String> deps) throws IOException {
boolean found = true;
Collection<String> jars = new ArrayList<>();
String[] bootClassPathJars = System.getProperty("sun.boot.class.path").split(":");
// Do we need "java-config -r" here?
for (String jar : bootClassPathJars) {
File jarFile = new File(jar);
if (jarFile.exists()) {
jars.add(jar);
}
}
pkgs.forEach((String pkg) -> {
jars.addAll(getPackageJars(pkg));
});
if (jars.isEmpty()) {
return false;
}
ArrayList<String> jarClasses = new ArrayList<>();
jars.forEach((String jarName) -> {
try {
JarFile jar = new JarFile(jarName);
Collections.list(jar.entries()).forEach((JarEntry entry) -> {
jarClasses.add(entry.getName());
});
} catch (IOException ex) {
Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
}
});
for (String dep : deps) {
if (!jarClasses.contains(dep)) {
if (found) {
System.out.println("Class files not found via DEPEND in package.env");
}
System.out.println("\t" + dep);
found = false;
}
}
return found;
}
/**
* Core method, this one fires off all others and is the one called from
* Main. Check this package for unneeded dependencies and orphaned class
* files
*
* @param env
* @return
*/
private static boolean checkPkg(File env) {
boolean needed = true;
boolean found = true;
HashSet<String> pkgs = new HashSet<>();
Collection<String> deps = null;
InputStream is = null;
try {
// load package.env
Properties props = new Properties();
is = new FileInputStream(env);
props.load(is);
// load package deps, add to hashset if exist
String depend = props.getProperty("DEPEND");
if(depend!=null &&
!depend.isEmpty()) {
for (String atom : depend.replaceAll("\"","").split(":")) {
String pkg = atom;
if (atom.contains("@")) {
pkg = atom.split("@")[1];
}
pkgs.add(pkg);
}
}
// load package classpath
String classpath = props.getProperty("CLASSPATH");
if(classpath!=null &&
!classpath.isEmpty()) {
Main classParser = new Main();
for (String jar : classpath.replaceAll("\"","").split(":")) {
if (jar.endsWith(".jar")) {
classParser.processJar(new JarFile(image + jar));
}
}
deps = classParser.getDeps();
}
for (String pkg : pkgs) {
if (!depNeeded(pkg, deps)) {
if (needed) {
System.out.println("Possibly unneeded dependencies found");
}
System.out.println("\t" + pkg);
needed = false;
}
}
found = depsFound(pkgs, deps);
} catch (IOException ex) {
Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
} finally {
try {
if(is!=null)
is.close();
} catch (IOException ex) {
Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
}
}
return needed && found;
}
/** Main method, parse command line opts, invoke the package checker
* @param args the command line arguments
* @throws java.io.IOException
*/
public static void main(String[] args) throws IOException {
int exit = 0;
try {
CommandLineParser parser = new PosixParser();
Options options = new Options();
options.addOption("h", "help", false, "print help");
options.addOption("i", "image", true, "image directory");
options.addOption("v", "verbose", false, "print verbose output");
CommandLine line = parser.parse(options, args);
String[] files = line.getArgs();
if (line.hasOption("h") || files.length == 0) {
HelpFormatter h = new HelpFormatter();
h.printHelp("java-dep-check [-i <image>] <package.env>+", options);
} else {
image = line.getOptionValue("i", "");
for (String arg : files) {
if (line.hasOption('v')) {
System.out.println("Checking " + arg);
}
if (!checkPkg(new File(arg))) {
exit = 1;
}
}
}
} catch (ParseException ex) {
Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
}
System.exit(exit);
}
/**
* Add dependency to deps hashset
*
* @param dep dependent class name
*/
private void addDep(String dep) {
mDeps.add(dep + ".class");
}
/**
* Add dependency type to deps hashset
*
* @param dep dependent class name
*/
private void addDep(Type dep) {
if (dep.getSort() == Type.ARRAY) {
addDep(dep.getElementType());
}
if (dep.getSort() == Type.OBJECT) {
addDep(dep.getInternalName());
}
}
/**
* Get deps not contained in the current hashset
*
* @return a collection of deps
*/
private Collection<String> getDeps() {
ArrayList<String> result = new ArrayList<>();
mDeps.stream().filter((s) -> (!mCurrent.contains(s))).forEach((s) -> {
result.add(s);
});
return result;
}
@Override
public void visit(int version,
int access,
String name,
String signature,
String superName,
String[] interfaces) {
if(superName != null) {
addDep(superName);
}
for (String iface : interfaces) {
addDep(iface);
}
}
@Override
public FieldVisitor visitField(int access,
String name,
String desc,
String signature,
Object value) {
addDep(Type.getType(desc));
return null;
}
@Override
public MethodVisitor visitMethod(int access,
String name,
String desc,
String signature,
String[] exceptions) {
for (Type param : Type.getArgumentTypes(desc)) {
addDep(param);
}
if (exceptions != null) {
for (String exception : exceptions) {
addDep(exception);
}
}
addDep(Type.getReturnType(desc));
return new MethodVisitor(Opcodes.ASM5) {
@Override
public void visitLocalVariable(String name,
String desc,
String signature,
Label start,
Label end,
int index) {
addDep(Type.getType(desc));
}
@Override
public void visitFieldInsn(int opcode,
String owner,
String name,
String desc) {
addDep(Type.getObjectType(owner));
addDep(Type.getType(desc));
}
@Override
public void visitMethodInsn(int opcode,
String owner,
String name,
String desc,
boolean itf) {
addDep(Type.getObjectType(owner));
}
@Override
public AnnotationVisitor visitParameterAnnotation(int parameter,
String desc,
boolean visible) {
return Main.this.visitAnnotation(desc, visible);
}
};
}
@Override
public AnnotationVisitor visitAnnotation(String desc, boolean visible) {
addDep(Type.getType(desc));
return null;
}
}

@ -0,0 +1,32 @@
# Copyright 2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit java-pkg-2 java-pkg-simple
DESCRIPTION="Java Dependency checker"
HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Java"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
COMMON_DEP="
dev-java/commons-cli:1
dev-java/asm:4"
RDEPEND=">=virtual/jre-1.8
${COMMON_DEP}"
DEPEND=">=virtual/jdk-1.8
${COMMON_DEP}"
JAVA_GENTOO_CLASSPATH="asm-4,commons-cli-1"
src_unpack() {
cp "${FILESDIR}/Main-${PV}.java" Main.java || die
}
src_install() {
java-pkg-simple_src_install
java-pkg_dolauncher ${PN} --main javadepchecker.Main
}

@ -1,2 +1,2 @@
DIST jdk-7u80-docs-all.zip 61168809 SHA256 0494bd49bc9cb3cbe3203120ae8b2c8e0aeb1579cb15c0fbd3cd780d19aa200a SHA512 c673c00e55c9a19938c42512cb9c6ae65de9803a1307d11a2043903d87cc36d9ed1f5a1e287040d8570e430cfe55f496354c1242fe6e242f1245f8271394ea1a WHIRLPOOL ad18886c401ec42735665081a0dd5ba3dc7678de0171f3aa8151c2e4ce3392e467be65c602f393da38373e589fa9800ed1afd3601d2cef4e48b06e57f491698e
DIST jdk-8u102-docs-all.zip 93442717 SHA256 4fda7a905f4e4d6ec39bf6352e3c95a7ad0d00dca30e212919cbcd96b0c757c6 SHA512 f6c32cf36895711a399f054f25f0a8f58be2bc5db082ade951a0f4a9f9cb2b90158d7477b6dea75c1cb8043e0d900b841e7bfb3656748571be9d151d505c1ba6 WHIRLPOOL 907410052034f765bb2aac2ce2ac6a0c273df40d70fea987012256e3eac194266184abf09a7eaf7d21e8c7cb6ff36ac256b2791169e65715abbef8bf8eb1270d
DIST jdk-8u112-docs-all.zip 93436489 SHA256 c490e3255554687d1add33efb3fc4734f28dd257cdb52ae00062d4d5c0ab12fe SHA512 89e6a4dd8a9b332346e66fb580ae069f42a82831f83222a98c2d9f097a1cb0e10712de6dd5e3e5bb9090e49b41d1d140e64c483ebac3df7e3ccd96c82d938bf7 WHIRLPOOL 9f1bd315685e8f2e26a20d107cf7b6d8f233b70b4c4fb0f80a6e25ee231c265d71b3cbfc1e41beec1ed03d9775d583d8e37257c8707bc6eac6f09a1e9865c2dd

@ -1,8 +1,4 @@
DIST jce_policy-8.zip 8409 SHA256 f3020a3922efd6626c2fff45695d527f34a8020e938a49292561f18ad1320b59 SHA512 abbaa81a35f904ec61b4cf3c2d1ca8c8d49e53bb248e698185eea906939d68f5063412800585ec74027aab1012ef189aebe1dc99fe8ef4230a0ecb0b527f88e5 WHIRLPOOL 8c9ce1ea4673b75fa6271b74e598880f98361d5d2c9c25439fa0af3d07cfeb871b39682dae4e38160f49770b1fec953162e451b9b2cf44d2c72a226944212bcc
DIST jdk-8u101-linux-arm32-vfp-hflt-demos.tar.gz 10431884 SHA256 5426040890772b3008ec134d9c11e9bf18f6b01a342ce76c1829f8bbf194964e SHA512 cd59a278570e6c4cdec1ca9db8200d3a9a0ab49bf561e23139b6987cebede3ca3bd332668ccb1bee6ad4ef05b7385e2939c2556a4a31da70e58f0c704db99724 WHIRLPOOL 3a989a7cae0b77ba53557e7972a5b582d78dfa005bd1f018cb27e0b3df9b45a1da592a86e0e954129772c278926b648dd5cf09b4ff347917e5978c9a23159626
DIST jdk-8u101-linux-arm32-vfp-hflt.tar.gz 81542641 SHA256 9819bd28af551589c8ea599c5b8b5cdf1aa86dacc9a75c31dd611bda27ae38a4 SHA512 861752cb55a4ba52961e6328b71ca02cbe3d911965f74b9e45304cfcf68f8753f89d343343b0effa4f74bf06e09dc9223a83df84dc7f5c37c84262f97738422a WHIRLPOOL 1251b2dbe5b4c82ca0e024c02210d70575d2650c78363b87e2eecf8b416e7d1579d5657d63342384153bd11912e6a1f8a5b0edb10fb8f7b1ad7e51d77615621c
DIST jdk-8u101-linux-arm64-vfp-hflt-demos.tar.gz 10386441 SHA256 4f598169e972c6378e19cb06cec35d0fe9e13ea95209897a40c50dd69cd47e88 SHA512 8b7c44bf006108a780b18111f3a21bbd867555a21dce4bcad661c27b6cddbf28cdd78a15f9056916b9f179e41d320586288d5e12853564e59a9e4a4db5be0a13 WHIRLPOOL bef6e3c3551bcd40efa629f6f65b4aaf7d82c5ccc43ff168f4ee8b6a3221863f79c47ce76bf3757cca16638127b32694e08bfe478d82f18bd1df04aa8818010c
DIST jdk-8u101-linux-arm64-vfp-hflt.tar.gz 78347134 SHA256 795df50a2991e84866ccd251111cfa1cf72d1859aa77d4cc1a8fa2419d254bcf SHA512 63f888187f045f946a30ce52cc853ace44a13a64ce2eea51d971eecf740b0cd435fb44a76e2dbb93a668ac7c262012ea61712af719c323b330b4b003f48ce686 WHIRLPOOL 688af78a6f9ef01987cf046dc99864816f3cff6764a8cc3e83c90f5e5b8012cf18f8e29e5ef82ef6c10699ec034c9e513c3f0a4926e6dc7587aeb009e9055578
DIST jdk-8u102-linux-i586-demos.tar.gz 55067513 SHA256 a7931ebf57eb967fadc7ef68370600c42e612658cda5d1b638283935d9b0e47e SHA512 7de446ff15e597a36b467bb3f762ef99b5de80c1cee5e4b645cab124dbc9eeccc1cd7240af933db1a68a2e0828afde63772968371834354a296cd65e05df362d WHIRLPOOL 4b9b680ce9776b0fa6abeee220279131d333dfb169fe53736a31454ca137ee2b70c830006b05a75e92ad5d9dd3e70ba7cc8a8f4dad0050db896527b2683d770b
DIST jdk-8u102-linux-i586.tar.gz 183529522 SHA256 ed08112bad8e63c1c102ab52fccef930849b6cbadc5e9a816e12a99ddcbb5eaf SHA512 23a4c75161d3d0a6097640d1a4ef6b268e9555bc5dd425e3772374a5ed002a14932011972a05f966aaff48b7371fa150af3ddce5ab810b5b1b0fcd4993e1e53d WHIRLPOOL 5eeb83aa099574e2ecfb8c53770accd47642e624374aaa47e4c7cf909841ab4ce275926966bb68a5156302461d7c2badbb5f395357b14900ceb0a4048f9c4788
DIST jdk-8u102-linux-x64-demos.tar.gz 55097110 SHA256 07c96706b029f92e7c5f783af03f837bafa4e9fffd3ae1aadba3b412f20dbf6b SHA512 d8fc956a463583466596c0fe89a96e05971f358a3385c80ccff0b6b18b37505b31f1033594f9a2611de4cf2d4b378fa324018e0cc0e9392ab0f07f106962d7e5 WHIRLPOOL ac7028d7f6279bf8b601c69bf83e2ffa4119c358f6fb85d9dd49ff98959e97704fd1918fcf360da5a2b17509b17293e1b4cbf88715cb04b6d8efac734b6bab0f
@ -13,3 +9,17 @@ DIST jdk-8u102-solaris-sparcv9-demos.tar.gz 9785269 SHA256 627331a28b33cbafea7e3
DIST jdk-8u102-solaris-sparcv9.tar.gz 103789000 SHA256 8a720552ee679b7a4d207b16c8fa5d30222f7be3f9a0081a71a913b73b4f35a5 SHA512 af7b8d3ae6e322ab0a17e555debd48e2a210450b70382f8f9e5b89045d9320728de05c7dd2f7407261b1d679029c0bce15569f413b56258c790400972f4035c8 WHIRLPOOL 24569d67a55464a96d0564ec619739d1c764d64986be0ea709d61b6306876b7386a20e3165aee3b41a3c6a6965d216abd1e5896b08dee630bcec8157cfec7637
DIST jdk-8u102-solaris-x64-demos.tar.gz 9721135 SHA256 a7951a0a3c3ee52afa3ddd3ec4a8d25de02217dd2062a7f051e056ade83558f4 SHA512 354ade36a5af449eb43c9a8539ee5ffedb660981d5a9ee86887946b1df38f633f8841b35016d966c9116fd4c8ef23c92f220a42201e92a69d12a711675e51df9 WHIRLPOOL 62e84c7f8ec1a2d952b76510521fec814e2f476bbdf1effd92f7defcd04447a30001c1ba0127e1a6a9378aead56a7893f040d3526918f0326816487c5fca5af2
DIST jdk-8u102-solaris-x64.tar.gz 100915566 SHA256 a3842c793a894beb0c836ffaf385e569b76d51a4efb9d0476cc26f0a02342684 SHA512 bf43f4bb4c706b0175182eb68063dee55cd4cd9e584f2df7b71c57368e6809be3f40b1138e6866f7f9a1dd0ac2c13a13ef4de8a38dfb94aea3194456a82ebb56 WHIRLPOOL 81a433b08f4d02c834d19d5dc612f4dc7ddac86e4e9d2a39041c96f09e8e1f715e4a9add330322a62e398c495b48f7a9a2fb8738a6c92d7e4280d0a31d3e3896
DIST jdk-8u111-linux-arm32-vfp-hflt-demos.tar.gz 10406594 SHA256 dbd7ac2a37772db34bd4b5cf4bde03197666b31bc5a7216b6b6443bb5f9d6c8e SHA512 e04f23ba6cfb28316d692b52fbe79409f8cbd7bd0fcbf68d380230cf3dcc7572e77b928c189b9e997e0a526bd651b00328bab1f42d2d96454281015299cfa598 WHIRLPOOL 2113076a5ba391d4be4e5d895025c10b222c4bd31052f555256d01662701249105bf562eecd6f90553e6c7907ea4f2f70df1d10e6792ac279e6b919aef1f5e2c
DIST jdk-8u111-linux-arm32-vfp-hflt.tar.gz 81562420 SHA256 add3f9685161337fd31e433ea9b19231d6b40561dc40826057930fa2d76d7925 SHA512 efc83a3ec852448119e2b01fb4e97f061c77bc389faff4eaebde47561cd599f520dc6d617a61beacacf526badc7642d78f435d2a8972f2a33fa4c7323d09a09a WHIRLPOOL 62eea25fba522b27904dcde7664b33d6a978d6d445b56f272ece304e6d0c81f1537d573c2ea6d8e1e1c9c1d9ad5edb01e0c5b1f322172543d4fc363dc7e9da59
DIST jdk-8u111-linux-arm64-vfp-hflt-demos.tar.gz 10422107 SHA256 226d7cc2e58b8956011846460fafacba62d4c0205c642602740cfd65ac60a91b SHA512 0ab1616924e399df4ee32b569b984a1dad01024ae723fa6d7989b79871945d824ed51e9baab3e5a81c1b867b6ed231aabc2577eca062d3ddb8d2a7f3fbb653bf WHIRLPOOL dff54472e3725a02d454a0c4dba426dd67effac23fa18ae6af4572ca75cd4098aca9425884824d8e2c2ea04d4be3f23af6a1154eb647b410fbf559c5fe9f759e
DIST jdk-8u111-linux-arm64-vfp-hflt.tar.gz 78359608 SHA256 8fd6be278b1d312c53897de66e9bd2e6eb5ce0d5b62da8bbd9b1333dc190ed15 SHA512 c3168910cca15ffa9d0ca8026baf92f1c914d28ebb4e1feb78bc7e94d24ea814cfa0456d3febd93d66aa1f65ca082a5eda2c4651889314dfc47d7e819350c6e1 WHIRLPOOL 304a2936756a40001db6fe923106838fccbfe484454d9a31879666ce01578800086e8657e28d489401ab12b058690c4638cd5bd437c4368b6a887b02c9cc9922
DIST jdk-8u112-linux-i586-demos.tar.gz 55066408 SHA256 8b3c5fe1b5c6dcec93172f79b4629898bb51daf8e7b57ea58e632185900f3d64 SHA512 cdc30633bd1d1f3b18ccb8fad22befc5df2b02e90519cca248d2e073c71439733f6913aea852894fe0b76cd8d91cadb8365d965dcad562233d882b95371455a6 WHIRLPOOL 037f592c521ba0351ce4f67248a8538d5470baa08c23f41c19637e0b6b643705b496d2dc43fd59a624350d4f90b8d4d08f24a9b2f2c9ce822ebb7295dba5f4b8
DIST jdk-8u112-linux-i586.tar.gz 185725687 SHA256 1e7c2fb80b339dd65f261d37e26ffd5f3136e5ff8778026ed227b47516df69a5 SHA512 c6b855d870013a526cc2f4e133310ddca0e6a5276d02e0972c04a05e107a2654d5199fef296c91a4284e0a66bc9fbb0c0aa5ea49ae4a0f83319f5595a0c857fa WHIRLPOOL 691788fcdb4513d8c974968b567430b24e80f38f34dc26b8c0cf267451c618975596b5891807c59624b2bd56fa0996db4d729a1d297531f3cbbe8a6ea70e4424
DIST jdk-8u112-linux-x64-demos.tar.gz 55099439 SHA256 d5cf33c3daf8cd3cf476092283288126d2e4636c7ab0b183f0155d72d91b5c9e SHA512 6ff4bbceba63f1cc23183a1248a93a5968b80ec660029c69f60a9b96ad261651be1117348b50b634e02da0250b0432a0fdb1cb2ab515445eaad0ef7a4ae38269 WHIRLPOOL 9344364253c8ee9158e31bc96f98ab0e502d1b8ce98f816f88b81f9478b6e71bdb18d88edb7a8165dcbc8b2350082fb6a21c46e6caaf2663484f855713e7cedd
DIST jdk-8u112-linux-x64.tar.gz 183212596 SHA256 777bd7d5268408a5a94f5e366c2e43e720c6ce4fe8c59d9a71e2961e50d774a5 SHA512 6f3c5851e4c1c6b9c2cabc05a4781dcf46b4e28469ac8637bcfcb3527027ba57bf89e59c8b87754a34f602f75bf3ea890825ab6ae63fdb7c118d6460a1435c94 WHIRLPOOL 5bc7fc00dbeaaaa32b1e8b42e5523f7c4b2ec66b65c6a2416ffb3761880575bb4c7b38ea88f527f553622f026eee616404fa1a3d8183c5cb1ae9a932eab7dc37
DIST jdk-8u112-macosx-x64.dmg 233985686 SHA256 c9ebb729acb0ee8e6fbeda85751be20b024c45e3ebb83cc7c624908ffb8a466d SHA512 27cb0d5d823eaa90fbcb444f39b913bb37e2edad9d6e934378b1fae590c7410c52c064c2c70dcde7a1536616fb103791c7686b662eacb650a2048229e2048005 WHIRLPOOL bcf8f754ec63b1bd178400b1ff692426283ef2c8d503ba87945149176048fa7247f94b0385b18bbf3349d20a7b44a03af3506c3d9d10d9f983d3e2ddcc74a615
DIST jdk-8u112-macosx-x86_64-demos.zip 55667608 SHA256 f648039d3553c10f06b603ad6e7925ffdb9b552929447ca9108c1a350358f337 SHA512 990e64dde1cbcc71b73b8f51ae8d3b9dec8d6fb760b5ce20a9e22f9272a46ab79caa4e597adc838b6e8179ef55ecff2a1a84a48554a6cedc6ab483a32b24e682 WHIRLPOOL 98e668d71268b37771ef00304394c3410dd07ad5b0734df1f27129d9686aebe2b1fade01609578fa334cdec060921e001fd8146ac1107bba39eed6ffeb92c69f
DIST jdk-8u112-solaris-sparcv9-demos.tar.gz 9804200 SHA256 acd7237d7e3efc69d3769e80950fabcb4030372655f891979ad9312900ee2626 SHA512 07eb243589bae496770bc6a4fd0b3d1d2d0ab05f3a4afcdf5cd1d6fe656fbb489090e3d9f807766cc82571cd662dac5060ce8fbc6767c42373a5962ef59f9078 WHIRLPOOL a45b5e003db65591af847e62eee724ae826692dc06cba49721c0810d8ba6801660ddd45144e4a90bb5000829b5588f90151d757d1f5f3618bb64f4894d809504
DIST jdk-8u112-solaris-sparcv9.tar.gz 103876511 SHA256 f01739d94564eced651ea93ce5d98d1ccbb63fa99a4b7a7c3db99d03e30cf475 SHA512 ef4463b8a7e49d4ddf5aa5bca6f279ed4d3fbeca867aecb1f0c30661b8a08bbf1d0a5a8ecddc4f951e8655bb8d936b63090034d09fa7cca3a4012602a7f775c8 WHIRLPOOL f2bd24163c905fc1e800267b4e1d1f4856ceaca409a24b1ba406fa779d5b78917de5bd4acaf54177220d6abd824b33b6e2e351604681e27be13e7b15c2072254
DIST jdk-8u112-solaris-x64-demos.tar.gz 9755514 SHA256 bbd8e55531ae6b1f6ad759334ffd62c1746912822326915def857351df3a7d95 SHA512 182ed642f76de2e15eba7bb96c09f75d14dfe9bb3b85c881521cda3746b90419eefef3941545f37d3fd81ec98509ae9003f9b419c3277ad58c0ed412b8b07b48 WHIRLPOOL 1007923893b91c0a636b5a710d98d137f34069e875382dc45b79977c6eff4166fcc10f134a9630966247597012668ff6b9dbc532273902175c9ac356b7b3686a
DIST jdk-8u112-solaris-x64.tar.gz 101560691 SHA256 8adb58456c1860be9e73e28a4d249b478918d331f2dbcbbbac7c558708b8b754 SHA512 f7aeb0c4c8904014e247cf57ff30a53c804f06454f3b7eadfc2b831d59961a35ec29b0a3d1beb7809bf05fed452b898637fd54e2b59d3caccae76cd2fbf4e776 WHIRLPOOL 60967fb1930ce00298a11f4488b9e52a48f2f01fd2df60bffab095c968a5c1f2a383cc454331e6d43d5fab8ed703861783268faa8328fbff55742e542b4bd934

@ -0,0 +1,366 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
inherit eutils java-vm-2 prefix versionator
# This URIs need to be updated when bumping!
JDK_URI="http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html"
JCE_URI="http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html"
# This is a list of archs supported by this update.
# Currently arm comes and goes.
AT_AVAILABLE=( amd64 x86 x64-solaris sparc64-solaris x64-macos )
# Sometimes some or all of the demos are missing, this is to not have to rewrite half
# the ebuild when it happens.
DEMOS_AVAILABLE=( amd64 x86 x64-solaris sparc64-solaris x64-macos )
if [[ "$(get_version_component_range 4)" == 0 ]] ; then
S_PV="$(get_version_component_range 1-3)"
else
MY_PV_EXT="u$(get_version_component_range 4)"
S_PV="$(get_version_component_range 1-4)"
fi
MY_PV="$(get_version_component_range 2)${MY_PV_EXT}"
AT_amd64="jdk-${MY_PV}-linux-x64.tar.gz"
AT_arm="jdk-${MY_PV}-linux-arm32-vfp-hflt.tar.gz"
AT_arm64="jdk-${MY_PV}-linux-arm64-vfp-hflt.tar.gz"
AT_x86="jdk-${MY_PV}-linux-i586.tar.gz"
AT_x64_solaris="jdk-${MY_PV}-solaris-x64.tar.gz"
AT_sparc64_solaris="${AT_sparc_solaris} jdk-${MY_PV}-solaris-sparcv9.tar.gz"
AT_x64_macos="jdk-${MY_PV}-macosx-x64.dmg"
DEMOS_amd64="jdk-${MY_PV}-linux-x64-demos.tar.gz"
DEMOS_arm="jdk-${MY_PV}-linux-arm32-vfp-hflt-demos.tar.gz"
DEMOS_arm64="jdk-${MY_PV}-linux-arm64-vfp-hflt-demos.tar.gz"
DEMOS_x86="jdk-${MY_PV}-linux-i586-demos.tar.gz"
DEMOS_x64_solaris="jdk-${MY_PV}-solaris-x64-demos.tar.gz"
DEMOS_sparc64_solaris="jdk-${MY_PV}-solaris-sparcv9-demos.tar.gz"
DEMOS_x64_macos="jdk-${MY_PV}-macosx-x86_64-demos.zip"
JCE_DIR="UnlimitedJCEPolicyJDK8"
JCE_FILE="jce_policy-8.zip"
DESCRIPTION="Oracle's Java SE Development Kit"
HOMEPAGE="http://www.oracle.com/technetwork/java/javase/"
for d in "${AT_AVAILABLE[@]}"; do
SRC_URI+=" ${d}? ( $(eval "echo \${$(echo AT_${d/-/_})}")"
if has ${d} "${DEMOS_AVAILABLE[@]}"; then
SRC_URI+=" examples? ( $(eval "echo \${$(echo DEMOS_${d/-/_})}") )"
fi
SRC_URI+=" )"
done
unset d
SRC_URI+=" jce? ( ${JCE_FILE} )"
LICENSE="Oracle-BCLA-JavaSE examples? ( BSD )"
SLOT="1.8"
KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~x64-macos ~sparc64-solaris ~x64-solaris"
IUSE="alsa cups derby doc examples +fontconfig headless-awt javafx jce nsplugin pax_kernel selinux source"
REQUIRED_USE="javafx? ( alsa fontconfig )"
RESTRICT="fetch preserve-libs strip"
QA_PREBUILT="*"
# NOTES:
#
# * cups is dlopened.
#
# * libpng is also dlopened but only by libsplashscreen, which isn't
# important, so we can exclude that.
#
# * We still need to work out the exact AWT and JavaFX dependencies
# under MacOS. It doesn't appear to use many, if any, of the
# dependencies below.
#
RDEPEND="!x64-macos? (
!headless-awt? (
x11-libs/libX11
x11-libs/libXext
x11-libs/libXi
x11-libs/libXrender
x11-libs/libXtst
)
javafx? (
dev-libs/glib:2
dev-libs/libxml2:2
dev-libs/libxslt
media-libs/freetype:2
x11-libs/cairo
x11-libs/gtk+:2
x11-libs/libX11
x11-libs/libXtst
x11-libs/libXxf86vm
x11-libs/pango
virtual/opengl
)
)
alsa? ( media-libs/alsa-lib )
cups? ( net-print/cups )
doc? ( dev-java/java-sdk-docs:${SLOT} )
fontconfig? ( media-libs/fontconfig:1.0 )
!prefix? ( sys-libs/glibc:* )
selinux? ( sec-policy/selinux-java )"
# A PaX header isn't created by scanelf so depend on paxctl to avoid
# fallback marking. See bug #427642.
DEPEND="app-arch/zip
jce? ( app-arch/unzip )
examples? ( x64-macos? ( app-arch/unzip ) )
pax_kernel? ( sys-apps/paxctl )"
S="${WORKDIR}/jdk"
check_tarballs_available() {
local uri=$1; shift
local dl= unavailable=
for dl in "${@}" ; do
[[ ! -f "${DISTDIR}/${dl}" ]] && unavailable+=" ${dl}"
done
if [[ -n "${unavailable}" ]] ; then
if [[ -z ${_check_tarballs_available_once} ]] ; then
einfo
einfo "Oracle requires you to download the needed files manually after"
einfo "accepting their license through a javascript capable web browser."
einfo
_check_tarballs_available_once=1
fi
einfo "Download the following files:"
for dl in ${unavailable}; do
einfo " ${dl}"
done
einfo "at '${uri}'"
einfo "and move them to '${DISTDIR}'"
einfo
einfo "If the above mentioned urls do not point to the correct version anymore,"
einfo "please download the files from Oracle's java download archive:"
einfo
einfo " http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html#jdk-${MY_PV}-oth-JPR"
einfo
fi
}
pkg_nofetch() {
local distfiles=( $(eval "echo \${$(echo AT_${ARCH/-/_})}") )
if use examples && has ${ARCH} "${DEMOS_AVAILABLE[@]}"; then
distfiles+=( $(eval "echo \${$(echo DEMOS_${ARCH/-/_})}") )
fi
check_tarballs_available "${JDK_URI}" "${distfiles[@]}"
use jce && check_tarballs_available "${JCE_URI}" "${JCE_FILE}"
}
src_unpack() {
if use x64-macos ; then
pushd "${T}" > /dev/null
mkdir dmgmount
hdiutil attach "${DISTDIR}"/jdk-${MY_PV}-macosx-x64.dmg \
-mountpoint "${T}"/dmgmount
local update=$(get_version_component_range 4)
[[ ${#update} == 1 ]] && update="0${update}"
xar -xf dmgmount/JDK\ $(get_version_component_range 2)\ Update\ ${update}.pkg
hdiutil detach "${T}"/dmgmount
zcat jdk1${MY_PV%u*}0${update}.pkg/Payload | cpio -idv
mv Contents/Home "${WORKDIR}"/jdk${MY_PV}
popd > /dev/null
use jce && unpack "${JCE_FILE}"
else
default
fi
# Upstream is changing their versioning scheme every release around 1.8.0.*;
# to stop having to change it over and over again, just wildcard match and
# live a happy life instead of trying to get this new jdk1.8.0_05 to work.
mv "${WORKDIR}"/jdk* "${S}" || die
}
src_prepare() {
if use jce ; then
mv "${WORKDIR}"/${JCE_DIR} jre/lib/security/ || die
fi
if [[ -n ${JAVA_PKG_STRICT} ]] ; then
# Mark this binary early to run it now.
pax-mark Cm ./bin/javap
eqawarn "Ensure that this only calls trackJavaUsage(). If not, see bug #559936."
eqawarn
eqawarn "$(./bin/javap -J-Duser.home=${T} -c sun.misc.PostVMInitHook || die)"
fi
# Remove the hook that calls Oracle's evil usage tracker. Not just
# because it's evil but because it breaks the sandbox during builds
# and we can't find any other feasible way to disable it or make it
# write somewhere else. See bug #559936 for details.
zip -d jre/lib/rt.jar sun/misc/PostVMInitHook.class || die
}
src_install() {
local dest="/opt/${P}"
local ddest="${ED}${dest#/}"
# Create files used as storage for system preferences.
mkdir jre/.systemPrefs || die
touch jre/.systemPrefs/.system.lock || die
touch jre/.systemPrefs/.systemRootModFile || die
if ! use alsa ; then
rm -vf jre/lib/*/libjsoundalsa.* || die
fi
if use headless-awt ; then
rm -vf {,jre/}lib/*/lib*{[jx]awt,splashscreen}* \
{,jre/}bin/{javaws,policytool} \
bin/appletviewer || die
fi
if ! use javafx ; then
rm -vf jre/lib/*/lib*{decora,fx,glass,prism}* \
jre/lib/*/libgstreamer-lite.* {,jre/}lib/{,ext/}*fx* \
bin/*javafx* bin/javapackager || die
fi
if ! use nsplugin ; then
rm -vf jre/lib/*/libnpjp2.* || die
else
local nsplugin=$(echo jre/lib/*/libnpjp2.*)
fi
# Even though plugins linked against multiple ffmpeg versions are
# provided, they generally lag behind what Gentoo has available.
rm -vf jre/lib/*/libavplugin* || die
dodoc COPYRIGHT
dodir "${dest}"
cp -pPR bin include jre lib man "${ddest}" || die
if use derby ; then
cp -pPR db "${ddest}" || die
fi
if use examples && has ${ARCH} "${DEMOS_AVAILABLE[@]}" ; then
cp -pPR demo sample "${ddest}" || die
fi
if use jce ; then
dodir "${dest}"/jre/lib/security/strong-jce
mv "${ddest}"/jre/lib/security/US_export_policy.jar \
"${ddest}"/jre/lib/security/strong-jce || die
mv "${ddest}"/jre/lib/security/local_policy.jar \
"${ddest}"/jre/lib/security/strong-jce || die
dosym "${dest}"/jre/lib/security/${JCE_DIR}/US_export_policy.jar \
"${dest}"/jre/lib/security/US_export_policy.jar
dosym "${dest}"/jre/lib/security/${JCE_DIR}/local_policy.jar \
"${dest}"/jre/lib/security/local_policy.jar
fi
if use nsplugin ; then
local nsplugin_link=${nsplugin##*/}
nsplugin_link=${nsplugin_link/./-${PN}-${SLOT}.}
dosym "${dest}/${nsplugin}" "/usr/$(get_libdir)/nsbrowser/plugins/${nsplugin_link}"
fi
if use source ; then
cp -v src.zip "${ddest}" || die
if use javafx ; then
cp -v javafx-src.zip "${ddest}" || die
fi
fi
if [[ -d jre/lib/desktop ]] ; then
# Install desktop file for the Java Control Panel.
# Using ${PN}-${SLOT} to prevent file collision with jre and or
# other slots. make_desktop_entry can't be used as ${P} would
# end up in filename.
newicon jre/lib/desktop/icons/hicolor/48x48/apps/sun-jcontrol.png \
sun-jcontrol-${PN}-${SLOT}.png || die
sed -e "s#Name=.*#Name=Java Control Panel for Oracle JDK ${SLOT}#" \
-e "s#Exec=.*#Exec=/opt/${P}/jre/bin/jcontrol#" \
-e "s#Icon=.*#Icon=sun-jcontrol-${PN}-${SLOT}#" \
-e "s#Application;##" \
-e "/Encoding/d" \
jre/lib/desktop/applications/sun_java.desktop \
> "${T}"/jcontrol-${PN}-${SLOT}.desktop || die
domenu "${T}"/jcontrol-${PN}-${SLOT}.desktop
fi
# Prune all fontconfig files so libfontconfig will be used and only install
# a Gentoo specific one if fontconfig is disabled.
# http://docs.oracle.com/javase/8/docs/technotes/guides/intl/fontconfig.html
rm "${ddest}"/jre/lib/fontconfig.*
if ! use fontconfig ; then
cp "${FILESDIR}"/fontconfig.Gentoo.properties "${T}"/fontconfig.properties || die
eprefixify "${T}"/fontconfig.properties
insinto "${dest}"/jre/lib/
doins "${T}"/fontconfig.properties
fi
# This needs to be done before CDS - #215225
java-vm_set-pax-markings "${ddest}"
# see bug #207282
einfo "Creating the Class Data Sharing archives"
case ${ARCH} in
arm|ia64)
${ddest}/bin/java -client -Xshare:dump || die
;;
x86)
${ddest}/bin/java -client -Xshare:dump || die
# limit heap size for large memory on x86 #467518
# this is a workaround and shouldn't be needed.
${ddest}/bin/java -server -Xms64m -Xmx64m -Xshare:dump || die
;;
*)
${ddest}/bin/java -server -Xshare:dump || die
;;
esac
# Remove empty dirs we might have copied.
find "${D}" -type d -empty -exec rmdir -v {} + || die
if use x64-macos ; then
# Fix miscellaneous install_name issues.
pushd "${ddest}"/jre/lib > /dev/null || die
local lib needed nlib npath
for lib in decora_sse glass prism_{common,es2,sw} ; do
lib=lib${lib}.dylib
einfo "Fixing self-reference of ${lib}"
install_name_tool \
-id "${EPREFIX}${dest}/jre/lib/${lib}" \
"${lib}"
done
popd > /dev/null
# This is still jdk1{5,6}, even on Java 8, so don't change it
# until you know different.
for nlib in jdk1{5,6} ; do
install_name_tool -change \
/usr/lib/libgcc_s_ppc64.1.dylib \
/usr/lib/libSystem.B.dylib \
"${ddest}"/lib/visualvm/profiler/lib/deployed/${nlib}/mac/libprofilerinterface.jnilib
install_name_tool -id \
"${EPREFIX}${dest}"/lib/visualvm/profiler/lib/deployed/${nlib}/mac/libprofilerinterface.jnilib \
"${ddest}"/lib/visualvm/profiler/lib/deployed/${nlib}/mac/libprofilerinterface.jnilib
done
fi
set_java_env
java-vm_revdep-mask
java-vm_sandbox-predict /dev/random /proc/self/coredump_filter
}
pkg_postinst() {
java-vm-2_pkg_postinst
if ! use headless-awt && ! use javafx; then
ewarn "You have disabled the javafx flag. Some modern desktop Java applications"
ewarn "require this and they may fail with a confusing error message."
fi
}

@ -1,3 +1,5 @@
DIST jce_policy-8.zip 8409 SHA256 f3020a3922efd6626c2fff45695d527f34a8020e938a49292561f18ad1320b59 SHA512 abbaa81a35f904ec61b4cf3c2d1ca8c8d49e53bb248e698185eea906939d68f5063412800585ec74027aab1012ef189aebe1dc99fe8ef4230a0ecb0b527f88e5 WHIRLPOOL 8c9ce1ea4673b75fa6271b74e598880f98361d5d2c9c25439fa0af3d07cfeb871b39682dae4e38160f49770b1fec953162e451b9b2cf44d2c72a226944212bcc
DIST jre-8u102-linux-i586.tar.gz 74086608 SHA256 b0ea9eba7e9a4da0abeefa67634644616b78ffd52884fbb7abdedb1c5c87f8a9 SHA512 bcb24bf99d4a9d92e551e998d456aa93cf956300c9c6be556415dd4d5358b31958d7c5731468b6e5cadd2f4d6ffaabc57cc7e1209577c17618ac2c3f32b4d372 WHIRLPOOL babb6c7fe114fe3af4b132d452ac60253f7941be83ed09ea4d4063758a3ccdfb689663db0f607f565bd876b06f8c442016f5d268b1f17e21ce81829949eb341c
DIST jre-8u102-linux-x64.tar.gz 71885713 SHA256 214ff6b52f5b1bccfc139dca910cea25f6fa19b9b96b4e3c10e699cd3e780dfb SHA512 9e4408aba9c648c7b18f45984575132191f87eef1c6e80d44450dd05b28fc773771c554564f00571c12f38312dc837ca3a9974323ad79acd0287a7193b8d6596 WHIRLPOOL 6b8c4f2d55135e006d5603aadc69f3d5aefe637bd024681d29367f0feaabdbfb522dfeef11ca800b916199fc1fa01536b356713618a5cf8bc2396d4b595258ac
DIST jre-8u112-linux-i586.tar.gz 76262744 SHA256 b314d73ddd80e7d0665fb85853d2d69d486bff4a3fd0def090a92be618ba12e9 SHA512 15856f20bf1ad035fa62c615565218780f7f781f77bdb00697e6acdfee946afb34a74dd7a027ab56775c9f82e8f05813fc1bf055e02ab388e2a13c829ac822d9 WHIRLPOOL 1c73896f06e9edf794ff46d18ce2b6aa05016c7d3bcd4dd45c3d4766d4e0a6883f8ce8dc8078c70447df72d20e604af0e32542e7a9a5e38ccc59518f34e0c5b7
DIST jre-8u112-linux-x64.tar.gz 73653824 SHA256 94053c6aa4d672b728c7788fb7d2676e5c6d7e7fcdbc1c86beaa796a083b4e5b SHA512 01dc42552b58d1560fc7236aa53f94c785b238573305d563c73068f564203560fb1db93e7f40815ebb2ce2bab3ed47517ea16882d976730342bdd8290cef55a5 WHIRLPOOL 6dd53b97dca5df8d79ba9203671158f161c5d40f0f061a26c38946a878fa1eeb51be5f996d0231ea298828d055644615dbfa79dd4621c5db2afa4955f05f921b

@ -0,0 +1,249 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
inherit eutils java-vm-2 prefix versionator
# This URIs need updating when bumping!
JRE_URI="http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html"
JCE_URI="http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html"
if [[ "$(get_version_component_range 4)" == 0 ]] ; then
S_PV="$(get_version_component_range 1-3)"
else
MY_PV_EXT="u$(get_version_component_range 4)"
S_PV="$(get_version_component_range 1-4)"
fi
MY_PV="$(get_version_component_range 2)${MY_PV_EXT}"
AT_amd64="jre-${MY_PV}-linux-x64.tar.gz"
AT_x86="jre-${MY_PV}-linux-i586.tar.gz"
JCE_DIR="UnlimitedJCEPolicyJDK8"
JCE_FILE="jce_policy-8.zip"
DESCRIPTION="Oracle's Java SE Runtime Environment"
HOMEPAGE="http://www.oracle.com/technetwork/java/javase/"
SRC_URI="
amd64? ( ${AT_amd64} )
x86? ( ${AT_x86} )
jce? ( ${JCE_FILE} )"
LICENSE="Oracle-BCLA-JavaSE"
SLOT="1.8"
KEYWORDS="amd64 x86"
IUSE="alsa cups +fontconfig headless-awt javafx jce nsplugin pax_kernel selinux"
RESTRICT="fetch preserve-libs strip"
QA_PREBUILT="*"
# NOTES:
#
# * cups is dlopened.
#
# * libpng is also dlopened but only by libsplashscreen, which isn't
# important, so we can exclude that.
#
# * We still need to work out the exact AWT and JavaFX dependencies
# under MacOS. It doesn't appear to use many, if any, of the
# dependencies below.
#
RDEPEND="!x64-macos? (
!headless-awt? (
x11-libs/libX11
x11-libs/libXext
x11-libs/libXi
x11-libs/libXrender
x11-libs/libXtst
)
javafx? (
dev-libs/glib:2
dev-libs/libxml2:2
dev-libs/libxslt
media-libs/freetype:2
x11-libs/cairo
x11-libs/gtk+:2
x11-libs/libX11
x11-libs/libXtst
x11-libs/libXxf86vm
x11-libs/pango
virtual/opengl
)
)
alsa? ( media-libs/alsa-lib )
cups? ( net-print/cups )
fontconfig? ( media-libs/fontconfig:1.0 )
!prefix? ( sys-libs/glibc:* )
selinux? ( sec-policy/selinux-java )"
# A PaX header isn't created by scanelf so depend on paxctl to avoid
# fallback marking. See bug #427642.
DEPEND="app-arch/zip
jce? ( app-arch/unzip )
pax_kernel? ( sys-apps/paxctl )"
S="${WORKDIR}/jre"
pkg_nofetch() {
local AT_ARCH="AT_${ARCH}"
local AT="${!AT_ARCH}"
einfo "Please download '${AT}' from:"
einfo "'${JRE_URI}'"
einfo "and move it to '${DISTDIR}'"
if use jce; then
einfo "Also download '${JCE_FILE}' from:"
einfo "'${JCE_URI}'"
einfo "and move it to '${DISTDIR}'"
fi
einfo
einfo "If the above mentioned urls do not point to the correct version anymore,"
einfo "please download the files from Oracle's java download archive:"
einfo
einfo " http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html#jre-${MY_PV}-oth-JPR"
einfo
}
src_unpack() {
default
# Upstream is changing their versioning scheme every release around 1.8.0.*;
# to stop having to change it over and over again, just wildcard match and
# live a happy life instead of trying to get this new jre1.8.0_05 to work.
mv "${WORKDIR}"/jre* "${S}" || die
}
src_prepare() {
if use jce ; then
mv "${WORKDIR}"/${JCE_DIR} lib/security/ || die
fi
# Remove the hook that calls Oracle's evil usage tracker. Not just
# because it's evil but because it breaks the sandbox during builds
# and we can't find any other feasible way to disable it or make it
# write somewhere else. See bug #559936 for details.
zip -d lib/rt.jar sun/misc/PostVMInitHook.class || die
}
src_install() {
local dest="/opt/${P}"
local ddest="${ED}${dest#/}"
# Create files used as storage for system preferences.
mkdir .systemPrefs || die
touch .systemPrefs/.system.lock || die
touch .systemPrefs/.systemRootModFile || die
if ! use alsa ; then
rm -vf lib/*/libjsoundalsa.* || die
fi
if use headless-awt ; then
rm -vf lib/*/lib*{[jx]awt,splashscreen}* \
bin/{javaws,policytool} || die
fi
if ! use javafx ; then
rm -vf lib/*/lib*{decora,fx,glass,prism}* \
lib/*/libgstreamer-lite.* lib/{,ext/}*fx* || die
fi
if ! use nsplugin ; then
rm -vf lib/*/libnpjp2.* || die
else
local nsplugin=$(echo lib/*/libnpjp2.*)
fi
# Even though plugins linked against multiple ffmpeg versions are
# provided, they generally lag behind what Gentoo has available.
rm -vf lib/*/libavplugin* || die
dodoc COPYRIGHT
dodir "${dest}"
cp -pPR bin lib man "${ddest}" || die
if use jce ; then
dodir ${dest}/lib/security/strong-jce
mv "${ddest}"/lib/security/US_export_policy.jar \
"${ddest}"/lib/security/strong-jce || die
mv "${ddest}"/lib/security/local_policy.jar \
"${ddest}"/lib/security/strong-jce || die
dosym "${dest}"/lib/security/${JCE_DIR}/US_export_policy.jar \
"${dest}"/lib/security/US_export_policy.jar
dosym "${dest}"/lib/security/${JCE_DIR}/local_policy.jar \
"${dest}"/lib/security/local_policy.jar
fi
if use nsplugin ; then
local nsplugin_link=${nsplugin##*/}
nsplugin_link=${nsplugin_link/./-${PN}-${SLOT}.}
dosym "${dest}/${nsplugin}" "/usr/$(get_libdir)/nsbrowser/plugins/${nsplugin_link}"
fi
# Install desktop file for the Java Control Panel.
# Using ${PN}-${SLOT} to prevent file collision with jre and or other slots.
# make_desktop_entry can't be used as ${P} would end up in filename.
newicon lib/desktop/icons/hicolor/48x48/apps/sun-jcontrol.png \
sun-jcontrol-${PN}-${SLOT}.png || die
sed -e "s#Name=.*#Name=Java Control Panel for Oracle JRE ${SLOT}#" \
-e "s#Exec=.*#Exec=/opt/${P}/bin/jcontrol#" \
-e "s#Icon=.*#Icon=sun-jcontrol-${PN}-${SLOT}#" \
-e "s#Application;##" \
-e "/Encoding/d" \
lib/desktop/applications/sun_java.desktop > \
"${T}"/jcontrol-${PN}-${SLOT}.desktop || die
domenu "${T}"/jcontrol-${PN}-${SLOT}.desktop
# Prune all fontconfig files so libfontconfig will be used and only install
# a Gentoo specific one if fontconfig is disabled.
# http://docs.oracle.com/javase/8/docs/technotes/guides/intl/fontconfig.html
rm "${ddest}"/lib/fontconfig.* || die
if ! use fontconfig ; then
cp "${FILESDIR}"/fontconfig.Gentoo.properties "${T}"/fontconfig.properties || die
eprefixify "${T}"/fontconfig.properties
insinto "${dest}"/lib/
doins "${T}"/fontconfig.properties
fi
# This needs to be done before CDS - #215225
java-vm_set-pax-markings "${ddest}"
# see bug #207282
einfo "Creating the Class Data Sharing archives"
case ${ARCH} in
arm|ia64)
${ddest}/bin/java -client -Xshare:dump || die
;;
x86)
${ddest}/bin/java -client -Xshare:dump || die
# limit heap size for large memory on x86 #467518
# this is a workaround and shouldn't be needed.
${ddest}/bin/java -server -Xms64m -Xmx64m -Xshare:dump || die
;;
*)
${ddest}/bin/java -server -Xshare:dump || die
;;
esac
# Remove empty dirs we might have copied.
find "${D}" -type d -empty -exec rmdir -v {} + || die
set_java_env
java-vm_revdep-mask
java-vm_sandbox-predict /dev/random /proc/self/coredump_filter
}
pkg_postinst() {
java-vm-2_pkg_postinst
if ! use headless-awt && ! use javafx; then
ewarn "You have disabled the javafx flag. Some modern desktop Java applications"
ewarn "require this and they may fail with a confusing error message."
fi
}

@ -1,87 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=4
PYTHON_DEPEND="python? 2"
inherit eutils multilib autotools java-pkg-opt-2 python
DESCRIPTION="general-purpose cryptography library"
HOMEPAGE="https://sourceforge.net/projects/beecrypt/"
SRC_URI="mirror://sourceforge/beecrypt/${P}.tar.gz"
LICENSE="GPL-2 LGPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
IUSE="java cxx python static-libs threads doc"
COMMONDEPEND="!<app-arch/rpm-4.2.1
cxx? ( >=dev-libs/icu-2.8 )"
DEPEND="${COMMONDEPEND}
java? ( >=virtual/jdk-1.4 )
doc? ( app-doc/doxygen
virtual/latex-base
dev-texlive/texlive-fontsextra
)"
RDEPEND="${COMMONDEPEND}
java? ( >=virtual/jre-1.4 )"
DOCS="BUGS README BENCHMARKS NEWS"
REQUIRED_USE="cxx? ( threads )"
pkg_setup() {
if use python; then
python_set_active_version 2
python_pkg_setup
java-pkg-opt-2_pkg_setup
fi
}
src_prepare() {
java-pkg-opt-2_src_prepare
use python && python_convert_shebangs -r 2 .
epatch "${FILESDIR}"/${P}-build-system.patch
epatch "${FILESDIR}"/${P}-gcc-4.7.patch
eautoreconf
}
src_configure() {
# cpluscplus needs threads support
econf \
--disable-expert-mode \
$(use_enable static-libs static) \
$(use_enable threads) \
$(use_with python python "${EPREFIX}"/usr/bin/python2) \
$(use_with cxx cplusplus) \
$(use_with java)
}
src_compile() {
default
if use doc; then
cd include/beecrypt
doxygen || die "doxygen failed"
fi
}
src_test() {
export BEECRYPT_CONF_FILE="${T}/beecrypt-test.conf"
echo "provider.1=${S}/c++/provider/.libs/base.so" > "${BEECRYPT_CONF_FILE}"
emake check
emake bench
}
src_install() {
default
rm -f "${ED}"/usr/$(get_libdir)/python*/site-packages/_bc.*a
use static-libs || find "${ED}" -name '*.la' -exec rm -f {} +
use doc && dohtml -r docs/html/.
}

@ -1,53 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
PYTHON_COMPAT=( python2_7 )
inherit eutils python-single-r1
DESCRIPTION="A library for registering global keyboard shortcuts"
HOMEPAGE="https://github.com/engla/keybinder"
SRC_URI="mirror://gentoo/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~x86"
IUSE="+introspection lua python"
RDEPEND=">=x11-libs/gtk+-2.20:2
x11-libs/libX11
x11-libs/libXext
x11-libs/libXrender
introspection? ( dev-libs/gobject-introspection )
lua? ( >=dev-lang/lua-5.1 )
python? ( ${PYTHON_DEPS}
>=dev-python/pygobject-2.15.3:2[${PYTHON_USEDEP}]
>=dev-python/pygtk-2.12[${PYTHON_USEDEP}]
)"
DEPEND="${RDEPEND}
virtual/pkgconfig"
DOCS="AUTHORS NEWS README"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
pkg_setup() {
use python && python-single-r1_pkg_setup
}
src_configure() {
local myconf
use lua || myconf='--disable-lua'
econf \
$(use_enable introspection) \
$(use_enable python) \
${myconf}
}
src_install() {
default
prune_libtool_files --all
}

@ -1,103 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=4
PYTHON_DEPEND="python? 2:2.7"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.* *-jython"
inherit multilib python
DESCRIPTION="Language bindings for Redland"
HOMEPAGE="http://librdf.org/bindings/"
SRC_URI="http://download.librdf.org/source/${P}.tar.gz"
LICENSE="Apache-2.0 GPL-2 LGPL-2.1"
SLOT="0"
KEYWORDS="alpha amd64 arm ia64 ppc ppc64 sparc x86 ~x86-linux ~ppc-macos"
IUSE="lua perl python php ruby"
RDEPEND=">=dev-libs/redland-1.0.14
lua? ( >=dev-lang/lua-5.1 )
perl? ( dev-lang/perl )
php? ( dev-lang/php )
ruby? ( dev-lang/ruby dev-ruby/log4r )"
DEPEND="${RDEPEND}
virtual/pkgconfig
>=dev-lang/swig-2
sys-apps/sed"
pkg_setup() {
use python && python_pkg_setup
}
src_configure() {
econf \
$(use_with lua) \
$(use_with perl) \
$(use_with python) \
$(use_with php) \
$(use_with ruby)
# Python bindings are built/tested/installed manually.
sed -e "/^SUBDIRS =/s/ python//" -i Makefile
}
src_compile() {
default
if use python; then
python_copy_sources python
building() {
emake \
PYTHON_INCLUDES="-I$(python_get_includedir)" \
pythondir="$(python_get_sitedir)"
}
python_execute_function -s --source-dir python building
fi
}
src_test() {
default
if use python; then
testing() {
emake \
PYTHON="$(PYTHON)" \
check
}
python_execute_function -s --source-dir python testing
fi
}
src_install() {
emake DESTDIR="${D}" INSTALLDIRS=vendor luadir=/usr/$(get_libdir)/lua/5.1 install
if use perl; then
find "${ED}" -type f -name perllocal.pod -delete
find "${ED}" -depth -mindepth 1 -type d -empty -delete
fi
if use python; then
installation() {
emake \
DESTDIR="${D}" \
pythondir="$(python_get_sitedir)" \
install
}
python_execute_function -s --source-dir python installation
fi
dodoc AUTHORS ChangeLog NEWS README TODO
dohtml {NEWS,README,RELEASE,TODO}.html
}
pkg_postinst() {
use python && python_mod_optimize RDF.py
}
pkg_postrm() {
use python && python_mod_cleanup RDF.py
}

@ -1,3 +1,2 @@
DIST stfl-0.22.tar.gz 41412 SHA256 2dddafd331e61ad04baf1251ccecb3a69feaf99880dd75155be8423c1cc55418 SHA512 dab2335ef00b65d00abda2a51fb5c667b48864b02ee82abee049f15fd9e2f272f21ec80d4a6cdbb5fc5882239ba28964912e4c0b641b2e83a7ab3bd7f94415bb WHIRLPOOL e1fdd9754f8d6bed3c43a8d19e128565efac36ead413836fe02ee97cb6ba9c3ac5ca2a2e5c7784389e0e8671dbf49286d2a3c746f31b406e511bf6942efce39e
DIST stfl-0.23.tar.gz 43941 SHA256 e75ed8427905ad50faf43ed5fefd0cf7b16ee0c1ca87e15d33e360bb92aedfde SHA512 02a7323740364acac4063d002775d04358bc9f98d8df4d83ec9dcdc9d9f46840be1cab0d2526c8cdc7a441784ec95100792edd1bbd1fa2365ce20ef4141a0e6e WHIRLPOOL 6331623402ae5a7df97df6c135b043e8c9b327de78ab2916e122489bdf1108871aef7772c016b5f567f8a00dca1f4274fce4add3d2d9a625f5aca911301c9730
DIST stfl-0.24.tar.gz 45585 SHA256 d4a7aa181a475aaf8a8914a8ccb2a7ff28919d4c8c0f8a061e17a0c36869c090 SHA512 95df4574b1bc32d795751156dc5b93afbca3ba241607a3a55210c89dda61b9a26ad574bb5f729a0158c9052235dbf63d6c58b38e7f1061d14ab7062af6150fa0 WHIRLPOOL 76545f41802a5f019ee44598368958a13551c3ed70747f45da88d61bc9ba882e514659b3c8f47805a7c199229078abc22ac5a79680b803244bfe8e29a081f10e

@ -1,126 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="*-jython"
inherit eutils multilib perl-module python toolchain-funcs
DESCRIPTION="A library which implements a curses-based widget set for text terminals"
HOMEPAGE="http://www.clifford.at/stfl/"
SRC_URI="http://www.clifford.at/${PN}/${P}.tar.gz"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="amd64 ~ppc x86"
IUSE="examples perl python ruby static-libs"
COMMON_DEPEND="sys-libs/ncurses[unicode]
perl? ( dev-lang/perl )
ruby? ( dev-lang/ruby )
python? ( dev-lang/python )"
DEPEND="${COMMON_DEPEND}
perl? ( dev-lang/swig )
python? ( >=dev-lang/swig-1.3.40 )
ruby? ( dev-lang/swig )"
RDEPEND="${COMMON_DEPEND}"
pkg_setup() {
use python && python_pkg_setup
}
src_prepare() {
sed -i \
-e 's/-Os -ggdb//' \
-e 's/^\(all:.*\) example/\1/' \
-e 's/$(CC) -shared/$(CC) $(LDFLAGS) -shared/' \
-e 's/ -o $@ $(LDLIBS) $^/ $^ $(LDLIBS) -o $@/' \
-e 's/-lncursesw/-lncursesw -pthread/' \
Makefile || die "sed failed"
if ! use static-libs ; then
sed -i -e "/install .* libstfl.a/d" Makefile || die
fi
epatch "${FILESDIR}"/${PN}-0.21-python.patch
epatch "${FILESDIR}"/${P}-soname-symlink.patch
epatch "${FILESDIR}"/${P}-ruby-sharedlib.patch
if use perl ; then
echo "FOUND_PERL5=1" >> Makefile.cfg
else
echo "FOUND_PERL5=0" >> Makefile.cfg
fi
if use ruby ; then
echo "FOUND_RUBY=1" >> Makefile.cfg
else
echo "FOUND_RUBY=0" >> Makefile.cfg
fi
echo "FOUND_PYTHON=0" >> Makefile.cfg
}
src_configure() { :; }
src_compile() {
emake CC="$(tc-getCC)"
if use python ; then
python_copy_sources python
# Based on code from python/Makefile.snippet.
building() {
echo swig -python -threads stfl.i
swig -python -threads stfl.i
echo "$(tc-getCC)" ${CFLAGS} ${LDFLAGS} -shared -pthread -fPIC stfl_wrap.c -I$(python_get_includedir) -I.. ../libstfl.so.${PV} -lncursesw -o _stfl.so
"$(tc-getCC)" ${CFLAGS} ${LDFLAGS} -shared -pthread -fPIC stfl_wrap.c -I$(python_get_includedir) -I.. ../libstfl.so.${PV} -lncursesw -o _stfl.so
}
python_execute_function -s --source-dir python building
fi
}
src_install() {
emake prefix="/usr" DESTDIR="${D}" libdir="$(get_libdir)" install
if use python ; then
installation() {
insinto $(python_get_sitedir)
doins stfl.py _stfl.so
}
python_execute_function -s --source-dir python installation
fi
dodoc README
local exdir="/usr/share/doc/${PF}/examples"
if use examples ; then
insinto ${exdir}
doins example.{c,stfl}
insinto ${exdir}/python
doins python/example.py
if use perl ; then
insinto ${exdir}/perl
doins perl5/example.pl
fi
if use ruby ; then
insinto ${exdir}/ruby
doins ruby/example.rb
fi
fi
perl_delete_localpod
}
pkg_postinst() {
use python && python_mod_optimize stfl.py
}
pkg_postrm() {
use python && python_mod_cleanup stfl.py
}

@ -1,92 +0,0 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="4"
# PYTHON_BDEPEND="2"
inherit libtool eutils flag-o-matic python
DESCRIPTION="Lightweight library used to easily extract data from files archived in a single zip file"
HOMEPAGE="http://zziplib.sourceforge.net/"
SRC_URI="mirror://sourceforge/zziplib/${P}.tar.bz2"
LICENSE="|| ( LGPL-2.1 MPL-1.1 )"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE="doc sdl static-libs test"
RDEPEND="sys-libs/zlib
sdl? ( >=media-libs/libsdl-1.2.6 )"
DEPEND="${RDEPEND}
=dev-lang/python-2*
virtual/pkgconfig
test? ( app-arch/zip )"
pkg_setup() {
python_set_active_version 2
python_pkg_setup
}
src_prepare() {
epatch "${FILESDIR}"/${PN}-0.13.49-SDL-test.patch
# workaround AX_CREATE_PKGCONFIG_INFO bug #353195
sed -i \
-e '/ax_create_pkgconfig_ldflags/s:$LDFLAGS::' \
-e '/ax_create_pkgconfig_cppflags/s:$CPPFLAGS::' \
configure || die
# zziplib tries to install backwards compat symlinks we dont want
sed -i -e '/^zzip-postinstall:/s|$|\ndisable-this:|' Makefile.in || die
sed -i -e '/^install-exec-hook:/s|$|\ndisable-this:|' zzip/Makefile.in || die
elibtoolize
# Do an out-of-tree build as their configure will do it automatically
# otherwise and that can lead to funky errors. #492816
mkdir -p build
}
src_configure() {
cd "${S}"/build
append-flags -fno-strict-aliasing # bug reported upstream
export ac_cv_path_XMLTO= # man pages are bundled in .tar's
# Disable aclocal probing as the default path works #449156
ECONF_SOURCE=${S} \
ACLOCAL=true \
econf \
--disable-dependency-tracking \
$(use_enable sdl) \
$(use_enable static-libs static)
}
src_compile() {
emake -C build
}
src_test() {
# need this because `make test` will always return true
# tests fail with -j > 1 (bug #241186)
emake -C build -j1 check
}
src_install() {
emake -C build DESTDIR="${D}" install
# fowners fails when we don't have enough permissions (Prefix)
if [[ ${EUID} == 0 ]] ; then
fowners -R root /usr/share/man #321975
fi
if ! use static-libs ; then
find "${D}" -type f -name '*.la' -delete || die
fi
dodoc ChangeLog README TODO
if use doc ; then
dohtml -r docs/*
fi
}

@ -1,2 +1,3 @@
DIST ocaml-containers-0.18.tar.gz 418480 SHA256 8bac90113e229a9dc55a2f54c20cf363df43c2e72ca349a5a811ad113a6d2909 SHA512 fa61039fc3bbfcd53117ae582689ffca645b42a811ebe0fc8aa5da93ba5373c2ac54896ecaddbe3eff7593b2be44f208abb625ad3354d2b089a0b811b9f77cff WHIRLPOOL 10795e812baab4525f6fdfbc101c7b14230ef87893ccf01702a6a75e373a12bf643f775f63cb27640f0dd398da541e6c185489dc27cd9fc7bd75a4a90f34baf2
DIST ocaml-containers-0.19.tar.gz 419243 SHA256 e53472e009ea2699f39940844fc0ef9abb332234834c6963f8325aa7df0694f5 SHA512 1ed078121770d72ba685c116ddeebc848b086e371604c7fedf1bdb58ea5cb9685db8a3c7c4edcac69a9cd18ece1eb601d1675c25efe6ab61e2a511a8a857aff2 WHIRLPOOL 27df23c2b0196647f071089d2044dbb7cf4b2c710bdc066eda892e8e4ffe229d5bafc2ec29b5afc4cffd0513d69d16776342258e667e62613ff2c771762ea1d5
DIST ocaml-containers-0.20.tar.gz 427546 SHA256 d5ffbf6c87bc25b914043817f02a5513fe9b0499d3d0d67b43cceb2bc38d286b SHA512 9e97d4563824a937c42fee89dc86e91ff740bdb4c444ab4ce9b31f50b272f9f400d2d71fb298294d80443002f4b511f2292cc41be15234128bdcd18dd1b1cfd4 WHIRLPOOL f1e0599504d206725a6027905803355e5a80ee936287024bd184062c3030796dd289044e2d6d301bdb104eda25a9d457f424371123f0ce5b320dff1e83463d1f

@ -0,0 +1,33 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
OASIS_BUILD_TESTS=1
OASIS_BUILD_DOCS=1
inherit oasis
DESCRIPTION="A modular standard library focused on data structures"
HOMEPAGE="https://github.com/c-cube/ocaml-containers"
SRC_URI="https://github.com/c-cube/ocaml-containers/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD-2"
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE="test"
RDEPEND="
dev-ml/result:=
dev-ml/sequence:=
"
DEPEND="${RDEPEND} dev-ml/cppo
test? ( dev-ml/iTeML )"
src_configure() {
oasis_configure_opts="
--enable-unix
--disable-bench
" oasis_src_configure
}

@ -1,3 +1,4 @@
DIST ocaml-ctypes-0.10.0.tar.gz 188240 SHA256 b5b729240d1803b1c9993c0dcbb2b12e4307f2942294e872807486702c2cff17 SHA512 6937440792ded4877feeabfbbeb5598ff93600d7ffb5aa7d4f99b86b9b2877c0bb89e44c7ec0b0e0032b6edc050038b001385bc57f78018d94de65cbc1c478e4 WHIRLPOOL 582074d73eb6c88f8d96768bda3fde88c477a9da8e9c3cf11b4a2120c1a275fc70f175f38dbd84b8ec13d8b50fcfb10a74f06d7e87e0107edd99fb284ae8f648
DIST ocaml-ctypes-0.10.1.tar.gz 189757 SHA256 f0f71e82f30eeb9a25a568bd8ff87f659cdb0b8134de05aea2a494cba2fa038d SHA512 c4ca226017035cdfb22e745a43a6d61422b8c72d0f7f360694111b5af0487b806d98f6f0eb5dccec5a94c94f9597808119ccbade0638aff2715aa1b1a7553df3 WHIRLPOOL 6cb4908b54863c2b512e83429bbea3d5a6a48dca0fa16f8acdbc96bb8a1ecbfd5d65d80f0b8a9831d5f98b81b880fef972a33098c7b9a8f169e45732f81302c6
DIST ocaml-ctypes-0.4.1.tar.gz 162601 SHA256 74564e049de5d3c0e76ea284c225cb658ac1a2b483345be1efb9be4b3c1702f5 SHA512 8155ffe16a58d5714ceb602afa5531c93526defca39a16047328ac06d2c7c7f52b768b18170391f467e1f6919c69275734faf85d27315e11b8bbefcb1bc8afa9 WHIRLPOOL d8d0ef24e0b6c40f50fddf38fed7238cf95573909d2809cc2ab5c1b9b3dab333210e1ce99cf805804576a79d08d819e2ecdee7b4a6a9e13efb13e7b9f88ad802
DIST ocaml-ctypes-0.9.2.tar.gz 185666 SHA256 8e31e87e21ab776de150a43a5047449243ac7632d27d1c0e9da0ca611a664d11 SHA512 fdd37aa1e231f9e4300b405d0cf90a7bd2de801ebd96f30b7d33b2b2d651f6dbe8c8b409fe68619f11a457daafa934457255f8e349cbeaf36c23acf040c3a131 WHIRLPOOL 002ae6ce6041e45753852ab69524eda41c907dbbc9d2f474f633801e88e438aabc99a319f486f75e0d6f086b89eb64cfcb06f478c7bcb30b4bfea9cf9eb403e3

@ -0,0 +1,36 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit findlib
DESCRIPTION="Library for binding to C libraries using pure OCaml"
HOMEPAGE="https://github.com/ocamllabs/ocaml-ctypes"
SRC_URI="https://github.com/ocamllabs/ocaml-ctypes/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~arm ~x86"
IUSE="test"
RDEPEND="
>=dev-lang/ocaml-4.02:=[ocamlopt]
virtual/libffi
"
DEPEND="${RDEPEND}
test? ( dev-ml/ounit )"
src_compile() {
emake -j1
}
src_test() {
emake -j1 test
}
src_install() {
findlib_src_install
dodoc CHANGES.md README.md
}

@ -13,7 +13,7 @@ DESCRIPTION="Extremely fast, reliable form generation and processing module"
HOMEPAGE="http://www.formbuilder.org/ ${HOMEPAGE}"
SLOT="0"
KEYWORDS="~amd64 ~x86"
KEYWORDS="amd64 ~x86"
IUSE=""
PATCHES=(

@ -11,7 +11,7 @@ inherit perl-module
DESCRIPTION="Crypt::DH Using GMP Directly"
SLOT="0"
KEYWORDS="~amd64 ~x86"
KEYWORDS="amd64 ~x86"
IUSE="test"
RDEPEND="

@ -11,7 +11,7 @@ inherit perl-module
DESCRIPTION="check that a library is available"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~x86"
KEYWORDS="~alpha amd64 ~hppa ~x86"
IUSE="test"
RDEPEND="

@ -11,7 +11,7 @@ inherit perl-module
DESCRIPTION="Syndication feed auto-discovery"
SLOT="0"
KEYWORDS="~amd64 ~x86"
KEYWORDS="amd64 ~x86"
IUSE=""
RDEPEND="

@ -12,7 +12,7 @@ inherit perl-module
DESCRIPTION="Subclass of LWP::UserAgent that protects you from harm"
SLOT="0"
KEYWORDS="~amd64 ~x86"
KEYWORDS="amd64 ~x86"
IUSE=""
# Net::SSL 2.85 -> Crypt-SSLeay 0.58

@ -11,7 +11,7 @@ inherit perl-module
DESCRIPTION="Libraries shared between Net::OpenID::Consumer and Net::OpenID::Server"
SLOT="0"
KEYWORDS="~amd64 ~x86"
KEYWORDS="amd64 ~x86"
IUSE="test"
RDEPEND="

@ -11,7 +11,7 @@ inherit perl-module
DESCRIPTION="Library for consumers of OpenID identities"
SLOT="0"
KEYWORDS="~amd64 ~x86"
KEYWORDS="amd64 ~x86"
IUSE="test"
RDEPEND="

@ -11,7 +11,7 @@ inherit perl-module
DESCRIPTION="Easily test network connectivity"
SLOT="0"
KEYWORDS="~amd64 ~x86"
KEYWORDS="amd64 ~x86"
IUSE="test"
RDEPEND="

@ -12,7 +12,7 @@ DESCRIPTION="Convert MultiMarkdown syntax to (X)HTML"
SLOT="0"
LICENSE="BSD"
KEYWORDS="~amd64 ~x86"
KEYWORDS="amd64 ~x86"
IUSE="test"
RDEPEND="virtual/perl-Digest-MD5

@ -11,7 +11,7 @@ inherit perl-module
DESCRIPTION="Smart URI fetching/caching"
SLOT="0"
KEYWORDS="~amd64 ~x86"
KEYWORDS="amd64 ~x86"
IUSE="test"
RDEPEND="

@ -12,7 +12,7 @@ inherit perl-module
DESCRIPTION="Syndication feed parser and auto-discovery"
SLOT="0"
KEYWORDS="~amd64 ~x86"
KEYWORDS="amd64 ~x86"
IUSE="test minimal"
RDEPEND="

@ -10,7 +10,7 @@ inherit perl-module
DESCRIPTION="XML::RSS with XML::LibXML"
SLOT="0"
KEYWORDS="~amd64 ~x86"
KEYWORDS="amd64 ~x86"
IUSE="test minimal"
RDEPEND="

@ -10,7 +10,7 @@ inherit perl-module
DESCRIPTION="Perl YAML Serialization using XS and libyaml"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~x86"
KEYWORDS="~alpha amd64 ~x86"
IUSE=""
RDEPEND=""

@ -20,6 +20,7 @@ RDEPEND="dev-python/pytz[${PYTHON_USEDEP}]
dev-python/setuptools[${PYTHON_USEDEP}]
>=dev-python/six-1.4.0[${PYTHON_USEDEP}]
>=dev-python/tzlocal-1.2[${PYTHON_USEDEP}]
virtual/python-funcsigs[${PYTHON_USEDEP}]
virtual/python-futures[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}
test? (

@ -20,6 +20,7 @@ RDEPEND="dev-python/pytz[${PYTHON_USEDEP}]
dev-python/setuptools[${PYTHON_USEDEP}]
>=dev-python/six-1.4.0[${PYTHON_USEDEP}]
>=dev-python/tzlocal-1.2[${PYTHON_USEDEP}]
virtual/python-funcsigs[${PYTHON_USEDEP}]
virtual/python-futures[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}
test? (

@ -0,0 +1,94 @@
diff --git a/tests/test_inspect.py b/tests/test_inspect.py
index 98d6592..3a2a1f2 100644
--- a/tests/test_inspect.py
+++ b/tests/test_inspect.py
@@ -8,6 +8,7 @@ import unittest2 as unittest
import funcsigs as inspect
+import platform
class TestSignatureObject(unittest.TestCase):
@staticmethod
@@ -409,7 +410,7 @@ def test_signature_on_decorated(self):
Ellipsis))
""")
- if sys.version_info[0] > 2:
+ if sys.version_info[0] > 2 and platform.python_implementation() != "PyPy":
exec("""
def test_signature_on_class(self):
class C:
@@ -493,41 +494,44 @@ def test_signature_on_class(self):
Ellipsis))
""")
- def test_signature_on_callable_objects(self):
- class Foo(object):
- def __call__(self, a):
- pass
+ if platform.python_implementation() != "PyPy":
+ exec("""
+def test_signature_on_callable_objects(self):
+ class Foo(object):
+ def __call__(self, a):
+ pass
- self.assertEqual(self.signature(Foo()),
- ((('a', Ellipsis, Ellipsis, "positional_or_keyword"),),
- Ellipsis))
+ self.assertEqual(self.signature(Foo()),
+ ((('a', Ellipsis, Ellipsis, "positional_or_keyword"),),
+ Ellipsis))
- class Spam(object):
- pass
- with self.assertRaisesRegex(TypeError, "is not a callable object"):
- inspect.signature(Spam())
+ class Spam(object):
+ pass
+ with self.assertRaisesRegex(TypeError, "is not a callable object"):
+ inspect.signature(Spam())
- class Bar(Spam, Foo):
- pass
+ class Bar(Spam, Foo):
+ pass
- self.assertEqual(self.signature(Bar()),
- ((('a', Ellipsis, Ellipsis, "positional_or_keyword"),),
- Ellipsis))
+ self.assertEqual(self.signature(Bar()),
+ ((('a', Ellipsis, Ellipsis, "positional_or_keyword"),),
+ Ellipsis))
- class ToFail(object):
- __call__ = type
- with self.assertRaisesRegex(ValueError, "not supported by signature"):
- inspect.signature(ToFail())
+ class ToFail(object):
+ __call__ = type
+ with self.assertRaisesRegex(ValueError, "not supported by signature"):
+ inspect.signature(ToFail())
- if sys.version_info[0] < 3:
- return
+ if sys.version_info[0] < 3:
+ return
- class Wrapped(object):
- pass
- Wrapped.__wrapped__ = lambda a: None
- self.assertEqual(self.signature(Wrapped),
- ((('a', Ellipsis, Ellipsis, "positional_or_keyword"),),
- Ellipsis))
+ class Wrapped(object):
+ pass
+ Wrapped.__wrapped__ = lambda a: None
+ self.assertEqual(self.signature(Wrapped),
+ ((('a', Ellipsis, Ellipsis, "positional_or_keyword"),),
+ Ellipsis))
+""")
def test_signature_on_lambdas(self):
self.assertEqual(self.signature((lambda a=10: a)),

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save