parent
dedfd6f7a0
commit
9ee0141fff
@ -1 +1,2 @@
|
||||
DIST paperkey-1.3.tar.gz 250153 SHA256 5b57d7522336fb65c4c398eec27bf44ec0aaa35926157b79a76423231792cbfb SHA512 240a57b43084b91758d19a2ef6804651db32118f7578f48445014b7ab91caadcbd6b08df4a95ba8788691456e802f3ebb8455e212aac0679c12df8d567894acd WHIRLPOOL 719538c16880089d7da154773ca1046445981894343c6435590e707627c71bd4252e2415e6f00cf81a32fd23bbde7cd4714a3547f19171e031eeb369ffb6f3b1
|
||||
DIST paperkey-1.4.tar.gz 259446 SHA256 e12bb0ec835127d12a922a8d60b3dfdb3ca8ee60bb5b4d15ae4cea85bbcf336f SHA512 d0e87760bfd66c39c407f59f94cdd3dfd8f399a51b854a2485f923f4f1faa95a40a68ffd018b9141b923c1db346993600e5e3644314e4f8c94585d47f1367e9c WHIRLPOOL 6a02bc0161e165b6e483ac08904943348ec0a10eba509028d5d092e1cec03d9e906e2d1307c16cb256fe4965a62c5c791becc0cc27200ab0b993de985cf629e5
|
||||
|
@ -0,0 +1,16 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="OpenPGP key archiver"
|
||||
HOMEPAGE="http://www.jabberwocky.com/software/paperkey/"
|
||||
SRC_URI="http://www.jabberwocky.com/software/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DOCS="README"
|
@ -0,0 +1,201 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit autotools flag-o-matic systemd toolchain-funcs user
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
PXE_VERSION="1151.0.0"
|
||||
PXE_SYSTEMD_VERSION="v231"
|
||||
KVM_LINUX_VERSION="4.3.1"
|
||||
KVMTOOL_VERSION="d62653e177597251c24494a6dda60acd6d846671"
|
||||
PXE_URI="http://alpha.release.core-os.net/amd64-usr/${PXE_VERSION}/coreos_production_pxe_image.cpio.gz"
|
||||
PXE_FILE="${PN}-pxe-${PXE_VERSION}.img"
|
||||
|
||||
SRC_URI="https://github.com/coreos/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
rkt_stage1_coreos? ( $PXE_URI -> $PXE_FILE )
|
||||
rkt_stage1_kvm? (
|
||||
https://kernel.googlesource.com/pub/scm/linux/kernel/git/will/kvmtool/+archive/${KVMTOOL_VERSION}.tar.gz -> kvmtool-${KVMTOOL_VERSION}.tar.gz
|
||||
mirror://kernel/linux/kernel/v4.x/linux-${KVM_LINUX_VERSION}.tar.xz
|
||||
${PXE_URI} -> ${PXE_FILE}
|
||||
)
|
||||
rkt_stage1_src? ( https://github.com/systemd/systemd/archive/${PXE_SYSTEMD_VERSION}.tar.gz -> systemd-${PXE_SYSTEMD_VERSION#v}.tar.gz )"
|
||||
|
||||
DESCRIPTION="rkt is an App Container runtime for Linux"
|
||||
HOMEPAGE="https://github.com/coreos/rkt"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="doc examples +rkt_stage1_coreos +rkt_stage1_fly rkt_stage1_host rkt_stage1_kvm rkt_stage1_src +actool systemd"
|
||||
REQUIRED_USE="|| ( rkt_stage1_coreos rkt_stage1_fly rkt_stage1_host rkt_stage1_kvm rkt_stage1_src ) rkt_stage1_host? ( systemd )"
|
||||
|
||||
DEPEND=">=dev-lang/go-1.5
|
||||
app-arch/cpio
|
||||
app-crypt/trousers
|
||||
sys-fs/squashfs-tools
|
||||
dev-perl/Capture-Tiny
|
||||
rkt_stage1_src? ( >=sys-apps/util-linux-2.27 )"
|
||||
|
||||
RDEPEND="!app-emulation/rocket
|
||||
rkt_stage1_host? ( systemd? (
|
||||
>=sys-apps/systemd-222
|
||||
app-shells/bash:0
|
||||
) )"
|
||||
|
||||
BUILDDIR="build-${P}"
|
||||
STAGE1_DEFAULT_LOCATION="/usr/share/rkt/stage1.aci"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup rkt-admin
|
||||
enewgroup rkt
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
local x
|
||||
for x in ${A}; do
|
||||
case ${x} in
|
||||
*.img|linux-*) continue ;;
|
||||
kvmtool-*)
|
||||
mkdir kvmtool || die
|
||||
pushd kvmtool >/dev/null || die
|
||||
unpack ${x}
|
||||
popd >/dev/null || die
|
||||
;;
|
||||
*)
|
||||
unpack ${x}
|
||||
esac
|
||||
done
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply_user
|
||||
|
||||
sed -e 's|^RKT_REQ_PROG(\[GIT\],.*|#\0|' -i configure.ac || die
|
||||
|
||||
# disable git fetch of systemd
|
||||
sed -e 's~^include makelib/git.mk$~'\
|
||||
'ifneq ($(wildcard $(RKT_STAGE1_SYSTEMD_SRC)),)\n\n'\
|
||||
'get_systemd_sources: | $(UFS_SYSTEMDDIR)\n'\
|
||||
'\tmv "$(RKT_STAGE1_SYSTEMD_SRC)" "$(UFS_SYSTEMD_SRCDIR)"\n\n'\
|
||||
'$(UFS_SYSTEMD_CONFIGURE): get_systemd_sources\n\n'\
|
||||
'else ifneq ($(wildcard $(UFS_SYSTEMD_SRCDIR)),)\n\n'\
|
||||
'else\n'\
|
||||
'\t\0\n'\
|
||||
'endif~' -i stage1/usr_from_src/usr_from_src.mk || die
|
||||
|
||||
# disable git fetch of kvmtool
|
||||
sed -e 's~^include makelib/git.mk$~'\
|
||||
'ifneq ($(wildcard $(shell echo "$${WORKDIR}/kvmtool")),)\n\n'\
|
||||
'$(call forward-vars, get_lkvm_sources, LKVM_SRCDIR)\n'\
|
||||
'get_lkvm_sources: | $(LKVM_TMPDIR)\n'\
|
||||
'\tmv "$${WORKDIR}/kvmtool" "$(LKVM_SRCDIR)"\n\n'\
|
||||
'$(LKVM_PATCH_STAMP): get_lkvm_sources\n\n'\
|
||||
'else ifneq ($(wildcard $(LKVM_SRCDIR)),)\n\n'\
|
||||
'else\n'\
|
||||
'\t\0\n'\
|
||||
'endif~' -i stage1/usr_from_kvm/lkvm.mk || die
|
||||
|
||||
# disable fetch of kernel sources
|
||||
sed -e 's|wget .*|ln -s "$${DISTDIR}/linux-'${KVM_LINUX_VERSION}'.tar.xz" "$@"|' \
|
||||
-i stage1/usr_from_kvm/kernel.mk || die
|
||||
|
||||
if use rkt_stage1_host; then
|
||||
# Make systemdUnitsPath consistent with host
|
||||
sed -e 's|\(systemdUnitsPath := \).*|\1"'$(systemd_get_systemunitdir)'"|' \
|
||||
-i stage1/init/init.go || die
|
||||
fi
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local flavors myeconfargs=(
|
||||
--with-stage1-default-images-directory="/usr/share/rkt"
|
||||
--with-stage1-default-location="${STAGE1_DEFAULT_LOCATION}"
|
||||
)
|
||||
|
||||
use systemd || myeconfargs+=( --enable-sdjournal=no )
|
||||
|
||||
# enable flavors (first is default)
|
||||
use rkt_stage1_host && flavors+=",host"
|
||||
use rkt_stage1_src && flavors+=",src"
|
||||
use rkt_stage1_coreos && flavors+=",coreos"
|
||||
use rkt_stage1_fly && flavors+=",fly"
|
||||
use rkt_stage1_kvm && flavors+=",kvm"
|
||||
myeconfargs+=( --with-stage1-flavors="${flavors#,}" )
|
||||
|
||||
if use rkt_stage1_src; then
|
||||
myeconfargs+=(
|
||||
--with-stage1-systemd-version=${PXE_SYSTEMD_VERSION}
|
||||
--with-stage1-systemd-src="${WORKDIR}/systemd-${PXE_SYSTEMD_VERSION#v}"
|
||||
)
|
||||
fi
|
||||
|
||||
if use rkt_stage1_coreos || use rkt_stage1_kvm; then
|
||||
myeconfargs+=(
|
||||
--with-coreos-local-pxe-image-path="${DISTDIR}/${PXE_FILE}"
|
||||
--with-coreos-local-pxe-image-systemd-version="${PXE_SYSTEMD_VERSION}"
|
||||
)
|
||||
fi
|
||||
|
||||
# Go's 6l linker does not support PIE, disable so cgo binaries
|
||||
# which use 6l+gcc for linking can be built correctly.
|
||||
if gcc-specs-pie; then
|
||||
append-ldflags -nopie
|
||||
fi
|
||||
|
||||
export CC=$(tc-getCC)
|
||||
export CGO_ENABLED=1
|
||||
export CGO_CFLAGS="${CFLAGS}"
|
||||
export CGO_CPPFLAGS="${CPPFLAGS}"
|
||||
export CGO_CXXFLAGS="${CXXFLAGS}"
|
||||
export CGO_LDFLAGS="${LDFLAGS}"
|
||||
export BUILDDIR
|
||||
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local arch=${ARCH}
|
||||
case ${arch} in
|
||||
amd64) arch=x86_64;;
|
||||
esac
|
||||
ARCH=${arch} emake
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodoc README.md
|
||||
use doc && dodoc -r Documentation
|
||||
use examples && dodoc -r examples
|
||||
use actool && dobin "${S}/${BUILDDIR}/tools/actool"
|
||||
|
||||
dobin "${S}/${BUILDDIR}/target/bin/rkt"
|
||||
|
||||
insinto /usr/share/rkt
|
||||
doins "${S}/${BUILDDIR}/target/bin/"*.aci
|
||||
|
||||
# create symlink for default stage1 image path
|
||||
if use rkt_stage1_host; then
|
||||
dosym stage1-host.aci "${STAGE1_DEFAULT_LOCATION}"
|
||||
elif use rkt_stage1_src; then
|
||||
dosym stage1-src.aci "${STAGE1_DEFAULT_LOCATION}"
|
||||
elif use rkt_stage1_coreos; then
|
||||
dosym stage1-coreos.aci "${STAGE1_DEFAULT_LOCATION}"
|
||||
elif use rkt_stage1_fly; then
|
||||
dosym stage1-fly.aci "${STAGE1_DEFAULT_LOCATION}"
|
||||
elif use rkt_stage1_kvm; then
|
||||
dosym stage1-kvm.aci "${STAGE1_DEFAULT_LOCATION}"
|
||||
fi
|
||||
|
||||
systemd_dounit "${S}"/dist/init/systemd/${PN}-gc.service
|
||||
systemd_dounit "${S}"/dist/init/systemd/${PN}-gc.timer
|
||||
systemd_dounit "${S}"/dist/init/systemd/${PN}-metadata.service
|
||||
systemd_dounit "${S}"/dist/init/systemd/${PN}-metadata.socket
|
||||
|
||||
keepdir /etc/${PN}
|
||||
fowners :rkt-admin /etc/${PN}
|
||||
fperms 2775 /etc/${PN}
|
||||
}
|
@ -0,0 +1,251 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
PYTHON_REQ_USE="sqlite,ssl"
|
||||
|
||||
inherit eutils fdo-mime bash-completion-r1 multilib toolchain-funcs python-single-r1
|
||||
|
||||
DESCRIPTION="Ebook management application"
|
||||
HOMEPAGE="http://calibre-ebook.com/"
|
||||
SRC_URI="http://download.calibre-ebook.com/${PV}/${P}.tar.xz"
|
||||
|
||||
LICENSE="
|
||||
GPL-3+
|
||||
GPL-3
|
||||
GPL-2+
|
||||
GPL-2
|
||||
GPL-1+
|
||||
LGPL-3+
|
||||
LGPL-2.1+
|
||||
LGPL-2.1
|
||||
BSD
|
||||
MIT
|
||||
Old-MIT
|
||||
Apache-2.0
|
||||
public-domain
|
||||
|| ( Artistic GPL-1+ )
|
||||
CC-BY-3.0
|
||||
OFL-1.1
|
||||
PSF-2
|
||||
unRAR
|
||||
"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
SLOT="0"
|
||||
IUSE="+udisks"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
COMMON_DEPEND="${PYTHON_DEPS}
|
||||
>=app-text/podofo-0.8.2:=
|
||||
>=app-text/poppler-0.26.5[qt5]
|
||||
>=dev-libs/chmlib-0.40:=
|
||||
dev-libs/glib:2
|
||||
>=dev-libs/icu-4.4:=
|
||||
>=dev-python/apsw-3.7.17[${PYTHON_USEDEP}]
|
||||
>=dev-python/beautifulsoup-3.0.5:python-2[${PYTHON_USEDEP}]
|
||||
>=dev-python/cssselect-0.7.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/cssutils-0.9.9[${PYTHON_USEDEP}]
|
||||
>=dev-python/dbus-python-1.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/lxml-3.2.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/mechanize-0.1.11[${PYTHON_USEDEP}]
|
||||
dev-python/netifaces[${PYTHON_USEDEP}]
|
||||
dev-python/pillow[${PYTHON_USEDEP}]
|
||||
dev-python/psutil[${PYTHON_USEDEP}]
|
||||
>=dev-python/pygments-2.0.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-dateutil-1.4.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/PyQt5-5.3.1[gui,svg,webkit,widgets,network,printsupport,${PYTHON_USEDEP}]
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtwidgets:5
|
||||
media-fonts/liberation-fonts
|
||||
>=media-gfx/imagemagick-6.5.9[jpeg,png]
|
||||
media-libs/fontconfig
|
||||
>=media-libs/freetype-2:=
|
||||
>=media-libs/libmtp-1.1.5:=
|
||||
>=media-libs/libwmf-0.2.8
|
||||
sys-libs/zlib
|
||||
virtual/libusb:1=
|
||||
virtual/python-dnspython[${PYTHON_USEDEP}]
|
||||
x11-libs/libX11
|
||||
x11-libs/libXext
|
||||
x11-libs/libXrender
|
||||
>=x11-misc/xdg-utils-1.0.2-r2
|
||||
udisks? ( virtual/libudev )"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
udisks? ( || ( sys-fs/udisks:2 sys-fs/udisks:0 ) )"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
>=dev-python/setuptools-0.6_rc5[${PYTHON_USEDEP}]
|
||||
>=virtual/podofo-build-0.8.2
|
||||
virtual/pkgconfig"
|
||||
|
||||
src_prepare() {
|
||||
# no_updates: do not annoy user with "new version is availible all the time
|
||||
# disable_plugins: walking sec-hole, wait for upstream to use GHNS interface
|
||||
eapply \
|
||||
"${FILESDIR}/${PN}-2.9.0-no_updates_dialog.patch" \
|
||||
"${FILESDIR}/${PN}-disable_plugins.patch"
|
||||
|
||||
eapply_user
|
||||
|
||||
# Fix outdated version constant.
|
||||
#sed -e "s#\\(^numeric_version =\\).*#\\1 (${PV//./, })#" \
|
||||
# -i src/calibre/constants.py || \
|
||||
# die "sed failed to patch constants.py"
|
||||
|
||||
# Avoid sandbox violation in /usr/share/gnome/apps when linux.py
|
||||
# calls xdg-* (bug #258938).
|
||||
sed -e "s|'xdg-desktop-menu', 'install'|\\0, '--mode', 'user'|" \
|
||||
-e "s|check_call(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \
|
||||
-e "s|\\(CurrentDir(tdir)\\), \\\\\$|\\1:|" \
|
||||
-e "s|, PreserveMIMEDefaults():|:|" \
|
||||
-e "s|'xdg-icon-resource', 'install'|\\0, '--mode', 'user'|" \
|
||||
-e "s|cmd\[2\]|cmd[4]|" \
|
||||
-e "s|cc(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \
|
||||
-e "s|'xdg-mime', 'install'|\\0, '--mode', 'user'|" \
|
||||
-i src/calibre/linux.py || die "sed failed to patch linux.py"
|
||||
|
||||
# Disable unnecessary privilege dropping for bug #287067.
|
||||
sed -e "s:if os.geteuid() == 0:if False and os.geteuid() == 0:" \
|
||||
-i setup/install.py || die "sed failed to patch install.py"
|
||||
|
||||
sed -e "/^ self\\.check_call(qmc + \\[.*\\.pro'\\])$/a\
|
||||
\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ self.check_call(['sed', \
|
||||
'-e', 's|^CFLAGS .*|\\\\\\\\0 ${CFLAGS}|', \
|
||||
'-e', 's|^CXXFLAGS .*|\\\\\\\\0 ${CXXFLAGS}|', \
|
||||
'-e', 's|^LFLAGS .*|\\\\\\\\0 ${LDFLAGS}|', \
|
||||
'-i', 'Makefile'])" \
|
||||
-i setup/build.py || die "sed failed to patch build.py"
|
||||
|
||||
# use system beautifulsoup, instead of bundled
|
||||
rm -f "${S}"/src/calibre/ebooks/BeautifulSoup.py \
|
||||
|| die "could not remove bundled beautifulsoup"
|
||||
find "${S}" -type f -name \*.py -exec \
|
||||
sed -e 's/calibre.ebooks.BeautifulSoup/BeautifulSoup/' -i {} + \
|
||||
|| die "could not sed bundled beautifulsoup out of the source tree"
|
||||
|
||||
# avoid failure of xdg tools to recognize vendor prefix
|
||||
sed -e "s|xdg-icon-resource install|xdg-icon-resource install --novendor|" \
|
||||
-e "s|'xdg-mime', 'install'|'xdg-mime', 'install', '--novendor'|" \
|
||||
-e "s|'xdg-desktop-menu', 'install'|'xdg-desktop-menu', 'install', '--novendor'|" \
|
||||
-i "${S}"/src/calibre/linux.py || die 'sed failed'
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Bypass kbuildsycoca and update-mime-database in order to
|
||||
# avoid sandbox violations if xdg-mime tries to call them.
|
||||
cat - > "${T}/kbuildsycoca" <<-EOF
|
||||
#!${BASH}
|
||||
echo $0 : $@
|
||||
exit 0
|
||||
EOF
|
||||
|
||||
cp "${T}"/{kbuildsycoca,update-mime-database} || die
|
||||
chmod +x "${T}"/{kbuildsycoca,update-mime-database} || die
|
||||
|
||||
export QMAKE="${EPREFIX}/usr/$(get_libdir)/qt5/bin/qmake"
|
||||
|
||||
# Unset DISPLAY in order to prevent xdg-mime from triggering a sandbox
|
||||
# violation with kbuildsycoca as in bug #287067, comment #13.
|
||||
export -n DISPLAY
|
||||
|
||||
# Bug #352625 - Some LANGUAGE values can trigger the following ValueError:
|
||||
# File "/usr/lib/python2.6/locale.py", line 486, in getdefaultlocale
|
||||
# return _parse_localename(localename)
|
||||
# File "/usr/lib/python2.6/locale.py", line 418, in _parse_localename
|
||||
# raise ValueError, 'unknown locale: %s' % localename
|
||||
#ValueError: unknown locale: 46
|
||||
export -n LANGUAGE
|
||||
|
||||
# Bug #295672 - Avoid sandbox violation in ~/.config by forcing
|
||||
# variables to point to our fake temporary $HOME.
|
||||
export HOME="${T}/fake_homedir"
|
||||
export XDG_CONFIG_HOME="${HOME}/.config"
|
||||
export XDG_DATA_HOME="${HOME}/.local/share"
|
||||
export CALIBRE_CONFIG_DIRECTORY="${XDG_CONFIG_HOME}/calibre"
|
||||
mkdir -p "${XDG_DATA_HOME}" "${CALIBRE_CONFIG_DIRECTORY}" || die
|
||||
|
||||
tc-export CC CXX
|
||||
# Bug #334243 - respect LDFLAGS when building extensions
|
||||
export OVERRIDE_CFLAGS="$CFLAGS" OVERRIDE_LDFLAGS="$LDFLAGS"
|
||||
local libdir=$(get_libdir)
|
||||
[[ -n $libdir ]] || die "get_libdir returned an empty string"
|
||||
|
||||
# Bug #472690 - Avoid sandbox violation for /dev/dri/card0.
|
||||
local x
|
||||
for x in /dev/dri/card[0-9] ; do
|
||||
[[ -e ${x} ]] && addpredict ${x}
|
||||
done
|
||||
|
||||
#dodir "/usr/$(get_libdir)/python2.7/site-packages" # for init_calibre.py
|
||||
#dodir $(python_get_sitedir)
|
||||
PATH=${T}:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \
|
||||
"${PYTHON}" setup.py install \
|
||||
--root="${D}" \
|
||||
--prefix="${EPREFIX}/usr" \
|
||||
--libdir="${EPREFIX}/usr/${libdir}" \
|
||||
--staging-root="${ED}usr" \
|
||||
--staging-libdir="${ED}usr/${libdir}" || die
|
||||
|
||||
grep -rlZ "${ED}" "${ED}" | xargs -0 sed -e "s:${D}:/:g" -i ||
|
||||
die "failed to fix harcoded \$D in paths"
|
||||
|
||||
# The menu entries end up here due to '--mode user' being added to
|
||||
# xdg-* options in src_prepare.
|
||||
dodir /usr/share/mime/packages
|
||||
chmod -fR a+rX,u+w,g-w,o-w "${HOME}"/.local
|
||||
mv "${HOME}"/.local/share/mime/packages/* "${ED}"usr/share/mime/packages/ ||
|
||||
die "failed to register mime types"
|
||||
dodir /usr/share/icons
|
||||
mv "${HOME}"/.local/share/icons/* "${ED}"usr/share/icons/ ||
|
||||
die "failed to install icon files"
|
||||
|
||||
domenu "${HOME}"/.local/share/applications/*.desktop ||
|
||||
die "failed to install .desktop menu files"
|
||||
|
||||
find "${ED}"usr/share -type d -empty -delete
|
||||
|
||||
cd "${ED}"/usr/share/calibre/fonts/liberation || die
|
||||
local x
|
||||
for x in * ; do
|
||||
[[ -f ${EPREFIX}usr/share/fonts/liberation-fonts/${x} ]] || continue
|
||||
ln -sf "../../../fonts/liberation-fonts/${x}" "${x}" || die
|
||||
done
|
||||
|
||||
einfo "Converting python shebangs"
|
||||
python_fix_shebang "${ED}"
|
||||
|
||||
einfo "Compiling python modules"
|
||||
python_optimize "${ED}"usr/lib/calibre
|
||||
|
||||
newinitd "${FILESDIR}"/calibre-server.init calibre-server
|
||||
newconfd "${FILESDIR}"/calibre-server.conf calibre-server
|
||||
|
||||
bashcomp_alias calibre \
|
||||
lrfviewer \
|
||||
calibre-debug \
|
||||
ebook-meta \
|
||||
calibre-server \
|
||||
ebook-viewer \
|
||||
ebook-polish \
|
||||
fetch-ebook-metadata \
|
||||
lrf2lrs \
|
||||
ebook-convert \
|
||||
ebook-edit \
|
||||
calibre-smtp \
|
||||
ebook-device
|
||||
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
fdo-mime_desktop_database_update
|
||||
fdo-mime_mime_database_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
fdo-mime_desktop_database_update
|
||||
fdo-mime_mime_database_update
|
||||
}
|
@ -1,434 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_4,3_5} )
|
||||
|
||||
inherit eutils flag-o-matic linux-info multilib pam prefix python-single-r1 \
|
||||
systemd user versionator
|
||||
|
||||
KEYWORDS=""
|
||||
|
||||
SLOT="$(get_version_component_range 1-2)"
|
||||
|
||||
MY_PV=${PV/_/}
|
||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||
|
||||
SRC_URI="mirror://postgresql/source/v${MY_PV}/postgresql-${MY_PV}.tar.bz2"
|
||||
|
||||
LICENSE="POSTGRESQL GPL-2"
|
||||
DESCRIPTION="PostgreSQL RDBMS"
|
||||
HOMEPAGE="http://www.postgresql.org/"
|
||||
|
||||
LINGUAS="af cs de en es fa fr hr hu it ko nb pl pt_BR ro ru sk sl sv tr
|
||||
zh_CN zh_TW"
|
||||
IUSE="doc kerberos kernel_linux ldap libressl nls pam perl -pg_legacytimestamp python
|
||||
+readline selinux +server ssl static-libs tcl threads uuid xml zlib"
|
||||
|
||||
for lingua in ${LINGUAS}; do
|
||||
IUSE+=" linguas_${lingua}"
|
||||
done
|
||||
|
||||
wanted_languages() {
|
||||
local enable_langs
|
||||
|
||||
for lingua in ${LINGUAS} ; do
|
||||
use linguas_${lingua} && enable_langs+="${lingua} "
|
||||
done
|
||||
|
||||
echo -n ${enable_langs}
|
||||
}
|
||||
|
||||
CDEPEND="
|
||||
>=app-eselect/eselect-postgresql-1.2.0
|
||||
sys-apps/less
|
||||
virtual/libintl
|
||||
kerberos? ( virtual/krb5 )
|
||||
ldap? ( net-nds/openldap )
|
||||
pam? ( virtual/pam )
|
||||
perl? ( >=dev-lang/perl-5.8 )
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
readline? ( sys-libs/readline:0= )
|
||||
ssl? (
|
||||
!libressl? ( >=dev-libs/openssl-0.9.6-r1:0= )
|
||||
libressl? ( dev-libs/libressl:= )
|
||||
)
|
||||
tcl? ( >=dev-lang/tcl-8:0= )
|
||||
xml? ( dev-libs/libxml2 dev-libs/libxslt )
|
||||
zlib? ( sys-libs/zlib )
|
||||
"
|
||||
|
||||
# uuid flags -- depend on sys-apps/util-linux for Linux libcs, or if no
|
||||
# supported libc in use depend on dev-libs/ossp-uuid. For BSD systems,
|
||||
# the libc includes UUID functions.
|
||||
UTIL_LINUX_LIBC=( elibc_{glibc,uclibc,musl} )
|
||||
BSD_LIBC=( elibc_{Free,Net,Open}BSD )
|
||||
|
||||
nest_usedep() {
|
||||
local front back
|
||||
while [[ ${#} -gt 1 ]]; do
|
||||
front+="${1}? ( "
|
||||
back+=" )"
|
||||
shift
|
||||
done
|
||||
echo "${front}${1}${back}"
|
||||
}
|
||||
|
||||
IUSE+=" ${UTIL_LINUX_LIBC[@]} ${BSD_LIBC[@]}"
|
||||
CDEPEND+="
|
||||
uuid? (
|
||||
${UTIL_LINUX_LIBC[@]/%/? ( sys-apps/util-linux )}
|
||||
$(nest_usedep ${UTIL_LINUX_LIBC[@]/#/!} ${BSD_LIBC[@]/#/!} dev-libs/ossp-uuid)
|
||||
)"
|
||||
|
||||
DEPEND="${CDEPEND}
|
||||
!!<sys-apps/sandbox-2.0
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
nls? ( sys-devel/gettext )
|
||||
xml? ( virtual/pkgconfig )
|
||||
"
|
||||
|
||||
RDEPEND="${CDEPEND}
|
||||
!dev-db/postgresql-docs:${SLOT}
|
||||
!dev-db/postgresql-base:${SLOT}
|
||||
!dev-db/postgresql-server:${SLOT}
|
||||
selinux? ( sec-policy/selinux-postgresql )
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
use server && CONFIG_CHECK="~SYSVIPC" linux-info_pkg_setup
|
||||
|
||||
enewgroup postgres 70
|
||||
enewuser postgres 70 /bin/sh /var/lib/postgresql postgres
|
||||
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Work around PPC{,64} compilation bug where bool is already defined
|
||||
sed '/#ifndef __cplusplus/a #undef bool' -i src/include/c.h || die
|
||||
|
||||
# Set proper run directory
|
||||
sed "s|\(PGSOCKET_DIR\s\+\)\"/tmp\"|\1\"${EPREFIX}/run/postgresql\"|" \
|
||||
-i src/include/pg_config_manual.h || die
|
||||
|
||||
# Rely on $PATH being in the proper order so that the correct
|
||||
# install program is used for modules utilizing PGXS in both
|
||||
# hardened and non-hardened environments. (Bug #528786)
|
||||
sed 's/@install_bin@/install -c/' -i src/Makefile.global.in || die
|
||||
|
||||
use server || epatch "${FILESDIR}/${PN}-${SLOT}-no-server.patch"
|
||||
|
||||
# Fix bug 486556 where the server would crash at start up because of
|
||||
# an infinite loop caused by a self-referencing symlink.
|
||||
epatch "${FILESDIR}/postgresql-9.2-9.4-tz-dir-overflow.patch"
|
||||
|
||||
if use pam ; then
|
||||
sed -e "s/\(#define PGSQL_PAM_SERVICE \"postgresql\)/\1-${SLOT}/" \
|
||||
-i src/backend/libpq/auth.c || \
|
||||
die 'PGSQL_PAM_SERVICE rename failed.'
|
||||
fi
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
case ${CHOST} in
|
||||
*-darwin*|*-solaris*)
|
||||
use nls && append-libs intl
|
||||
;;
|
||||
esac
|
||||
|
||||
export LDFLAGS_SL="${LDFLAGS}"
|
||||
export LDFLAGS_EX="${LDFLAGS}"
|
||||
|
||||
local PO="${EPREFIX%/}"
|
||||
|
||||
local i uuid_config=""
|
||||
if use uuid; then
|
||||
for i in ${UTIL_LINUX_LIBC[@]}; do
|
||||
use ${i} && uuid_config="--with-uuid=e2fs"
|
||||
done
|
||||
for i in ${BSD_LIBC[@]}; do
|
||||
use ${i} && uuid_config="--with-uuid=bsd"
|
||||
done
|
||||
[[ -z $uuid_config ]] && uuid_config="--with-uuid=ossp"
|
||||
fi
|
||||
|
||||
econf \
|
||||
--prefix="${PO}/usr/$(get_libdir)/postgresql-${SLOT}" \
|
||||
--datadir="${PO}/usr/share/postgresql-${SLOT}" \
|
||||
--docdir="${PO}/usr/share/doc/${PF}" \
|
||||
--includedir="${PO}/usr/include/postgresql-${SLOT}" \
|
||||
--mandir="${PO}/usr/share/postgresql-${SLOT}/man" \
|
||||
--sysconfdir="${PO}/etc/postgresql-${SLOT}" \
|
||||
--with-system-tzdata="${PO}/usr/share/zoneinfo" \
|
||||
$(use_enable !pg_legacytimestamp integer-datetimes) \
|
||||
$(use_enable threads thread-safety) \
|
||||
$(use_with kerberos gssapi) \
|
||||
$(use_with ldap) \
|
||||
$(use_with pam) \
|
||||
$(use_with perl) \
|
||||
$(use_with python) \
|
||||
$(use_with readline) \
|
||||
$(use_with ssl openssl) \
|
||||
$(use_with tcl) \
|
||||
${uuid_config} \
|
||||
$(use_with xml libxml) \
|
||||
$(use_with xml libxslt) \
|
||||
$(use_with zlib) \
|
||||
"$(use_enable nls nls "$(wanted_languages)")"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake
|
||||
emake -C contrib
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
emake DESTDIR="${D}" install -C contrib
|
||||
|
||||
dodoc README HISTORY doc/{TODO,bug.template}
|
||||
|
||||
# man pages are already built, but if we have the target make them,
|
||||
# they'll be generated from source before being installed so we
|
||||
# manually install man pages.
|
||||
# We use ${SLOT} instead of doman for postgresql.eselect
|
||||
insinto /usr/share/postgresql-${SLOT}/man/
|
||||
doins -r doc/src/sgml/man{1,3,7}
|
||||
if ! use server; then
|
||||
# Remove man pages for non-existent binaries
|
||||
for m in {initdb,pg_{controldata,ctl,resetxlog},post{gres,master}}; do
|
||||
rm "${ED}/usr/share/postgresql-${SLOT}/man/man1/${m}.1"
|
||||
done
|
||||
fi
|
||||
docompress /usr/share/postgresql-${SLOT}/man/man{1,3,7}
|
||||
|
||||
insinto /etc/postgresql-${SLOT}
|
||||
newins src/bin/psql/psqlrc.sample psqlrc
|
||||
|
||||
dodir /etc/eselect/postgresql/slots/${SLOT}
|
||||
echo "postgres_ebuilds=\"\${postgres_ebuilds} ${PF}\"" > \
|
||||
"${ED}/etc/eselect/postgresql/slots/${SLOT}/base"
|
||||
|
||||
use static-libs || find "${ED}" -name '*.a' -delete
|
||||
|
||||
if use doc ; then
|
||||
docinto html
|
||||
dodoc doc/src/sgml/html/*
|
||||
|
||||
docinto sgml
|
||||
dodoc doc/src/sgml/*.{sgml,dsl}
|
||||
fi
|
||||
|
||||
if use server; then
|
||||
sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \
|
||||
"${FILESDIR}/${PN}.confd" | newconfd - ${PN}-${SLOT}
|
||||
|
||||
sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \
|
||||
"${FILESDIR}/${PN}.init-9.3" | newinitd - ${PN}-${SLOT}
|
||||
|
||||
sed -e "s|@SLOT@|${SLOT}|g" -e "s|@LIBDIR@|$(get_libdir)|g" \
|
||||
"${FILESDIR}/${PN}.service" | \
|
||||
systemd_newunit - ${PN}-${SLOT}.service
|
||||
|
||||
newbin "${FILESDIR}"/${PN}-check-db-dir ${PN}-${SLOT}-check-db-dir
|
||||
|
||||
use pam && pamd_mimic system-auth ${PN}-${SLOT} auth account session
|
||||
|
||||
if use prefix ; then
|
||||
keepdir /run/postgresql
|
||||
fperms 0775 /run/postgresql
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
postgresql-config update
|
||||
|
||||
elog "If you need a global psqlrc-file, you can place it in:"
|
||||
elog " ${EROOT%/}/etc/postgresql-${SLOT}/"
|
||||
|
||||
if [[ -z ${REPLACING_VERSIONS} ]] ; then
|
||||
elog
|
||||
elog "It looks like this is your first time installing PostgreSQL. Run the"
|
||||
elog "following command in all active shells to pick up changes to the default"
|
||||
elog "environment:"
|
||||
elog " source /etc/profile"
|
||||
fi
|
||||
|
||||
if use server ; then
|
||||
elog
|
||||
elog "Gentoo specific documentation:"
|
||||
elog "https://wiki.gentoo.org/wiki/PostgreSQL"
|
||||
elog
|
||||
elog "Official documentation:"
|
||||
elog "http://www.postgresql.org/docs/${SLOT}/static/index.html"
|
||||
elog
|
||||
elog "The default location of the Unix-domain socket is:"
|
||||
elog " ${EROOT%/}/run/postgresql/"
|
||||
elog
|
||||
elog "Before initializing the database, you may want to edit PG_INITDB_OPTS"
|
||||
elog "so that it contains your preferred locale in:"
|
||||
elog " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}"
|
||||
elog
|
||||
elog "Then, execute the following command to setup the initial database"
|
||||
elog "environment:"
|
||||
elog " emerge --config =${CATEGORY}/${PF}"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
if use server && [[ -z ${REPLACED_BY_VERSION} ]] ; then
|
||||
ewarn "Have you dumped and/or migrated the ${SLOT} database cluster?"
|
||||
ewarn "\thttps://wiki.gentoo.org/wiki/PostgreSQL/QuickStart#Migrating_PostgreSQL"
|
||||
|
||||
ebegin "Resuming removal in 10 seconds (Control-C to cancel)"
|
||||
sleep 10
|
||||
eend 0
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
postgresql-config update
|
||||
}
|
||||
|
||||
pkg_config() {
|
||||
use server || die "USE flag 'server' not enabled. Nothing to configure."
|
||||
|
||||
[[ -f "${EROOT%/}/etc/conf.d/postgresql-${SLOT}" ]] \
|
||||
&& source "${EROOT%/}/etc/conf.d/postgresql-${SLOT}"
|
||||
[[ -z "${PGDATA}" ]] && PGDATA="${EROOT%/}/etc/postgresql-${SLOT}/"
|
||||
[[ -z "${DATA_DIR}" ]] \
|
||||
&& DATA_DIR="${EROOT%/}/var/lib/postgresql/${SLOT}/data"
|
||||
|
||||
# environment.bz2 may not contain the same locale as the current system
|
||||
# locale. Unset and source from the current system locale.
|
||||
if [ -f "${EROOT%/}/etc/env.d/02locale" ]; then
|
||||
unset LANG
|
||||
unset LC_CTYPE
|
||||
unset LC_NUMERIC
|
||||
unset LC_TIME
|
||||
unset LC_COLLATE
|
||||
unset LC_MONETARY
|
||||
unset LC_MESSAGES
|
||||
unset LC_ALL
|
||||
source "${EROOT%/}/etc/env.d/02locale"
|
||||
[ -n "${LANG}" ] && export LANG
|
||||
[ -n "${LC_CTYPE}" ] && export LC_CTYPE
|
||||
[ -n "${LC_NUMERIC}" ] && export LC_NUMERIC
|
||||
[ -n "${LC_TIME}" ] && export LC_TIME
|
||||
[ -n "${LC_COLLATE}" ] && export LC_COLLATE
|
||||
[ -n "${LC_MONETARY}" ] && export LC_MONETARY
|
||||
[ -n "${LC_MESSAGES}" ] && export LC_MESSAGES
|
||||
[ -n "${LC_ALL}" ] && export LC_ALL
|
||||
fi
|
||||
|
||||
einfo "You can modify the paths and options passed to initdb by editing:"
|
||||
einfo " ${EROOT%/}/etc/conf.d/postgresql-${SLOT}"
|
||||
einfo
|
||||
einfo "Information on options that can be passed to initdb are found at:"
|
||||
einfo " http://www.postgresql.org/docs/${SLOT}/static/creating-cluster.html"
|
||||
einfo " http://www.postgresql.org/docs/${SLOT}/static/app-initdb.html"
|
||||
einfo
|
||||
einfo "PG_INITDB_OPTS is currently set to:"
|
||||
if [[ -z "${PG_INITDB_OPTS}" ]] ; then
|
||||
einfo " (none)"
|
||||
else
|
||||
einfo " ${PG_INITDB_OPTS}"
|
||||
fi
|
||||
einfo
|
||||
einfo "Configuration files will be installed to:"
|
||||
einfo " ${PGDATA}"
|
||||
einfo
|
||||
einfo "The database cluster will be created in:"
|
||||
einfo " ${DATA_DIR}"
|
||||
einfo
|
||||
while [ "$correct" != "true" ] ; do
|
||||
einfo "Are you ready to continue? (y/n)"
|
||||
read answer
|
||||
if [[ $answer =~ ^[Yy]([Ee][Ss])?$ ]] ; then
|
||||
correct="true"
|
||||
elif [[ $answer =~ ^[Nn]([Oo])?$ ]] ; then
|
||||
die "Aborting initialization."
|
||||
else
|
||||
echo "Answer not recognized"
|
||||
fi
|
||||
done
|
||||
|
||||
if [ -n "$(ls -A ${DATA_DIR} 2> /dev/null)" ] ; then
|
||||
eerror "The given directory, '${DATA_DIR}', is not empty."
|
||||
eerror "Modify DATA_DIR to point to an empty directory."
|
||||
die "${DATA_DIR} is not empty."
|
||||
fi
|
||||
|
||||
einfo "Creating the data directory ..."
|
||||
if [[ ${EUID} == 0 ]] ; then
|
||||
mkdir -p "${DATA_DIR}"
|
||||
chown -Rf postgres:postgres "${DATA_DIR}"
|
||||
chmod 0700 "${DATA_DIR}"
|
||||
fi
|
||||
|
||||
einfo "Initializing the database ..."
|
||||
|
||||
if [[ ${EUID} == 0 ]] ; then
|
||||
su postgres -c "${EROOT%/}/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -D \"${DATA_DIR}\" ${PG_INITDB_OPTS}"
|
||||
else
|
||||
"${EROOT%/}"/usr/$(get_libdir)/postgresql-${SLOT}/bin/initdb -U postgres -D "${DATA_DIR}" ${PG_INITDB_OPTS}
|
||||
fi
|
||||
|
||||
if [[ "${DATA_DIR%/}" != "${PGDATA%/}" ]] ; then
|
||||
mv "${DATA_DIR%/}"/{pg_{hba,ident},postgresql}.conf "${PGDATA}"
|
||||
ln -s "${PGDATA%/}"/{pg_{hba,ident},postgresql}.conf "${DATA_DIR%/}"
|
||||
fi
|
||||
|
||||
cat <<- EOF >> "${PGDATA%/}"/postgresql.conf
|
||||
# This is here because of https://bugs.gentoo.org/show_bug.cgi?id=518522
|
||||
# On the off-chance that you might need to work with UTF-8 encoded
|
||||
# characters in PL/Perl
|
||||
plperl.on_init = 'use utf8; use re; package utf8; require "utf8_heavy.pl";'
|
||||
EOF
|
||||
|
||||
einfo "The autovacuum function, which was in contrib, has been moved to the main"
|
||||
einfo "PostgreSQL functions starting with 8.1, and starting with 8.4 is now enabled"
|
||||
einfo "by default. You can disable it in the cluster's:"
|
||||
einfo " ${PGDATA%/}/postgresql.conf"
|
||||
einfo
|
||||
einfo "The PostgreSQL server, by default, will log events to:"
|
||||
einfo " ${DATA_DIR%/}/postmaster.log"
|
||||
einfo
|
||||
if use prefix ; then
|
||||
einfo "The location of the configuration files have moved to:"
|
||||
einfo " ${PGDATA}"
|
||||
einfo "To start the server:"
|
||||
einfo " pg_ctl start -D ${DATA_DIR} -o '-D ${PGDATA} --data-directory=${DATA_DIR}'"
|
||||
einfo "To stop:"
|
||||
einfo " pg_ctl stop -D ${DATA_DIR}"
|
||||
einfo
|
||||
einfo "Or move the configuration files back:"
|
||||
einfo "mv ${PGDATA}*.conf ${DATA_DIR}"
|
||||
else
|
||||
einfo "You should use the '${EROOT%/}/etc/init.d/postgresql-${SLOT}' script to run PostgreSQL"
|
||||
einfo "instead of 'pg_ctl'."
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
if use server && [[ ${UID} -ne 0 ]] ; then
|
||||
emake check
|
||||
|
||||
einfo "If you think other tests besides the regression tests are necessary, please"
|
||||
einfo "submit a bug including a patch for this ebuild to enable them."
|
||||
else
|
||||
use server || \
|
||||
ewarn 'Tests cannot be run without the "server" use flag enabled.'
|
||||
[[ ${UID} -eq 0 ]] || \
|
||||
ewarn 'Tests cannot be run as root. Enable "userpriv" in FEATURES.'
|
||||
|
||||
ewarn 'Skipping.'
|
||||
fi
|
||||
}
|
@ -1,19 +0,0 @@
|
||||
Preserve API for now. This has been renamed for TeX Live 2011.
|
||||
|
||||
Index: texlive-20110627-source/texk/kpathsea/types.h
|
||||
===================================================================
|
||||
--- texlive-20110627-source.orig/texk/kpathsea/types.h
|
||||
+++ texlive-20110627-source/texk/kpathsea/types.h
|
||||
@@ -280,8 +280,12 @@ extern KPSEDLL kpathsea kpse_def;
|
||||
|
||||
#undef kpse_invocation_name
|
||||
#define kpse_invocation_name kpse_def_inst.invocation_name
|
||||
+#undef program_invocation_name
|
||||
+#define program_invocation_name kpse_def_inst.invocation_name
|
||||
#undef kpse_invocation_short_name
|
||||
#define kpse_invocation_short_name kpse_def_inst.invocation_short_name
|
||||
+#undef program_invocation_short_name
|
||||
+#define program_invocation_short_name kpse_def_inst.invocation_short_name
|
||||
|
||||
#endif /* KPSE_COMPAT_API */
|
||||
|
@ -0,0 +1,136 @@
|
||||
commit 27c69ac5dfbc26744e304232bb8c0cf22d396082
|
||||
Author: Vasilis Papavasileiou <git@vasilis.airpost.net>
|
||||
Date: Thu May 5 11:14:02 2016 -0400
|
||||
|
||||
Fix PPX for 4.03 (empty let bindings)
|
||||
|
||||
diff --git a/src/ppx/ppx_eliom_client.ml b/src/ppx/ppx_eliom_client.ml
|
||||
index 580d2b5..fb2d263 100644
|
||||
--- a/src/ppx/ppx_eliom_client.ml
|
||||
+++ b/src/ppx/ppx_eliom_client.ml
|
||||
@@ -89,21 +89,25 @@ module Pass = struct
|
||||
]
|
||||
|
||||
let define_client_functions ~loc client_value_datas =
|
||||
- let bindings =
|
||||
- List.map
|
||||
- (fun (_num, id, expr, args) ->
|
||||
- let patt = Pat.var id in
|
||||
- let typ = find_fragment id in
|
||||
- let args = List.map Pat.var args in
|
||||
- let expr =
|
||||
- [%expr
|
||||
- fun [%p pat_args args] -> ([%e expr] : [%t typ])
|
||||
- ] [@metaloc loc]
|
||||
- in
|
||||
- Vb.mk ~loc patt expr)
|
||||
- client_value_datas
|
||||
- in
|
||||
- Str.value ~loc Nonrecursive bindings
|
||||
+ match client_value_datas with
|
||||
+ | [] ->
|
||||
+ []
|
||||
+ | _ ->
|
||||
+ let bindings =
|
||||
+ List.map
|
||||
+ (fun (_num, id, expr, args) ->
|
||||
+ let patt = Pat.var id in
|
||||
+ let typ = find_fragment id in
|
||||
+ let args = List.map Pat.var args in
|
||||
+ let expr =
|
||||
+ [%expr
|
||||
+ fun [%p pat_args args] -> ([%e expr] : [%t typ])
|
||||
+ ] [@metaloc loc]
|
||||
+ in
|
||||
+ Vb.mk ~loc patt expr)
|
||||
+ client_value_datas
|
||||
+ in
|
||||
+ [Str.value ~loc Nonrecursive bindings]
|
||||
|
||||
(* For injections *)
|
||||
|
||||
@@ -139,8 +143,8 @@ module Pass = struct
|
||||
let client_expr_data = flush_client_value_datas () in
|
||||
open_client_section loc ::
|
||||
register_client_closures client_expr_data @
|
||||
- [ define_client_functions loc client_expr_data ;
|
||||
- item ;
|
||||
+ define_client_functions loc client_expr_data @
|
||||
+ [ item ;
|
||||
close_server_section loc ;
|
||||
]
|
||||
|
||||
@@ -155,11 +159,13 @@ module Pass = struct
|
||||
push_client_value_data num id expr
|
||||
(List.map fst escaped_bindings);
|
||||
|
||||
- match context with
|
||||
- | `Server ->
|
||||
+ match context, escaped_bindings with
|
||||
+ | `Server, _ ->
|
||||
(* We are in a server fragment, this code should always be discarded. *)
|
||||
Exp.extension @@ AM.extension_of_error @@ Location.errorf "Eliom: ICE"
|
||||
- | `Shared ->
|
||||
+ | `Shared, [] ->
|
||||
+ [%expr [%e frag_eid] ()][@metaloc loc]
|
||||
+ | `Shared, _ ->
|
||||
let bindings =
|
||||
List.map
|
||||
(fun (gen_id, expr) ->
|
||||
diff --git a/src/ppx/ppx_eliom_server.ml b/src/ppx/ppx_eliom_server.ml
|
||||
index 97f0b53..b5238ad 100644
|
||||
--- a/src/ppx/ppx_eliom_server.ml
|
||||
+++ b/src/ppx/ppx_eliom_server.ml
|
||||
@@ -85,6 +85,7 @@ module Pass = struct
|
||||
let $gen_id$ = $orig_expr$ and ...
|
||||
(Necessary for injections in shared section) *)
|
||||
let bind_injected_idents injections =
|
||||
+ assert (injections <> []);
|
||||
let bindings =
|
||||
List.map
|
||||
(fun (txt, expr,_) ->
|
||||
@@ -134,10 +135,15 @@ module Pass = struct
|
||||
|
||||
let client_str item =
|
||||
let all_injections = flush_injections () in
|
||||
- let loc = item.pstr_loc in
|
||||
- [ bind_injected_idents all_injections;
|
||||
+ let ccs =
|
||||
+ let loc = item.pstr_loc in
|
||||
close_client_section loc all_injections
|
||||
- ]
|
||||
+ in
|
||||
+ match all_injections with
|
||||
+ | [] ->
|
||||
+ [ ccs ]
|
||||
+ | l ->
|
||||
+ [ bind_injected_idents l ; ccs ]
|
||||
|
||||
let server_str item = [
|
||||
item ;
|
||||
@@ -146,12 +152,19 @@ module Pass = struct
|
||||
|
||||
let shared_str item =
|
||||
let all_injections = flush_injections () in
|
||||
- let loc = item.pstr_loc in
|
||||
- [ bind_injected_idents all_injections ;
|
||||
- item ;
|
||||
- close_server_section loc ;
|
||||
- close_client_section loc all_injections ;
|
||||
- ]
|
||||
+ let cl =
|
||||
+ let loc = item.pstr_loc in
|
||||
+ [
|
||||
+ item;
|
||||
+ close_server_section loc ;
|
||||
+ close_client_section loc all_injections ;
|
||||
+ ]
|
||||
+ in
|
||||
+ match all_injections with
|
||||
+ | [] ->
|
||||
+ cl
|
||||
+ | l ->
|
||||
+ bind_injected_idents l :: cl
|
||||
|
||||
let fragment ?typ ~context:_ ~num ~id expr =
|
||||
let typ =
|
File diff suppressed because it is too large
Load Diff
@ -1,59 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit findlib eutils
|
||||
|
||||
DESCRIPTION="A compiler from OCaml bytecode to javascript"
|
||||
HOMEPAGE="http://ocsigen.org/js_of_ocaml/"
|
||||
SRC_URI="https://github.com/ocsigen/js_of_ocaml/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1-with-linking-exception"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="+ocamlopt doc +deriving +ppx +ppx-deriving +react +xml X"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-lang/ocaml-3.12:=[ocamlopt?,X?]
|
||||
>=dev-ml/lwt-2.4.4:=
|
||||
react? ( dev-ml/react:= dev-ml/reactiveData:= )
|
||||
xml? ( >=dev-ml/tyxml-3.6:= )
|
||||
ppx? ( dev-ml/ppx_tools:= )
|
||||
ppx-deriving? ( dev-ml/ppx_deriving:= )
|
||||
dev-ml/cmdliner:=
|
||||
dev-ml/menhir:=
|
||||
dev-ml/ocaml-base64:=
|
||||
dev-ml/camlp4:=
|
||||
dev-ml/cppo:=
|
||||
deriving? ( >=dev-ml/deriving-0.6:= )"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-ml/ocamlbuild"
|
||||
|
||||
src_prepare() {
|
||||
has_version '>=dev-lang/ocaml-4.03' && epatch "${FILESDIR}/oc43.patch"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
printf "\n\n" >> Makefile.conf
|
||||
use ocamlopt || echo "BEST := byte" >> Makefile.conf
|
||||
use ocamlopt || echo "NATDYNLINK := NO" >> Makefile.conf
|
||||
use deriving || echo "WITH_DERIVING := NO" >> Makefile.conf
|
||||
use X || echo "WITH_GRAPHICS := NO" >> Makefile.conf
|
||||
use react || echo "WITH_REACT := NO" >> Makefile.conf
|
||||
use ppx || echo "WITH_PPX := NO" >> Makefile.conf
|
||||
use ppx-deriving || echo "WITH_PPX_PPX_DERIVING := NO" >> Makefile.conf
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake
|
||||
use doc && emake doc
|
||||
}
|
||||
|
||||
src_install() {
|
||||
findlib_src_preinst
|
||||
emake BINDIR="${ED}/usr/bin/" install
|
||||
dodoc CHANGES README.md
|
||||
use doc && dohtml -r doc/api/html/
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST ojquery-0.1.tar.gz 64335 SHA256 38ea3c563f51829867188d523c384b98b14593dffc5e804e39fa671ffac516c3 SHA512 57b0f7458fc44294df0993a1593f0f42d532834b7f6676e8093eb3c12d4c88a6084a99f831751fece69477d17ab84a0ebedd9873f5255aa8ee2a6d39996634d2 WHIRLPOOL f705a9e04a2682a2d0fb20e2473734f9aa5829ddc10d396e603576ae22d8082aa2ffb465379e1f53d039f1075c32857c98de97804af1cfc5e0632ac36397ea1d
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>ml@gentoo.org</email>
|
||||
<name>Gentoo ML Project</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -0,0 +1,25 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit oasis
|
||||
|
||||
DESCRIPTION="jQuery Binding for Eliom."
|
||||
HOMEPAGE="jQuery Binding for Eliom."
|
||||
SRC_URI="https://github.com/ocsigen/ojquery/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-ml/react:=
|
||||
dev-ml/js_of_ocaml:=
|
||||
dev-ml/lwt:="
|
||||
DEPEND="${RDEPEND} dev-ml/oasis"
|
||||
|
||||
src_prepare() {
|
||||
oasis setup || die
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit oasis
|
||||
|
||||
DESCRIPTION="jQuery Binding for Eliom."
|
||||
HOMEPAGE="jQuery Binding for Eliom."
|
||||
|
||||
if [ "${PV#9999}" != "${PV}" ] ; then
|
||||
inherit git-r3
|
||||
SRC_URI=""
|
||||
EGIT_REPO_URI="https://github.com/ocsigen/ojquery"
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="https://github.com/ocsigen/ojquery/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0/${PV}"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-ml/react:=
|
||||
dev-ml/js_of_ocaml:=
|
||||
dev-ml/lwt:="
|
||||
DEPEND="${RDEPEND} dev-ml/oasis"
|
||||
|
||||
src_prepare() {
|
||||
oasis setup || die
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
DESCRIPTION="Functional reactive programming with incremental changes in data structures"
|
||||
HOMEPAGE="https://github.com/ocsigen/reactiveData"
|
||||
|
||||
if [ "${PV#9999}" != "${PV}" ] ; then
|
||||
inherit git-r3
|
||||
SRC_URI=""
|
||||
EGIT_REPO_URI="https://github.com/ocsigen/reactiveData"
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="https://github.com/ocsigen/reactiveData/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
LICENSE="LGPL-3-with-linking-exception"
|
||||
SLOT="0/${PV}"
|
||||
IUSE="+ocamlopt"
|
||||
|
||||
RDEPEND=">=dev-lang/ocaml-3.12:=[ocamlopt?]
|
||||
dev-ml/react:="
|
||||
DEPEND="${RDEPEND}
|
||||
dev-ml/findlib
|
||||
dev-ml/opam
|
||||
dev-ml/ocamlbuild
|
||||
"
|
||||
|
||||
src_compile() {
|
||||
ocaml pkg/build.ml \
|
||||
native=$(usex ocamlopt true false) \
|
||||
native-dynlink=$(usex ocamlopt true false) \
|
||||
|| die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
opam-installer \
|
||||
--prefix="${ED}/usr" \
|
||||
--libdir="${D}/$(ocamlc -where)" \
|
||||
--docdir="${ED}/usr/share/doc/${PF}" \
|
||||
|| die
|
||||
dodoc README.md
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST uchar-0.0.1.tar.gz 23471 SHA256 ac94116a35cbcf346c94b4326d03d382560fbae337b7a59794ad6e1a1a84c140 SHA512 6bdc3646cb959af1a289e22f5202da2f3e3462b42a563ec4a999e96ba7b2d0c95e2d42ef06b35cd9c477eebfadef5bba4abdb60997faa7e6848aa6bcb5d729c2 WHIRLPOOL 7b043985fdc61aac63b1ba923006b40ef52552c0aad5f45d6be6f744b6d1cb1a7ce46d5dc647e59cd82fa5d243a8699bd44987871ef6c60874a31f231c36d2aa
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>ml@gentoo.org</email>
|
||||
<name>Gentoo ML Project</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -0,0 +1,37 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="Uchar compatibility library"
|
||||
HOMEPAGE="https://github.com/ocaml/uchar"
|
||||
SRC_URI="https://github.com/ocaml/uchar/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2-with-linking-exception"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="+ocamlopt"
|
||||
|
||||
RDEPEND="dev-lang/ocaml:="
|
||||
DEPEND="${RDEPEND}
|
||||
dev-ml/opam"
|
||||
|
||||
src_compile() {
|
||||
ocaml pkg/build.ml \
|
||||
"native=$(usex ocamlopt true false)" \
|
||||
"native-dynlink=$(usex ocamlopt true false)" || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
ocamlbuild -X src -use-ocamlfind -pkg uchar test/testpkg.native || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
opam-installer -i \
|
||||
--prefix="${ED}/usr" \
|
||||
--libdir="${D}/$(ocamlc -where)" \
|
||||
--docdir="${ED}/usr/share/doc/${PF}" \
|
||||
${PN}.install || die
|
||||
dodoc README.md CHANGES.md
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
DIST_AUTHOR=MIK
|
||||
DIST_VERSION=0.039
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="Self-contained crypto toolkit"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test minimal"
|
||||
|
||||
RDEPEND="
|
||||
>=virtual/perl-Exporter-5.590.0
|
||||
!minimal? (
|
||||
|| ( dev-perl/JSON-XS virtual/perl-JSON-PP )
|
||||
)
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/perl-ExtUtils-MakeMaker
|
||||
test? (
|
||||
>=virtual/perl-Test-Simple-0.880.0
|
||||
!minimal? (
|
||||
>=virtual/perl-Math-BigInt-1.999.715
|
||||
>=virtual/perl-Storable-2.0.0
|
||||
)
|
||||
)
|
||||
"
|
||||
|
||||
src_test() {
|
||||
perl_rm_files t/003_all_pm_pod.t
|
||||
perl-module_src_test
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST CryptX-0.025.tar.gz 1322492 SHA256 f8b7e3ec1713c8dfe3eef9d114f45f223b97e2340f81a20589b5605fa49cfe38 SHA512 73495601ff9ca70090dc2eb75ab382ef34ca1357b4f6cf82c07fe5c1a38ab5b4cf8fa79b44dcf9145be13ca0b2e7e5e99903d5a9fd425de2e46526fd4ac17554 WHIRLPOOL 12c338aca513b5ccbce69359acb99e5ca1182a61467d864050990e68fe8f2010604676f39fe650890ae8b37745954364f781e0d7ee6d20c1658a782c81500f65
|
||||
DIST CryptX-0.039.tar.gz 1200451 SHA256 2d06975459d53799d50b0f07971c995bd2cbfceac7d26c571e852ce79a701087 SHA512 7bb0401628873721ab1d38fdc98b8b8f4f53f1c82aa4c22f095fe997b8ffa2e8072b24f6f2e8c3784ccdad2ebbd1aec67cffa6aaf57e8005f9b2b0532454b9d5 WHIRLPOOL 3e0df5b890526cb0e886caede4f62d77e76a1650877d4e25b1c7f2d66e0d74519bda0d235bff25e24c890db26057c69ef4c607ed5279f8fbf84bca2d78ea0a89
|
||||
|
@ -0,0 +1,47 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
DIST_AUTHOR=GIRAFFED
|
||||
DIST_VERSION=1.36
|
||||
DIST_EXAMPLES=("demo" "demo2" "demo.form" "demo.menu" "demo.panel" "gdc")
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="Curses interface modules for Perl"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-solaris ~x86-solaris"
|
||||
IUSE="+unicode test"
|
||||
|
||||
RDEPEND=">=sys-libs/ncurses-5:0=[unicode?]
|
||||
virtual/perl-Data-Dumper
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/perl-ExtUtils-MakeMaker
|
||||
test? ( virtual/perl-Test-Simple )
|
||||
"
|
||||
|
||||
my_curses_unicode() {
|
||||
echo ncurses$(use unicode && echo w)
|
||||
}
|
||||
|
||||
my_curses_version() {
|
||||
echo ncurses$(use unicode && echo w)$(has_version '>sys-libs/ncurses-6' && echo 6 || echo 5)
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
myconf="${myconf} FORMS PANELS MENUS"
|
||||
mydoc=HISTORY
|
||||
export CURSES_LIBTYPE=$(my_curses_unicode)
|
||||
export CURSES_LDFLAGS=$($(my_curses_version)-config --libs)
|
||||
export CURSES_CFLAGS=$( $(my_curses_version)-config --cflags)
|
||||
}
|
||||
|
||||
src_configure(){
|
||||
perl-module_src_configure
|
||||
if ! use unicode ; then
|
||||
sed -i 's:<form.h>:"/usr/include/form.h":' "${S}"/c-config.h || die
|
||||
fi
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST Curses-1.32.tgz 134753 SHA256 5dba44fd7964806d9765e6692bc7eb8eb30aeced2740f28b9a4070a5d14ba650 SHA512 ecaa5cea2b544979229badc9f0d0ce84b385aa178ea0f821e6582865b3be63ea3d0cbc43651e2dc03334b796e5eab961c30e8f1637eec4af579843617e661562 WHIRLPOOL 37b548423430a79791659d40aa2d3d66546e0c49bbe8e1fc5c3798b30715ce1ed40343cdec70b3019a4d7c7d8adb37ca66fd8afa9f52d4b1e63774ac6a0c9b58
|
||||
DIST Curses-1.33.tar.gz 134541 SHA256 eb1febf4c7dc01454f6e1d6a7380010e6a9b61b527e7f635c45b08b43c83ce88 SHA512 094ecf34f4116a4b405a810a16b727ab3201a32a42f98a2e2ac065e6b5cb25939091021f054bc15503fcc4aee1ee47825392cd8bd10e94f10792afcede6fe978 WHIRLPOOL 7cb13e0982a2e063325ac2a5716ff49258f81f03f657cee35856960f3452dd0b4e7ddf6f6baf82bc1f709ee436f5156da288d1ed98f018b61ba11eb63b321c83
|
||||
DIST Curses-1.36.tar.gz 135049 SHA256 a414795ba031c5918c70279fe534fee594a96ec4b0c78f44ce453090796add64 SHA512 40ce96bdf7ef4bbd6975363bc27c2c561a81cafbaf147f2655a2c6521e09f6e40441cee06b6f8f27e370ad59eaf6f677ffe8e475030dfa870d25eca37717c58c WHIRLPOOL 96507aeff6e4a7a27e4cf8fcd3844e03b0c8955d22ca63fd7c5c7d68e28bc30b6393ba488c56bb6d395d4f570e2b316dac59331319aec4770d665f67d4d362ff
|
||||
|
@ -1 +1,2 @@
|
||||
DIST PyGithub-1.25.2.tar.gz 2624603 SHA256 3afce80516998ce4478424797f341d961d1c251958859c70b8d3986d00faafd7 SHA512 24b8370552889e748de1f51e6d5a14f11e2f77a9b1f920743f90ffbadc849cb887bf6d84c1c251b7a86ee454d919004255fc3046b199792cd078ce49d892cec0 WHIRLPOOL 56d7989c63f0b0943da3c88e38ec266277659f124566ab20c9a9f30ceec74c792d4f13cc201d7b7851ac3074c05f5608280674803597652913f0a1b71f430505
|
||||
DIST PyGithub-1.27.1.tar.gz 2661261 SHA256 464a172d547a0429d038a5a75cbdfbcdf99ab756c7742aad875a3db70ccabf3b SHA512 67a741d98a35aedfc73c2099b224145348742a6bbe0393a1301fd84034dd0690fb6c80c7ae0c1e1b2e9f4768327adde87cc8ca5b69f16fee118338ea0aeb2a1d WHIRLPOOL ef80bb3fb6f07f526b7f8a0bbef86ba030700ae159e9bca8298539384e4f975f03f6d14d044e90afed3a4eff1dd8eaf1000c1269bd82eaf3b46769fabe6342c9
|
||||
|
@ -0,0 +1,23 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python{2_7,3_3,3_4,3_5} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python library to access the Github API v3"
|
||||
HOMEPAGE="https://github.com/jacquev6/PyGithub/"
|
||||
# Use github since pypi is missing test data
|
||||
SRC_URI="https://github.com/jacquev6/PyGithub/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
|
||||
python_test() {
|
||||
esetup.py test
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST cement-2.0.2.tar.gz 81009 SHA256 af788557a1f4ebcbd0e0949f0ee0b627f8e03844f7e76902c3cdb3959cf11e38 SHA512 5df35bdaa714a9b11d5b0154658333ea28a8e50e8910ee7d900cc7342dda8ce547d5400990240b89b6c808bb91c72b785f66c31c057cf7b782d16efd0c21a4b9 WHIRLPOOL c7997e238ac698f8e067586783f187ef6d5c0a8f175dc46a961205397f77fd8b9bce6f8e5b4aea87d5456007a43e18de585589df90799ea94f98f1ac8c4fa312
|
||||
DIST cement-2.10.0.tar.gz 179564 SHA256 226d3d21eb123142066f62deb2462df5c32a1d8c9caed31530eb76e9031df270 SHA512 99fc93fd67d85763a57b551553f7046d8b6c0a1a37623a6f8e761adb15f598dce20a61ab86f98f1b3ce35c2a295e0087a5493b385d4ac2fd89eed2b2174b7628 WHIRLPOOL 4158fdf1a707dcbc52dbf0c5bcf575c65ac6526d3c238be7a255590cc9979e94e9ab5844950c1713ee2ecf5eb1aaecf4a1cf9b52884951f8375533dab30625b7
|
||||
DIST cement-2.6.2.tar.gz 140010 SHA256 ba547b342c2e327f2509f9424971f7ae9dd61ec884cb62c80f45d88bdf4bd27b SHA512 580b3ad8079250d341b2667f0090e3659b5cf3212a0a3f4e1ef31728da5b9b32471b22bcf2e01d16cb315945f2f86ee8261775c7847a79a34006b433ba76be1f WHIRLPOOL f3afb816f3587ae2e4178dec57b96362fa052cf895190edab11c8e8611482290be975714dc2e65a39733693a2bd03c205cb8a05fcc78d9043f86f6f7243a1cdb
|
||||
|
@ -0,0 +1,59 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
|
||||
|
||||
inherit distutils-r1 versionator
|
||||
|
||||
PV_MAJOR_MINOR=$(get_version_component_range 1-2)
|
||||
|
||||
DESCRIPTION="CLI Application Framework for Python"
|
||||
HOMEPAGE="http://builtoncement.com/"
|
||||
SRC_URI="http://builtoncement.com/${PN}/${PV_MAJOR_MINOR}/source/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test doc examples"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/pystache[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
dev-python/configobj[${PYTHON_USEDEP}]
|
||||
dev-python/pylibmc[${PYTHON_USEDEP}]
|
||||
dev-python/genshi[${PYTHON_USEDEP}]
|
||||
dev-python/colorlog[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
||||
test? (
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
dev-python/coverage[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
DOCS=( ChangeLog CONTRIBUTORS README.md )
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}"-2.6.2-exmples.patch )
|
||||
|
||||
#https://github.com/datafolklabs/cement/issues/331
|
||||
RESTRICT=test
|
||||
|
||||
python_test() {
|
||||
nosetests --verbose || die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && esetup.py build_sphinx
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && HTML_DOCS=( doc/build/html/. )
|
||||
use examples && EXAMPLES=( examples )
|
||||
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST pyocr-0.2.4.tar.gz 309220 SHA256 a8db05190b505691a5c5fd1459072fda7f429940b562209b42f3db93c1292ef6 SHA512 8df6aa267743ae05864a0272764bfefc95c5071399ac90a7c0d52ec9fff65c55380066fad46412f71f6c7b2f8125e1b618fec6ecca4d7ff696c005115cd59d9d WHIRLPOOL 22efb3f668b9adc0e80a71b86d157252c4de8cee0d7628f1835b40d8892501871ba58ad6928dab97a76b66d66319bdbe43fe0a4cfa57d39b6216c673747b9dd3
|
||||
DIST pyocr-0.3.0.tar.gz 315750 SHA256 b17279f1961487d635dd43dbbf94c3cee678ab262812cf4d7b0bd919f960f13d SHA512 c5014026072d4a5edad2bf32817c07c09436aed0d2544aba6d1418dd6f0a238ee4794171922d5d473142ff21e5df97b27be6fe12c83124a39dd2c1f67445d6de WHIRLPOOL a6b10f313660b80c47ead6b0e6a426e3ce595dda23954c25675273ef5a7adc8abce626a964fc14eb12baa9b46e346e54c6dd49e91b2a92d4be68db8e07b5edde
|
||||
DIST pyocr-0.3.1.tar.gz 316203 SHA256 119c8be5ae3cce0aea07dc1178c3f37f8f2473421baeda09f1ed2c411449e4ec SHA512 50a5d7fd48e03c38edb65e6a1940476bdfbe98f6deb9a9ac0a1d0a429f9b0044849a1f3a91e436ffb6ef986333741852dee37a1df4ae2c15c354a6dfa0c66bc9 WHIRLPOOL c17f91afd00f9fdab59f3e5646f3f11edf9f01bd5528a9bcff87d8180129bdf55ff8e49d287a5da09c4a468a8368e97b547fc28eb2e789f6df3b63f296905ee2
|
||||
DIST pyocr-0.4.1.tar.gz 1277997 SHA256 6fdefe9aed5c0c6543876d9dbd33ac0fc222a38ccdf1e2104fb3adac13e1485e SHA512 1e0bd840b02239695b4b7d572e8abea772a0b8833f532a8eaa3e733020677c906a2daeb6845c265a2a47a7ffeae876599dd124e6b3a7f67e90fa082b92e44ceb WHIRLPOOL 82b5edcb243c6024e0b3c44136cd18e4c6f4ec901aac69aa091fec537c54233d5ec05cb56a9d819bfb21550c456ca4144bbf547468e5e47aff9854d1514d4b26
|
||||
|
@ -0,0 +1,31 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python{2_7,3_4,3_5} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="An optical character recognition (OCR) tool wrapper for python"
|
||||
HOMEPAGE="https://github.com/jflesch/pyocr"
|
||||
SRC_URI="https://github.com/jflesch/pyocr/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
IUSE="cuneiform +tesseract"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="cuneiform? ( app-text/cuneiform )
|
||||
tesseract? ( app-text/tesseract )
|
||||
dev-python/pillow
|
||||
dev-python/six"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
REQUIRED_USE="|| ( cuneiform tesseract )"
|
||||
|
||||
RESTRICT="test" # reguires tesseract[l10n_fr,l10n_en,l10n_jp]
|
||||
|
||||
python_test() {
|
||||
${EPYTHON} run_tests.py || die
|
||||
}
|
@ -0,0 +1,205 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 pypy )
|
||||
inherit eutils multilib pax-utils python-any-r1 unpacker versionator
|
||||
|
||||
BINHOST="https://dev.gentoo.org/~mgorny/dist/pypy-bin/${PV}"
|
||||
CPY_PATCHSET_VERSION="2.7.11-0"
|
||||
MY_P=pypy2-v${PV}
|
||||
|
||||
DESCRIPTION="Pre-built version of PyPy"
|
||||
HOMEPAGE="http://pypy.org/"
|
||||
SRC_URI="https://bitbucket.org/pypy/pypy/downloads/${MY_P}-src.tar.bz2
|
||||
https://dev.gentoo.org/~djc/python-gentoo-patches-${CPY_PATCHSET_VERSION}.tar.xz
|
||||
amd64? (
|
||||
jit? ( shadowstack? (
|
||||
${BINHOST}/${P}-amd64+bzip2+jit+ncurses+shadowstack.tar.lz
|
||||
) )
|
||||
jit? ( !shadowstack? (
|
||||
${BINHOST}/${P}-amd64+bzip2+jit+ncurses.tar.lz
|
||||
) )
|
||||
!jit? ( !shadowstack? (
|
||||
${BINHOST}/${P}-amd64+bzip2+ncurses.tar.lz
|
||||
) )
|
||||
)
|
||||
x86? (
|
||||
cpu_flags_x86_sse2? (
|
||||
jit? ( shadowstack? (
|
||||
${BINHOST}/${P}-x86+bzip2+jit+ncurses+shadowstack+sse2.tar.lz
|
||||
) )
|
||||
jit? ( !shadowstack? (
|
||||
${BINHOST}/${P}-x86+bzip2+jit+ncurses+sse2.tar.lz
|
||||
) )
|
||||
!jit? ( !shadowstack? (
|
||||
${BINHOST}/${P}-x86+bzip2+ncurses+sse2.tar.lz
|
||||
) )
|
||||
)
|
||||
!cpu_flags_x86_sse2? (
|
||||
!jit? ( !shadowstack? (
|
||||
${BINHOST}/${P}-x86+bzip2+ncurses.tar.lz
|
||||
) )
|
||||
)
|
||||
)"
|
||||
|
||||
# Supported variants
|
||||
REQUIRED_USE="!jit? ( !shadowstack )
|
||||
x86? ( !cpu_flags_x86_sse2? ( !jit !shadowstack ) )"
|
||||
|
||||
LICENSE="MIT"
|
||||
# pypy -c 'import sysconfig; print sysconfig.get_config_var("SOABI")'
|
||||
SLOT="0/41"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc gdbm +jit +shadowstack sqlite cpu_flags_x86_sse2 test tk"
|
||||
|
||||
# yep, world would be easier if people started filling subslots...
|
||||
RDEPEND="
|
||||
app-arch/bzip2:0=
|
||||
dev-libs/expat:0=
|
||||
dev-libs/libffi:0=
|
||||
dev-libs/openssl:0=[-bindist]
|
||||
sys-libs/glibc:2.2=
|
||||
sys-libs/ncurses:0/6
|
||||
sys-libs/zlib:0=
|
||||
gdbm? ( sys-libs/gdbm:0= )
|
||||
sqlite? ( dev-db/sqlite:3= )
|
||||
tk? (
|
||||
dev-lang/tk:0=
|
||||
dev-tcltk/tix:0=
|
||||
)
|
||||
!dev-python/pypy:0"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/lzip
|
||||
app-arch/xz-utils
|
||||
doc? ( ${PYTHON_DEPS}
|
||||
dev-python/sphinx )"
|
||||
|
||||
S=${WORKDIR}/${MY_P}-src
|
||||
|
||||
QA_PREBUILT="
|
||||
usr/lib*/pypy/pypy-c
|
||||
usr/lib*/pypy/libpypy-c.so"
|
||||
|
||||
pkg_setup() {
|
||||
if [[ ${MERGE_TYPE} != binary ]]; then
|
||||
use doc && python-any-r1_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/4.0.0-gentoo-path.patch" \
|
||||
"${FILESDIR}/1.9-distutils.unixccompiler.UnixCCompiler.runtime_library_dir_option.patch"
|
||||
|
||||
sed -e "s^@EPREFIX@^${EPREFIX}^" \
|
||||
-e "s^@libdir@^$(get_libdir)^" \
|
||||
-i lib-python/2.7/distutils/command/install.py || die
|
||||
|
||||
# apply CPython stdlib patches
|
||||
pushd lib-python/2.7 > /dev/null || die
|
||||
epatch "${FILESDIR}"/2.5.0_all_distutils_cxx.patch \
|
||||
"${WORKDIR}"/patches/22_all_turkish_locale.patch \
|
||||
"${WORKDIR}"/patches/62_all_xml.use_pyxml.patch
|
||||
popd > /dev/null || die
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Tadaam! PyPy compiled!
|
||||
mv "${WORKDIR}"/${P}*/{libpypy-c.so,pypy-c} . || die
|
||||
mv "${WORKDIR}"/${P}*/include/*.h include/ || die
|
||||
# (not installed by pypy)
|
||||
rm pypy/module/cpyext/include/_numpypy/numpy/README || die
|
||||
mv pypy/module/cpyext/include/* include/ || die
|
||||
|
||||
use doc && emake -C pypy/doc/ html
|
||||
#needed even without jit :( also needed in both compile and install phases
|
||||
pax-mark m pypy-c libpypy-c.so
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# (unset)
|
||||
local -x PYTHONDONTWRITEBYTECODE
|
||||
|
||||
./pypy-c ./pypy/test_all.py --pypy=./pypy-c lib-python || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local dest=/usr/$(get_libdir)/pypy
|
||||
einfo "Installing PyPy ..."
|
||||
insinto "${dest}"
|
||||
doins -r include lib_pypy lib-python pypy-c libpypy-c.so
|
||||
fperms a+x ${dest}/pypy-c ${dest}/libpypy-c.so
|
||||
pax-mark m "${ED%/}${dest}/pypy-c" "${ED%/}${dest}/libpypy-c.so"
|
||||
dosym ../$(get_libdir)/pypy/pypy-c /usr/bin/pypy
|
||||
dodoc README.rst
|
||||
|
||||
if ! use gdbm; then
|
||||
rm -r "${ED%/}${dest}"/lib_pypy/gdbm.py \
|
||||
"${ED%/}${dest}"/lib-python/*2.7/test/test_gdbm.py || die
|
||||
fi
|
||||
if ! use sqlite; then
|
||||
rm -r "${ED%/}${dest}"/lib-python/*2.7/sqlite3 \
|
||||
"${ED%/}${dest}"/lib_pypy/_sqlite3.py \
|
||||
"${ED%/}${dest}"/lib-python/*2.7/test/test_sqlite.py || die
|
||||
fi
|
||||
if ! use tk; then
|
||||
rm -r "${ED%/}${dest}"/lib-python/*2.7/{idlelib,lib-tk} \
|
||||
"${ED%/}${dest}"/lib_pypy/_tkinter \
|
||||
"${ED%/}${dest}"/lib-python/*2.7/test/test_{tcl,tk,ttk*}.py || die
|
||||
fi
|
||||
|
||||
# Install docs
|
||||
use doc && dohtml -r pypy/doc/_build/html/
|
||||
|
||||
einfo "Generating caches and byte-compiling ..."
|
||||
|
||||
local -x PYTHON=${ED%/}${dest}/pypy-c
|
||||
local -x LD_LIBRARY_PATH="${ED%/}${dest}"
|
||||
# we can't use eclass function since PyPy is dumb and always gives
|
||||
# paths relative to the interpreter
|
||||
local PYTHON_SITEDIR=${EPREFIX}/usr/$(get_libdir)/pypy/site-packages
|
||||
python_export pypy EPYTHON
|
||||
|
||||
echo "EPYTHON='${EPYTHON}'" > epython.py || die
|
||||
python_domodule epython.py
|
||||
|
||||
# Generate Grammar and PatternGrammar pickles.
|
||||
"${PYTHON}" -c "import lib2to3.pygram, lib2to3.patcomp; lib2to3.patcomp.PatternCompiler()" \
|
||||
|| die "Generation of Grammar and PatternGrammar pickles failed"
|
||||
|
||||
# Generate cffi modules
|
||||
# Please keep in sync with pypy/tool/build_cffi_imports.py!
|
||||
#cffi_build_scripts = {
|
||||
# "sqlite3": "_sqlite3_build.py",
|
||||
# "audioop": "_audioop_build.py",
|
||||
# "tk": "_tkinter/tklib_build.py",
|
||||
# "curses": "_curses_build.py" if sys.platform != "win32" else None,
|
||||
# "syslog": "_syslog_build.py" if sys.platform != "win32" else None,
|
||||
# "gdbm": "_gdbm_build.py" if sys.platform != "win32" else None,
|
||||
# "pwdgrp": "_pwdgrp_build.py" if sys.platform != "win32" else None,
|
||||
# "resource": "_resource_build.py" if sys.platform != "win32" else None,
|
||||
cffi_targets=( audioop curses syslog pwdgrp resource )
|
||||
use gdbm && cffi_targets+=( gdbm )
|
||||
use sqlite && cffi_targets+=( sqlite3 )
|
||||
use tk && cffi_targets+=( tkinter/tklib )
|
||||
|
||||
local t
|
||||
# all modules except tkinter output to .
|
||||
# tkinter outputs to the correct dir ...
|
||||
cd "${ED%/}${dest}"/lib_pypy || die
|
||||
for t in "${cffi_targets[@]}"; do
|
||||
# tkinter doesn't work via -m
|
||||
"${PYTHON}" "_${t}_build.py" || die "Failed to build CFFI bindings for ${t}"
|
||||
done
|
||||
|
||||
# Cleanup temporary objects
|
||||
find "${ED%/}${dest}" -name "_cffi_*.[co]" -delete || die
|
||||
find "${ED%/}${dest}" -type d -empty -delete || die
|
||||
|
||||
# compile the installed modules
|
||||
python_optimize "${ED%/}${dest}"
|
||||
}
|
@ -0,0 +1,256 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 pypy )
|
||||
inherit check-reqs eutils multilib multiprocessing pax-utils python-any-r1 toolchain-funcs versionator
|
||||
|
||||
CPY_PATCHSET_VERSION="2.7.11-0"
|
||||
MY_P=pypy2-v${PV}
|
||||
|
||||
DESCRIPTION="A fast, compliant alternative implementation of the Python language"
|
||||
HOMEPAGE="http://pypy.org/"
|
||||
SRC_URI="https://bitbucket.org/pypy/pypy/downloads/${MY_P}-src.tar.bz2
|
||||
https://dev.gentoo.org/~djc/python-gentoo-patches-${CPY_PATCHSET_VERSION}.tar.xz"
|
||||
|
||||
LICENSE="MIT"
|
||||
# pypy -c 'import sysconfig; print sysconfig.get_config_var("SOABI")'
|
||||
SLOT="0/41"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="bzip2 doc gdbm +jit libressl low-memory ncurses sandbox +shadowstack sqlite cpu_flags_x86_sse2 test tk"
|
||||
|
||||
RDEPEND=">=sys-libs/zlib-1.1.3:0=
|
||||
virtual/libffi:0=
|
||||
virtual/libintl:0=
|
||||
dev-libs/expat:0=
|
||||
!libressl? ( dev-libs/openssl:0=[-bindist] )
|
||||
libressl? ( dev-libs/libressl:0= )
|
||||
bzip2? ( app-arch/bzip2:0= )
|
||||
gdbm? ( sys-libs/gdbm:0= )
|
||||
ncurses? ( sys-libs/ncurses:0= )
|
||||
sqlite? ( dev-db/sqlite:3= )
|
||||
tk? (
|
||||
dev-lang/tk:0=
|
||||
dev-tcltk/tix:0=
|
||||
)
|
||||
!dev-python/pypy-bin:0"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( dev-python/sphinx )
|
||||
${PYTHON_DEPS}
|
||||
test? ( dev-python/pytest )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}-src"
|
||||
|
||||
pkg_pretend() {
|
||||
if [[ ${MERGE_TYPE} != binary ]]; then
|
||||
if use low-memory; then
|
||||
if ! python_is_installed pypy; then
|
||||
eerror "USE=low-memory requires a (possibly old) version of dev-python/pypy"
|
||||
eerror "or dev-python/pypy-bin being installed. Please install it using e.g.:"
|
||||
eerror
|
||||
eerror " $ emerge -1v dev-python/pypy-bin"
|
||||
eerror
|
||||
eerror "before attempting to build dev-python/pypy[low-memory]."
|
||||
die "dev-python/pypy-bin (or dev-python/pypy) needs to be installed for USE=low-memory"
|
||||
fi
|
||||
|
||||
CHECKREQS_MEMORY="1750M"
|
||||
use amd64 && CHECKREQS_MEMORY="3500M"
|
||||
else
|
||||
CHECKREQS_MEMORY="3G"
|
||||
use amd64 && CHECKREQS_MEMORY="6G"
|
||||
fi
|
||||
|
||||
check-reqs_pkg_pretend
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
if [[ ${MERGE_TYPE} != binary ]]; then
|
||||
pkg_pretend
|
||||
|
||||
if python_is_installed pypy; then
|
||||
if [[ ! ${EPYTHON} || ${EPYTHON} == pypy ]] || use low-memory; then
|
||||
einfo "Using already-installed PyPy to perform the translation."
|
||||
local EPYTHON=pypy
|
||||
else
|
||||
einfo "Using ${EPYTHON} to perform the translation. Please note that upstream"
|
||||
einfo "recommends using PyPy for that. If you wish to do so, please unset"
|
||||
einfo "the EPYTHON variable."
|
||||
fi
|
||||
fi
|
||||
|
||||
python-any-r1_pkg_setup
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/4.0.0-gentoo-path.patch" \
|
||||
"${FILESDIR}/1.9-distutils.unixccompiler.UnixCCompiler.runtime_library_dir_option.patch" \
|
||||
"${FILESDIR}"/2.5.0-shared-lib.patch # 517002
|
||||
|
||||
sed -e "s^@EPREFIX@^${EPREFIX}^" \
|
||||
-e "s^@libdir@^$(get_libdir)^" \
|
||||
-i lib-python/2.7/distutils/command/install.py || die
|
||||
|
||||
# apply CPython stdlib patches
|
||||
pushd lib-python/2.7 > /dev/null || die
|
||||
epatch "${FILESDIR}"/2.5.0_all_distutils_cxx.patch \
|
||||
"${WORKDIR}"/patches/22_all_turkish_locale.patch \
|
||||
"${WORKDIR}"/patches/62_all_xml.use_pyxml.patch
|
||||
popd > /dev/null || die
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export CC
|
||||
|
||||
local jit_backend
|
||||
if use jit; then
|
||||
jit_backend='--jit-backend='
|
||||
|
||||
# We only need the explicit sse2 switch for x86.
|
||||
# On other arches we can rely on autodetection which uses
|
||||
# compiler macros. Plus, --jit-backend= doesn't accept all
|
||||
# the modern values...
|
||||
|
||||
if use x86; then
|
||||
if use cpu_flags_x86_sse2; then
|
||||
jit_backend+=x86
|
||||
else
|
||||
jit_backend+=x86-without-sse2
|
||||
fi
|
||||
else
|
||||
jit_backend+=auto
|
||||
fi
|
||||
fi
|
||||
|
||||
local args=(
|
||||
--shared
|
||||
$(usex jit -Ojit -O2)
|
||||
$(usex shadowstack --gcrootfinder=shadowstack '')
|
||||
$(usex sandbox --sandbox '')
|
||||
|
||||
${jit_backend}
|
||||
--make-jobs=$(makeopts_jobs)
|
||||
|
||||
pypy/goal/targetpypystandalone
|
||||
)
|
||||
|
||||
# Avoid linking against libraries disabled by use flags
|
||||
local opts=(
|
||||
bzip2:bz2
|
||||
ncurses:_minimal_curses
|
||||
)
|
||||
|
||||
local opt
|
||||
for opt in "${opts[@]}"; do
|
||||
local flag=${opt%:*}
|
||||
local mod=${opt#*:}
|
||||
|
||||
args+=(
|
||||
$(usex ${flag} --withmod --withoutmod)-${mod}
|
||||
)
|
||||
done
|
||||
|
||||
local interp=( "${PYTHON}" )
|
||||
if use low-memory; then
|
||||
interp=( env PYPY_GC_MAX_DELTA=200MB
|
||||
"${PYTHON}" --jit loop_longevity=300 )
|
||||
fi
|
||||
|
||||
set -- "${interp[@]}" rpython/bin/rpython --batch "${args[@]}"
|
||||
echo -e "\033[1m${@}\033[0m"
|
||||
"${@}" || die "compile error"
|
||||
|
||||
use doc && emake -C pypy/doc/ html
|
||||
pax-mark m pypy-c libpypy-c.so
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# (unset)
|
||||
local -x PYTHONDONTWRITEBYTECODE
|
||||
|
||||
./pypy-c ./pypy/test_all.py --pypy=./pypy-c lib-python || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local dest=/usr/$(get_libdir)/pypy
|
||||
einfo "Installing PyPy ..."
|
||||
insinto "${dest}"
|
||||
doins -r include lib_pypy lib-python pypy-c libpypy-c.so
|
||||
fperms a+x ${dest}/pypy-c ${dest}/libpypy-c.so
|
||||
pax-mark m "${ED%/}${dest}/pypy-c" "${ED%/}${dest}/libpypy-c.so"
|
||||
dosym ../$(get_libdir)/pypy/pypy-c /usr/bin/pypy
|
||||
dodoc README.rst
|
||||
|
||||
if ! use gdbm; then
|
||||
rm -r "${ED%/}${dest}"/lib_pypy/gdbm.py \
|
||||
"${ED%/}${dest}"/lib-python/*2.7/test/test_gdbm.py || die
|
||||
fi
|
||||
if ! use sqlite; then
|
||||
rm -r "${ED%/}${dest}"/lib-python/*2.7/sqlite3 \
|
||||
"${ED%/}${dest}"/lib_pypy/_sqlite3.py \
|
||||
"${ED%/}${dest}"/lib-python/*2.7/test/test_sqlite.py || die
|
||||
fi
|
||||
if ! use tk; then
|
||||
rm -r "${ED%/}${dest}"/lib-python/*2.7/{idlelib,lib-tk} \
|
||||
"${ED%/}${dest}"/lib_pypy/_tkinter \
|
||||
"${ED%/}${dest}"/lib-python/*2.7/test/test_{tcl,tk,ttk*}.py || die
|
||||
fi
|
||||
|
||||
# Install docs
|
||||
use doc && dohtml -r pypy/doc/_build/html/
|
||||
|
||||
einfo "Generating caches and byte-compiling ..."
|
||||
|
||||
local -x PYTHON=${ED%/}${dest}/pypy-c
|
||||
local -x LD_LIBRARY_PATH="${ED%/}${dest}"
|
||||
# we can't use eclass function since PyPy is dumb and always gives
|
||||
# paths relative to the interpreter
|
||||
local PYTHON_SITEDIR=${EPREFIX}/usr/$(get_libdir)/pypy/site-packages
|
||||
python_export pypy EPYTHON
|
||||
|
||||
echo "EPYTHON='${EPYTHON}'" > epython.py || die
|
||||
python_domodule epython.py
|
||||
|
||||
# Generate Grammar and PatternGrammar pickles.
|
||||
"${PYTHON}" -c "import lib2to3.pygram, lib2to3.patcomp; lib2to3.patcomp.PatternCompiler()" \
|
||||
|| die "Generation of Grammar and PatternGrammar pickles failed"
|
||||
|
||||
# Generate cffi modules
|
||||
# Please keep in sync with pypy/tool/build_cffi_imports.py!
|
||||
#cffi_build_scripts = {
|
||||
# "sqlite3": "_sqlite3_build.py",
|
||||
# "audioop": "_audioop_build.py",
|
||||
# "tk": "_tkinter/tklib_build.py",
|
||||
# "curses": "_curses_build.py" if sys.platform != "win32" else None,
|
||||
# "syslog": "_syslog_build.py" if sys.platform != "win32" else None,
|
||||
# "gdbm": "_gdbm_build.py" if sys.platform != "win32" else None,
|
||||
# "pwdgrp": "_pwdgrp_build.py" if sys.platform != "win32" else None,
|
||||
# "resource": "_resource_build.py" if sys.platform != "win32" else None,
|
||||
cffi_targets=( audioop syslog pwdgrp resource )
|
||||
use gdbm && cffi_targets+=( gdbm )
|
||||
use ncurses && cffi_targets+=( curses )
|
||||
use sqlite && cffi_targets+=( sqlite3 )
|
||||
use tk && cffi_targets+=( tkinter/tklib )
|
||||
|
||||
local t
|
||||
# all modules except tkinter output to .
|
||||
# tkinter outputs to the correct dir ...
|
||||
cd "${ED%/}${dest}"/lib_pypy || die
|
||||
for t in "${cffi_targets[@]}"; do
|
||||
# tkinter doesn't work via -m
|
||||
"${PYTHON}" "_${t}_build.py" || die "Failed to build CFFI bindings for ${t}"
|
||||
done
|
||||
|
||||
# Cleanup temporary objects
|
||||
find "${ED%/}${dest}" -name "_cffi_*.[co]" -delete || die
|
||||
find "${ED%/}${dest}" -type d -empty -delete || die
|
||||
|
||||
# compile the installed modules
|
||||
python_optimize "${ED%/}${dest}"
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST setuptools-18.4.tar.gz 626632 SHA256 cdea5098e60b4ad83453d58723a61dc481ca8e2df251fe4ccbea9afa5a7d111f SHA512 f45f0bdec365642d1648c502a964bafeb518e8f0ed63091a50b278629cf1e17df7f66769b0ddaab1e7c5ae2574673435ccab72886a2d5eb311eaac451c485854 WHIRLPOOL e0c5d69f57ce234b0e002a50c882df0bf1e908224c045baa8b5a62e91148d654f048cfbb64375b59f61f0845a5e850ec03594606933fdfaa9cce9b357bb45aa7
|
||||
DIST setuptools-20.6.7.tar.gz 675428 SHA256 d20152ee6337323d3b6d95cd733fb719d6b4f3fbc40f61f7a48e5a1bb96478b2 SHA512 91a212b5007f9fdfacb4341e06dc0355c5c29897eb8ea407dd4864091f845ba1417bb0d33b5ed6897869d0233e2d0ec6548898d3dbe9eda23f751829bd51a104 WHIRLPOOL 553a1579991e9478b8eb8dd2f4ab042cd5286c1233f325d1fe1c08092035c6346aa454c03307359d7dd562174133247200c3a5424f5fc24f4718db0ad80d84fc
|
||||
DIST setuptools-24.0.2.tar.gz 608676 SHA256 efe010ea62504178246f6b3d98d588c2f67884403a7a0a99670dfbf8836ca973 SHA512 980221d086cffa19a283dc2206af3a977b115749b7692051949678c5d7a9e29334295e428af021df1d6acca50b2a5fb43c66ea3ca4c5faae97b0b20bbe08510e WHIRLPOOL 654f42e46d397bdadf9e3445d071e24dab154ae9498a81ec1ea792c567a53614c5204a38bfd1eb3a349964c8d8a99a1d506904a4d11b6d039ddd5d3d681b8cd2
|
||||
DIST setuptools-26.1.1.tar.gz 637041 SHA256 475ce28993d7cb75335942525b9fac79f7431a7f6e8a0079c0f2680641379481 SHA512 e9f5fb73022bd5584d3aa84c265338d93b6033d0f3af5fba1c7aeb4a949f7723573fb9e2586b29eca73030581b1ca4a529c7650e49d279946ef530b70487ccc7 WHIRLPOOL 100551619cc1b5bf3374a9c5647e3cd4feedd4be387eeb6f18813d31b884d14aa2eff249d1b21348b5adc809a540c2e5c0a86548736a863066e27821dd4bb40a
|
||||
|
@ -0,0 +1,59 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Collection of extensions to Distutils"
|
||||
HOMEPAGE="https://pypi.python.org/pypi/setuptools"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND=""
|
||||
# >=dev-python/packaging-16.4[${PYTHON_USEDEP}]
|
||||
# >=dev-python/six-1.10.0[${PYTHON_USEDEP}]
|
||||
# "
|
||||
DEPEND="${RDEPEND}
|
||||
test? (
|
||||
>=dev-python/pytest-2.8[${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
# >=dev-python/pyparsing-2.0.6[${PYTHON_USEDEP}]
|
||||
PDEPEND="
|
||||
>=dev-python/certifi-2016.8.8[${PYTHON_USEDEP}]"
|
||||
|
||||
# Force in-source build because build system modifies sources.
|
||||
DISTUTILS_IN_SOURCE_BUILD=1
|
||||
|
||||
DOCS=( README.rst docs/{easy_install.txt,pkg_resources.txt,setuptools.txt} )
|
||||
|
||||
python_prepare_all() {
|
||||
# rm -r ./pkg_resources/_vendor || die
|
||||
# disable tests requiring a network connection
|
||||
rm setuptools/tests/test_packageindex.py || die
|
||||
|
||||
# don't run integration tests
|
||||
rm setuptools/tests/test_integration.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
# test_easy_install raises a SandboxViolation due to ${HOME}/.pydistutils.cfg
|
||||
# It tries to sandbox the test in a tempdir
|
||||
HOME="${PWD}" py.test --verbose ${PN} || die "Tests failed under ${EPYTHON}"
|
||||
}
|
||||
|
||||
python_install() {
|
||||
export DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT=1
|
||||
distutils-r1_python_install
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST superlance-0.11.tar.gz 33882 SHA256 ab3aa27f2985c840f59f19b90e75b62e43d8d70e41b0cdc6523a884fb32f9d6e SHA512 bdf6da9e26f4db6f32f79cc27987fd75d2902ca6c098cf9c07785791fe50d3546348689391636eac25d963cd09edb2e57669e5526e68bddfd78c88eb9918fd91 WHIRLPOOL 9c85c8a68d60b195c5cb8d67a0f4e47cf5701c3b2b6711ad28ae1b11cf81723a9c0265e29f0cfed7d415d375a42abe0147101444b9fb969db598a3b786bb8140
|
||||
DIST superlance-0.13.tar.gz 35009 SHA256 51fb4c990ed6dda553fbc541c5d638b614dfd8bd2832a3d958300c75dc2bf83a SHA512 283a49f345901c9212b4fa44b6cf47590c70ee9861bcedaf5c85ef74b445998e890daf9aa2d45ca32e66e8b41d9ca54eb12d860403c536265415e473dc8a2ffc WHIRLPOOL c8203367bec0f8c14c1b28607a5cd77f65a0d34a07f09bd32127fcc0dbbde280a9ff0bdfffe113c1122deb9a16225e9d9df60ad8aa616942fe042ca2e5e5749e
|
||||
|
@ -0,0 +1,43 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A set of plugins to monitor and control supervisor"
|
||||
HOMEPAGE="https://github.com/Supervisor/superlance"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="repoze"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc test"
|
||||
|
||||
RDEPEND="app-admin/supervisor[${PYTHON_USEDEP}]"
|
||||
DEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
${RDEPEND}
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
)
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
||||
"
|
||||
|
||||
python_compile_all() {
|
||||
# https://github.com/Supervisor/superlance/issues/91
|
||||
# https://github.com/Supervisor/superlance/issues/92
|
||||
use doc && emake -C docs html
|
||||
}
|
||||
|
||||
python_test() {
|
||||
esetup.py test
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && local HTML_DOCS=( docs/_build/html/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST power_assert-0.2.6.gem 13312 SHA256 a34b21b9b62b343454ff3d08a0c2975f0b246afb7354b35646ce5928d319723d SHA512 75d5ee443d00da12e0f103bd9a53eb84837978dd2d6b84cb149bc4ba3a912268a8b0272fa617356f4eab88dcd2e7a65ac5e305935ab2c5750745e7d4ceda3ec2 WHIRLPOOL ef58fbfa631553d93f7fdc22a008cb47a45d969c51d1c62b0793330acc64460f11defec5909a4105761ba642044722d52ce8db9e1736ed57a7ef5d8cb1eb82c9
|
||||
DIST power_assert-0.2.7.gem 13312 SHA256 7149d741fcdc1e00387a328c3d15a449d564d91db18710dce3c42a46c3e1464d SHA512 8d673a10b8b9939c15ad84a7a66cc447a51dcb348c7dc316f45e0865952ad5ebd4d043f7a90c02cfe6f7b41cb66a3230e42ab5d57757657ae5f879e03ecf4310 WHIRLPOOL 424adbd2f6f97e6fa69134d2758e2f7c5ef2b0776e9ec6d6e20351fb3fa6305fca0ccdbdbbf237e940a5012463afed0a2b0b698ae096d693fe70962ef282be6c
|
||||
DIST power_assert-0.3.0.gem 14336 SHA256 d9c4840f21b4147dd52051eff190e8d08e7ddd0f580fb40977810b0839587ed2 SHA512 2f88eb6e6268d2bf11bbcaa26ece721a69f38b7b015ba9964f61aa74fe7b7d0e22a7f3047cd872b98edb4aa9683b4a1238015e36f5b772826ea871a7f285460f WHIRLPOOL 11bc644c69cdf29b63d7308ef39afe3f610840810dd762d7082f7dcfa07110f806fc68256f7313895f6593f73797f6017137ed39a945f848725f8cb16ff768fe
|
||||
DIST power_assert-0.3.1.gem 14336 SHA256 f89ba9cc1fa9d684b8f9f1221e94a8472a89355b5a6cb40d99fc863cbb4bec3a SHA512 0523c9c2f45ae60e93b491bed8ae3ff3bd83cfdf8c23d784ce19f87a52d90b94095d3e5ca38fbc2e4917a8895309194e06ec519099b69096bef69a4d9466da64 WHIRLPOOL 7a378ee685ab2b5d47885285b6c2b5377dae60f63fe23ac1ac2f776e6acb7b80445ca033a8ba0c4df6bb56eebecb084d9cede10d90d6f63750aea6e9d5d80ed0
|
||||
|
@ -0,0 +1,27 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
USE_RUBY="ruby20 ruby21 ruby22 ruby23"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_DOC="rdoc"
|
||||
RUBY_FAKEGEM_EXTRADOC="README.rdoc"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="Shows each value of variables and method calls in the expression"
|
||||
HOMEPAGE="https://github.com/k-tsj/power_assert"
|
||||
LICENSE="|| ( Ruby BSD-2 )"
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~amd64-linux ~x86-fbsd ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
ruby_add_bdepend "test? ( dev-ruby/test-unit )"
|
||||
|
||||
all_ruby_prepare() {
|
||||
sed -i -e '/bundler/d' Rakefile || die
|
||||
sed -i -e '1igem "test-unit"' test/helper.rb || die
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
GNOME_ORG_MODULE="gtk-doc"
|
||||
|
||||
inherit gnome.org
|
||||
|
||||
DESCRIPTION="Automake files from gtk-doc"
|
||||
HOMEPAGE="http://www.gtk.org/gtk-doc/"
|
||||
|
||||
LICENSE="GPL-2 FDL-1.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
|
||||
RDEPEND=">=dev-lang/perl-5.18"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
!<dev-util/gtk-doc-${GNOME_ORG_PVP}
|
||||
"
|
||||
# This ebuild doesn't even compile anything, causing tests to fail when updating (bug #316071)
|
||||
RESTRICT="test"
|
||||
|
||||
src_configure() {
|
||||
# Duplicate autoconf checks so we don't have to call configure
|
||||
local PERL=$(type -P perl)
|
||||
|
||||
test -n "${PERL}" || die "Perl not found!"
|
||||
"${PERL}" -e "require v5.18.0" || die "perl >= 5.18.0 is required for gtk-doc"
|
||||
|
||||
# Replicate AC_SUBST
|
||||
sed -e "s:@PERL@:${PERL}:g" -e "s:@VERSION@:${PV}:g" \
|
||||
"${S}/gtkdoc-rebase.in" > "${S}/gtkdoc-rebase" || die "sed failed!"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
:
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin gtkdoc-rebase
|
||||
|
||||
insinto /usr/share/aclocal
|
||||
doins gtk-doc.m4
|
||||
}
|
@ -0,0 +1,110 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit eutils elisp-common gnome2 python-single-r1 readme.gentoo-r1
|
||||
|
||||
DESCRIPTION="GTK+ Documentation Generator"
|
||||
HOMEPAGE="http://www.gtk.org/gtk-doc/"
|
||||
|
||||
LICENSE="GPL-2 FDL-1.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x64-solaris"
|
||||
|
||||
IUSE="debug doc emacs highlight vim"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
>=dev-libs/glib-2.6:2
|
||||
>=dev-lang/perl-5.18
|
||||
dev-libs/libxslt
|
||||
>=dev-libs/libxml2-2.3.6:2
|
||||
~app-text/docbook-xml-dtd-4.3
|
||||
app-text/docbook-xsl-stylesheets
|
||||
~app-text/docbook-sgml-dtd-3.0
|
||||
>=app-text/docbook-dsssl-stylesheets-1.40
|
||||
emacs? ( virtual/emacs )
|
||||
highlight? (
|
||||
vim? ( || ( app-editors/vim app-editors/gvim ) )
|
||||
!vim? ( dev-util/source-highlight )
|
||||
)
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
~dev-util/gtk-doc-am-${PV}
|
||||
app-text/yelp-tools
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
pkg_setup() {
|
||||
DOC_CONTENTS="gtk-doc does no longer define global key bindings for Emacs.
|
||||
You may set your own key bindings for \"gtk-doc-insert\" and
|
||||
\"gtk-doc-insert-section\" in your ~/.emacs file."
|
||||
SITEFILE=61${PN}-gentoo.el
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Remove global Emacs keybindings, bug #184588
|
||||
eapply "${FILESDIR}"/${PN}-1.8-emacs-keybindings.patch
|
||||
|
||||
gnome2_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf
|
||||
if use vim; then
|
||||
myconf="${myconf} $(use_with highlight highlight vim)"
|
||||
else
|
||||
myconf="${myconf} $(use_with highlight highlight source-highlight)"
|
||||
fi
|
||||
|
||||
gnome2_src_configure \
|
||||
--with-xml-catalog="${EPREFIX}"/etc/xml/catalog \
|
||||
$(use_enable debug) \
|
||||
${myconf}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
gnome2_src_compile
|
||||
use emacs && elisp-compile tools/gtk-doc.el
|
||||
}
|
||||
|
||||
src_install() {
|
||||
gnome2_src_install
|
||||
|
||||
python_fix_shebang "${ED}"/usr/bin/gtkdoc-depscan
|
||||
|
||||
# Don't install those files, they are in gtk-doc-am now
|
||||
rm "${ED}"/usr/share/aclocal/gtk-doc.m4 || die "failed to remove gtk-doc.m4"
|
||||
rm "${ED}"/usr/bin/gtkdoc-rebase || die "failed to remove gtkdoc-rebase"
|
||||
|
||||
if use doc; then
|
||||
docinto doc
|
||||
dodoc doc/*
|
||||
docinto examples
|
||||
dodoc examples/*
|
||||
fi
|
||||
|
||||
if use emacs; then
|
||||
elisp-install ${PN} tools/gtk-doc.el*
|
||||
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
|
||||
readme.gentoo_create_doc
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_pkg_postinst
|
||||
if use emacs; then
|
||||
elisp-site-regen
|
||||
readme.gentoo_print_elog
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_pkg_postrm
|
||||
use emacs && elisp-site-regen
|
||||
}
|
@ -0,0 +1,48 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
inherit eutils java-pkg-2 java-ant-2
|
||||
|
||||
DESCRIPTION="The well-known board game, written in java"
|
||||
HOMEPAGE="http://domination.sourceforge.net"
|
||||
SRC_URI="mirror://sourceforge/domination/Domination_${PV}.zip"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~x86-fbsd"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=virtual/jre-1.5"
|
||||
DEPEND=">=virtual/jdk-1.5
|
||||
app-arch/unzip"
|
||||
|
||||
S=${WORKDIR}/Domination
|
||||
|
||||
EANT_BUILD_TARGET="game"
|
||||
|
||||
pkg_setup() {
|
||||
java-pkg-2_pkg_setup
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
java-pkg-2_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
newbin "${S}"/FlashGUI.sh ${PN}
|
||||
sed -i \
|
||||
-e "s|cd.*|cd \"/usr/share\"/${PN}|" \
|
||||
"${D}/usr/bin"/${PN} \
|
||||
|| die
|
||||
chmod +x "${D}/usr/bin"/${PN} || die
|
||||
|
||||
insinto "/usr/share/${PN}"
|
||||
doins -r "${S}"/*
|
||||
rm -f "${D}/usr/share"/${PN}/*.cmd || die
|
||||
java-pkg_regjar "${D}//usr/share/${PN}"/*.jar
|
||||
|
||||
newicon resources/icon.png ${PN}.png
|
||||
make_desktop_entry ${PN} "Domination"
|
||||
}
|
@ -0,0 +1,75 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DEB_V=${PV}-4.1
|
||||
EXTRAS1="eboard-extras-1pl2"
|
||||
EXTRAS2="eboard-extras-2"
|
||||
DESCRIPTION="chess interface for POSIX systems"
|
||||
HOMEPAGE="http://www.bergo.eng.br/eboard/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
|
||||
mirror://sourceforge/${PN}/${EXTRAS1}.tar.gz
|
||||
mirror://sourceforge/${PN}/${EXTRAS2}.tar.gz
|
||||
mirror://debian/pool/main/e/eboard/${PN}_${DEB_V}.diff.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE="nls"
|
||||
|
||||
RDEPEND="
|
||||
media-libs/libpng:0=
|
||||
x11-libs/gtk+:2"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-lang/perl
|
||||
virtual/pkgconfig"
|
||||
|
||||
PATCHES=(
|
||||
"${WORKDIR}"/${PN}_${DEB_V}.diff
|
||||
"${FILESDIR}"/${P}-as-needed.patch
|
||||
"${FILESDIR}"/${P}-gcc44.patch
|
||||
"${FILESDIR}"/${P}-ovflfix.patch
|
||||
"${FILESDIR}"/${P}-libpng15.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
sed -i \
|
||||
-e "s:(\"-O6\"):split(' ', \"${CXXFLAGS}\"):" \
|
||||
configure || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
./configure \
|
||||
--compiler="$(tc-getCXX)" \
|
||||
--prefix="/usr" \
|
||||
--data-prefix="/usr/share" \
|
||||
--man-prefix="/usr/share/man" \
|
||||
--extra-libs="dl" \
|
||||
$(use_enable nls) || die # not an autoconf script
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
dodoc Documentation/*.txt
|
||||
|
||||
newicon icon-eboard.xpm ${PN}.xpm
|
||||
make_desktop_entry ${PN} ${PN} ${PN}
|
||||
|
||||
cd "${WORKDIR}"/${EXTRAS1}
|
||||
insinto /usr/share/${PN}
|
||||
doins *.png *.wav
|
||||
newins extras1.conf themeconf.extras1
|
||||
newdoc ChangeLog Changelog.extras
|
||||
newdoc README README.extras
|
||||
dodoc CREDITS
|
||||
|
||||
cd "${WORKDIR}"/${EXTRAS2}
|
||||
doins *.png *.wav
|
||||
newins extras2.conf themeconf.extras2
|
||||
}
|
@ -0,0 +1,101 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
inherit eutils flag-o-matic gnome2-utils
|
||||
|
||||
DESCRIPTION="FreeDoko is a Doppelkopf-game"
|
||||
HOMEPAGE="http://free-doko.sourceforge.net"
|
||||
SRC_URI="mirror://sourceforge/free-doko/FreeDoko_${PV}.src.zip
|
||||
backgrounds? ( mirror://sourceforge/free-doko/backgrounds.zip -> ${PN}-backgrounds.zip )
|
||||
kdecards? ( mirror://sourceforge/free-doko/kdecarddecks.zip )
|
||||
xskatcards? ( mirror://sourceforge/free-doko/xskat.zip )
|
||||
pysolcards? ( mirror://sourceforge/free-doko/pysol.zip )
|
||||
gnomecards? ( mirror://sourceforge/free-doko/gnome-games.zip )
|
||||
openclipartcards? ( mirror://sourceforge/free-doko/openclipart.zip )
|
||||
!xskatcards? (
|
||||
!kdecards? (
|
||||
!gnomecards? (
|
||||
!openclipartcards? (
|
||||
!pysolcards? (
|
||||
mirror://sourceforge/free-doko/xskat.zip ) ) ) ) )"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE="+xskatcards +gnomecards +kdecards +openclipartcards +pysolcards +backgrounds net"
|
||||
|
||||
RDEPEND="net? ( net-libs/gnet dev-libs/glib:2 )
|
||||
>=dev-cpp/gtkmm-2.4:2.4"
|
||||
DEPEND="${RDEPEND}
|
||||
app-arch/unzip
|
||||
virtual/pkgconfig"
|
||||
|
||||
S=${WORKDIR}/FreeDoko_${PV}
|
||||
|
||||
src_unpack() {
|
||||
local cards=0
|
||||
|
||||
unpack_cards() {
|
||||
use $1 && { unpack $2 ; cards=$(( $cards + 1 )); };
|
||||
}
|
||||
unpack FreeDoko_${PV}.src.zip
|
||||
cp /dev/null "${S}"/src/Makefile.local || die
|
||||
|
||||
cd "${S}"/data/cardsets || die
|
||||
|
||||
unpack_cards xskatcards xskat.zip
|
||||
unpack_cards kdecards kdecarddecks.zip
|
||||
unpack_cards pysolcards pysol.zip
|
||||
unpack_cards gnomecards gnome-games.zip
|
||||
unpack_cards openclipartcards openclipart.zip
|
||||
[ $cards ] || unpack xskat.zip # fall back to xskat
|
||||
|
||||
if use backgrounds ; then
|
||||
cd "${S}"/data/backgrounds || die
|
||||
unpack ${PN}-backgrounds.zip
|
||||
fi
|
||||
}
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-gentoo.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
append-cxxflags -std=c++11
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
export CPPFLAGS="-DPUBLIC_DATA_DIRECTORY_VALUE='\"/usr/share/${PN}\"'"
|
||||
export CPPFLAGS+=" -DMANUAL_DIRECTORY_VALUE='\"/usr/share/doc/${PF}/html\"'"
|
||||
export OSTYPE=Linux
|
||||
export USE_NETWORK=$(use net && echo true || echo false)
|
||||
export USE_SOUND_ALUT=false # still marked experimental
|
||||
emake Version
|
||||
emake -C src FreeDoko
|
||||
}
|
||||
|
||||
src_install() {
|
||||
newbin src/FreeDoko freedoko
|
||||
insinto /usr/share/${PN}/
|
||||
doins -r data/{backgrounds,cardsets,iconsets,rules,sounds,translations,*png}
|
||||
find "${D}/usr/share/${PN}" -name Makefile -delete
|
||||
dodoc AUTHORS README ChangeLog
|
||||
newicon -s 32 src/FreeDoko.png ${PN}.png
|
||||
make_desktop_entry ${PN} FreeDoko
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
gnome2_icon_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_icon_cache_update
|
||||
}
|
@ -0,0 +1,55 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
CMAKE_IN_SOURCE_BUILD=true
|
||||
inherit cmake-utils
|
||||
|
||||
MY_P="${P^}"
|
||||
|
||||
DESCRIPTION="Qt-based chess application + engine \"gupta\""
|
||||
HOMEPAGE="https://sourceforge.net/projects/gambitchess/"
|
||||
SRC_URI="mirror://sourceforge/project/${PN}chess/${MY_P}/${MY_P}-src.tar.bz2"
|
||||
|
||||
LICENSE="CC0-1.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-qt/qtcore:4
|
||||
dev-qt/qtgui:4
|
||||
dev-qt/qtopengl:4
|
||||
media-libs/mesa
|
||||
x11-libs/libX11"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}/${MY_P}-src"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DCONFIG_ENABLE_UPDATE_CHECKER=OFF
|
||||
-DCONFIG_GUPTA_ENGINE_DIRECTORY=/usr/bin
|
||||
-DCONFIG_RESOURCE_PATH_PREFIX=/usr/share/${PN}/
|
||||
)
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake-utils_src_compile
|
||||
emake -C engine/gupta VERBOSE=1 STRIP=/bin/true CFLAGS_RELEASE= release
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /usr/share/${PN}
|
||||
doins -r data/*
|
||||
|
||||
doicon artwork/icons/${PN}/${PN}.svg
|
||||
make_desktop_entry ${PN}chess ${PN^} ${PN} Game
|
||||
dodoc doc/contributors.txt
|
||||
|
||||
dobin engine/gupta/gupta
|
||||
dobin ${PN}chess
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
diff -ru gmchess-0.29.6.orig/configure.in gmchess-0.29.6/configure.in
|
||||
--- gmchess-0.29.6.orig/configure.in 2011-11-28 07:22:56.000000000 -0500
|
||||
+++ gmchess-0.29.6/configure.in 2013-05-13 21:30:38.103817044 -0400
|
||||
@@ -4,7 +4,7 @@
|
||||
AC_PREREQ([2.63])
|
||||
AC_INIT(gmchess, 0.29.6, lerosua@gmail.com)
|
||||
AC_CONFIG_SRCDIR([src/Pgnfile.cc])
|
||||
-AM_CONFIG_HEADER([config.h])
|
||||
+AC_CONFIG_HEADERS([config.h])
|
||||
AM_INIT_AUTOMAKE(gmchess,0.29.6)
|
||||
|
||||
|
||||
diff -ru gmchess-0.29.6.orig/data/gmchess.desktop.in gmchess-0.29.6/data/gmchess.desktop.in
|
||||
--- gmchess-0.29.6.orig/data/gmchess.desktop.in 2009-09-07 08:08:47.000000000 -0400
|
||||
+++ gmchess-0.29.6/data/gmchess.desktop.in 2013-05-13 21:30:19.444462390 -0400
|
||||
@@ -1,4 +1,3 @@
|
||||
-
|
||||
[Desktop Entry]
|
||||
Name=Chinese chess
|
||||
Name[zh_CN]=天书棋谈
|
||||
@@ -10,4 +9,3 @@
|
||||
Type=Application
|
||||
Categories=GNOME;GTK;Game;BoardGame;
|
||||
StartupNotify=true
|
||||
-Encoding=UTF-8
|
@ -0,0 +1,58 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
inherit autotools flag-o-matic libtool gnome2-utils
|
||||
|
||||
DESCRIPTION="Chinese chess with gtkmm and c++"
|
||||
HOMEPAGE="https://code.google.com/p/gmchess/"
|
||||
SRC_URI="https://${PN}.googlecode.com/files/${P}.tar.bz2"
|
||||
RESTRICT="test"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-cpp/gtkmm:2.4"
|
||||
RDEPEND=${DEPEND}
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-gentoo-r1.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
mv configure.{in,ac}
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
append-cxxflags -std=c++11
|
||||
econf \
|
||||
--disable-static \
|
||||
--localedir='/usr/share/locale'
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" \
|
||||
itlocaledir='/usr/share/locale' \
|
||||
pixmapsdir='/usr/share/pixmaps' \
|
||||
desktopdir='/usr/share/applications' \
|
||||
install
|
||||
dodoc AUTHORS NEWS README
|
||||
prune_libtool_files
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
gnome2_icon_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_icon_cache_update
|
||||
}
|
@ -0,0 +1,43 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
inherit autotools eutils gnome2-utils
|
||||
|
||||
DESCRIPTION="A rewrite for GNOME of the Windows card game WUNO"
|
||||
HOMEPAGE="https://sourceforge.net/projects/gnono/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="gnome-base/libgnomeui
|
||||
virtual/libintl"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/gettext"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-gentoo.patch
|
||||
"${FILESDIR}"/${P}-glib-single-include.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
gnome2_icon_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_icon_cache_update
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
inherit eutils python-single-r1 gnome2-utils
|
||||
|
||||
DESCRIPTION="GNU BackGammon"
|
||||
HOMEPAGE="http://www.gnubg.org/"
|
||||
SRC_URI="http://gnubg.org/media/sources/${PN}-release-${PV}-sources.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd"
|
||||
IUSE="cpu_flags_x86_avx gtk opengl python sqlite cpu_flags_x86_sse cpu_flags_x86_sse2 threads"
|
||||
|
||||
RDEPEND="
|
||||
dev-db/sqlite:3
|
||||
dev-libs/glib:2
|
||||
dev-libs/gmp:0
|
||||
dev-libs/libxml2
|
||||
media-fonts/dejavu
|
||||
media-libs/freetype:2
|
||||
media-libs/libcanberra
|
||||
media-libs/libpng:0
|
||||
sys-libs/readline:0
|
||||
x11-libs/cairo
|
||||
x11-libs/pango
|
||||
gtk? ( x11-libs/gtk+:2 )
|
||||
opengl? (
|
||||
x11-libs/gtk+:2
|
||||
x11-libs/gtkglext
|
||||
virtual/glu
|
||||
)
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
virtual/libintl"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/gettext
|
||||
virtual/pkgconfig"
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# use ${T} instead of /tmp for constructing credits (bug #298275)
|
||||
sed -i -e 's:/tmp:${T}:' credits.sh || die
|
||||
sed -i -e 's/fonts //' Makefile.in || die # handle font install ourself to fix bug #335774
|
||||
sed -i \
|
||||
-e '/^localedir / s#=.*$#= @localedir@#' \
|
||||
-e '/^gnulocaledir / s#=.*$#= @localedir@#' \
|
||||
po/Makefile.in.in || die
|
||||
sed -i \
|
||||
-e '/^gnubgiconsdir / s#=.*#= /usr/share#' \
|
||||
-e '/^gnubgpixmapsdir / s#=.*#= /usr/share/pixmaps#' \
|
||||
pixmaps/Makefile.in || die
|
||||
sed -i \
|
||||
-e '1i#include <config.h>' \
|
||||
copying.c || die #551896
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local simd=no
|
||||
local gtk_arg=--without-gtk
|
||||
|
||||
if use gtk || use opengl ; then
|
||||
gtk_arg=--with-gtk
|
||||
fi
|
||||
use cpu_flags_x86_sse && simd=sse
|
||||
use cpu_flags_x86_sse2 && simd=sse2
|
||||
use cpu_flags_x86_avx && simd=avx
|
||||
econf \
|
||||
--localedir=/usr/share/locale \
|
||||
--docdir=/usr/share/doc/${PF}/html \
|
||||
--disable-cputest \
|
||||
--enable-simd=${simd} \
|
||||
${gtk_arg} \
|
||||
$(use_enable threads) \
|
||||
$(use_with python) \
|
||||
$(use_with sqlite sqlite) \
|
||||
$(use_with opengl board3d)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
insinto /usr/share/${PN}
|
||||
doins ${PN}.weights *bd
|
||||
dodir /usr/share/${PN}/fonts
|
||||
dosym /usr/share/fonts/dejavu/DejaVuSans.ttf /usr/share/${PN}/fonts/Vera.ttf
|
||||
dosym /usr/share/fonts/dejavu/DejaVuSans-Bold.ttf /usr/share/${PN}/fonts/VeraBd.ttf
|
||||
dosym /usr/share/fonts/dejavu/DejaVuSerif-Bold.ttf /usr/share/${PN}/fonts/VeraSeBd.ttf
|
||||
make_desktop_entry "gnubg -w" "GNU Backgammon"
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
gnome2_icon_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_icon_cache_update
|
||||
}
|
@ -0,0 +1,51 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="Japanese version of chess (commandline + X-Version)"
|
||||
HOMEPAGE="https://www.gnu.org/software/gnushogi/"
|
||||
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE="X"
|
||||
|
||||
RDEPEND="sys-libs/ncurses:0
|
||||
X? ( x11-libs/libXaw )"
|
||||
DEPEND="${RDEPEND}
|
||||
>=sys-devel/bison-1.34
|
||||
>=sys-devel/flex-2.5"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
sed -i \
|
||||
-e '/^bbk:/s/$/ gnushogi_compile pat2inc sizetest/' \
|
||||
Makefile.in || die
|
||||
sed -i \
|
||||
-e "/^LIBDIR/s:=.*:=\"$(get_libdir)\":" \
|
||||
gnushogi/Makefile.in || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_with X x) \
|
||||
$(use_enable X xshogi)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin gnushogi/gnushogi
|
||||
doman doc/gnushogi.6
|
||||
doinfo doc/gnushogi.info
|
||||
if use X ; then
|
||||
dobin xshogi/xshogi
|
||||
doman doc/xshogi.6
|
||||
make_desktop_entry xshogi XShogi
|
||||
fi
|
||||
dolib gnushogi/gnushogi.bbk
|
||||
dodoc README NEWS CONTRIB doc/gnushogi/*.html
|
||||
}
|
@ -0,0 +1,48 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="Reversi game for GNOME, supporting the Go/Game Text Protocol"
|
||||
HOMEPAGE="http://rhino.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/rhino/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="gnome gtp nls"
|
||||
|
||||
RDEPEND="gnome? ( =gnome-base/libgnomeui-2* )
|
||||
nls? ( virtual/libintl )"
|
||||
DEPEND="${RDEPEND}
|
||||
nls? ( sys-devel/gettext )"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
sed -i '/^(\|locale\|help\|omf\|icon\|)/s:@datadir@:/usr/share:' \
|
||||
Makefile.in || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
if use gnome || use gtp; then
|
||||
econf \
|
||||
--localedir=/usr/share/locale \
|
||||
$(use_enable gnome) \
|
||||
$(use_enable gtp) \
|
||||
$(use_enable nls)
|
||||
else
|
||||
econf \
|
||||
--localedir=/usr/share/locale \
|
||||
--enable-gtp \
|
||||
--disable-gnome \
|
||||
$(use_enable nls)
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
use gnome && make_desktop_entry ${PN} GRhino
|
||||
}
|
@ -0,0 +1,52 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
inherit autotools eutils gnome2-utils
|
||||
|
||||
DESCRIPTION="Monopoly-like game that works with the monopd server"
|
||||
HOMEPAGE="http://gtkatlantic.gradator.net/"
|
||||
SRC_URI="http://download.tuxfamily.org/gtkatlantic/downloads/v0.6/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/libxml2
|
||||
media-libs/libpng:0
|
||||
x11-libs/gtk+:3"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-warnings.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
sed -i -e 's:$(datadir):/usr/share:' {,data/}Makefile.am || die
|
||||
sed -i -e 's/configure.in/configure.ac/' configure.in || die
|
||||
mv configure.{in,ac} || die
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--with-icons-path=/usr/share/icons/hicolor
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
gnome2_icon_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_icon_cache_update
|
||||
}
|
@ -0,0 +1,52 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
inherit eutils
|
||||
|
||||
MY_P=${P/_}
|
||||
DESCRIPTION="Board games system"
|
||||
HOMEPAGE="http://gtkboard.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE="gnome"
|
||||
|
||||
RDEPEND="x11-libs/gtk+:2
|
||||
media-libs/libsdl:0[sound]
|
||||
media-libs/sdl-mixer[vorbis]
|
||||
gnome? ( gnome-base/libgnomeui )"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-gcc41.patch
|
||||
"${FILESDIR}"/${P}-gcc45.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
sed -i -e "/^LIBS/s:@LIBS@:@LIBS@ -lgmodule-2.0 -lm:" \
|
||||
src/Makefile.in
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--disable-dependency-tracking \
|
||||
--enable-gtk2 \
|
||||
--enable-sdl \
|
||||
$(use_enable gnome)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
doicon pixmaps/${PN}.png
|
||||
make_desktop_entry ${PN} Gtkboard
|
||||
dodoc AUTHORS ChangeLog TODO doc/index.html
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
inherit eutils flag-o-matic
|
||||
|
||||
DESCRIPTION="Clone of the original DOS game"
|
||||
HOMEPAGE="http://www.nesqi.se/"
|
||||
SRC_URI="http://www.nesqi.se/download/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-cpp/glibmm:2
|
||||
dev-cpp/gtkmm:2.4
|
||||
x11-libs/gtk+:2"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
append-cxxflags -std=c++11
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
newicon images/board_N_2.xpm ${PN}.xpm
|
||||
make_desktop_entry ${PN} Hexxagon
|
||||
dodoc README
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST clockphoto-1.0.tar.xz 2464 SHA256 02cb731a2ea8af129922efad9dfea909b0f34abe412d5656b6639dda9767bd10 SHA512 95cd2de4d852daa026393475171635c90a175f896d310cd5cdd2c383d3966687b9837437a2012d4599024d6703acd134540ccf1f2bd5b3c664e7113b0545ed90 WHIRLPOOL b8392680e39404502cca55b6eb7a6491133107514adadaff46853d43e447bfa98f9d49538357600852e6fcac3d202bb624bf8779db21dda0b13a6f475cb739be
|
@ -0,0 +1,27 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit qmake-utils
|
||||
|
||||
DESCRIPTION="Adjusts photo timestamps based on clock photos."
|
||||
HOMEPAGE="https://git.zx2c4.com/clockphoto/about/"
|
||||
SRC_URI="https://git.zx2c4.com/clockphoto/snapshot/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-qt/qtwidgets:5 dev-qt/qtgui:5 dev-qt/qtcore:5"
|
||||
RDEPEND="media-gfx/exiv2 ${DEPEND}"
|
||||
|
||||
src_configure() {
|
||||
eqmake5
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin clockphoto
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>zx2c4@gentoo.org</email>
|
||||
<name>Jason A. Donenfeld</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -0,0 +1,147 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit cmake-utils flag-o-matic toolchain-funcs gnome2-utils fdo-mime pax-utils eutils
|
||||
|
||||
DOC_PV="1.6.0"
|
||||
|
||||
DESCRIPTION="A virtual lighttable and darkroom for photographers"
|
||||
HOMEPAGE="http://www.darktable.org/"
|
||||
SRC_URI="https://github.com/darktable-org/${PN}/releases/download/release-${PV}/${P}.tar.xz
|
||||
doc? ( https://github.com/darktable-org/${PN}/releases/download/release-${DOC_PV}/${PN}-usermanual.pdf -> ${PN}-usermanual-${DOC_PV}.pdf )"
|
||||
|
||||
LICENSE="GPL-3 CC-BY-3.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
LANGS=" ca cs da de el es fr he hu it ja nl pl pt-BR pt-PT ru sk sl sq sv uk"
|
||||
# TODO add lua once dev-lang/lua-5.2 is unmasked
|
||||
IUSE="colord cups cpu_flags_x86_sse3 doc flickr gphoto2 graphicsmagick jpeg2k kde libsecret
|
||||
nls opencl openmp openexr pax_kernel +slideshow webp
|
||||
${LANGS// / l10n_}"
|
||||
|
||||
# sse3 support is required to build darktable
|
||||
REQUIRED_USE="cpu_flags_x86_sse3"
|
||||
|
||||
CDEPEND="
|
||||
dev-db/sqlite:3
|
||||
dev-libs/json-glib
|
||||
dev-libs/libxml2:2
|
||||
dev-libs/pugixml:0=
|
||||
gnome-base/librsvg:2
|
||||
>=media-gfx/exiv2-0.25-r2:0=[xmp]
|
||||
media-libs/lcms:2
|
||||
>=media-libs/lensfun-0.2.3:0=
|
||||
media-libs/libpng:0=
|
||||
media-libs/tiff:0
|
||||
net-misc/curl
|
||||
virtual/jpeg:0
|
||||
x11-libs/cairo
|
||||
x11-libs/gtk+:3
|
||||
x11-libs/pango
|
||||
colord? ( x11-libs/colord-gtk:0= )
|
||||
cups? ( net-print/cups )
|
||||
flickr? ( media-libs/flickcurl )
|
||||
gphoto2? ( media-libs/libgphoto2:= )
|
||||
graphicsmagick? ( media-gfx/graphicsmagick )
|
||||
jpeg2k? ( media-libs/openjpeg:0 )
|
||||
libsecret? (
|
||||
>=app-crypt/libsecret-0.18
|
||||
)
|
||||
opencl? ( virtual/opencl )
|
||||
openexr? ( media-libs/openexr:0= )
|
||||
slideshow? (
|
||||
media-libs/libsdl
|
||||
virtual/glu
|
||||
virtual/opengl
|
||||
)
|
||||
webp? ( media-libs/libwebp:0= )"
|
||||
RDEPEND="${CDEPEND}
|
||||
x11-themes/gtk-engines:2
|
||||
kde? ( kde-apps/kwalletd:4 )"
|
||||
DEPEND="${CDEPEND}
|
||||
dev-util/intltool
|
||||
virtual/pkgconfig
|
||||
nls? ( sys-devel/gettext )"
|
||||
|
||||
pkg_pretend() {
|
||||
if use openmp ; then
|
||||
tc-has-openmp || die "Please switch to an openmp compatible compiler"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
use cpu_flags_x86_sse3 && append-flags -msse3
|
||||
|
||||
sed -e "s:\(/share/doc/\)darktable:\1${PF}:" \
|
||||
-e "s:\(\${SHARE_INSTALL}/doc/\)darktable:\1${PF}:" \
|
||||
-e "s:LICENSE::" \
|
||||
-i doc/CMakeLists.txt || die
|
||||
|
||||
cmake-utils_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
$(cmake-utils_use_use colord COLORD)
|
||||
$(cmake-utils_use_build cups PRINT)
|
||||
$(cmake-utils_use_use flickr FLICKR)
|
||||
$(cmake-utils_use_use gphoto2 CAMERA_SUPPORT)
|
||||
$(cmake-utils_use_use graphicsmagick GRAPHICSMAGICK)
|
||||
$(cmake-utils_use_use jpeg2k OPENJPEG)
|
||||
$(cmake-utils_use_use kde KWALLET)
|
||||
$(cmake-utils_use_use libsecret LIBSECRET)
|
||||
$(cmake-utils_use_use nls NLS)
|
||||
$(cmake-utils_use_use opencl OPENCL)
|
||||
$(cmake-utils_use_use openexr OPENEXR)
|
||||
$(cmake-utils_use_use openmp OPENMP)
|
||||
$(cmake-utils_use_build slideshow SLIDESHOW)
|
||||
$(cmake-utils_use_use webp WEBP)
|
||||
-DUSE_GEO=OFF
|
||||
-DUSE_LUA=OFF
|
||||
-DCUSTOM_CFLAGS=ON
|
||||
-DINSTALL_IOP_EXPERIMENTAL=ON
|
||||
-DINSTALL_IOP_LEGACY=ON
|
||||
)
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
use doc && dodoc "${DISTDIR}"/${PN}-usermanual-${DOC_PV}.pdf
|
||||
|
||||
for lang in ${LANGS} ; do
|
||||
use l10n_${lang} || rm -r "${ED}"/usr/share/locale/${lang/-/_}
|
||||
done
|
||||
|
||||
if use pax_kernel && use opencl ; then
|
||||
pax-mark Cm "${ED}"/usr/bin/${PN} || die
|
||||
eqawarn "USE=pax_kernel is set meaning that ${PN} will be run"
|
||||
eqawarn "under a PaX enabled kernel. To do so, the ${PN} binary"
|
||||
eqawarn "must be modified and this *may* lead to breakage! If"
|
||||
eqawarn "you suspect that ${PN} is broken by this modification,"
|
||||
eqawarn "please open a bug."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
gnome2_icon_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_icon_cache_update
|
||||
fdo-mime_desktop_database_update
|
||||
|
||||
elog "when updating from the currently stable 1.6 series,"
|
||||
elog "please bear in mind that your edits will be preserved during this process,"
|
||||
elog "but it will not be possible to downgrade from 2.0 to 1.6 any more."
|
||||
echo
|
||||
ewarn "It will not be possible to downgrade!"
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_icon_cache_update
|
||||
fdo-mime_desktop_database_update
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST GraphicsMagick-1.3.24.tar.xz 5372048 SHA256 52bfbacef4be3fbae756dbfd342e4843d2a446bef96450bfbe2c23ca60e180e0 SHA512 d55f8b7d96bc746e2b501ec6315f174f2ab5f6b31a1d138196bf17b506e6d0c2b91ee19f5dd0a2877cd47910aebdcf11158303e90b1b267c6082d462f8548684 WHIRLPOOL 5d666812748389b723dd939cf4f9f4dd5d0ec6a99510db7b0db49ab12e38fa844c8e4da60053566974f0f9174226dd21bd697a718d6f97d163346617701176fb
|
||||
DIST GraphicsMagick-1.3.25.tar.xz 5387880 SHA256 d64bfa52d2e0730eff9ce3ed51d4fc78dbb68e2adaa317b2bb3c56e6ee61ac9f SHA512 d62d6aee96d7b8444f1aa206b0c5cbbed9511612cb71d667af072ea52b68dcd11088699debc58faacbb014ad83fb8c2b3e474220f506069f7b5d22f0340f8ef8 WHIRLPOOL 8c2ffccf588495b78e0d84737e83ae396cbe86efa5dfddf6ec440626829d7b83f036771ec8be585dae58c3076eba8190ee809f0c09fc74c744efec96480a634b
|
||||
|
@ -0,0 +1,129 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
inherit autotools toolchain-funcs
|
||||
|
||||
MY_P=${P/graphicsm/GraphicsM}
|
||||
|
||||
DESCRIPTION="Collection of tools and libraries for many image formats"
|
||||
HOMEPAGE="http://www.graphicsmagick.org/"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.xz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0/${PV%.*}"
|
||||
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
|
||||
IUSE="bzip2 cxx debug fpx imagemagick jbig jpeg jpeg2k lcms lzma modules openmp
|
||||
perl png postscript q16 q32 static-libs svg test threads tiff truetype
|
||||
webp wmf X zlib"
|
||||
|
||||
RDEPEND="dev-libs/libltdl:0
|
||||
bzip2? ( app-arch/bzip2 )
|
||||
fpx? ( media-libs/libfpx )
|
||||
imagemagick? ( !media-gfx/imagemagick )
|
||||
jbig? ( media-libs/jbigkit )
|
||||
jpeg? ( virtual/jpeg:0 )
|
||||
jpeg2k? ( media-libs/jasper )
|
||||
lcms? ( media-libs/lcms:2 )
|
||||
lzma? ( app-arch/xz-utils )
|
||||
perl? ( dev-lang/perl )
|
||||
png? ( media-libs/libpng:0 )
|
||||
postscript? ( app-text/ghostscript-gpl )
|
||||
svg? ( dev-libs/libxml2 )
|
||||
tiff? ( media-libs/tiff:0 )
|
||||
truetype? (
|
||||
media-fonts/urw-fonts
|
||||
>=media-libs/freetype-2
|
||||
)
|
||||
webp? ( media-libs/libwebp )
|
||||
wmf? ( media-libs/libwmf )
|
||||
X? (
|
||||
x11-libs/libSM
|
||||
x11-libs/libXext
|
||||
)
|
||||
zlib? ( sys-libs/zlib )"
|
||||
# corefonts are required because needed arial font (bug #588398).
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( media-fonts/corefonts )"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-1.3.19-flags.patch
|
||||
"${FILESDIR}"/${PN}-1.3.19-perl.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local depth=8
|
||||
use q16 && depth=16
|
||||
use q32 && depth=32
|
||||
|
||||
local openmp=disable
|
||||
if use openmp && tc-has-openmp; then
|
||||
openmp=enable
|
||||
fi
|
||||
|
||||
econf \
|
||||
--${openmp}-openmp \
|
||||
--enable-largefile \
|
||||
--enable-shared \
|
||||
$(use_enable static-libs static) \
|
||||
$(use_enable debug prof) \
|
||||
$(use_enable debug gcov) \
|
||||
$(use_enable imagemagick magick-compat) \
|
||||
$(use_with threads) \
|
||||
$(use_with modules) \
|
||||
--with-quantum-depth=${depth} \
|
||||
--without-frozenpaths \
|
||||
$(use_with cxx magick-plus-plus) \
|
||||
$(use_with perl) \
|
||||
--with-perl-options=INSTALLDIRS=vendor \
|
||||
$(use_with bzip2 bzlib) \
|
||||
$(use_with postscript dps) \
|
||||
$(use_with fpx) \
|
||||
--without-gslib \
|
||||
$(use_with jbig) \
|
||||
$(use_with webp) \
|
||||
$(use_with jpeg) \
|
||||
$(use_with jpeg2k jp2) \
|
||||
$(use_with lcms lcms2) \
|
||||
$(use_with lzma) \
|
||||
$(use_with png) \
|
||||
$(use_with tiff) \
|
||||
$(use_with truetype ttf) \
|
||||
$(use_with wmf) \
|
||||
--with-fontpath="${EPREFIX}"/usr/share/fonts \
|
||||
--with-gs-font-dir="${EPREFIX}"/usr/share/fonts/urw-fonts \
|
||||
--with-windows-font-dir="${EPREFIX}"/usr/share/fonts/corefonts \
|
||||
$(use_with svg xml) \
|
||||
$(use_with zlib) \
|
||||
$(use_with X x)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
use perl && emake perl-build
|
||||
}
|
||||
|
||||
src_test() {
|
||||
unset DISPLAY # some perl tests fail when DISPLAY is set
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
if use perl; then
|
||||
emake -C PerlMagick DESTDIR="${D}" install
|
||||
find "${ED}" -type f -name perllocal.pod -exec rm -f {} + || die
|
||||
find "${ED}" -depth -mindepth 1 -type d -empty -exec rm -rf {} + || die
|
||||
fi
|
||||
|
||||
find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} + || die
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST vigra-1.10.0-src-with-docu.tar.gz 36122311 SHA256 42d4a361b0bb52fbfdae7e76000698be04dabba77be3f4248d369139fe96a099 SHA512 4c0edb9d5a05d341034b6fe504658525130ddf830b09af4e08d9080407dd10ec62355bed362c4876cb1504632202a5eb125dc50cb66b0617c28dd274b8367d4d WHIRLPOOL 92cf1517acc6ff11eb255cb6bee523ebcaab118b9f73602baf07be8070c537c5bb7e94a9ccbd97bd7e20e20efeb8ac485a184f1c3609fe7747051ed6ec4ca65f
|
||||
DIST vigra-1.11.0-src.tar.gz 51854568 SHA256 68617de347eae7d4700a8f66cd59ce31d6cd92ffb4a235b4df34c688673af5cb SHA512 3cd8fcfc8ba9a1209a37e49c7b5cb0080bc665987805deec0b92cabf8c571c2f09ba47e2850c12204d04b3c830322fc8e47efa19fc537cf78708c22e1d302d6a WHIRLPOOL 1dc73a42b5033c88427850d72078475211a206d9af69209a5d3d05d1b117baef651ccb8232b0c0428b775160feda28b08aae3f14ab07c353de1b076664a0e105
|
||||
DIST vigra-1.9.0-src.tar.gz 30813416 SHA256 8fbdccb553a4925323098ab27b710fbc87d48f37bf81d404994936a31a31cf01 SHA512 8d1c7f3ad8cc8069b34d58fe775eb8604a2c902daeab4a5ad3a602d45c1eda0b4dcfe64e68b9fada669b46ee39b3a6f2c95af9c5f99c2fb2370c55580816e757 WHIRLPOOL 12c63119133a6a7e6a6d28078b9267f720e98b8754b416d0491b93ee87f3527cffe77bc043c00cdf729633c1161bdc11bdfe4cff57a73345c9addd1bd6cc62d9
|
||||
|
@ -0,0 +1,138 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
MY_P=${P}-src
|
||||
MY_V=${PV//\./-}
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
PYTHON_REQ_USE="threads,xml"
|
||||
inherit cmake-utils python-r1
|
||||
|
||||
DESCRIPTION="C++ computer vision library with emphasis on customizable algorithms and data structures"
|
||||
HOMEPAGE="http://hci.iwr.uni-heidelberg.de/vigra/"
|
||||
SRC_URI="https://github.com/ukoethe/vigra/releases/download/Version-${MY_V}/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="doc +fftw +hdf5 +jpeg mpi openexr +png +python test +tiff valgrind"
|
||||
|
||||
# runtime dependency on python:2.7 is required by the vigra-config script
|
||||
RDEPEND="
|
||||
dev-lang/python:2.7
|
||||
>=dev-libs/boost-1.52.0-r6:=[python?,${PYTHON_USEDEP}]
|
||||
fftw? ( sci-libs/fftw:3.0 )
|
||||
hdf5? ( >=sci-libs/hdf5-1.8.0:=[mpi?] )
|
||||
jpeg? ( virtual/jpeg )
|
||||
openexr? ( media-libs/openexr:= )
|
||||
png? ( media-libs/libpng:0= )
|
||||
python? ( ${PYTHON_DEPS} dev-python/numpy[${PYTHON_USEDEP}] )
|
||||
tiff? ( media-libs/tiff:0= )
|
||||
valgrind? ( dev-util/valgrind )"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
doc? (
|
||||
app-doc/doxygen
|
||||
python? ( >=dev-python/sphinx-1.1.3-r5[${PYTHON_USEDEP}] )
|
||||
)
|
||||
test? ( >=dev-python/nose-1.1.2-r1[${PYTHON_USEDEP}] )"
|
||||
|
||||
REQUIRED_USE="
|
||||
doc? ( hdf5 fftw )
|
||||
python? ( hdf5 ${PYTHON_REQUIRED_USE} )
|
||||
test? ( hdf5 python fftw )"
|
||||
|
||||
DOCS=( README.md )
|
||||
|
||||
pkg_setup() {
|
||||
use python && python_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
einfo "Removing shipped docs and VCS files"
|
||||
rm -rf doc || die
|
||||
rm .git* .travis.yml || die
|
||||
|
||||
cmake-utils_src_prepare
|
||||
|
||||
# Don't use python_fix_shebang because we can't put this behind USE="python"
|
||||
sed -i -e '/env/s:python:python2:' config/vigra-config.in || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
vigra_configure() {
|
||||
local libdir="$(get_libdir)"
|
||||
|
||||
local mycmakeargs=(
|
||||
-DAUTOEXEC_TESTS=OFF
|
||||
-DDOCDIR="${BUILD_DIR}/doc"
|
||||
-DDOCINSTALL="share/doc/${P}"
|
||||
-DLIBDIR_SUFFIX="${libdir/lib}"
|
||||
-DUSE_DOC=$(usex doc ON OFF) # unused
|
||||
-DUSE_FFTW3=$(usex fftw ON OFF) # unused
|
||||
-DUSE_JPEG=$(usex jpeg ON OFF) # unused
|
||||
-DUSE_MPI=$(usex mpi ON OFF) # unused
|
||||
-DUSE_PNG=$(usex png ON OFF) # unused
|
||||
-DUSE_TIFF=$(usex tiff ON OFF) # unused
|
||||
-DWITH_HDF5=$(usex hdf5 ON OFF)
|
||||
-DWITH_OPENEXR=$(usex openexr ON OFF)
|
||||
-DWITH_VALGRIND=$(usex valgrind ON OFF)
|
||||
-DWITH_VIGRANUMPY=$(usex python ON OFF)
|
||||
-DBUILD_TESTING=$(usex test ON OFF) # unused
|
||||
-DUSE_AUTOBUILD_TESTS=$(usex test ON OFF) # unused
|
||||
-DUSE_CREATE_CTEST_TARGETS=$(usex test ON OFF) # unused
|
||||
)
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
if use python; then
|
||||
python_foreach_impl vigra_configure
|
||||
else
|
||||
# required for docdir
|
||||
_cmake_check_build_dir init
|
||||
vigra_configure
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local VIGRA_BUILD_DIR
|
||||
vigra_compile() {
|
||||
cmake-utils_src_compile
|
||||
VIGRA_BUILD_DIR="${BUILD_DIR}"
|
||||
}
|
||||
if use python; then
|
||||
python_foreach_impl vigra_compile
|
||||
else
|
||||
vigra_compile
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
einfo "Generating Documentation"
|
||||
# use build dir from last compile command
|
||||
BUILD_DIR="${VIGRA_BUILD_DIR}" cmake-utils_src_make doc
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if use python; then
|
||||
python_foreach_impl cmake-utils_src_install
|
||||
python_optimize
|
||||
else
|
||||
cmake-utils_src_install
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# perhaps disable tests (see #390447)
|
||||
vigra_test() {
|
||||
PYTHONPATH="${BUILD_DIR}/vigranumpy/vigra" cmake-utils_src_test
|
||||
}
|
||||
if use python; then
|
||||
python_foreach_impl vigra_test
|
||||
else
|
||||
vigra_test
|
||||
fi
|
||||
}
|
@ -1,2 +1,2 @@
|
||||
DIST pamix-1.2.tar.gz 9907 SHA256 4da3a60376cfb3eb2863743782cbb4a2d3a18a336ec45f6a33e93f17cde8f149 SHA512 af368778bd731c0887c5a01f5c6f3010f56600eaaf68e13e0ff38b4e484ac24ad094df0b3607c5fdb4517e48cb196cc235462a5e83b4ced00d06d821222bd1c6 WHIRLPOOL b4624e3b0452856d423ed19868bfb70e7fe8bd7ced0688295210261514e45bee85aaa445933cd43fe5a7cad62901ea7b16d76c9f53f978a502228881da5d2002
|
||||
DIST pamix-1.3.tar.gz 11061 SHA256 b74b24cccaa62130a3b8650443f59fc99d6c1f5ef1b1601756fc7f775845ec01 SHA512 38cb2635e92c086671930fc9ffc94b02785ca3034750c05f92af8084133a48cbc370fd52b507b310b7e4d8500d6e9b3ad43b9242119b4d50c5fad05cba1865c7 WHIRLPOOL 20ed887974c9386c7df1f22204ea9990e25407f98340861f7ca715767db8498fd61ceeba84ebdbb31fc370d9499954f61d4651be546df15168c4311f706b9a99
|
||||
DIST pamix-1.4.1.tar.gz 15900 SHA256 52c0022bb650d93ee348a7e50156bc94dd9a77a47fff279b07e92f0b40ce145d SHA512 2b33f384760f7706a10879ba51f027fd47e46f53c7a784feae0adf18f0badd7826a19a6ed75886a0c78afa115ca0725ddf7e319e55565f5b05081578310512d2 WHIRLPOOL b6a4b25edb1eb4c7dbe3cff88c0fd874d2608143daf15f4edcb56e99441d43d5f96483aaa4e5aaa57e4b0d3e5fba7e5e533c99595aac10602e06d8e156e57739
|
||||
|
@ -1 +1 @@
|
||||
Wed, 07 Sep 2016 08:10:36 +0000
|
||||
Thu, 08 Sep 2016 05:10:36 +0000
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue