parent
1d772a63d4
commit
d0a5fb12f2
@ -0,0 +1,111 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit multilib systemd user
|
||||
|
||||
DESCRIPTION="Puppet Server is the next-generation application for managing Puppet agents."
|
||||
HOMEPAGE="http://docs.puppetlabs.com/puppetserver/"
|
||||
SRC_URI="https://downloads.puppetlabs.com/puppet/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="puppetdb"
|
||||
# will need the same keywords as puppet
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND+="
|
||||
>=virtual/jdk-1.7.0
|
||||
app-admin/puppet-agent[puppetdb?]"
|
||||
DEPEND+=""
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup puppet
|
||||
enewuser puppet -1 -1 /opt/puppetlabs/server/data/puppetserver "puppet"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
sed -i 's/sysconfig\/puppetserver/systemd\/system\/puppetserver\.service\.d\/gentoo\.conf/g' ext/redhat/puppetserver.service || die
|
||||
sed -i 's/sysconfig\/puppetserver/systemd\/system\/puppetserver\.service\.d\/gentoo\.conf/g' ext/bin/puppetserver || die
|
||||
sed -i 's/sysconfig\/puppetserver/systemd\/system\/puppetserver\.service\.d\/gentoo\.conf/g' install.sh || die
|
||||
sed -i 's/var\/run/run/g' ext/config/conf.d/puppetserver.conf || die
|
||||
sed -i 's/var\/run/run/g' ext/redhat/puppetserver.service || die
|
||||
sed -i 's/var\/run/run/g' install.sh || die
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
einfo "not compiling"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /opt/puppetlabs/server/apps/puppetserver
|
||||
insopts -m0774
|
||||
doins ext/ezbake-functions.sh
|
||||
insopts -m0644
|
||||
doins ext/ezbake.manifest
|
||||
doins puppet-server-release.jar
|
||||
insinto /etc/puppetlabs/puppetserver
|
||||
doins ext/config/logback.xml
|
||||
doins ext/config/request-logging.xml
|
||||
insinto /etc/puppetlabs/puppetserver/services.d
|
||||
doins ext/system-config/services.d/bootstrap.cfg
|
||||
doins ext/config/services.d/ca.cfg
|
||||
insinto /etc/puppetlabs/puppetserver/conf.d
|
||||
doins ext/config/conf.d/puppetserver.conf
|
||||
doins ext/config/conf.d/auth.conf
|
||||
doins ext/config/conf.d/global.conf
|
||||
doins ext/config/conf.d/web-routes.conf
|
||||
doins ext/config/conf.d/webserver.conf
|
||||
insopts -m0755
|
||||
insinto /opt/puppetlabs/server/apps/puppetserver/scripts
|
||||
doins install.sh
|
||||
insinto /opt/puppetlabs/server/apps/puppetserver/cli/apps
|
||||
doins ext/cli/irb
|
||||
doins ext/cli/foreground
|
||||
doins ext/cli/gem
|
||||
doins ext/cli/ruby
|
||||
insinto /opt/puppetlabs/server/apps/puppetserver/bin
|
||||
doins ext/bin/puppetserver
|
||||
insopts -m0644
|
||||
dodir /opt/puppetlabs/server/bin
|
||||
dosym ../apps/puppetserver/bin/puppetserver /opt/puppetlabs/server/bin/puppetserver
|
||||
dodir /opt/puppetlabs/bin
|
||||
dosym ../server/apps/puppetserver/bin/puppetserver /opt/puppetlabs/bin/puppetserver
|
||||
dosym /opt/puppetlabs/server/apps/puppetserver/bin/puppetserver /usr/bin/puppetserver
|
||||
dodir /opt/puppetlabs/server/apps/puppetserver/config/services.d
|
||||
# other sys stuff
|
||||
dodir /etc/puppetlabs/code
|
||||
# needed for systemd
|
||||
dodir /var/log/puppetlabs/puppetserver
|
||||
dodir /etc/puppetlabs/puppet/ssl
|
||||
fowners -R puppet:puppet /etc/puppetlabs/puppet/ssl
|
||||
fperms -R 771 /etc/puppetlabs/puppet/ssl
|
||||
# init type tasks
|
||||
newconfd ext/default puppetserver
|
||||
newinitd "${FILESDIR}/puppetserver.initd" puppetserver
|
||||
# systemd type things
|
||||
insinto /etc/systemd/system/puppetserver.service.d/
|
||||
newins ext/default gentoo.conf
|
||||
systemd_dounit ext/redhat/puppetserver.service
|
||||
# misc
|
||||
insinto /etc/logrotate.d
|
||||
newins ext/puppetserver.logrotate.conf puppetserver
|
||||
# cleanup
|
||||
dodir /opt/puppetlabs/server/data/puppetserver/jruby-gems
|
||||
fowners -R puppet:puppet /opt/puppetlabs/server/data
|
||||
fperms -R 775 /opt/puppetlabs/server/data/puppetserver
|
||||
fperms -R 700 /var/log/puppetlabs/puppetserver
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "to install you may want to run the following:"
|
||||
elog
|
||||
elog "puppet config set --section master vardir /opt/puppetlabs/server/data/puppetserver"
|
||||
elog "puppet config set --section master logdir /var/log/puppetlabs/puppetserver"
|
||||
elog "puppet config set --section master rundir /run/puppetlabs/puppetserver"
|
||||
elog "puppet config set --section master pidfile /run/puppetlabs/puppetserver/puppetserver.pid"
|
||||
elog "puppet config set --section master codedir /etc/puppetlabs/code"
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST docker-proxy-0.8.0_p20161111.tar.gz 2150464 SHA256 204e723a3cb740173af3a0d4b0d00996507d3230da4f348a38b417a215de0959 SHA512 86293b9cafc3c468760266b47412040f21309baad27765f584cfa1e93bc2ad88068832ed55f2ae8e4f16825e9f44619e89985fd36d98b3d47eaf1d1160f76c8e WHIRLPOOL 2b885bf3865a396219af7b32fc20477b15dffa1ac7b8a26602ff1b131d9f7cb31d5f997045bfac5ddf8b75016ca083c31ed345dfe1d9023a8d68b712a72d5979
|
@ -0,0 +1,35 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
EGO_PN="github.com/docker/libnetwork"
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit golang-vcs
|
||||
else
|
||||
EGIT_COMMIT="57be722e077059d1ee0539be31743a3642ccbeb3"
|
||||
SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~ppc64"
|
||||
inherit golang-vcs-snapshot
|
||||
fi
|
||||
|
||||
DESCRIPTION="Docker container networking"
|
||||
HOMEPAGE="http://github.com/docker/libnetwork"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
S=${WORKDIR}/${P}/src/${EGO_PN}
|
||||
|
||||
RDEPEND="!!<app-emulation/docker-1.13_rc1"
|
||||
|
||||
src_compile() {
|
||||
GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" go build -o "bin/docker-proxy" ./cmd/proxy || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodoc ROADMAP.md README.md CHANGELOG.md
|
||||
dobin bin/docker-proxy
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
EGO_PN="github.com/docker/libnetwork"
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit golang-vcs
|
||||
else
|
||||
EGIT_COMMIT="57be722e077059d1ee0539be31743a3642ccbeb3"
|
||||
SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~ppc64"
|
||||
inherit golang-vcs-snapshot
|
||||
fi
|
||||
|
||||
DESCRIPTION="Docker container networking"
|
||||
HOMEPAGE="http://github.com/docker/libnetwork"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
S=${WORKDIR}/${P}/src/${EGO_PN}
|
||||
|
||||
RDEPEND="!!<app-emulation/docker-1.13_rc1"
|
||||
|
||||
src_compile() {
|
||||
GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" go build -o "bin/docker-proxy" ./cmd/proxy || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodoc ROADMAP.md README.md CHANGELOG.md
|
||||
dobin bin/docker-proxy
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<longdescription>
|
||||
</longdescription>
|
||||
<maintainer type="person">
|
||||
<email>tianon@dockerproject.org</email>
|
||||
<name>Tianon</name>
|
||||
</maintainer>
|
||||
<maintainer type="person">
|
||||
<email>mrueg@gentoo.org</email>
|
||||
<name>Manuel Rüger</name>
|
||||
</maintainer>
|
||||
<maintainer type="person">
|
||||
<email>williamh@gentoo.org</email>
|
||||
<name>William Hubbs</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">docker/libnetwork</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1,2 +1,3 @@
|
||||
DIST docker-1.11.0.tar.gz 10637394 SHA256 088869b9a19ae17656e068aa6d3d473866e8133365427c601c671da1b2189057 SHA512 ecb7f531a5632fd6274e3eec59a5194c61d0788ab9f3864845cbc248232c2f14671a26c34abab8c5ca85ce6106ae72ea3ae4e5d133ad1efb126069ae82a2dba0 WHIRLPOOL 20b0ef1642d2fea2ae186a17786d95f138fb7df92daa104f00c481488f82eadd5e8f27a0a8e926d68f495fd62bc132d83817a0831f84b3786474a9408d87878f
|
||||
DIST docker-1.12.3.tar.gz 13678274 SHA256 cf4f876593abde06b4c19f971163a853a21b1992d75bd2fe5d8bea9015b09f87 SHA512 8577bcfe892d1fae6ca4edcd72c1a1c0a223ea3e322f3b63674dcb4833605c2dd2365cf376e4e08c0a900db50a927aaa0518ceb25f9542fe30c52a28903b0201 WHIRLPOOL 853f0a55836d4a34010f87399e875b9402703f1fb665e760255b198da6a68417c50b162cffe65e2c704e076be0520e3ecdb1418749cd3ddf63f426851bc0fbde
|
||||
DIST docker-1.13.0_rc1.tar.gz 7845975 SHA256 5b868b8a77c794d9a8604a0151cc1bb04fff1ece121e7f9e7315d99a2b6f5c1c SHA512 6d5819dc4164184ea5dba99e42f2e4e4ef8a49988804730492f31e7bc8a109486b2cefc71fe88f565a44f6090bccb7b18e5e3e73b79cc724086c60655918ffeb WHIRLPOOL 6357049db5a2d664fe1fff4e6a3c7a94ce6497562fadf82dac26819144eb7c591b63c8d5fa1106246e7899647d1910dbdeba0ee432b18976a6599c5224a984de
|
||||
|
@ -0,0 +1,287 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
EGO_PN="github.com/docker/docker"
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
# Docker cannot be fetched via "go get", thanks to autogenerated code
|
||||
EGIT_REPO_URI="https://${EGO_PN}.git"
|
||||
EGIT_CHECKOUT_DIR="${WORKDIR}/${P}/src/${EGO_PN}"
|
||||
inherit git-r3
|
||||
else
|
||||
MY_PV="${PV/_/-}"
|
||||
DOCKER_GITCOMMIT="75fd88b"
|
||||
EGIT_COMMIT="v${MY_PV}"
|
||||
SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
[ "$DOCKER_GITCOMMIT" ] || die "DOCKER_GITCOMMIT must be added manually for each bump!"
|
||||
inherit golang-vcs-snapshot
|
||||
fi
|
||||
inherit bash-completion-r1 golang-base linux-info systemd udev user
|
||||
|
||||
DESCRIPTION="The core functions you need to create Docker images and run Docker containers"
|
||||
HOMEPAGE="https://dockerproject.org"
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="apparmor aufs btrfs +container-init +device-mapper hardened overlay pkcs11 seccomp"
|
||||
|
||||
# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#build-dependencies
|
||||
CDEPEND="
|
||||
>=dev-db/sqlite-3.7.9:3
|
||||
device-mapper? (
|
||||
>=sys-fs/lvm2-2.02.89[thin]
|
||||
)
|
||||
seccomp? ( >=sys-libs/libseccomp-2.2.1 )
|
||||
apparmor? ( sys-libs/libapparmor )
|
||||
"
|
||||
|
||||
DEPEND="
|
||||
${CDEPEND}
|
||||
|
||||
dev-go/go-md2man
|
||||
|
||||
btrfs? (
|
||||
>=sys-fs/btrfs-progs-3.16.1
|
||||
)
|
||||
"
|
||||
|
||||
# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#runtime-dependencies
|
||||
# https://github.com/docker/docker/blob/master/project/PACKAGERS.md#optional-dependencies
|
||||
RDEPEND="
|
||||
${CDEPEND}
|
||||
|
||||
!app-emulation/docker-bin
|
||||
>=net-firewall/iptables-1.4
|
||||
sys-process/procps
|
||||
>=dev-vcs/git-1.7
|
||||
>=app-arch/xz-utils-4.9
|
||||
|
||||
>app-emulation/containerd-0.2.2
|
||||
app-emulation/runc[apparmor?,seccomp?]
|
||||
app-emulation/docker-proxy
|
||||
container-init? ( >=sys-process/tini-0.13.0[static] )
|
||||
"
|
||||
|
||||
RESTRICT="installsources strip"
|
||||
|
||||
S="${WORKDIR}/${P}/src/${EGO_PN}"
|
||||
|
||||
# see "contrib/check-config.sh" from upstream's sources
|
||||
CONFIG_CHECK="
|
||||
~NAMESPACES ~NET_NS ~PID_NS ~IPC_NS ~UTS_NS
|
||||
~CGROUPS ~CGROUP_CPUACCT ~CGROUP_DEVICE ~CGROUP_FREEZER ~CGROUP_SCHED ~CPUSETS ~MEMCG
|
||||
~KEYS
|
||||
~VETH ~BRIDGE ~BRIDGE_NETFILTER
|
||||
~NF_NAT_IPV4 ~IP_NF_FILTER ~IP_NF_TARGET_MASQUERADE
|
||||
~NETFILTER_XT_MATCH_ADDRTYPE ~NETFILTER_XT_MATCH_CONNTRACK
|
||||
~NF_NAT ~NF_NAT_NEEDED
|
||||
~POSIX_MQUEUE
|
||||
|
||||
~USER_NS
|
||||
~SECCOMP
|
||||
~CGROUP_PIDS
|
||||
~MEMCG_SWAP ~MEMCG_SWAP_ENABLED
|
||||
|
||||
~BLK_CGROUP ~BLK_DEV_THROTTLING ~IOSCHED_CFQ ~CFQ_GROUP_IOSCHED
|
||||
~CGROUP_PERF
|
||||
~CGROUP_HUGETLB
|
||||
~NET_CLS_CGROUP
|
||||
~CFS_BANDWIDTH ~FAIR_GROUP_SCHED ~RT_GROUP_SCHED
|
||||
~IP_VS ~IP_VS_PROTO_TCP ~IP_VS_PROTO_UDP ~IP_VS_NFCT
|
||||
|
||||
~VXLAN
|
||||
~XFRM_ALGO ~XFRM_USER
|
||||
~IPVLAN
|
||||
~MACVLAN ~DUMMY
|
||||
"
|
||||
|
||||
ERROR_KEYS="CONFIG_KEYS: is mandatory"
|
||||
ERROR_MEMCG_SWAP="CONFIG_MEMCG_SWAP: is required if you wish to limit swap usage of containers"
|
||||
ERROR_RESOURCE_COUNTERS="CONFIG_RESOURCE_COUNTERS: is optional for container statistics gathering"
|
||||
|
||||
ERROR_BLK_CGROUP="CONFIG_BLK_CGROUP: is optional for container statistics gathering"
|
||||
ERROR_IOSCHED_CFQ="CONFIG_IOSCHED_CFQ: is optional for container statistics gathering"
|
||||
ERROR_CGROUP_PERF="CONFIG_CGROUP_PERF: is optional for container statistics gathering"
|
||||
ERROR_CFS_BANDWIDTH="CONFIG_CFS_BANDWIDTH: is optional for container statistics gathering"
|
||||
ERROR_XFRM_ALGO="CONFIG_XFRM_ALGO: is optional for secure networks"
|
||||
ERROR_XFRM_USER="CONFIG_XFRM_USER: is optional for secure networks"
|
||||
|
||||
pkg_setup() {
|
||||
if kernel_is lt 3 10; then
|
||||
ewarn ""
|
||||
ewarn "Using Docker with kernels older than 3.10 is unstable and unsupported."
|
||||
ewarn " - http://docs.docker.com/engine/installation/binaries/#check-kernel-dependencies"
|
||||
fi
|
||||
|
||||
# for where these kernel versions come from, see:
|
||||
# https://www.google.com/search?q=945b2b2d259d1a4364a2799e80e8ff32f8c6ee6f+site%3Akernel.org%2Fpub%2Flinux%2Fkernel+file%3AChangeLog*
|
||||
if ! {
|
||||
kernel_is ge 3 16 \
|
||||
|| { kernel_is 3 15 && kernel_is ge 3 15 5; } \
|
||||
|| { kernel_is 3 14 && kernel_is ge 3 14 12; } \
|
||||
|| { kernel_is 3 12 && kernel_is ge 3 12 25; }
|
||||
}; then
|
||||
ewarn ""
|
||||
ewarn "There is a serious Docker-related kernel panic that has been fixed in 3.16+"
|
||||
ewarn " (and was backported to 3.15.5+, 3.14.12+, and 3.12.25+)"
|
||||
ewarn ""
|
||||
ewarn "See also https://github.com/docker/docker/issues/2960"
|
||||
fi
|
||||
|
||||
if kernel_is le 3 18; then
|
||||
CONFIG_CHECK+="
|
||||
~RESOURCE_COUNTERS
|
||||
"
|
||||
fi
|
||||
|
||||
if kernel_is le 3 13; then
|
||||
CONFIG_CHECK+="
|
||||
~NETPRIO_CGROUP
|
||||
"
|
||||
else
|
||||
CONFIG_CHECK+="
|
||||
~CGROUP_NET_PRIO
|
||||
"
|
||||
fi
|
||||
|
||||
if kernel_is lt 4 5; then
|
||||
CONFIG_CHECK+="
|
||||
~MEMCG_KMEM
|
||||
"
|
||||
ERROR_MEMCG_KMEM="CONFIG_MEMCG_KMEM: is optional"
|
||||
fi
|
||||
|
||||
if kernel_is lt 4 7; then
|
||||
CONFIG_CHECK+="
|
||||
~DEVPTS_MULTIPLE_INSTANCES
|
||||
"
|
||||
fi
|
||||
|
||||
if use aufs; then
|
||||
CONFIG_CHECK+="
|
||||
~AUFS_FS
|
||||
~EXT4_FS_POSIX_ACL ~EXT4_FS_SECURITY
|
||||
"
|
||||
ERROR_AUFS_FS="CONFIG_AUFS_FS: is required to be set if and only if aufs-sources are used instead of aufs4/aufs3"
|
||||
fi
|
||||
|
||||
if use btrfs; then
|
||||
CONFIG_CHECK+="
|
||||
~BTRFS_FS
|
||||
~BTRFS_FS_POSIX_ACL
|
||||
"
|
||||
fi
|
||||
|
||||
if use device-mapper; then
|
||||
CONFIG_CHECK+="
|
||||
~BLK_DEV_DM ~DM_THIN_PROVISIONING ~EXT4_FS ~EXT4_FS_POSIX_ACL ~EXT4_FS_SECURITY
|
||||
"
|
||||
fi
|
||||
|
||||
if use overlay; then
|
||||
CONFIG_CHECK+="
|
||||
~OVERLAY_FS ~EXT4_FS_SECURITY ~EXT4_FS_POSIX_ACL
|
||||
"
|
||||
fi
|
||||
|
||||
linux-info_pkg_setup
|
||||
|
||||
# create docker group for the code checking for it in /etc/group
|
||||
enewgroup docker
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
export GOPATH="${WORKDIR}/${P}:${PWD}/vendor"
|
||||
|
||||
# setup CFLAGS and LDFLAGS for separate build target
|
||||
# see https://github.com/tianon/docker-overlay/pull/10
|
||||
export CGO_CFLAGS="-I${ROOT}/usr/include"
|
||||
export CGO_LDFLAGS="-L${ROOT}/usr/$(get_libdir)"
|
||||
|
||||
# if we're building from a tarball, we need the GITCOMMIT value
|
||||
[ "$DOCKER_GITCOMMIT" ] && export DOCKER_GITCOMMIT
|
||||
|
||||
if use hardened; then
|
||||
sed -i "s/EXTLDFLAGS_STATIC='/&-fno-PIC /" hack/make.sh || die
|
||||
grep -q -- '-fno-PIC' hack/make.sh || die 'hardened sed failed'
|
||||
|
||||
sed "s/LDFLAGS_STATIC_DOCKER='/&-extldflags -fno-PIC /" \
|
||||
-i hack/make/dynbinary-client || die
|
||||
sed "s/LDFLAGS_STATIC_DOCKER='/&-extldflags -fno-PIC /" \
|
||||
-i hack/make/dynbinary-daemon || die
|
||||
grep -q -- '-fno-PIC' hack/make/dynbinary-daemon || die 'hardened sed failed'
|
||||
grep -q -- '-fno-PIC' hack/make/dynbinary-client || die 'hardened sed failed'
|
||||
fi
|
||||
|
||||
# let's set up some optional features :)
|
||||
export DOCKER_BUILDTAGS=''
|
||||
for gd in aufs btrfs device-mapper overlay; do
|
||||
if ! use $gd; then
|
||||
DOCKER_BUILDTAGS+=" exclude_graphdriver_${gd//-/}"
|
||||
fi
|
||||
done
|
||||
|
||||
for tag in apparmor pkcs11 seccomp; do
|
||||
if use $tag; then
|
||||
DOCKER_BUILDTAGS+=" $tag"
|
||||
fi
|
||||
done
|
||||
|
||||
# time to build!
|
||||
./hack/make.sh dynbinary || die 'dynbinary failed'
|
||||
|
||||
# build the man pages too
|
||||
./man/md2man-all.sh || die "unable to generate man pages"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
VERSION="$(cat VERSION)"
|
||||
newbin "bundles/$VERSION/dynbinary-client/docker-$VERSION" docker
|
||||
newbin "bundles/$VERSION/dynbinary-daemon/dockerd-$VERSION" dockerd
|
||||
dosym containerd /usr/bin/docker-containerd
|
||||
dosym containerd-shim /usr/bin/docker-containerd-shim
|
||||
dosym runc /usr/bin/docker-runc
|
||||
use container-init && dosym tini-static /usr/bin/docker-init
|
||||
|
||||
newinitd contrib/init/openrc/docker.initd docker
|
||||
newconfd contrib/init/openrc/docker.confd docker
|
||||
|
||||
systemd_dounit contrib/init/systemd/docker.{service,socket}
|
||||
|
||||
udev_dorules contrib/udev/*.rules
|
||||
|
||||
dodoc AUTHORS CONTRIBUTING.md CHANGELOG.md NOTICE README.md
|
||||
dodoc -r docs/*
|
||||
doman man/man*/*
|
||||
|
||||
dobashcomp contrib/completion/bash/*
|
||||
|
||||
insinto /usr/share/zsh/site-functions
|
||||
doins contrib/completion/zsh/_*
|
||||
|
||||
insinto /usr/share/vim/vimfiles
|
||||
doins -r contrib/syntax/vim/ftdetect
|
||||
doins -r contrib/syntax/vim/syntax
|
||||
|
||||
# note: intentionally not using "doins" so that we preserve +x bits
|
||||
dodir /usr/share/${PN}/contrib
|
||||
cp -R contrib/* "${ED}/usr/share/${PN}/contrib"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
udev_reload
|
||||
|
||||
elog
|
||||
elog "To use Docker, the Docker daemon must be running as root. To automatically"
|
||||
elog "start the Docker daemon at boot, add Docker to the default runlevel:"
|
||||
elog " rc-update add docker default"
|
||||
elog "Similarly for systemd:"
|
||||
elog " systemctl enable docker.service"
|
||||
elog
|
||||
elog "To use Docker as a non-root user, add yourself to the 'docker' group:"
|
||||
elog " usermod -aG docker youruser"
|
||||
elog
|
||||
}
|
@ -0,0 +1,146 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
PYTHON_REQ_USE='xml,threads'
|
||||
|
||||
inherit flag-o-matic eutils multilib python-single-r1 toolchain-funcs
|
||||
|
||||
XEN_EXTFILES_URL="http://xenbits.xensource.com/xen-extfiles"
|
||||
LIBPCI_URL=ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci
|
||||
GRUB_URL=mirror://gnu-alpha/grub
|
||||
SRC_URI="
|
||||
http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz
|
||||
$GRUB_URL/grub-0.97.tar.gz
|
||||
$XEN_EXTFILES_URL/zlib-1.2.3.tar.gz
|
||||
$LIBPCI_URL/pciutils-2.2.9.tar.bz2
|
||||
$XEN_EXTFILES_URL/lwip-1.3.0.tar.gz
|
||||
$XEN_EXTFILES_URL/newlib/newlib-1.16.0.tar.gz
|
||||
$XEN_EXTFILES_URL/polarssl-1.1.4-gpl.tgz"
|
||||
|
||||
S="${WORKDIR}/xen-${PV}"
|
||||
|
||||
DESCRIPTION="allows to boot Xen domU kernels from a menu.lst laying inside guest filesystem"
|
||||
HOMEPAGE="http://xen.org/"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="custom-cflags"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
DEPEND="sys-devel/gettext
|
||||
sys-devel/bin86
|
||||
sys-apps/texinfo
|
||||
x11-libs/pixman"
|
||||
|
||||
RDEPEND=">=app-emulation/xen-tools-${PV}"
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
retar-externals() {
|
||||
# Purely to unclutter src_prepare
|
||||
local set="grub-0.97.tar.gz lwip-1.3.0.tar.gz newlib-1.16.0.tar.gz polarssl-1.1.4-gpl.tgz zlib-1.2.3.tar.gz"
|
||||
|
||||
# epatch can't patch in $WORKDIR, requires a sed; Bug #455194. Patchable, but sed informative
|
||||
sed -e s':AR=${AR-"ar rc"}:AR=${AR-"ar"}:' \
|
||||
-i "${WORKDIR}"/zlib-1.2.3/configure
|
||||
sed -e 's:^AR=ar rc:AR=ar:' \
|
||||
-e s':$(AR) $@:$(AR) rc $@:' \
|
||||
-i "${WORKDIR}"/zlib-1.2.3/{Makefile,Makefile.in}
|
||||
einfo "zlib Makefile edited"
|
||||
|
||||
cd "${WORKDIR}"
|
||||
tar czp zlib-1.2.3 -f zlib-1.2.3.tar.gz
|
||||
tar czp grub-0.97 -f grub-0.97.tar.gz
|
||||
tar czp lwip -f lwip-1.3.0.tar.gz
|
||||
tar czp newlib-1.16.0 -f newlib-1.16.0.tar.gz
|
||||
tar czp polarssl-1.1.4 -f polarssl-1.1.4-gpl.tgz
|
||||
mv $set "${S}"/stubdom/
|
||||
einfo "tarballs moved to source"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# if the user *really* wants to use their own custom-cflags, let them
|
||||
if use custom-cflags; then
|
||||
einfo "User wants their own CFLAGS - removing defaults"
|
||||
# try and remove all the default custom-cflags
|
||||
find "${S}" -name Makefile -o -name Rules.mk -o -name Config.mk -exec sed \
|
||||
-e 's/CFLAGS\(.*\)=\(.*\)-O3\(.*\)/CFLAGS\1=\2\3/' \
|
||||
-e 's/CFLAGS\(.*\)=\(.*\)-march=i686\(.*\)/CFLAGS\1=\2\3/' \
|
||||
-e 's/CFLAGS\(.*\)=\(.*\)-fomit-frame-pointer\(.*\)/CFLAGS\1=\2\3/' \
|
||||
-e 's/CFLAGS\(.*\)=\(.*\)-g3*\s\(.*\)/CFLAGS\1=\2 \3/' \
|
||||
-e 's/CFLAGS\(.*\)=\(.*\)-O2\(.*\)/CFLAGS\1=\2\3/' \
|
||||
-i {} \;
|
||||
fi
|
||||
|
||||
# Patch the unmergeable newlib, fix most of the leftover gcc QA issues
|
||||
cp "${FILESDIR}"/newlib-implicits.patch stubdom || die
|
||||
|
||||
# Patch stubdom/Makefile to patch insource newlib & prevent internal downloading
|
||||
epatch "${FILESDIR}"/${PN/-pvgrub/}-4.3-externals.patch
|
||||
|
||||
# fix jobserver in Makefile
|
||||
epatch "${FILESDIR}"/${PN}-4.2-jserver.patch
|
||||
|
||||
#Substitute for internal downloading. pciutils copied only due to the only .bz2
|
||||
cp "${DISTDIR}"/pciutils-2.2.9.tar.bz2 ./stubdom/ || die "pciutils not copied to stubdom"
|
||||
retar-externals || die "re-tar procedure failed"
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf="--prefix=${PREFIX}/usr \
|
||||
--libdir=${PREFIX}/usr/$(get_libdir) \
|
||||
--libexecdir=${PREFIX}/usr/libexec \
|
||||
--disable-werror \
|
||||
--disable-xen"
|
||||
|
||||
econf ${myconf}
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
use custom-cflags || unset CFLAGS
|
||||
if test-flag-CC -fno-strict-overflow; then
|
||||
append-flags -fno-strict-overflow
|
||||
fi
|
||||
|
||||
emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" -C tools/include
|
||||
|
||||
if use x86; then
|
||||
emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" \
|
||||
XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub
|
||||
elif use amd64; then
|
||||
emake CC="$(tc-getCC)" LD="$(tc-getLD)" AR="$(tc-getAR)" \
|
||||
XEN_TARGET_ARCH="x86_64" -C stubdom pv-grub
|
||||
if has_multilib_profile; then
|
||||
multilib_toolchain_setup x86
|
||||
emake CC="$(tc-getCC)" AR="$(tc-getAR)" \
|
||||
XEN_TARGET_ARCH="x86_32" -C stubdom pv-grub
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if use x86; then
|
||||
emake XEN_TARGET_ARCH="x86_32" DESTDIR="${D}" -C stubdom install-grub
|
||||
fi
|
||||
if use amd64; then
|
||||
emake XEN_TARGET_ARCH="x86_64" DESTDIR="${D}" -C stubdom install-grub
|
||||
if has_multilib_profile; then
|
||||
emake XEN_TARGET_ARCH="x86_32" DESTDIR="${D}" -C stubdom install-grub
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Official Xen Guide and the offical wiki page:"
|
||||
elog "https://wiki.gentoo.org/wiki/Xen"
|
||||
elog "http://wiki.xen.org/wiki/Main_Page"
|
||||
}
|
@ -1,2 +0,0 @@
|
||||
DIST ddctool-0.5.0.tar.gz 322864 SHA256 8773b98f7ca226f8b9cdca3c681ddf0f8aacb5d2c1591764e2a9080a14fe518d SHA512 5fc55a4363335eb8468a73f6e617cba7efcb454f8cefa081c6d13d9c2ac35cc191001a466c61ecfc9c944aea5b837b993646b4b2c78dfb63057ef01c3c05fed5 WHIRLPOOL 66679e7f2a81dab012e38aad24961b5aa3f3860f64b49e0818362c3ac5f5bab2a1a4e0528cf27540041e4f8a548342a1d7f4bd1b422c4185a83721dc6720b218
|
||||
DIST ddctool-0.5.3.tar.gz 323620 SHA256 8ad0d4d2ff2a8206ee42eec691f20a97492cf58e56b8b1282a90db0890bf3c27 SHA512 f96609083d2afb1e2792ff0977128b39b7fb7f9f88d63db2ed38f5d764a14930a7ae363e0d01a3b1fe336c234a2b9174ba14326460166d7047c16b1fa2c663a8 WHIRLPOOL 1499ed473f68a7b22d8438b61caf8ce8a70266c495ef52260283bb0347d057597b3ccfcf49fe03dce398a98d56399c9131032502f5b9243b974e1f7704c82a1b
|
@ -1,100 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit autotools linux-info udev user
|
||||
|
||||
DESCRIPTION="Program for querying and changing monitor settings"
|
||||
HOMEPAGE="http://www.ddctool.com/"
|
||||
|
||||
SRC_URI="https://github.com/rockowitz/ddctool/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
# Binary drivers need special instructions compared to the open source counterparts.
|
||||
# If a user switches drivers, they will need to set different use flags for
|
||||
# Xorg or Wayland or Mesa, so this will trigger the rebuild against
|
||||
# the different drivers.
|
||||
IUSE="usb-monitor user-permissions video_cards_fglrx video_cards_nvidia"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="x11-libs/libXrandr
|
||||
sys-apps/i2c-tools
|
||||
virtual/udev
|
||||
usb-monitor? (
|
||||
dev-libs/hidapi
|
||||
virtual/libusb:1
|
||||
sys-apps/usbutils )"
|
||||
DEPEND="video_cards_fglrx? ( x11-libs/amd-adl-sdk )
|
||||
virtual/pkgconfig
|
||||
${RDEPEND}"
|
||||
|
||||
pkg_pretend() {
|
||||
# This program needs /dev/ic2-* devices to communicate with the monitor.
|
||||
CONFIG_CHECK="~I2C_CHARDEV"
|
||||
ERROR_I2C_CHARDEV="You must enable I2C_CHARDEV in your kernel to continue"
|
||||
if use usb-monitor; then
|
||||
CONFIG_CHECK+="~HIDRAW ~USB_HIDDEV"
|
||||
ERROR_HIDRAW="HIDRAW is needed to support USB monitors"
|
||||
ERROR_I2C_CHARDEV="USB_HIDDEV is needed to support USB monitors"
|
||||
fi
|
||||
|
||||
# Now do the actual checks setup above
|
||||
check_extra_config
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eautoreconf
|
||||
default
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
$(usex video_cards_fglrx "--with-adl-headers=/usr/include/ADL" "")
|
||||
$(use_enable usb-monitor usb)
|
||||
)
|
||||
|
||||
econf ${myeconfargs[@]}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
if use user-permissions; then
|
||||
udev_dorules data/etc/udev/rules.d/45-ddctool-i2c.rules
|
||||
if use usb-monitor; then
|
||||
udev_dorules data/etc/udev/rules.d/45-ddctool-usb.rules
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use user-permissions; then
|
||||
enewgroup i2c
|
||||
einfo "To allow non-root users access to the /dev/i2c-* devices, add those"
|
||||
einfo "users to the i2c group: usermod -aG i2c user"
|
||||
einfo "Restart the computer or reload the i2c-dev module to activate"
|
||||
einfo "the new udev rule."
|
||||
einfo "For more information read: http://www.ddctool.com/i2c_permissions/"
|
||||
|
||||
if use usb-monitor; then
|
||||
enewgroup video
|
||||
einfo "To allow non-root users access to USB monitors, add those users"
|
||||
einfo "to the video group: usermod -aG video user"
|
||||
einfo "Restart the computer, reload the hiddev and hidraw modules, or replug"
|
||||
einfo "the monitor to activate the new udev rule."
|
||||
einfo "For more information read: http://www.ddctool.com/usb/"
|
||||
fi
|
||||
|
||||
udev_reload
|
||||
fi
|
||||
|
||||
if use video_cards_nvidia; then
|
||||
einfo "=================================================================="
|
||||
einfo "Please read the following webpage on proper usage with the nVidia "
|
||||
einfo "binary drivers, or it may not work: http://www.ddctool.com/nvidia/"
|
||||
einfo "=================================================================="
|
||||
fi
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST ddcutil-0.6.0.tar.gz 323380 SHA256 ae435699578297cdb40006471e046576e825d971c6c867822568660d815e966a SHA512 ab5882c22e7cbf17f8513a80443a25b2d1698e45b2fd3bf6f163fd86691808a5244830da2664b882ddc6592a9228afbd9f4c8f6821115167fd28b114c986e172 WHIRLPOOL 37a334a0075b08f0b6e01cc721d414aedb9e06f36fc295698662616c5fbf98ca4c256eba91344748409766fa9139173335d14b8243bc0ee7404c2914a10b38c6
|
@ -0,0 +1 @@
|
||||
DIST jira-cli-2.1.4.tar.gz 122946 SHA256 dca0cca199108bd4eab4b539fafca2012fed5c21caf6732c60c20aebf7cf1bc1 SHA512 83cb24d0773d3afd0f2370df49a7e9154fa7d50bdbd1828bf836c868d61b40d0ac5f03fdafe865af14896514ee0b8afe96d738bee222725f6483c0773e33ab0e WHIRLPOOL ce6c6bc8af66771f13649d038a0540bf5e4a2f2847ddbfc0b3753c6be625ca03862325e795dc5f3f6458cbdcaa1de48a900a63209c0a26f190897771fabf0c5f
|
@ -0,0 +1,41 @@
|
||||
# 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})
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Simple command line utility to interact with your jira instance"
|
||||
HOMEPAGE="https://github.com/alisaifee/jira-cli"
|
||||
SRC_URI="https://github.com/alisaifee/jira-cli/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="test"
|
||||
|
||||
CDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
||||
|
||||
RDEPEND="${CDEPEND}
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
dev-python/termcolor[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]
|
||||
dev-python/jira[${PYTHON_USEDEP}]
|
||||
dev-python/suds[${PYTHON_USEDEP}]
|
||||
dev-python/keyring[${PYTHON_USEDEP}]"
|
||||
|
||||
DEPEND="${CDEPEND}
|
||||
test? ( ${RDEPEND}
|
||||
>=dev-python/coverage-4.0.3[${PYTHON_USEDEP}]
|
||||
dev-python/hiro[${PYTHON_USEDEP}]
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
>=dev-python/vcrpy-1.7.4[${PYTHON_USEDEP}] )"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
python_test() {
|
||||
nosetests || die
|
||||
}
|
@ -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>mrueg@gentoo.org</email>
|
||||
<name>Manuel Rüger</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -0,0 +1,247 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit eutils flag-o-matic toolchain-funcs multilib prefix
|
||||
|
||||
# Official patchlevel
|
||||
# See ftp://ftp.cwru.edu/pub/bash/bash-4.4-patches/
|
||||
PLEVEL=${PV##*_p}
|
||||
MY_PV=${PV/_p*}
|
||||
MY_PV=${MY_PV/_/-}
|
||||
MY_P=${PN}-${MY_PV}
|
||||
[[ ${PV} != *_p* ]] && PLEVEL=0
|
||||
patches() {
|
||||
local opt=$1 plevel=${2:-${PLEVEL}} pn=${3:-${PN}} pv=${4:-${MY_PV}}
|
||||
[[ ${plevel} -eq 0 ]] && return 1
|
||||
eval set -- {1..${plevel}}
|
||||
set -- $(printf "${pn}${pv/\.}-%03d " "$@")
|
||||
if [[ ${opt} == -s ]] ; then
|
||||
echo "${@/#/${DISTDIR}/}"
|
||||
else
|
||||
local u
|
||||
for u in ftp://ftp.cwru.edu/pub/bash mirror://gnu/${pn} ; do
|
||||
printf "${u}/${pn}-${pv}-patches/%s " "$@"
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
# The version of readline this bash normally ships with.
|
||||
READLINE_VER="7.0"
|
||||
|
||||
DESCRIPTION="The standard GNU Bourne again shell"
|
||||
HOMEPAGE="http://tiswww.case.edu/php/chet/bash/bashtop.html"
|
||||
case ${PV} in
|
||||
*_alpha*|*_beta*|*_rc*) SRC_URI+=" ftp://ftp.cwru.edu/pub/bash/${MY_P}.tar.gz" ;;
|
||||
*) SRC_URI="mirror://gnu/bash/${MY_P}.tar.gz $(patches)" ;;
|
||||
esac
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="afs bashlogger examples mem-scramble +net nls plugins +readline"
|
||||
|
||||
DEPEND=">=sys-libs/ncurses-5.2-r2:0=
|
||||
readline? ( >=sys-libs/readline-${READLINE_VER}:0= )
|
||||
nls? ( virtual/libintl )"
|
||||
RDEPEND="${DEPEND}
|
||||
!<sys-apps/portage-2.1.6.7_p1
|
||||
!<sys-apps/paludis-0.26.0_alpha5"
|
||||
# we only need yacc when the .y files get patched (bash42-005)
|
||||
#DEPEND+=" virtual/yacc"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
pkg_setup() {
|
||||
if is-flag -malign-double ; then #7332
|
||||
eerror "Detected bad CFLAGS '-malign-double'. Do not use this"
|
||||
eerror "as it breaks LFS (struct stat64) on x86."
|
||||
die "remove -malign-double from your CFLAGS mr ricer"
|
||||
fi
|
||||
if use bashlogger ; then
|
||||
ewarn "The logging patch should ONLY be used in restricted (i.e. honeypot) envs."
|
||||
ewarn "This will log ALL output you enter into the shell, you have been warned."
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${MY_P}.tar.gz
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Include official patches
|
||||
[[ ${PLEVEL} -gt 0 ]] && epatch $(patches -s)
|
||||
|
||||
# Clean out local libs so we know we use system ones w/releases.
|
||||
if [[ ${PV} != *_rc* ]] ; then
|
||||
rm -rf lib/{readline,termcap}/*
|
||||
touch lib/{readline,termcap}/Makefile.in # for config.status
|
||||
sed -ri -e 's:\$[(](RL|HIST)_LIBSRC[)]/[[:alpha:]]*.h::g' Makefile.in || die
|
||||
fi
|
||||
|
||||
# Prefixify hardcoded path names. No-op for non-prefix.
|
||||
hprefixify pathnames.h.in
|
||||
|
||||
# Avoid regenerating docs after patches #407985
|
||||
sed -i -r '/^(HS|RL)USER/s:=.*:=:' doc/Makefile.in || die
|
||||
touch -r . doc/*
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=()
|
||||
|
||||
# For descriptions of these, see config-top.h
|
||||
# bashrc/#26952 bash_logout/#90488 ssh/#24762 mktemp/#574426
|
||||
append-cppflags \
|
||||
-DDEFAULT_PATH_VALUE=\'\"${EPREFIX}/usr/local/sbin:${EPREFIX}/usr/local/bin:${EPREFIX}/usr/sbin:${EPREFIX}/usr/bin:${EPREFIX}/sbin:${EPREFIX}/bin\"\' \
|
||||
-DSTANDARD_UTILS_PATH=\'\"${EPREFIX}/bin:${EPREFIX}/usr/bin:${EPREFIX}/sbin:${EPREFIX}/usr/sbin\"\' \
|
||||
-DSYS_BASHRC=\'\"${EPREFIX}/etc/bash/bashrc\"\' \
|
||||
-DSYS_BASH_LOGOUT=\'\"${EPREFIX}/etc/bash/bash_logout\"\' \
|
||||
-DNON_INTERACTIVE_LOGIN_SHELLS \
|
||||
-DSSH_SOURCE_BASHRC \
|
||||
$(use bashlogger && echo -DSYSLOG_HISTORY)
|
||||
|
||||
# Don't even think about building this statically without
|
||||
# reading Bug 7714 first. If you still build it statically,
|
||||
# don't come crying to us with bugs ;).
|
||||
#use static && export LDFLAGS="${LDFLAGS} -static"
|
||||
use nls || myconf+=( --disable-nls )
|
||||
|
||||
# Historically, we always used the builtin readline, but since
|
||||
# our handling of SONAME upgrades has gotten much more stable
|
||||
# in the PM (and the readline ebuild itself preserves the old
|
||||
# libs during upgrades), linking against the system copy should
|
||||
# be safe.
|
||||
# Exact cached version here doesn't really matter as long as it
|
||||
# is at least what's in the DEPEND up above.
|
||||
export ac_cv_rl_version=${READLINE_VER%%_*}
|
||||
|
||||
# Force linking with system curses ... the bundled termcap lib
|
||||
# sucks bad compared to ncurses. For the most part, ncurses
|
||||
# is here because readline needs it. But bash itself calls
|
||||
# ncurses in one or two small places :(.
|
||||
|
||||
if [[ ${PV} != *_rc* ]] ; then
|
||||
# Use system readline only with released versions.
|
||||
myconf+=( --with-installed-readline=. )
|
||||
fi
|
||||
|
||||
if use plugins; then
|
||||
append-ldflags -Wl,-rpath,/usr/$(get_libdir)/bash
|
||||
else
|
||||
# Disable the plugins logic by hand since bash doesn't
|
||||
# provide a way of doing it.
|
||||
export ac_cv_func_dl{close,open,sym}=no \
|
||||
ac_cv_lib_dl_dlopen=no ac_cv_header_dlfcn_h=no
|
||||
sed -i \
|
||||
-e '/LOCAL_LDFLAGS=/s:-rdynamic::' \
|
||||
configure || die
|
||||
fi
|
||||
tc-export AR #444070
|
||||
econf \
|
||||
--docdir='$(datarootdir)'/doc/${PF} \
|
||||
--htmldir='$(docdir)/html' \
|
||||
--with-curses \
|
||||
$(use_with afs) \
|
||||
$(use_enable net net-redirections) \
|
||||
--disable-profiling \
|
||||
$(use_enable mem-scramble) \
|
||||
$(use_with mem-scramble bash-malloc) \
|
||||
$(use_enable readline) \
|
||||
$(use_enable readline history) \
|
||||
$(use_enable readline bang-history) \
|
||||
"${myconf[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake
|
||||
|
||||
if use plugins ; then
|
||||
emake -C examples/loadables all others
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local d f
|
||||
|
||||
default
|
||||
|
||||
dodir /bin
|
||||
mv "${ED}"/usr/bin/bash "${ED}"/bin/ || die
|
||||
dosym bash /bin/rbash
|
||||
|
||||
insinto /etc/bash
|
||||
doins "${FILESDIR}"/bash_logout
|
||||
doins "$(prefixify_ro "${FILESDIR}"/bashrc)"
|
||||
keepdir /etc/bash/bashrc.d
|
||||
insinto /etc/skel
|
||||
for f in bash{_logout,_profile,rc} ; do
|
||||
newins "${FILESDIR}"/dot-${f} .${f}
|
||||
done
|
||||
|
||||
local sed_args=(
|
||||
-e "s:#${USERLAND}#@::"
|
||||
-e '/#@/d'
|
||||
)
|
||||
if ! use readline ; then
|
||||
sed_args+=( #432338
|
||||
-e '/^shopt -s histappend/s:^:#:'
|
||||
-e 's:use_color=true:use_color=false:'
|
||||
)
|
||||
fi
|
||||
sed -i \
|
||||
"${sed_args[@]}" \
|
||||
"${ED}"/etc/skel/.bashrc \
|
||||
"${ED}"/etc/bash/bashrc || die
|
||||
|
||||
if use plugins ; then
|
||||
exeinto /usr/$(get_libdir)/bash
|
||||
doexe $(echo examples/loadables/*.o | sed 's:\.o::g')
|
||||
insinto /usr/include/bash-plugins
|
||||
doins *.h builtins/*.h include/*.h lib/{glob/glob.h,tilde/tilde.h}
|
||||
fi
|
||||
|
||||
if use examples ; then
|
||||
for d in examples/{functions,misc,scripts,startup-files} ; do
|
||||
exeinto /usr/share/doc/${PF}/${d}
|
||||
insinto /usr/share/doc/${PF}/${d}
|
||||
for f in ${d}/* ; do
|
||||
if [[ ${f##*/} != PERMISSION ]] && [[ ${f##*/} != *README ]] ; then
|
||||
doexe ${f}
|
||||
else
|
||||
doins ${f}
|
||||
fi
|
||||
done
|
||||
done
|
||||
fi
|
||||
|
||||
doman doc/*.1
|
||||
newdoc CWRU/changelog ChangeLog
|
||||
dosym bash.info /usr/share/info/bashref.info
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if [[ -e ${EROOT}/etc/bashrc ]] && [[ ! -d ${EROOT}/etc/bash ]] ; then
|
||||
mkdir -p "${EROOT}"/etc/bash
|
||||
mv -f "${EROOT}"/etc/bashrc "${EROOT}"/etc/bash/
|
||||
fi
|
||||
|
||||
if [[ -L ${EROOT}/bin/sh ]] ; then
|
||||
# rewrite the symlink to ensure that its mtime changes. having /bin/sh
|
||||
# missing even temporarily causes a fatal error with paludis.
|
||||
local target=$(readlink "${EROOT}"/bin/sh)
|
||||
local tmp=$(emktemp "${EROOT}"/bin)
|
||||
ln -sf "${target}" "${tmp}"
|
||||
mv -f "${tmp}" "${EROOT}"/bin/sh
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# If /bin/sh does not exist, provide it
|
||||
if [[ ! -e ${EROOT}/bin/sh ]] ; then
|
||||
ln -sf bash "${EROOT}"/bin/sh
|
||||
fi
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST paperwork-backend-1.0.1.tar.gz 46530 SHA256 8e95a0ac6a0ab73af6f95a575dff8b5857b5a9aed9e2842045d6bcf1f5a112cf SHA512 4a092633ff29cffb738866c9a58aeb4d9f558afb74bb28253c24d4789e8a92cf2a0207f2014e384fca5c225311ecf953d14b9b2925d705626936ad1ef9555c7d WHIRLPOOL c77191ce7385c831950f4b0c1328c129b6f191bb837d88122ea3c4c0c533cf231d4f3bcbcd4f67cce1fcca970d4338461eaaad743de9630196e5d67d657cde7c
|
||||
DIST paperwork-backend-1.0.2.tar.gz 46565 SHA256 0f3435864880e00df3d0e37ce2d58037d85a8c12f06d09d67fae25aa2895d0a7 SHA512 061b65da55ec432ec76eacee78029e77df9a10d9da02b2e4bedd7efe51b2b771d29cd8d940410f93bf921087365ded5464d9acd3b3940afe9fc4e4a3e1afc5a7 WHIRLPOOL 2529ee71c49e8b43f88ed55812a100541a122a0cb3e68ae32e7b1a219592b98d9b1dccfce094760dbf0c23c53c53b1f5fdc2b6a05eba499f7fcf620c40193ee5
|
||||
|
@ -0,0 +1,29 @@
|
||||
# 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="Backend part of Paperwork (Python API, no UI)"
|
||||
HOMEPAGE="https://github.com/jflesch/paperwork-backend"
|
||||
SRC_URI="https://github.com/jflesch/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="app-text/poppler[introspection]
|
||||
dev-python/pillow[${PYTHON_USEDEP}]
|
||||
dev-python/pycairo[${PYTHON_USEDEP}]
|
||||
dev-python/pycountry[${PYTHON_USEDEP}]
|
||||
dev-python/pyenchant[${PYTHON_USEDEP}]
|
||||
dev-python/pygobject:3[${PYTHON_USEDEP}]
|
||||
dev-python/python-levenshtein[${PYTHON_USEDEP}]
|
||||
dev-python/simplebayes[${PYTHON_USEDEP}]
|
||||
dev-python/termcolor[${PYTHON_USEDEP}]
|
||||
dev-python/whoosh[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}"
|
@ -1,2 +1,3 @@
|
||||
DIST paperwork-0.3.2.tar.gz 179509 SHA256 55a3aa814cf0b62bc2e40d0b4789068ebec9bfd9fff182d75429aca624d243f1 SHA512 b9dd1010f308d28e300d246d103cdd15253ed8e653721a89ab7de1aa6129b9a52f6ca6afe4714e19fca41369441240900af23faefd7284bbd420a9833bf3449e WHIRLPOOL f20ac1e45b754612b452d3bbb5854857c604108fe4a71b8870de7b317087b99597dc3c9275776c0b1cd68118c78c45f38195ef4635abe514a565a7e1b911895d
|
||||
DIST paperwork-1.0.1.tar.gz 206786 SHA256 65976920d18a09ca5ff07088ec73073b857dfb40b4674e428619c8a90726ca01 SHA512 10f854586381b6eb3eabb654cf42c7372594f1c413f601ebbff75f806c841e71e0883bbbfa482802d0f083521689d82ff0416bdbb378d9041402a0ed971b1ed6 WHIRLPOOL 1e314ed44bf86a4c97e7f30667fe07e40ed390715278cf418df0d0bd219b32e33256ac0606cadc10ec5c2a5d7847cda62850adc2bc15ace8c4583da71232bb38
|
||||
DIST paperwork-1.0.2.tar.gz 274148 SHA256 0884c53f0a23fd396428fbc7cc0499d6ab95f7d76df369d68bffebfd5bf2d1ae SHA512 607fa9f27a367adf8256e59d8d72e2c51822e51563d8e705bc20d4c5a99c3f924f81f262adcc0fd1950f4de97840f5f25e030aa8be164bdabc3bf7c07e2152a4 WHIRLPOOL 74ac71c9c59de5931ba159bbebb9599d1023be1cc4093e27e50600d34b8c0cc00fe52fed8e2409e2f40a7b2aa0bc4b62d2e87ff117a4a32902edbee61bf038af
|
||||
|
@ -0,0 +1,30 @@
|
||||
# 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="a personal document manager for scanned documents (and PDFs)"
|
||||
HOMEPAGE="https://github.com/jflesch/paperwork"
|
||||
SRC_URI="https://github.com/jflesch/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="~app-text/paperwork-backend-${PV}[${PYTHON_USEDEP}]
|
||||
dev-python/libpillowfight[${PYTHON_USEDEP}]
|
||||
dev-python/pillow[${PYTHON_USEDEP}]
|
||||
dev-python/pycairo[${PYTHON_USEDEP}]
|
||||
dev-python/pyenchant[${PYTHON_USEDEP}]
|
||||
dev-python/pygobject:3[${PYTHON_USEDEP}]
|
||||
dev-python/pyinsane:2[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyocr-0.3.0[${PYTHON_USEDEP}]
|
||||
dev-python/simplebayes[${PYTHON_USEDEP}]
|
||||
dev-util/glade[introspection,python]
|
||||
x11-libs/gtk+:3[introspection]"
|
||||
DEPEND="${RDEPEND}"
|
@ -0,0 +1,207 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="6"
|
||||
MY_EXTRAS_VER="20160721-1526Z"
|
||||
# The wsrep API version must match between upstream WSREP and sys-cluster/galera major number
|
||||
WSREP_REVISION="25"
|
||||
SUBSLOT="18"
|
||||
MYSQL_PV_MAJOR="5.6"
|
||||
|
||||
JAVA_PKG_OPT_USE="jdbc"
|
||||
|
||||
inherit toolchain-funcs java-pkg-opt-2 mysql-multilib-r1
|
||||
|
||||
HOMEPAGE="http://mariadb.org/"
|
||||
DESCRIPTION="An enhanced, drop-in replacement for MySQL"
|
||||
|
||||
IUSE="bindist cracklib galera kerberos innodb-lz4 innodb-lzo innodb-snappy jdbc mroonga odbc oqgraph pam sphinx sst-rsync sst-xtrabackup tokudb systemd xml"
|
||||
RESTRICT="!bindist? ( bindist )"
|
||||
|
||||
REQUIRED_USE="server? ( tokudb? ( jemalloc ) ) static? ( !pam ) jdbc? ( extraengine server !static )"
|
||||
|
||||
# REMEMBER: also update eclass/mysql*.eclass before committing!
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~hppa ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
|
||||
|
||||
MY_PATCH_DIR="${WORKDIR}/mysql-extras-${MY_EXTRAS_VER}"
|
||||
|
||||
PATCHES=(
|
||||
"${MY_PATCH_DIR}"/20006_all_cmake_elib-mariadb-10.1.16.patch
|
||||
"${MY_PATCH_DIR}"/20009_all_mariadb_myodbc_symbol_fix-5.5.38.patch
|
||||
"${MY_PATCH_DIR}"/20015_all_mariadb-pkgconfig-location.patch
|
||||
"${MY_PATCH_DIR}"/20018_all_mariadb-10.1.16-without-clientlibs-tools.patch
|
||||
)
|
||||
|
||||
COMMON_DEPEND="
|
||||
mroonga? ( app-text/groonga-normalizer-mysql )
|
||||
kerberos? ( virtual/krb5[${MULTILIB_USEDEP}] )
|
||||
systemd? ( sys-apps/systemd:= )
|
||||
!bindist? (
|
||||
sys-libs/binutils-libs:0=
|
||||
>=sys-libs/readline-4.1:0=
|
||||
)
|
||||
server? (
|
||||
cracklib? ( sys-libs/cracklib:0= )
|
||||
extraengine? (
|
||||
odbc? ( dev-db/unixODBC:0= )
|
||||
xml? ( dev-libs/libxml2:2= )
|
||||
)
|
||||
innodb-lz4? ( app-arch/lz4 )
|
||||
innodb-lzo? ( dev-libs/lzo )
|
||||
innodb-snappy? ( app-arch/snappy )
|
||||
oqgraph? ( >=dev-libs/boost-1.40.0:0= dev-libs/judy:0= )
|
||||
pam? ( virtual/pam:0= )
|
||||
tokudb? ( app-arch/snappy )
|
||||
)
|
||||
>=dev-libs/libpcre-8.35:3=
|
||||
"
|
||||
DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )
|
||||
server? ( extraengine? ( jdbc? ( >=virtual/jdk-1.6 ) ) )
|
||||
${COMMON_DEPEND}"
|
||||
RDEPEND="${RDEPEND} ${COMMON_DEPEND}
|
||||
galera? (
|
||||
sys-apps/iproute2
|
||||
=sys-cluster/galera-${WSREP_REVISION}*
|
||||
sst-rsync? ( sys-process/lsof )
|
||||
sst-xtrabackup? ( net-misc/socat[ssl] )
|
||||
)
|
||||
perl? ( !dev-db/mytop
|
||||
virtual/perl-Getopt-Long
|
||||
dev-perl/TermReadKey
|
||||
virtual/perl-Term-ANSIColor
|
||||
virtual/perl-Time-HiRes )
|
||||
server? ( extraengine? ( jdbc? ( >=virtual/jre-1.6 ) ) )
|
||||
"
|
||||
# xtrabackup-bin causes a circular dependency if DBD-mysql is not already installed
|
||||
PDEPEND="galera? ( sst-xtrabackup? ( || ( >=dev-db/xtrabackup-bin-2.2.4 dev-db/percona-xtrabackup ) ) )"
|
||||
|
||||
MULTILIB_WRAPPED_HEADERS+=( /usr/include/mysql/mysql_version.h
|
||||
/usr/include/mysql/private/probes_mysql_nodtrace.h
|
||||
/usr/include/mysql/private/probes_mysql_dtrace.h )
|
||||
|
||||
pkg_setup() {
|
||||
java-pkg-opt-2_pkg_setup
|
||||
mysql-multilib-r1_pkg_setup
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
java-pkg-opt-2_pkg_preinst
|
||||
mysql-multilib-r1_pkg_preinst
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
java-pkg-opt-2_src_prepare
|
||||
mysql-multilib-r1_src_prepare
|
||||
}
|
||||
|
||||
src_configure(){
|
||||
# bug 508724 mariadb cannot use ld.gold
|
||||
tc-ld-disable-gold
|
||||
|
||||
local MYSQL_CMAKE_NATIVE_DEFINES=(
|
||||
-DWITH_JEMALLOC=$(usex jemalloc system)
|
||||
-DWITH_PCRE=system
|
||||
)
|
||||
local MYSQL_CMAKE_EXTRA_DEFINES=(
|
||||
-DPLUGIN_AUTH_GSSAPI_CLIENT=$(usex kerberos YES NO)
|
||||
)
|
||||
if use server ; then
|
||||
# Federated{,X} must be treated special otherwise they will not be built as plugins
|
||||
if ! use extraengine ; then
|
||||
MYSQL_CMAKE_NATIVE_DEFINES+=(
|
||||
-DPLUGIN_FEDERATED=NO
|
||||
-DPLUGIN_FEDERATEDX=NO )
|
||||
fi
|
||||
|
||||
MYSQL_CMAKE_NATIVE_DEFINES+=(
|
||||
-DPLUGIN_OQGRAPH=$(usex oqgraph YES NO)
|
||||
-DPLUGIN_SPHINX=$(usex sphinx YES NO)
|
||||
-DPLUGIN_TOKUDB=$(usex tokudb YES NO)
|
||||
-DPLUGIN_AUTH_PAM=$(usex pam YES NO)
|
||||
-DPLUGIN_CRACKLIB_PASSWORD_CHECK=$(usex cracklib YES NO)
|
||||
-DPLUGIN_CASSANDRA=NO
|
||||
-DPLUGIN_SEQUENCE=$(usex extraengine YES NO)
|
||||
-DPLUGIN_SPIDER=$(usex extraengine YES NO)
|
||||
-DPLUGIN_CONNECT=$(usex extraengine YES NO)
|
||||
-DCONNECT_WITH_MYSQL=1
|
||||
-DCONNECT_WITH_LIBXML2=$(usex xml)
|
||||
-DCONNECT_WITH_ODBC=$(usex odbc)
|
||||
-DCONNECT_WITH_JDBC=$(usex jdbc)
|
||||
-DWITH_WSREP=$(usex galera)
|
||||
-DWITH_INNODB_LZ4=$(usex innodb-lz4 ON OFF)
|
||||
-DWITH_INNODB_LZO=$(usex innodb-lzo ON OFF)
|
||||
-DWITH_INNODB_SNAPPY=$(usex innodb-snappy ON OFF)
|
||||
-DPLUGIN_MROONGA=$(usex mroonga YES NO)
|
||||
-DPLUGIN_AUTH_GSSAPI=$(usex kerberos YES NO)
|
||||
)
|
||||
fi
|
||||
mysql-multilib-r1_src_configure
|
||||
}
|
||||
|
||||
# Official test instructions:
|
||||
# USE='embedded extraengine perl server openssl static-libs' \
|
||||
# FEATURES='test userpriv -usersandbox' \
|
||||
# ebuild mariadb-X.X.XX.ebuild \
|
||||
# digest clean package
|
||||
multilib_src_test() {
|
||||
|
||||
if ! multilib_is_native_abi ; then
|
||||
einfo "Server tests not available on non-native abi".
|
||||
return 0;
|
||||
fi
|
||||
|
||||
local TESTDIR="${BUILD_DIR}/mysql-test"
|
||||
local retstatus_unit
|
||||
local retstatus_tests
|
||||
|
||||
if ! use server ; then
|
||||
einfo "Skipping server tests due to minimal build."
|
||||
return 0
|
||||
fi
|
||||
|
||||
# Bug #213475 - MySQL _will_ object strenously if your machine is named
|
||||
# localhost. Also causes weird failures.
|
||||
[[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
|
||||
|
||||
if [[ $UID -eq 0 ]]; then
|
||||
die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
|
||||
fi
|
||||
has usersandbox $FEATURES && ewarn "Some tests may fail with FEATURES=usersandbox"
|
||||
|
||||
einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
|
||||
|
||||
# Run CTest (test-units)
|
||||
cmake-utils_src_test
|
||||
retstatus_unit=$?
|
||||
|
||||
# Ensure that parallel runs don't die
|
||||
export MTR_BUILD_THREAD="$((${RANDOM} % 100))"
|
||||
# Enable parallel testing, auto will try to detect number of cores
|
||||
# You may set this by hand.
|
||||
# The default maximum is 8 unless MTR_MAX_PARALLEL is increased
|
||||
export MTR_PARALLEL="${MTR_PARALLEL:-auto}"
|
||||
|
||||
# create directories because mysqladmin might run out of order
|
||||
mkdir -p "${T}"/var-tests{,/log}
|
||||
|
||||
# Run mysql tests
|
||||
pushd "${TESTDIR}" || die
|
||||
|
||||
# run mysql-test tests
|
||||
perl mysql-test-run.pl --force --vardir="${T}/var-tests" --reorder
|
||||
retstatus_tests=$?
|
||||
|
||||
popd || die
|
||||
|
||||
# Cleanup is important for these testcases.
|
||||
pkill -9 -f "${S}/ndb" 2>/dev/null
|
||||
pkill -9 -f "${S}/sql" 2>/dev/null
|
||||
|
||||
local failures=""
|
||||
[[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit"
|
||||
[[ $retstatus_tests -eq 0 ]] || failures="${failures} tests"
|
||||
|
||||
[[ -z "$failures" ]] || eerror "Test failures: $failures"
|
||||
einfo "Tests successfully completed"
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST toml-0.2.0_p20160716.tar.gz 39914 SHA256 5a351a5ede5f4256f13cd371c6933125680f799350dee959b9341e6e26f8ff97 SHA512 c2109e913d5891bf62526b421c4be8c64823ef8ee7ea6dc8120b6f28881633fec1ea46cbb076859a15db011fbcdf900d9c6f9caae06c194135241c42cf65f11d WHIRLPOOL 346ae219d6f7cf6b10230fa1ab7ed79e2111516a500b573f6dfe1ad768229aa650d8a288d94f6d540524bc3bbc7dcfd916925eab8e0dc7420881205bb51a31b6
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>mrueg@gentoo.org</email>
|
||||
<name>Manuel Rüger</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">BurntSushi/toml</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -0,0 +1,35 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
EGO_PN="github.com/BurntSushi/toml"
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit golang-vcs
|
||||
else
|
||||
EGIT_COMMIT="99064174e013895bbd9b025c31100bd1d9b590ca"
|
||||
SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~ppc64"
|
||||
inherit golang-vcs-snapshot
|
||||
fi
|
||||
|
||||
DESCRIPTION="TOML parser for Golang with reflection"
|
||||
HOMEPAGE="http://github.com/BurntSushi/toml"
|
||||
|
||||
LICENSE="WTFPL-2"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
S=${WORKDIR}/${P}/src/${EGO_PN}
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
src_compile() {
|
||||
GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" go build -o "bin/tomlv" ./cmd/tomlv || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodoc README.md
|
||||
dobin bin/tomlv
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
EGO_PN="github.com/BurntSushi/toml"
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit golang-vcs
|
||||
else
|
||||
EGIT_COMMIT="99064174e013895bbd9b025c31100bd1d9b590ca"
|
||||
SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~ppc64"
|
||||
inherit golang-vcs-snapshot
|
||||
fi
|
||||
|
||||
DESCRIPTION="TOML parser for Golang with reflection"
|
||||
HOMEPAGE="http://github.com/BurntSushi/toml"
|
||||
|
||||
LICENSE="WTFPL-2"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
S=${WORKDIR}/${P}/src/${EGO_PN}
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
src_compile() {
|
||||
GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" go build -o "bin/tomlv" ./cmd/tomlv || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodoc README.md
|
||||
dobin bin/tomlv
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
DIST ocaml-3.12.1.tar.bz2 2949124 SHA256 edcf563da75e0b91f09765649caa98ab1535e0c7498f0737b5591b7de084958d SHA512 cbb050aabcbe19a4aa070d6cb74f3774cb136692dfd9433ca977f0f9520ad2f583b6cfb1a9cedfedc92e7dc794ac4a869e20aa5a67a4739002feb290435dc7e7 WHIRLPOOL b7bf4844452ab52027e6b785159df6e4defc548d2f3d31eb73dc0dc05214e7c19ed654c8b3ff234a85691599df0be568ba02fafe257856be7f603177584a7ca0
|
||||
DIST ocaml-4.02.3.tar.xz 2058552 SHA256 83c6697e135b599a196fd7936eaf8a53dd6b8f3155a796d18407b56f91df9ce3 SHA512 a815421f6a320b18e7f351bd66884024ad4a33525ba161a198ea356892ce331be6c1ddf4cd07d120ebe9a902bcf815ce1b17e45f405e4e0b2d55ce1b6d2adada WHIRLPOOL 1104cdcf23b773ebf0c0ef8d8ee36b2b4b58b1fab10a41ff7f2d522c34ae6161bc6cba28b279eea03ac183a111fc332557084b017d0c2ad6f9c969204e309597
|
||||
DIST ocaml-4.03.0.tar.xz 2289296 SHA256 695caf381105183f9d37bcfb63f863f782352b070e5d7ff3ca269712398fe326 SHA512 9a7f4b17d459373334fb04f8a0d42732243245bf16bc35c935fb2119c7990d0c85549b2e11adea68a98a0a0171a461ccfbb2e249b59eedf90349f087a18ce243 WHIRLPOOL 9c822f7c66494a6e7fc30e565e7c8d120808a15b42cd64ccad0946f8413da44b50ec84dfd658e8f394dce4effe7eda380a0a203db14df9dfc24c7b54f7681cea
|
||||
DIST ocaml-4.04.0-beta2.tar.gz 4038155 SHA256 80af1912fd600fa1f182974d243170aef71909910de101f11fdafaeb5f0ae457 SHA512 73361ad4e06c27c5dcf8e53fdb0677d77bc1c01aa93f378c389cc7da3ff7d988acb1656f934fefc21b199ff8d47cb9eb5236dc4b045f21da9bc2785889598073 WHIRLPOOL 23e657254108341b0534039664f4c76a2004db960299826d13f8233b38bfe16c1384594d5272bc1c3131acacbcd74430bb13bbd8612bed1f5083be653dd47541
|
||||
DIST ocaml-4.04.0.tar.gz 4057711 SHA256 03e49d09d5a509216ca0cc8fccd10df3ad9dd441d7633e89974a74e149be3c51 SHA512 288c514e7ccfe29fe9a65239d04f000b3b05df71f15bc05b3e5af50cb233544b4fec22baad69f60de587e8f0f8f65ee023a5b709896a1a68f9fd6fe30b81344d WHIRLPOOL 91fea4195ed84fb97f2ae68e30f47ce60a2404bc47ca809f6e0d182dd755833ea16a2e033ee0a02fab008f5905a2a9b6fa8dc2194c75b8d9daa353eb6b1d70e9
|
||||
DIST ocaml-patches-3.tar.bz2 4101 SHA256 c4ceb604f4480c78d1cf4f848b0903c8d37798d9761f582d8d1643d4e38b8658 SHA512 8be5c44de5a6b0b7c14723e41d92fe807b881b218cc5eee38ea7519c0f971415cb7fe30035303da275089dcb8a61c4f334c4a88e0bdbced3953503794b8308a7 WHIRLPOOL f1920606785702c44dead01b1426145653bc1931acba2d614c6818baddc051e4f74ca0322cae66ade63ba0cd0df5651cfd67f511fca5f12973b67a0c50ebab6d
|
||||
DIST ocaml-patches-7.tar.bz2 2194 SHA256 71e9496af89ded9852d8e1f32be18a5f0d7e11270958fb4bc8c588420b1e9156 SHA512 63bca96f009e2de24ff6f7a4b37b97c5b7655d5ad6196f06cc2b18ca213e87878a310d169378c341c00aaac698530e458e301620bcc21284bc8b9ea143f642dd WHIRLPOOL 02d17436f901c70b2fa8a104d8b7a6526c65ab9b40408b549c4f4dfe7a1eeae8213620d151fb181833782504e4d7cb6fa3ff7ddebe77efcb88d32fe057cbd8cc
|
||||
DIST ocaml-patches-8.tar.bz2 1803 SHA256 bce7ea483842f6e201cdf3de266928b39b5b45322315010291ed28f811720525 SHA512 fc477fbb5bdec60a3c4d3dfa110119bb579560ac0e0e57e30e076da72643bda6359c06fd3745fd3436c5d611dbbd888ec2921e9d1920f4929df633c35a797411 WHIRLPOOL ae73b5377744add3afce012b5745fafd70c0f92f75cd6cf91560e0f2ba359a91f7276afed13db145c307be9fdf79c339c2c69be6946565354c68d701fa61a4be
|
||||
|
@ -0,0 +1,69 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit eutils flag-o-matic multilib-minimal
|
||||
|
||||
DESCRIPTION="Libraries/utilities to handle ELF objects (drop in replacement for libelf)"
|
||||
HOMEPAGE="https://fedorahosted.org/elfutils/"
|
||||
SRC_URI="https://fedorahosted.org/releases/e/l/${PN}/${PV}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2-with-exceptions"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux"
|
||||
IUSE="bzip2 lzma nls static-libs test +threads +utils"
|
||||
|
||||
# This pkg does not actually seem to compile currently in a uClibc
|
||||
# environment (xrealloc errs), but we need to ensure that glibc never
|
||||
# gets pulled in as a dep since this package does not respect virtual/libc
|
||||
RDEPEND=">=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}]
|
||||
bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] )
|
||||
lzma? ( >=app-arch/xz-utils-5.0.5-r1[${MULTILIB_USEDEP}] )
|
||||
!dev-libs/libelf
|
||||
abi_x86_32? (
|
||||
!<=app-emulation/emul-linux-x86-baselibs-20130224-r11
|
||||
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
nls? ( sys-devel/gettext )
|
||||
>=sys-devel/flex-2.5.4a
|
||||
sys-devel/m4"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-0.118-PaX-support.patch
|
||||
use static-libs || sed -i -e '/^lib_LIBRARIES/s:=.*:=:' -e '/^%.os/s:%.o$::' lib{asm,dw,elf}/Makefile.in
|
||||
sed -i 's:-Werror::' */Makefile.in
|
||||
# some patches touch both configure and configure.ac
|
||||
find -type f -exec touch -r configure {} +
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
use test && append-flags -g #407135
|
||||
multilib-minimal_src_configure
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
ECONF_SOURCE="${S}" econf \
|
||||
$(use_enable nls) \
|
||||
$(use_enable threads thread-safety) \
|
||||
--program-prefix="eu-" \
|
||||
--with-zlib \
|
||||
$(use_with bzip2 bzlib) \
|
||||
$(use_with lzma)
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
env LD_LIBRARY_PATH="${BUILD_DIR}/libelf:${BUILD_DIR}/libebl:${BUILD_DIR}/libdw:${BUILD_DIR}/libasm" \
|
||||
LC_ALL="C" \
|
||||
emake check || die
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
dodoc NOTES
|
||||
# These build quick, and are needed for most tests, so don't
|
||||
# disable their building when the USE flag is disabled.
|
||||
use utils || rm -rf "${ED}"/usr/bin
|
||||
}
|
@ -0,0 +1,241 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
inherit multilib eutils flag-o-matic pax-utils
|
||||
|
||||
#same order as http://www.sbcl.org/platform-table.html
|
||||
BV_X86=1.2.7
|
||||
BV_AMD64=1.3.11
|
||||
BV_PPC=1.2.7
|
||||
BV_SPARC=1.0.28
|
||||
BV_ALPHA=1.0.28
|
||||
BV_ARM=1.3.9
|
||||
BV_ARM64=1.3.11
|
||||
BV_PPC_MACOS=1.0.47
|
||||
BV_X86_MACOS=1.1.6
|
||||
BV_X64_MACOS=1.2.11
|
||||
BV_SPARC_SOLARIS=1.0.23
|
||||
BV_X86_SOLARIS=1.2.7
|
||||
BV_X64_SOLARIS=1.2.7
|
||||
|
||||
DESCRIPTION="Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp"
|
||||
HOMEPAGE="http://sbcl.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/sbcl/${P}-source.tar.bz2
|
||||
x86? ( mirror://sourceforge/sbcl/${PN}-${BV_X86}-x86-linux-binary.tar.bz2 )
|
||||
amd64? ( mirror://sourceforge/sbcl/${PN}-${BV_AMD64}-x86-64-linux-binary.tar.bz2 )
|
||||
ppc? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC}-powerpc-linux-binary.tar.bz2 )
|
||||
sparc? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC}-sparc-linux-binary.tar.bz2 )
|
||||
alpha? ( mirror://sourceforge/sbcl/${PN}-${BV_ALPHA}-alpha-linux-binary.tar.bz2 )
|
||||
arm? ( mirror://sourceforge/sbcl/${PN}-${BV_ARM}-armhf-linux-binary.tar.bz2 )
|
||||
ppc-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_PPC_MACOS}-powerpc-darwin-binary.tar.bz2 )
|
||||
x86-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_MACOS}-x86-darwin-binary.tar.bz2 )
|
||||
x64-macos? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_MACOS}-x86-64-darwin-binary.tar.bz2 )
|
||||
sparc-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_SPARC_SOLARIS}-sparc-solaris-binary.tar.bz2 )
|
||||
x86-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X86_SOLARIS}-x86-solaris-binary.tar.bz2 )
|
||||
x64-solaris? ( mirror://sourceforge/sbcl/${PN}-${BV_X64_SOLARIS}-x86-64-solaris-binary.tar.bz2 )"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x86-solaris"
|
||||
IUSE="debug doc source +threads +unicode pax_kernel zlib"
|
||||
|
||||
CDEPEND=">=dev-lisp/asdf-3.1:="
|
||||
DEPEND="${CDEPEND}
|
||||
doc? ( sys-apps/texinfo >=media-gfx/graphviz-2.26.0 )
|
||||
pax_kernel? ( sys-apps/elfix )"
|
||||
RDEPEND="${CDEPEND}
|
||||
!prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.6 ) )"
|
||||
|
||||
# Disable warnings about executable stacks, as this won't be fixed soon by upstream
|
||||
QA_EXECSTACK="usr/bin/sbcl"
|
||||
|
||||
CONFIG="${S}/customize-target-features.lisp"
|
||||
ENVD="${T}/50sbcl"
|
||||
|
||||
# Prevent ASDF from using the system libraries
|
||||
CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)"
|
||||
ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)"
|
||||
|
||||
usep() {
|
||||
use ${1} && echo "true" || echo "false"
|
||||
}
|
||||
|
||||
sbcl_feature() {
|
||||
echo "$( [[ ${1} == "true" ]] && echo "(enable ${2})" || echo "(disable ${2})")" >> "${CONFIG}"
|
||||
}
|
||||
|
||||
sbcl_apply_features() {
|
||||
sed 's/^X//' > "${CONFIG}" <<-'EOF'
|
||||
(lambda (list)
|
||||
X (flet ((enable (x) (pushnew x list))
|
||||
X (disable (x) (setf list (remove x list))))
|
||||
EOF
|
||||
if use x86 || use amd64; then
|
||||
sbcl_feature "$(usep threads)" ":sb-thread"
|
||||
fi
|
||||
sbcl_feature "true" ":sb-ldb"
|
||||
sbcl_feature "false" ":sb-test"
|
||||
sbcl_feature "$(usep unicode)" ":sb-unicode"
|
||||
sbcl_feature "$(usep zlib)" ":sb-core-compression"
|
||||
sbcl_feature "$(usep debug)" ":sb-xref-for-internals"
|
||||
sed 's/^X//' >> "${CONFIG}" <<-'EOF'
|
||||
X )
|
||||
X list)
|
||||
EOF
|
||||
cat "${CONFIG}"
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
mv sbcl-*-* sbcl-binary || die
|
||||
cd "${S}"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply "${FILESDIR}"/gentoo-fix_install_man.patch
|
||||
# bug #468482
|
||||
eapply "${FILESDIR}"/concurrency-test-1.2.6.patch
|
||||
# bugs #486552, #527666, #517004
|
||||
eapply "${FILESDIR}"/bsd-sockets-test-1.2.11.patch
|
||||
# bugs #560276, #561018
|
||||
eapply "${FILESDIR}"/sb-posix-test-1.2.15.patch
|
||||
|
||||
eapply "${FILESDIR}"/${PN}-1.2.11-solaris.patch
|
||||
eapply "${FILESDIR}"/${PN}-1.2.13-verbose-build.patch
|
||||
|
||||
# To make the hardened compiler NOT compile with -fPIE -pie
|
||||
if gcc-specs-pie ; then
|
||||
einfo "Disabling PIE..."
|
||||
eapply "${FILESDIR}"/${PN}-1.1.17-gentoo-fix_nopie_for_hardened_toolchain.patch
|
||||
fi
|
||||
|
||||
eapply_user
|
||||
|
||||
# bug #526194
|
||||
sed -e "s@CFLAGS =.*\$@CFLAGS = ${CFLAGS} -g -Wall -Wsign-compare@" \
|
||||
-e "s@LINKFLAGS =.*\$@LINKFLAGS = ${LDFLAGS} -g@" \
|
||||
-i src/runtime/GNUmakefile || die
|
||||
|
||||
sed -e "s@SBCL_PREFIX=\"/usr/local\"@SBCL_PREFIX=\"${EPREFIX}/usr\"@" \
|
||||
-i make-config.sh || die
|
||||
|
||||
cp "${EPREFIX}"/usr/share/common-lisp/source/asdf/build/asdf.lisp contrib/asdf/ || die
|
||||
|
||||
use source && sed 's%"$(BUILD_ROOT)%$(MODULE).lisp "$(BUILD_ROOT)%' -i contrib/vanilla-module.mk
|
||||
|
||||
# Some shells(such as dash) don't have "time" as builtin
|
||||
# and we don't want to DEPEND on sys-process/time
|
||||
sed "s,^time ,," -i make.sh || die
|
||||
sed "s,/lib,/$(get_libdir),g" -i install.sh || die
|
||||
# #define SBCL_HOME ...
|
||||
sed "s,/usr/local/lib,${EPREFIX}/usr/$(get_libdir),g" -i src/runtime/runtime.c || die
|
||||
# change location of /etc/sbclrc ...
|
||||
sed "s,/etc/sbclrc,${EPREFIX}/etc/sbclrc,g" -i src/code/toplevel.lisp || die
|
||||
|
||||
find . -type f -name .cvsignore -delete
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# customizing SBCL version as per
|
||||
# http://sbcl.cvs.sourceforge.net/sbcl/sbcl/doc/PACKAGING-SBCL.txt?view=markup
|
||||
echo -e ";;; Auto-generated by Gentoo\n\"gentoo-${PR}\"" > branch-version.lisp-expr
|
||||
|
||||
# applying customizations
|
||||
sbcl_apply_features
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local bindir="${WORKDIR}"/sbcl-binary
|
||||
|
||||
strip-unsupported-flags ; filter-flags -fomit-frame-pointer
|
||||
|
||||
if use pax_kernel ; then
|
||||
# To disable PaX on hardened systems
|
||||
pax-mark -mr "${bindir}"/src/runtime/sbcl
|
||||
|
||||
# Hack to disable PaX on second GENESIS stage
|
||||
sed -i -e '/^[ \t]*echo \/\/doing warm init - compilation phase$/a\ paxmark.sh -mr \.\/src\/runtime\/sbcl' \
|
||||
"${S}"/make-target-2.sh || die "Cannot disable PaX on second GENESIS runtime"
|
||||
fi
|
||||
|
||||
# clear the environment to get rid of non-ASCII strings, see bug 174702
|
||||
# set HOME for paludis
|
||||
env - HOME="${T}" PATH="${PATH}" \
|
||||
CC="$(tc-getCC)" AS="$(tc-getAS)" LD="$(tc-getLD)" \
|
||||
CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}" ASFLAGS="${ASFLAGS}" LDFLAGS="${LDFLAGS}" \
|
||||
GNUMAKE=make ./make.sh \
|
||||
"sh ${bindir}/run-sbcl.sh --no-sysinit --no-userinit --disable-debugger" \
|
||||
|| die "make failed"
|
||||
|
||||
# need to set HOME because libpango(used by graphviz) complains about it
|
||||
if use doc; then
|
||||
env - HOME="${T}" PATH="${PATH}" \
|
||||
CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
|
||||
ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
|
||||
make -C doc/manual info html || die "Cannot build manual"
|
||||
env - HOME="${T}" PATH="${PATH}" \
|
||||
CL_SOURCE_REGISTRY="(:source-registry :ignore-inherited-configuration)" \
|
||||
ASDF_OUTPUT_TRANSLATIONS="(:output-translations :ignore-inherited-configuration)" \
|
||||
make -C doc/internals info html || die "Cannot build internal docs"
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
ewarn "Unfortunately, it is known that some tests fail eg."
|
||||
ewarn "run-program.impure.lisp. This is an issue of the upstream's"
|
||||
ewarn "development and not of Gentoo's side. Please, before filing"
|
||||
ewarn "any bug(s) search for older submissions. Thank you."
|
||||
time ( cd tests && sh run-tests.sh )
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# install system-wide initfile
|
||||
dodir /etc/
|
||||
sed 's/^X//' > "${ED}"/etc/sbclrc <<-EOF
|
||||
;;; The following is required if you want source location functions to
|
||||
;;; work in SLIME, for example.
|
||||
X
|
||||
(setf (logical-pathname-translations "SYS")
|
||||
X '(("SYS:SRC;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/src/**/*.*")
|
||||
X ("SYS:CONTRIB;**;*.*.*" #p"${EPREFIX}/usr/$(get_libdir)/sbcl/**/*.*")))
|
||||
X
|
||||
;;; Setup ASDF2
|
||||
(load "${EPREFIX}/etc/common-lisp/gentoo-init.lisp")
|
||||
EOF
|
||||
|
||||
# Install documentation
|
||||
unset SBCL_HOME
|
||||
INSTALL_ROOT="${ED}/usr" LIB_DIR="${EPREFIX}/usr/$(get_libdir)" DOC_DIR="${ED}/usr/share/doc/${PF}" \
|
||||
sh install.sh || die "install.sh failed"
|
||||
|
||||
# bug #517008
|
||||
pax-mark -mr "${D}"/usr/bin/sbcl
|
||||
|
||||
# rm empty directories lest paludis complain about this
|
||||
find "${ED}" -empty -type d -exec rmdir -v {} +
|
||||
|
||||
if use doc; then
|
||||
dodoc -r doc/internals/sbcl-internals
|
||||
|
||||
doinfo doc/manual/*.info*
|
||||
doinfo doc/internals/sbcl-internals.info
|
||||
|
||||
docinto internals-notes
|
||||
dodoc doc/internals-notes/*
|
||||
else
|
||||
rm -Rv "${ED}/usr/share/doc/${PF}" || die
|
||||
fi
|
||||
|
||||
# install the SBCL source
|
||||
if use source; then
|
||||
./clean.sh
|
||||
cp -av src "${ED}/usr/$(get_libdir)/sbcl/" || die
|
||||
fi
|
||||
|
||||
# necessary for running newly-saved images
|
||||
echo "SBCL_HOME=${EPREFIX}/usr/$(get_libdir)/${PN}" > "${ENVD}"
|
||||
echo "SBCL_SOURCE_ROOT=${EPREFIX}/usr/$(get_libdir)/${PN}/src" >> "${ENVD}"
|
||||
doenvd "${ENVD}"
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST extlib-1.5.4.tar.gz 71003 SHA256 df142ba5a04ccbd4b239a124bd0f634989781b4da63e517c05a036fd419cd9cd SHA512 f70ea54c50499dd8be47b1ee001119a6b6b3c8b29995a2bfb93181dc86790727122d330e67147d00d1c8aff02c263dc1ea954ac2f2ad34f76f5e45f5779c2ea7 WHIRLPOOL 499291050623f27e001ef92f9eea94bdaf1abe5fbd91c6bcad445e747e56f670c3250140c24268b08227dace6da99745407b02cbb7f877687b912dc5d85005e6
|
||||
DIST extlib-1.6.1.tar.gz 72780 SHA256 88d4b3638cb4da4e04d81ba157e7235e744373c5784cf4b906570d07b890aeca SHA512 9473f474bee99248bdc5e3c56741a191a8f0b89dbf750a4d9e92692b7871c997c584a2dc7e57f55b36b5ddcaf7a11d45b490b117ac15806e35813b82b696f541 WHIRLPOOL 0dc27bad6223de1a1d75684f9caba8708e6c6a80f046c4604fe4bd9da5f860b17be180e3a8d0cdc817e1d99fd6c9feec62a2696b5d78e5706e89ea02460d2d40
|
||||
DIST extlib-1.7.0.tar.gz 83327 SHA256 3c9fd159a4ec401559905f96e578317a4933452ced9a7f3a4f89f9c7130d9a63 SHA512 3f268e22f7f415e81bbc07c28561fc067ca87748fcdcb6515691d1270858f452ec2ba0eb7b80ca29f06b40f01c1e89a6b71380c7d9de37c60d2bb86093cb8be2 WHIRLPOOL e993986e09a39844b828531e3381954582323c6806ddd48b39c56f511e27a9b6d5f3f9605e02b5dc0698041cd909d4450e28780303ca57884a78eebbd5c37f6d
|
||||
DIST extlib-1.7.1.tar.gz 85397 SHA256 872a492be08bb99ddac7512ec190625718359458b79cfc710f40d5a967f628eb SHA512 42ea1be22a57ab31e5857df0c4c0f98a07e1b5958b34181cd5ab7c83ded112c208315d22cd3dd178d53e75ca109a70cb47ae479e95be8c47ea2087b1a158dc4d WHIRLPOOL 70be2855559fdf217ffb392ad47a2b0d3ec22467a5fcfe48158b85b64f64051cf43c8ae585949ccacdc7f6e257b26523fd91942bffd5c4b28a73a5c4566145fc
|
||||
|
@ -0,0 +1,48 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit findlib eutils
|
||||
|
||||
DESCRIPTION="Standard library extensions for O'Caml"
|
||||
HOMEPAGE="https://github.com/ygrek/ocaml-extlib"
|
||||
SRC_URI="https://github.com/ygrek/ocaml-extlib/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
LICENSE="LGPL-2.1"
|
||||
DEPEND="
|
||||
>=dev-lang/ocaml-3.10.2:=[ocamlopt?]
|
||||
dev-ml/cppo:=
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~amd64-linux ~x86-linux ~ppc-macos"
|
||||
IUSE="doc +ocamlopt"
|
||||
S="${WORKDIR}/ocaml-${P}"
|
||||
|
||||
src_compile() {
|
||||
cd src
|
||||
emake -j1 all
|
||||
if use ocamlopt; then
|
||||
emake opt cmxs
|
||||
fi
|
||||
|
||||
if use doc; then
|
||||
emake doc
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake -j1 test
|
||||
}
|
||||
|
||||
src_install () {
|
||||
findlib_src_install
|
||||
|
||||
# install documentation
|
||||
dodoc README.md
|
||||
|
||||
if use doc; then
|
||||
dohtml src/doc/*
|
||||
fi
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST menhir-20160526.tar.gz 731071 SHA256 dac27e31b360331cbac92d6cafb917e52058cb5bb8301337c3c626a161c7dec4 SHA512 9f1dce28675263542558cd65249aee85d3ee9586b8779316d404074ee0fa0db4e5be6f4dbe1ec7b81e262d99a71294a44260e4eeba4aecc4a8bb4010bd0b12c1 WHIRLPOOL f5d059f4a2fb8a235e5be5571ab15d191fb8a8251901a71968ae1253f0872af2a9b3747ca5d2649e8c01d2b004b589b3336e6f114b8268fbfa2f0f223e9de2c0
|
||||
DIST menhir-20160808.tar.gz 733224 SHA256 c583a425ad1152bb4f93e4a8de384e0174f423485463dc6ab6b6d7c070b77295 SHA512 162e69642ca34d7da078f14b4509ab88e158cc4ba5ee70a067b7a2a2ea444f7cad77244de4a179c4a00420442c537f662257f1ead03dc9b80c799da0073a94b9 WHIRLPOOL 80b7e5047619d6c791477677ac22b625cfed00056e62759f7a3d725fbb791fff26b852d7126d475426db84eb71c55b480812760f89d40b09672afc676b5488ea
|
||||
DIST menhir-20160825.tar.gz 733364 SHA256 1c93fe44de140aeef25212fbc2d62aaa080e7bdb9902106820920f7a8a2fa849 SHA512 6672bf3a10c7cb3ac8a16162e782261e25411f5d7fe69195b720302989daa432c56c9ecf93a08d33e77b306cd0cdaaa4bc00430e642b4d2924cbeecb10bda050 WHIRLPOOL e6ce0ca104f69fedf6b22749db6400f963181497e940f7e3369e3bb9de115944e6a93350062797034c38f8ddcd6466cd44b74d3f60ca8f5f4e06a44a91194008
|
||||
DIST menhir-20161114.tar.gz 736454 SHA256 7327d6010ffb5a62371faad58e454a56244d20358a9e733e86e5714baedf5f14 SHA512 6ec810e30df00805ebc05f58130c4c4f86dffc96f4c9852d9574d7d948cd4a51901da2ece7b954c06550124dc3fe7f5ce9482b4280d3e0b6e7f33519b7aa89b2 WHIRLPOOL 608a3449f02d8f27cc1b39f6fb3504563d4ce86e3afdce2c8742238046966b68d3ca898acfef7c630195ff5413a4a6ed7fbfe843c5e25886042b78badda79890
|
||||
|
@ -0,0 +1,37 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit findlib eutils
|
||||
|
||||
DESCRIPTION="LR(1) parser generator for the OCaml language"
|
||||
HOMEPAGE="http://gallium.inria.fr/~fpottier/menhir/"
|
||||
SRC_URI="http://gallium.inria.fr/~fpottier/menhir/${P}.tar.gz"
|
||||
|
||||
LICENSE="QPL-1.0 LGPL-2-with-linking-exception"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="examples +ocamlopt"
|
||||
|
||||
RDEPEND=">=dev-lang/ocaml-4.02:=[ocamlopt?]"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-ml/ocamlbuild"
|
||||
|
||||
src_configure() {
|
||||
if ! use ocamlopt ; then
|
||||
export TARGET=byte
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake PREFIX="${EPREFIX}"/usr -j1
|
||||
}
|
||||
|
||||
src_install() {
|
||||
findlib_src_preinst
|
||||
emake PREFIX="${ED}"/usr docdir="${ED}"/usr/share/doc/"${PF}" $(use examples || echo "DOCS=manual.pdf") install
|
||||
use examples && docompress -x /usr/share/doc/${PF}/demos
|
||||
dodoc AUTHORS CHANGES
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST ocaml-extunix-0.1.3.tar.gz 102543 SHA256 f4d487b2fdc001df28776d33f96666ecefb0f927227bbb3b8f17602b3d6dffb8 SHA512 c528dd3d8984cb13676ceae70e02f8defb3181a122b66f01b39587d97d0ab5922451407becca1073f42ef56331e51664634502d3795589beb3537e499c3bc3b9 WHIRLPOOL d344cc1c47491d5c1d71950f0a1bc793afe00e283ba12f303681c172636e58b85ef6398a200b3d3e77aa8f32766d3bbd768fd7af62dd875747f3f584fe7b77a3
|
||||
DIST ocaml-extunix-0.1.4.tar.gz 104306 SHA256 569ffc01616f14657ae4650d8971681f74198fc2f8f5764c89d3819885b3ed91 SHA512 a2226235a5aa527a588bb5cfc163fb0767b0d8eb888cd0c902f69d6084f2252d38695c9f98b74e72726ab55753d739483cf5b9a9387206fd35b0b0578a7c30df WHIRLPOOL ab1da118f17294ce2272904b1eead3d0a41ec02840db986593a7a56a0d5ce0aebd43efc2cd00c527e425956f8518dbdc697ad1eab8dfa55fe77ebbcfa5db88e7
|
||||
|
@ -0,0 +1,24 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
OASIS_BUILD_TESTS=1
|
||||
OASIS_BUILD_DOCS=1
|
||||
|
||||
inherit oasis
|
||||
|
||||
DESCRIPTION="Thin bindings to various low-level system APIs"
|
||||
HOMEPAGE="http://extunix.forge.ocamlcore.org/"
|
||||
SRC_URI="http://ygrek.org.ua/p/release/ocaml-extunix/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1-with-linking-exception"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-ml/camlp4:="
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( dev-ml/ounit )"
|
||||
DOCS=( "README.md" "TODO" "CHANGES.txt" )
|
@ -1,31 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
MODULE_AUTHOR=CFAERBER
|
||||
MODULE_VERSION=1.073
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION='Simple calculations with RGB colors'
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND=">=dev-perl/Graphics-ColorNames-2.100.0
|
||||
>=dev-perl/Graphics-ColorNames-WWW-0.10.0
|
||||
>=dev-perl/Graphics-ColorObject-0.5.0
|
||||
>=dev-perl/Params-Validate-0.75"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
dev-perl/Test-NoWarnings
|
||||
>=dev-perl/Module-Build-0.380.0
|
||||
virtual/perl-Test-Simple
|
||||
test? (
|
||||
dev-perl/Test-Pod
|
||||
dev-perl/Test-Pod-Coverage
|
||||
)"
|
||||
|
||||
SRC_TEST="do"
|
@ -1,2 +1 @@
|
||||
DIST Color-Calc-1.073.tar.gz 26949 SHA256 f474253f0017691fc8473e0bcd3e6b7de4948a81fa90d39dee2e4eedb2f12323 SHA512 5f19cb8a2acc992877978cf6eaf8a81629727306ee913a415a736f5cf0d75426fe7783e2c3b7cf52c52ca3a90617f7bc365ab1330ccf5e4b6204c68184d7b52e WHIRLPOOL 85a2af7f0a680ea551f93fe3a67ebeb26e97381dd4708cb8d389386a0f12a4f458257d1d1fe0941585ea7b7b9c2a50512a5ee30aa594cc5b8d5567b5a29320a8
|
||||
DIST Color-Calc-1.074.tar.gz 27254 SHA256 6bd35735ca1208e1628f962c1be9b0bc48762097b09017cfe32ce9d0858c76c1 SHA512 9902ada0599f4d1a499226398943e460a5ed470d2c5d4d1992036c186a6962d6b9ea35a436541339717e613fb249b7d43de81a6dfc1ba237fcf9350782aab3ac WHIRLPOOL 68d5af7f9b8df61b068328de39e2b055baeb8b6afd87cf3d1ce0fd36ab9486e3b3e6ffa5df810dd0b34e2f4a4a6dcdfc955f793b26bed7c02b1868e58c7d1b60
|
||||
|
@ -0,0 +1 @@
|
||||
DIST PythonQt3.1.zip 4526699 SHA256 2fcb07f6e3e63bc5299ff968b64ca35e05c3f599fe0965285ae92b2317f0f940 SHA512 b3c208e3f909ebb15d40a6e83385f03e6196a8439e39cad4f924e7b1e774edbce83680298ab032161619d1358696a0d073028860f68540aadd8028b712ae8fc1 WHIRLPOOL f21d5c44bae648a33011b30b70d4064f872d7637f89b40f8f907da33ae0bdca6812f880832e33b8f623e6a398bd5d6e7e5a9bea0df8c29efe5d96e31fbeb5d03
|
@ -0,0 +1,89 @@
|
||||
# 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} )
|
||||
|
||||
MY_P=${PN}${PV}
|
||||
|
||||
inherit qmake-utils python-single-r1
|
||||
|
||||
DESCRIPTION="A dynamic Python binding for the Qt framework"
|
||||
HOMEPAGE="http://pythonqt.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/pythonqt/pythonqt/${P}/${MY_P}.zip"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc +extensions webkit"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtwidgets:5
|
||||
extensions? (
|
||||
dev-qt/designer:5
|
||||
dev-qt/qtdeclarative:5[widgets]
|
||||
dev-qt/qtmultimedia:5[widgets]
|
||||
dev-qt/qtnetwork:5
|
||||
dev-qt/qtopengl:5
|
||||
dev-qt/qtprintsupport:5
|
||||
dev-qt/qtsql:5
|
||||
dev-qt/qtsvg:5
|
||||
dev-qt/qtxml:5
|
||||
dev-qt/qtxmlpatterns:5
|
||||
webkit? ( dev-qt/qtwebkit:5 )
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-qt/qtxml:5
|
||||
virtual/pkgconfig
|
||||
doc? ( app-doc/doxygen )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
REQUIRED_USE="webkit? ( extensions ) ${PYTHON_REQUIRED_USE}"
|
||||
|
||||
# Bring uitools back, backport other fixes from trunk
|
||||
PATCHES=( "${FILESDIR}/${P}-commit-433-441.patch" )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
if ! use extensions ; then
|
||||
sed -i '/SUBDIRS/s/extensions//' PythonQt.pro || die "sed for extensions"
|
||||
fi
|
||||
if ! use webkit ; then
|
||||
# Remove webkit support if not used
|
||||
sed -i '/qtHaveModule(webkit):CONFIG += PythonQtWebKit/d' \
|
||||
extensions/PythonQt_QtAll/PythonQt_QtAll.pro \
|
||||
|| die "sed for webkit"
|
||||
fi
|
||||
|
||||
# Unset python version to use python-config
|
||||
sed -i "/unix:PYTHON_VERSION=/s/2.7//" build/python.prf \
|
||||
|| die "sed for python version"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
eqmake5 PREFIX="${ED%/}"/usr
|
||||
}
|
||||
|
||||
src_install() {
|
||||
einstalldocs
|
||||
|
||||
# Includes
|
||||
insinto /usr/include/PythonQt
|
||||
doins -r src/*.h
|
||||
insinto /usr/include/PythonQt/gui
|
||||
doins -r src/gui/*.h
|
||||
|
||||
if use extensions ; then
|
||||
insinto /usr/include/PythonQt/extensions/PythonQt_QtAll
|
||||
doins -r extensions/PythonQt_QtAll/*.h
|
||||
fi
|
||||
|
||||
# Libraries
|
||||
dolib.so lib/libPythonQt*
|
||||
}
|
@ -0,0 +1,87 @@
|
||||
# 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} )
|
||||
|
||||
MY_P=${PN}${PV}
|
||||
|
||||
inherit qmake-utils python-single-r1 subversion
|
||||
|
||||
DESCRIPTION="A dynamic Python binding for the Qt framework"
|
||||
HOMEPAGE="http://pythonqt.sourceforge.net/"
|
||||
SRC_URI=""
|
||||
ESVN_REPO_URI="https://pythonqt.svn.sourceforge.net/svnroot/pythonqt/trunk"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS=""
|
||||
IUSE="doc +extensions webkit"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtwidgets:5
|
||||
extensions? (
|
||||
dev-qt/designer:5
|
||||
dev-qt/qtdeclarative:5[widgets]
|
||||
dev-qt/qtmultimedia:5[widgets]
|
||||
dev-qt/qtnetwork:5
|
||||
dev-qt/qtopengl:5
|
||||
dev-qt/qtprintsupport:5
|
||||
dev-qt/qtsql:5
|
||||
dev-qt/qtsvg:5
|
||||
dev-qt/qtxml:5
|
||||
dev-qt/qtxmlpatterns:5
|
||||
webkit? ( dev-qt/qtwebkit:5 )
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-qt/qtxml:5
|
||||
virtual/pkgconfig
|
||||
doc? ( app-doc/doxygen )"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
REQUIRED_USE="webkit? ( extensions ) ${PYTHON_REQUIRED_USE}"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
if ! use extensions ; then
|
||||
sed -i '/SUBDIRS/s/extensions//' PythonQt.pro || die "sed for extensions"
|
||||
fi
|
||||
if ! use webkit ; then
|
||||
# Remove webkit support if not used
|
||||
sed -i '/qtHaveModule(webkit):CONFIG += PythonQtWebKit/d' \
|
||||
extensions/PythonQt_QtAll/PythonQt_QtAll.pro \
|
||||
|| die "sed for webkit"
|
||||
fi
|
||||
|
||||
# Unset python version to use python-config
|
||||
sed -i "/unix:PYTHON_VERSION=/s/2.7//" build/python.prf \
|
||||
|| die "sed for python version"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
eqmake5 PREFIX="${ED%/}"/usr
|
||||
}
|
||||
|
||||
src_install() {
|
||||
einstalldocs
|
||||
|
||||
# Includes
|
||||
insinto /usr/include/PythonQt
|
||||
doins -r src/*.h
|
||||
insinto /usr/include/PythonQt/gui
|
||||
doins -r src/gui/*.h
|
||||
|
||||
if use extensions ; then
|
||||
insinto /usr/include/PythonQt/extensions/PythonQt_QtAll
|
||||
doins -r extensions/PythonQt_QtAll/*.h
|
||||
fi
|
||||
|
||||
# Libraries
|
||||
dolib.so lib/libPythonQt*
|
||||
}
|
@ -0,0 +1,301 @@
|
||||
diff -uprNEBZ --suppress-blank-empty a/extensions/PythonQt_QtAll/PythonQt_QtAll.cpp b/extensions/PythonQt_QtAll/PythonQt_QtAll.cpp
|
||||
--- a/extensions/PythonQt_QtAll/PythonQt_QtAll.cpp 2016-06-09 06:46:16.000000000 -0500
|
||||
+++ b/extensions/PythonQt_QtAll/PythonQt_QtAll.cpp 2016-07-25 06:06:45.000000000 -0500
|
||||
@@ -45,6 +45,7 @@ void PythonQt_init_QtXmlPatterns(PyObjec
|
||||
void PythonQt_init_QtMultimedia(PyObject*);
|
||||
void PythonQt_init_QtQml(PyObject*);
|
||||
void PythonQt_init_QtQuick(PyObject*);
|
||||
+void PythonQt_init_QtUiTools(PyObject*);
|
||||
|
||||
#ifdef PYTHONQT_WITH_WEBKIT
|
||||
void PythonQt_init_QtWebKit(PyObject*);
|
||||
@@ -67,6 +68,7 @@ namespace PythonQt_QtAll
|
||||
PythonQt_init_QtMultimedia(0);
|
||||
PythonQt_init_QtQml(0);
|
||||
PythonQt_init_QtQuick(0);
|
||||
+ PythonQt_init_QtUiTools(0);
|
||||
};
|
||||
};
|
||||
|
||||
diff -uprNEBZ --suppress-blank-empty a/extensions/PythonQt_QtAll/PythonQt_QtAll.pro b/extensions/PythonQt_QtAll/PythonQt_QtAll.pro
|
||||
--- a/extensions/PythonQt_QtAll/PythonQt_QtAll.pro 2016-06-09 07:00:18.000000000 -0500
|
||||
+++ b/extensions/PythonQt_QtAll/PythonQt_QtAll.pro 2016-07-25 06:06:45.000000000 -0500
|
||||
@@ -21,7 +21,7 @@ SOURCES += \
|
||||
|
||||
QT += gui svg sql network xml xmlpatterns opengl
|
||||
QT += widgets printsupport multimedia multimediawidgets
|
||||
-QT += quick qml quickwidgets
|
||||
+QT += quick qml quickwidgets uitools
|
||||
|
||||
include ($$PYTHONQT_GENERATED_PATH/com_trolltech_qt_core/com_trolltech_qt_core.pri)
|
||||
include ($$PYTHONQT_GENERATED_PATH/com_trolltech_qt_gui/com_trolltech_qt_gui.pri)
|
||||
@@ -34,6 +34,7 @@ include ($$PYTHONQT_GENERATED_PATH/com_t
|
||||
include ($$PYTHONQT_GENERATED_PATH/com_trolltech_qt_multimedia/com_trolltech_qt_multimedia.pri)
|
||||
include ($$PYTHONQT_GENERATED_PATH/com_trolltech_qt_qml/com_trolltech_qt_qml.pri)
|
||||
include ($$PYTHONQT_GENERATED_PATH/com_trolltech_qt_quick/com_trolltech_qt_quick.pri)
|
||||
+include ($$PYTHONQT_GENERATED_PATH/com_trolltech_qt_uitools/com_trolltech_qt_uitools.pri)
|
||||
|
||||
PythonQtWebKit {
|
||||
QT += webkit webkitwidgets
|
||||
diff -uprNEBZ --suppress-blank-empty a/generator/abstractmetalang.cpp b/generator/abstractmetalang.cpp
|
||||
--- a/generator/abstractmetalang.cpp 2015-06-18 08:32:57.000000000 -0500
|
||||
+++ b/generator/abstractmetalang.cpp 2016-08-03 02:16:08.000000000 -0500
|
||||
@@ -838,14 +838,24 @@ AbstractMetaFunctionList AbstractMetaCla
|
||||
return returned;
|
||||
}
|
||||
|
||||
-bool AbstractMetaClass::hasDefaultIsNull() const
|
||||
+QString AbstractMetaClass::getDefaultNonZeroFunction() const
|
||||
{
|
||||
+ foreach(const AbstractMetaFunction* fun, queryFunctionsByName("isEmpty")) {
|
||||
+ if (fun->actualMinimumArgumentCount()==0 && fun->isPublic()) {
|
||||
+ return "isEmpty";
|
||||
+ }
|
||||
+ }
|
||||
+ foreach(const AbstractMetaFunction* fun, queryFunctionsByName("isValid")) {
|
||||
+ if (fun->actualMinimumArgumentCount() == 0 && fun->isPublic()) {
|
||||
+ return "isValid";
|
||||
+ }
|
||||
+ }
|
||||
foreach(const AbstractMetaFunction* fun, queryFunctionsByName("isNull")) {
|
||||
- if (fun->actualMinimumArgumentCount()==0) {
|
||||
- return true;
|
||||
+ if (fun->actualMinimumArgumentCount() == 0 && fun->isPublic()) {
|
||||
+ return "isNull";
|
||||
}
|
||||
}
|
||||
- return false;
|
||||
+ return QString();
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
||||
diff -uprNEBZ --suppress-blank-empty a/generator/abstractmetalang.h b/generator/abstractmetalang.h
|
||||
--- a/generator/abstractmetalang.h 2014-09-25 05:51:32.000000000 -0500
|
||||
+++ b/generator/abstractmetalang.h 2016-08-01 04:12:32.000000000 -0500
|
||||
@@ -800,7 +800,8 @@ public:
|
||||
void setHasCloneOperator(bool on) { m_has_clone_operator = on; }
|
||||
bool hasCloneOperator() const { return m_has_clone_operator; }
|
||||
|
||||
- bool hasDefaultIsNull() const;
|
||||
+ QString getDefaultNonZeroFunction() const;
|
||||
+
|
||||
void addPropertySpec(QPropertySpec *spec) { m_property_specs << spec; }
|
||||
QList<QPropertySpec *> propertySpecs() const { return m_property_specs; }
|
||||
|
||||
diff -uprNEBZ --suppress-blank-empty a/generator/merge.sh b/generator/merge.sh
|
||||
--- a/generator/merge.sh 1969-12-31 18:00:00.000000000 -0600
|
||||
+++ b/generator/merge.sh 2010-03-05 16:03:37.000000000 -0600
|
||||
@@ -0,0 +1,11 @@
|
||||
+#!/bin/sh
|
||||
+
|
||||
+xsltproc -o typesystem_core.xml --stringparam source 'typesystem_core-qtscript.xml' merge.xsl typesystem_core-common.xml
|
||||
+xsltproc -o typesystem_gui.xml --stringparam source 'typesystem_gui-qtscript.xml' merge.xsl typesystem_gui-common.xml
|
||||
+xsltproc -o typesystem_opengl.xml --stringparam source 'typesystem_opengl-qtscript.xml' merge.xsl typesystem_opengl-common.xml
|
||||
+xsltproc -o typesystem_network.xml --stringparam source 'typesystem_network-qtscript.xml' merge.xsl typesystem_network-common.xml
|
||||
+xsltproc -o typesystem_xml.xml --stringparam source 'typesystem_xml-qtscript.xml' merge.xsl typesystem_xml-common.xml
|
||||
+xsltproc -o typesystem_webkit.xml --stringparam source 'typesystem_webkit-qtscript.xml' merge.xsl typesystem_webkit-common.xml
|
||||
+xsltproc -o typesystem_sql.xml --stringparam source 'typesystem_sql-qtscript.xml' merge.xsl typesystem_sql-common.xml
|
||||
+xsltproc -o typesystem_svg.xml --stringparam source 'typesystem_svg-qtscript.xml' merge.xsl typesystem_svg-common.xml
|
||||
+xsltproc -o typesystem_xmlpatterns.xml --stringparam source 'typesystem_xmlpatterns-qtscript.xml' merge.xsl typesystem_xmlpatterns-common.xml
|
||||
\ No newline at end of file
|
||||
diff -uprNEBZ --suppress-blank-empty a/generator/setupgenerator.cpp b/generator/setupgenerator.cpp
|
||||
--- a/generator/setupgenerator.cpp 2016-05-03 04:25:38.000000000 -0500
|
||||
+++ b/generator/setupgenerator.cpp 2016-08-01 04:12:32.000000000 -0500
|
||||
@@ -105,7 +105,7 @@ static QStringList getOperatorCodes(cons
|
||||
r.insert("PythonQt::Type_InplaceXor");
|
||||
}
|
||||
}
|
||||
- if (cls->hasDefaultIsNull()) {
|
||||
+ if (!cls->getDefaultNonZeroFunction().isEmpty()) {
|
||||
r.insert("PythonQt::Type_NonZero");
|
||||
}
|
||||
|
||||
diff -uprNEBZ --suppress-blank-empty a/generator/shellheadergenerator.cpp b/generator/shellheadergenerator.cpp
|
||||
--- a/generator/shellheadergenerator.cpp 2016-05-10 10:01:30.000000000 -0500
|
||||
+++ b/generator/shellheadergenerator.cpp 2016-08-09 07:20:29.000000000 -0500
|
||||
@@ -267,7 +267,11 @@ void ShellHeaderGenerator::write(QTextSt
|
||||
QList<FlagsTypeEntry*> flags;
|
||||
foreach(AbstractMetaEnum* enum1, enums1) {
|
||||
// catch gadgets and enums that are not exported on QObjects...
|
||||
- if ((enum1->wasProtected() || enum1->wasPublic()) && (!meta_class->isQObject() || !enum1->hasQEnumsDeclaration())) {
|
||||
+ // since we don't parse Q_FLAG(S), we also need to generate for Q_ENUM which might
|
||||
+ // have a missing Q_FLAG(S) declaration.
|
||||
+ if ((enum1->wasProtected() || enum1->wasPublic()) &&
|
||||
+ (!meta_class->isQObject() || !enum1->hasQEnumsDeclaration() || enum1->typeEntry()->flags()))
|
||||
+ {
|
||||
enums << enum1;
|
||||
if (enum1->typeEntry()->flags()) {
|
||||
flags << enum1->typeEntry()->flags();
|
||||
@@ -395,8 +399,13 @@ void ShellHeaderGenerator::write(QTextSt
|
||||
if (meta_class->hasDefaultToStringFunction() || meta_class->hasToStringCapability()) {
|
||||
s << " QString py_toString(" << meta_class->qualifiedCppName() << "*);" << endl;
|
||||
}
|
||||
- if (meta_class->hasDefaultIsNull()) {
|
||||
- s << " bool __nonzero__(" << meta_class->qualifiedCppName() << "* obj) { return !obj->isNull(); }" << endl;
|
||||
+ QString nonZeroFunc = meta_class->getDefaultNonZeroFunction();
|
||||
+ if (!nonZeroFunc.isEmpty()) {
|
||||
+ s << " bool __nonzero__(" << meta_class->qualifiedCppName() << "* obj) { return ";
|
||||
+ if (nonZeroFunc != "isValid") {
|
||||
+ s << "!";
|
||||
+ }
|
||||
+ s << "obj->" << nonZeroFunc << "(); }" << endl;
|
||||
}
|
||||
|
||||
AbstractMetaFieldList fields = meta_class->fields();
|
||||
diff -uprNEBZ --suppress-blank-empty a/generator/typesystem_core.xml b/generator/typesystem_core.xml
|
||||
--- a/generator/typesystem_core.xml 2016-05-30 07:33:59.000000000 -0500
|
||||
+++ b/generator/typesystem_core.xml 2016-06-13 04:54:38.000000000 -0500
|
||||
@@ -550,6 +550,8 @@
|
||||
<rejection class="QObject" function-name="disconnectNotify"/>
|
||||
<rejection class="QObject" function-name="registerUserData"/>
|
||||
<rejection class="QProcess" function-name="pid"/>
|
||||
+ <rejection class="QProcess" function-name="setInheritHandles"/>
|
||||
+ <rejection class="QProcess" function-name="inheritHandles"/>
|
||||
<rejection class="QRegion" function-name="cleanUp"/>
|
||||
<rejection class="QSettings" function-name="registerFormat"/>
|
||||
<rejection class="QVector" function-name="back"/>
|
||||
diff -uprNEBZ --suppress-blank-empty a/generator/typesystem_gui.xml b/generator/typesystem_gui.xml
|
||||
--- a/generator/typesystem_gui.xml 2016-06-01 03:20:27.000000000 -0500
|
||||
+++ b/generator/typesystem_gui.xml 2016-06-20 04:58:59.000000000 -0500
|
||||
@@ -1307,6 +1307,17 @@ PyObject* constScanLine(QImage* image, i
|
||||
<object-type name="QWizard">
|
||||
<!-- ### Requires correct class name in meta object -->
|
||||
<modify-function signature="setDefaultProperty(const char *, const char *, const char *)" remove="all"/>
|
||||
+
|
||||
+ <modify-function signature="addPage(QWizardPage*)">
|
||||
+ <modify-argument index="1">
|
||||
+ <define-ownership owner="c++" />
|
||||
+ </modify-argument>
|
||||
+ </modify-function>
|
||||
+ <modify-function signature="setButton(QWizard::WizardButton, QAbstractButton*)">
|
||||
+ <modify-argument index="2">
|
||||
+ <define-ownership owner="c++" />
|
||||
+ </modify-argument>
|
||||
+ </modify-function>
|
||||
</object-type>
|
||||
<object-type name="QWizardPage">
|
||||
</object-type>
|
||||
diff -uprNEBZ --suppress-blank-empty a/src/PythonQtConversion.cpp b/src/PythonQtConversion.cpp
|
||||
--- a/src/PythonQtConversion.cpp 2016-06-02 07:30:53.000000000 -0500
|
||||
+++ b/src/PythonQtConversion.cpp 2016-07-21 08:36:40.000000000 -0500
|
||||
@@ -746,9 +746,14 @@ QString PythonQtConv::PyObjGetRepresenta
|
||||
QString PythonQtConv::PyObjGetString(PyObject* val, bool strict, bool& ok) {
|
||||
QString r;
|
||||
ok = true;
|
||||
+#ifndef PY3K
|
||||
+ // in Python 3, we don't want to convert to QString, since we don't know anything about the encoding
|
||||
+ // in Python 2, we assume the default for str is latin-1
|
||||
if (val->ob_type == &PyBytes_Type) {
|
||||
- r = QString(PyBytes_AS_STRING(val));
|
||||
- } else if (PyUnicode_Check(val)) {
|
||||
+ r = QString::fromLatin1(PyBytes_AS_STRING(val));
|
||||
+ } else
|
||||
+#endif
|
||||
+ if (PyUnicode_Check(val)) {
|
||||
#ifdef PY3K
|
||||
r = QString::fromUtf8(PyUnicode_AsUTF8(val));
|
||||
#else
|
||||
@@ -976,8 +981,15 @@ QVariant PythonQtConv::PyObjToQVariant(P
|
||||
#endif
|
||||
) {
|
||||
// no special type requested
|
||||
- if (PyBytes_Check(val) || PyUnicode_Check(val)) {
|
||||
- // NOTE: for compatibility reasons between Python 2/3 we don't use ByteArray for PyBytes_Type
|
||||
+ if (PyBytes_Check(val)) {
|
||||
+#ifdef PY3K
|
||||
+ // In Python 3, it is a ByteArray
|
||||
+ type = QVariant::ByteArray;
|
||||
+#else
|
||||
+ // In Python 2, we need to use String, since it might be a string
|
||||
+ type = QVariant::String;
|
||||
+#endif
|
||||
+ } else if (PyUnicode_Check(val)) {
|
||||
type = QVariant::String;
|
||||
} else if (val == Py_False || val == Py_True) {
|
||||
type = QVariant::Bool;
|
||||
@@ -1117,6 +1129,14 @@ QVariant PythonQtConv::PyObjToQVariant(P
|
||||
}
|
||||
|
||||
case QVariant::ByteArray:
|
||||
+ {
|
||||
+ bool ok;
|
||||
+#ifdef PY3K
|
||||
+ v = QVariant(PyObjGetBytes(val, false, ok));
|
||||
+#else
|
||||
+ v = QVariant(PyObjGetString(val, false, ok));
|
||||
+#endif
|
||||
+ }
|
||||
case QVariant::String:
|
||||
{
|
||||
bool ok;
|
||||
@@ -1504,7 +1524,7 @@ QByteArray PythonQtConv::getCPPTypeName(
|
||||
bool PythonQtConv::isStringType(PyTypeObject* type)
|
||||
{
|
||||
#ifdef PY3K
|
||||
- return type == &PyUnicode_Type
|
||||
+ return type == &PyUnicode_Type;
|
||||
#else
|
||||
return type == &PyUnicode_Type || type == &PyString_Type;
|
||||
#endif
|
||||
diff -uprNEBZ --suppress-blank-empty a/src/PythonQt.cpp b/src/PythonQt.cpp
|
||||
--- a/src/PythonQt.cpp 2016-05-23 02:31:11.000000000 -0500
|
||||
+++ b/src/PythonQt.cpp 2016-06-20 03:26:33.000000000 -0500
|
||||
@@ -1977,6 +1977,7 @@ void PythonQtPrivate::buildDynamicMetaOb
|
||||
// Now look for slots: (this is a bug in QMetaObjectBuilder, all signals need to be added first)
|
||||
while (PyDict_Next(dict, &pos, &key, &value)) {
|
||||
if (PythonQtProperty_Check(value)) {
|
||||
+ needsMetaObject = true;
|
||||
PythonQtProperty* prop = (PythonQtProperty*)value;
|
||||
QMetaPropertyBuilder newProp = builder.addProperty(PyString_AsString(key), prop->data->cppType);
|
||||
newProp.setReadable(true);
|
||||
diff -uprNEBZ --suppress-blank-empty a/src/PythonQtSlotDecorator.cpp b/src/PythonQtSlotDecorator.cpp
|
||||
--- a/src/PythonQtSlotDecorator.cpp 2016-05-19 10:22:41.000000000 -0500
|
||||
+++ b/src/PythonQtSlotDecorator.cpp 2016-07-21 08:36:40.000000000 -0500
|
||||
@@ -42,9 +42,9 @@ int PythonQtSlotDecorator_init(PyObject
|
||||
char* argName = 0;
|
||||
PyObject* argResult = 0;
|
||||
|
||||
- static char* kwlist[] = {"name", "result", 0};
|
||||
+ static const char* kwlist[] = {"name", "result", 0};
|
||||
static PyObject* emptyTuple = PyTuple_New(0);
|
||||
- if (!PyArg_ParseTupleAndKeywords(emptyTuple, kw, "|sO:QtCore.Slot", kwlist, &argName, &argResult)) {
|
||||
+ if (!PyArg_ParseTupleAndKeywords(emptyTuple, kw, "|sO:QtCore.Slot", (char**) kwlist, &argName, &argResult)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
diff -uprNEBZ --suppress-blank-empty a/src/PythonQtStdDecorators.cpp b/src/PythonQtStdDecorators.cpp
|
||||
--- a/src/PythonQtStdDecorators.cpp 2016-06-06 06:45:45.000000000 -0500
|
||||
+++ b/src/PythonQtStdDecorators.cpp 2016-06-20 03:26:33.000000000 -0500
|
||||
@@ -153,12 +153,12 @@ QVariant PythonQtStdDecorators::property
|
||||
return o->property(name);
|
||||
}
|
||||
|
||||
-QString PythonQtStdDecorators::tr(QObject* obj, const QByteArray& text, const QByteArray& ambig, int n)
|
||||
+QString PythonQtStdDecorators::tr(QObject* obj, const QString& text, const QString& ambig, int n)
|
||||
{
|
||||
#if( QT_VERSION >= QT_VERSION_CHECK(5,0,0) )
|
||||
- return QCoreApplication::translate(obj->metaObject()->className(), text.constData(), ambig.constData(), n);
|
||||
+ return QCoreApplication::translate(obj->metaObject()->className(), text.toUtf8().constData(), ambig.toUtf8().constData(), n);
|
||||
#else
|
||||
- return QCoreApplication::translate(obj->metaObject()->className(), text.constData(), ambig.constData(), QCoreApplication::CodecForTr, n);
|
||||
+ return QCoreApplication::translate(obj->metaObject()->className(), text.toUtf8().constData(), ambig.toUtf8().constData(), QCoreApplication::CodecForTr, n);
|
||||
#endif
|
||||
}
|
||||
|
||||
diff -uprNEBZ --suppress-blank-empty a/src/PythonQtStdDecorators.h b/src/PythonQtStdDecorators.h
|
||||
--- a/src/PythonQtStdDecorators.h 2016-06-06 06:45:45.000000000 -0500
|
||||
+++ b/src/PythonQtStdDecorators.h 2016-06-20 03:26:33.000000000 -0500
|
||||
@@ -106,10 +106,10 @@ public Q_SLOTS:
|
||||
int static_Qt_qrand() { return qrand(); }
|
||||
void static_Qt_qsrand(uint a) { qsrand(a); }
|
||||
|
||||
- QString tr(QObject* obj, const QByteArray& text, const QByteArray& ambig = QByteArray(), int n = -1);
|
||||
+ QString tr(QObject* obj, const QString& text, const QString& ambig = QString(), int n = -1);
|
||||
|
||||
- QByteArray static_Qt_SIGNAL(const QByteArray& s) { return QByteArray("2") + s; }
|
||||
- QByteArray static_Qt_SLOT(const QByteArray& s) { return QByteArray("1") + s; }
|
||||
+ QString static_Qt_SIGNAL(const QString& s) { return QString("2") + s; }
|
||||
+ QString static_Qt_SLOT(const QString& s) { return QString("1") + s; }
|
||||
|
||||
void static_QTimer_singleShot(int msec, PyObject* callable);
|
||||
|
@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>spiderx@spiderx.dp.ua</email>
|
||||
<name>Vladimir Pavljuchenkov</name>
|
||||
<description>Proxied maintainer; set to assignee in all bugs</description>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
<longdescription>
|
||||
PythonQt is a dynamic Python binding for the Qt framework.
|
||||
It offers an easy way to embed the Python scripting language into your C++ Qt applications.
|
||||
The focus of PythonQt is on embedding Python into an existing C++ application,
|
||||
not on writing the whole application completely in Python.
|
||||
</longdescription>
|
||||
<use>
|
||||
<flag name="extensions">Install extensions</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<changelog>https://sourceforge.net/p/pythonqt/news/</changelog>
|
||||
<doc>http://pythonqt.sourceforge.net/index.html</doc>
|
||||
<remote-id type="sourceforge">pythonqt</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -0,0 +1 @@
|
||||
DIST hiro-0.2.tar.gz 9384 SHA256 5b71a8d446c4c4efbebab4e06c9973a173c425e0eda218a86fa47244b61a9187 SHA512 69a66223e678c87363ac4beab8a58bec7976b93fe1b354ac1030842e31463adda84f444732ac48868f6b4f11f4a132a1142889466474bff2a77964449c710b65 WHIRLPOOL 7bccec85bf160ead6d9dafa9a0ee6f2f390fdd2d60d2454762dd3521d3eaae7af94f503f169ae8c926ab0dae15c79fa080bf68f453eb4de11b849fbd5a620ed4
|
@ -0,0 +1,21 @@
|
||||
# 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="Time manipulation utilities for python"
|
||||
HOMEPAGE="https://github.com/alisaifee/hiro"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/six[${PYTHON_USEDEP}]"
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
|
@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>mrueg@gentoo.org</email>
|
||||
<name>Manuel Rüger</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>python@gentoo.org</email>
|
||||
<name>Python</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">alisaifee/hiro</remote-id>
|
||||
<remote-id type="pypi">hiro</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1,4 +1,5 @@
|
||||
DIST vcrpy-1.10.0.tar.gz 61035 SHA256 f64ad26e06c3b45465044c03555bc69a077822432ab839118963229c4ef63e81 SHA512 77049224b618a100d371df9441de1e9cb06b8c3d415be4f8b333387da90a318986f705740ec19764c89eb937ff47f9dd1692d0a884403804b87db160604bddfb WHIRLPOOL ba48abce4344091f6fc795568e08a655e6b7f358f0af031218a036eb81761dbf5edf16c3834b12da2fa1a2cac33dea9940862d1bab68ad85c7adcb8399b7edbe
|
||||
DIST vcrpy-1.10.3.tar.gz 61804 SHA256 b2c76736999d81d5321b94d997e3480ffbde8fe56d918eb2798d0e0545cb9f21 SHA512 976f3d9b58025ab5c3a8a666138fbbadccaf8612edea63ac4fbf307d55888eb688bf27dd0f24b0d2c5528c951ced533a52cf13c33bfb32d7e89f241ff508018d WHIRLPOOL 3ca8728d8347bd9ad41b84e27713322b1f567043ab2bcc1691aef985e8234a403147b688630a3915390d0f19d6119f268dadf3cd3ab8eb6b38e3acce40fe1a6b
|
||||
DIST vcrpy-1.5.2.tar.gz 299525 SHA256 ef3216e91ab3a51b67c44e0e4a8c50f6edcc812658da4c73ff32b1eb36a8a9bf SHA512 2eccc061a1e90b03fb0688aac5566bdf96a7bfd6ffc34aa71af8395665cde8f183d02c5107572f1bbca0388c865c913f1b2a9c7b295c11be395dce20c4d5b761 WHIRLPOOL 49a0eb2d582003bebb788129d5f03a8d120d9752867d439a7394e7ed664b6a1b296d59d5a501e861cf3e78e4679c7a6e683843d75a0e512d0e4185da196f6081
|
||||
DIST vcrpy-1.7.3.tar.gz 164928 SHA256 d10f10eb23f7a662ff6c637f2fd57bfed29d62a0211dfd6802767cfc5f0716a1 SHA512 338d168436438d13af09e969bb2bdfd49b62fe12f78b3899fd423c3221a0d194bb2c53e660d1e5fabd76dff27ba6eca1c5052e0bd40a995929de56614bbe13cd WHIRLPOOL 19e34d7ed9ea5ec99a34595f5f38859befe34ca33a0b853550c106ab91b891dde62ca1b1291a903cd17c8c96d81cd55536868dfe5486b5e716ded5685e5b3eb2
|
||||
DIST vcrpy-1.7.4.tar.gz 191306 SHA256 c558f50c20ec7a3e5d5d71c0e9701518dff959736f2a8e7f1f98798354e44e6e SHA512 978c881a694368e9382d6426f990a844910afb6b7777e5226e98a10d2848e09e8c90ffc35250013b5f470577ea6565117d728673456c88aa871444d5db84892a WHIRLPOOL 222b2b2147510cce9ecf18cfb4366f4ccaaf861485b96bd8ed560a9a87d9e5edcf92b265cc65adbf5d59d4462ed6d44d96521f1b981690752fe1fd9f88fc8eb2
|
||||
|
@ -0,0 +1,41 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5} pypy )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Automatically mock your HTTP interactions to simplify and speed up testing"
|
||||
HOMEPAGE="https://github.com/kevin1024/vcrpy"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
#SRC_URI="https://github.com/kevin1024/vcrpy/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/httplib2-0.9.1[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
>=dev-python/six-1.5[${PYTHON_USEDEP}]
|
||||
dev-python/urllib3[${PYTHON_USEDEP}]
|
||||
dev-python/wrapt[${PYTHON_USEDEP}]
|
||||
$(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7)
|
||||
$(python_gen_cond_dep 'dev-python/contextlib2[${PYTHON_USEDEP}]' python2_7)
|
||||
"
|
||||
DEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
${RDEPEND}
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-httpbin[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
python_test() {
|
||||
py.test -vv -x tests/unit || die
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST rake-compiler-0.9.2.tar.gz 30778 SHA256 72ced9a0ca9a034506de279e888fdec63d542d788ee1d2e7910f1bfd71c82dd3 SHA512 883157bf44540cd021bec22a84e907922756f74a61e84c62e51eed752da01d217a03aebd88582fbe779210116e7ab1a36023707fbdae445b5ac4499c7de9b8eb WHIRLPOOL 79b21689e08ac21005243a2f18bde0941c3a86bdd3bf36bf557d3c706cb64fcb379f2d3fd06c93d3c07f10e8c1e47c75933ba783cc23b57137d9fce6c3e7de78
|
||||
DIST rake-compiler-0.9.9.tar.gz 32624 SHA256 d82eedb4a1e23aa4e1e07af130c3ef450b6fb0a32b1297a923e1387cd420b811 SHA512 66d1468d687f10bb1df77410024ff6f9a9b0f396b5ec5e13ac009d02748fca503d8dc805a0f82e30bb9989441ad98d2a5aa2e586c5e5345a164fc03853259f22 WHIRLPOOL 8cec34ae674c98311b2e947b44f72a7f4998366f4d05c8a97a83a93f4b7522c96b95b7d09ec1d92ee8eb90ee9913c9b50485a00d252bcbfb9fa7b72bb2bf861e
|
||||
DIST rake-compiler-1.0.0.tar.gz 32745 SHA256 bb4f3035f693d71b4bff0969968b4c5beba4a3e096e94da1e4c34ef7716a9fdc SHA512 451fecbd64bb45d797f57f825e0fd380e2e0972d470f27e9167cee715b0ba264248dc08cd41196827dcea7b34b0795ce0965ad1ed497f39b01577a443595f9f8 WHIRLPOOL 911e949701bffbf801376b627b93e66010b0f9bbf2bcbf56f07f35ee1032578e60c72ec66de4de5dc59d3545b3865f9425a1e4373818014d706f472b1085c17d
|
||||
DIST rake-compiler-1.0.2.tar.gz 32823 SHA256 59b9fefb73dde1da51fb634d34794f07101fd1a583395f5fd85a0b9410646ca7 SHA512 ef7132eff3afb29e98ce21facfd663cfe495053ca98d54b26275ee8e186c91f81f0450e52bf282bfad64e1443f6e065aefa62a30692895648a89966a8a0f0ebe WHIRLPOOL 9c9e730718bf065bea90be9e4c75661fc2f3dc912b6a7d7db2c49e824f4cb10982165b75fe546c1c0fb6e84cfab2c0b2745103124396c537196fe15f775ddf5d
|
||||
|
@ -0,0 +1,47 @@
|
||||
# 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_TEST="none"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_EXTRADOC="History.txt README.rdoc"
|
||||
|
||||
inherit ruby-fakegem eutils
|
||||
|
||||
DESCRIPTION="Provide a standard and simplified way to build and package Ruby extensions"
|
||||
HOMEPAGE="https://github.com/luislavena/rake-compiler"
|
||||
LICENSE="MIT"
|
||||
|
||||
SRC_URI="https://github.com/luislavena/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
ruby_add_rdepend "dev-ruby/rake"
|
||||
|
||||
ruby_add_bdepend "test? ( dev-ruby/rspec:2 )"
|
||||
|
||||
USE_RUBY="ruby20 ruby21 ruby22" ruby_add_bdepend "test? ( dev-util/cucumber )"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Make sure the right rspec version is used in cucumber.
|
||||
sed -i -e "1igem 'rspec', '~>2.0'" features/support/env.rb || die
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
# Skip cucumber for ruby23 (not ready yet)
|
||||
case ${RUBY} in
|
||||
*ruby20|*ruby21|*ruby22)
|
||||
ruby-ng_rspec
|
||||
ruby-ng_cucumber
|
||||
;;
|
||||
*)
|
||||
ruby-ng_rspec
|
||||
;;
|
||||
esac
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST cairo-1.14.3.gem 97792 SHA256 e3a31ef8097c0b16f2ad71561dca37b4564ae3003838a82805aadeceb69d03b6 SHA512 aba56403ca813bdcc56c01fed76642e4115a683ed3e3d056675195d2d86fc7dfa44f0077ca47407eeea27789824171251222e6300f3f3c395bc186afb616c772 WHIRLPOOL 724d072ad881f54cdcdc631399f99e6bdc563bc78f70c611bdeb3ddc659de78e4ce75c1ec51ac6659542e9ab8ae9c138caa610f97e37a6a1d69440313b69e6a9
|
||||
DIST cairo-1.15.2.gem 98304 SHA256 954cb9bf7ac7cc79a5cc805be61ca81378454f20f621939fa6afb4513cab50d9 SHA512 61ebc30c096de50e4a1d5115c3af45913870aa357a788aa3d440f3945b0292ff410022296879f5a5d03229114261227db1fb15ceaee1cf91c586bb1f00544fc6 WHIRLPOOL 6be8cf957f08c3e871bbd73e33a41d117e92e123569756332552e47b6287c68682f91c3b23e85156d84348de17f3f901ffd7bce9cbaf6289558d27ffa522a2c5
|
||||
DIST cairo-1.15.3.gem 98816 SHA256 16cf6fdce8671b90a22079cb5734f5c43f1f7e315a69fe276c7080ff41f64e5a SHA512 787593d87dd40f4c17fe8e1cf40d12a8a97f67eacf40a298e29c6d17a6ec85092969250930b4aff25e0be9d378dc99c96def7b97b3e6331b268f2474a79c5d66 WHIRLPOOL 741c03a3b6b745f30fb0dbce77c61dc2d29a301c972c5a235cfa90eefb413fa16c08ba2a661e25f520430a4c5b50edfe16959e18f2fa3bf8b439b98c3abed612
|
||||
|
@ -0,0 +1,76 @@
|
||||
# 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_NAME="cairo"
|
||||
|
||||
# Documentation depends on files that are not distributed.
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
|
||||
RUBY_FAKEGEM_TASK_TEST=""
|
||||
|
||||
RUBY_FAKEGEM_DOCDIR="doc"
|
||||
|
||||
RUBY_FAKEGEM_EXTRADOC="AUTHORS NEWS"
|
||||
|
||||
inherit multilib ruby-fakegem
|
||||
|
||||
DESCRIPTION="Ruby bindings for cairo"
|
||||
HOMEPAGE="https://cairographics.org/rcairo/"
|
||||
|
||||
IUSE=""
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="|| ( Ruby GPL-2 )"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
|
||||
RDEPEND="${RDEPEND}
|
||||
>=x11-libs/cairo-1.2.0[svg]"
|
||||
DEPEND="${DEPEND}
|
||||
>=x11-libs/cairo-1.2.0[svg]"
|
||||
|
||||
ruby_add_bdepend "
|
||||
dev-ruby/pkg-config
|
||||
dev-ruby/ruby-glib2
|
||||
test? ( >=dev-ruby/test-unit-2.1.0-r1:2 )"
|
||||
|
||||
all_ruby_prepare() {
|
||||
# Avoid development dependency.
|
||||
sed -i -e '/notify/ s:^:#:' test/cairo-test-utils.rb || die
|
||||
}
|
||||
|
||||
each_ruby_configure() {
|
||||
${RUBY} -Cext/cairo extconf.rb || die "extconf failed"
|
||||
}
|
||||
|
||||
each_ruby_compile() {
|
||||
emake V=1 -Cext/cairo
|
||||
|
||||
# again, try to make it more standard, to install it more easily.
|
||||
cp ext/cairo/cairo$(get_modname) lib/ || die
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
# don't rely on the Rakefile because it's a mess to load with
|
||||
# their hierarchy, do it manually.
|
||||
${RUBY} -Ilib -r ./test/cairo-test-utils.rb \
|
||||
-e 'gem "test-unit"; require "test/unit"; Dir.glob("test/**/test_*.rb") {|f| load f}' || die "tests failed"
|
||||
}
|
||||
|
||||
each_ruby_install() {
|
||||
each_fakegem_install
|
||||
|
||||
insinto $(ruby_get_hdrdir)
|
||||
doins ext/cairo/rb_cairo.h
|
||||
}
|
||||
|
||||
all_ruby_install() {
|
||||
all_fakegem_install
|
||||
|
||||
insinto /usr/share/doc/${PF}/samples
|
||||
doins -r samples/*
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST liblscp-0.5.5.tar.gz 402096 SHA256 bf5c883d219e25234f42a0ae56458b9d9cf06ab74052f440866c90c01c719026 SHA512 92cf94b2564e66d8b99e1ead3f585f9f496405e07e93e202a580e227f4502e51fac109ae9f832412f6f57f3dd9ba51ec64617ffacbdd82318c1900feb067b5a1 WHIRLPOOL 39695138d6f641eb7ae90f75b3f6aaa2a1c09c3558eb423c7053107f8df9592e91549f5d453e9c86235e6b5530e412bf45bc6def11d0157435ce71d02a958400
|
||||
DIST liblscp-0.5.6.tar.gz 369550 SHA256 4e518d44646465c4b53296bb8c2acd75b87692cc03b555e4896263a09f6b10cf SHA512 3d2b8b8316f39cf082f15475bb0fec7822bda22e9eaabfa79aaf19244c7d364df29a508bd56a592ff2b188c4d1aa82d3a5bec7238d3a0528015ec7c5f70c8403 WHIRLPOOL 0f470f218b84727ee09c7d17071069461f310e525acafad3d68673e9e8c39f3f4ac2c580a6d2c128b02a6c35c6c6413efd37559db4e9635d984f95a61788c3ce
|
||||
DIST liblscp-0.5.7.tar.bz2 529902 SHA256 5156fb6a36bc14f427a5971b1e8768df7771ee7bd9fe501d3330d3bb8f255a3c SHA512 10cc43f0670cf264464452eedab6302b2ca837e8fa3df9098f58441045a38e6400a77b989db9363176031abd53917b21823a66f694e7b83f3b957dac391d12dd WHIRLPOOL 14521467a613e3b348cb12f428aa58ce682968136fea3aca8421a91fc7cff150d9cc05d47447f68d333cb787da37f6e5747670865292af1ca64e75aeaa5d5991
|
||||
DIST liblscp-0.5.8.tar.gz 670237 SHA256 b611943f2f81fc58ff6852adfb2ee60789becbd3eda7ca65d300d9c0a7538e01 SHA512 e6cdd029d34aa71d4f025725f07ec3f61ecb772ddda18c6050fa2d6603541b3b1e421ce9ebef6e5f69dcbbcf54fa9b14eada0b95ef0591af16d1fc38ef44e29a WHIRLPOOL a379a05fac93fed5547c716c7b7fca74b7c0f82d4bf5d1704c82ae310100e379908156fe8065ff2d6240b19346452c82825c5aece736be5880fe981d947c4546
|
||||
|
@ -0,0 +1,26 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
DESCRIPTION="C++ library for the Linux Sampler control protocol"
|
||||
HOMEPAGE="http://www.linuxsampler.org"
|
||||
SRC_URI="http://download.linuxsampler.org/packages/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE="doc"
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="doc? ( app-doc/doxygen )"
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
dodoc AUTHORS ChangeLog TODO NEWS README
|
||||
|
||||
if use doc; then
|
||||
dohtml -r doc/html/*
|
||||
fi
|
||||
}
|
@ -0,0 +1,189 @@
|
||||
Backport upstream patch to compile against GCC 6 from
|
||||
https://github.com/LibRaw/LibRaw/commit/eba7a66e23f2f62cc4c8115af8066f2df5da085a
|
||||
|
||||
Patch by Peter Levine
|
||||
See also: https://bugs.gentoo.org/show_bug.cgi?id=582852
|
||||
|
||||
--- a/dcraw/dcraw.c
|
||||
+++ b/dcraw/dcraw.c
|
||||
@@ -5788,30 +5788,37 @@ void CLASS lin_interpolate()
|
||||
*/
|
||||
void CLASS vng_interpolate()
|
||||
{
|
||||
- static const signed char *cp, terms[] = {
|
||||
- -2,-2,+0,-1,0,0x01, -2,-2,+0,+0,1,0x01, -2,-1,-1,+0,0,0x01,
|
||||
- -2,-1,+0,-1,0,0x02, -2,-1,+0,+0,0,0x03, -2,-1,+0,+1,1,0x01,
|
||||
- -2,+0,+0,-1,0,0x06, -2,+0,+0,+0,1,0x02, -2,+0,+0,+1,0,0x03,
|
||||
- -2,+1,-1,+0,0,0x04, -2,+1,+0,-1,1,0x04, -2,+1,+0,+0,0,0x06,
|
||||
- -2,+1,+0,+1,0,0x02, -2,+2,+0,+0,1,0x04, -2,+2,+0,+1,0,0x04,
|
||||
- -1,-2,-1,+0,0,0x80, -1,-2,+0,-1,0,0x01, -1,-2,+1,-1,0,0x01,
|
||||
- -1,-2,+1,+0,1,0x01, -1,-1,-1,+1,0,0x88, -1,-1,+1,-2,0,0x40,
|
||||
- -1,-1,+1,-1,0,0x22, -1,-1,+1,+0,0,0x33, -1,-1,+1,+1,1,0x11,
|
||||
- -1,+0,-1,+2,0,0x08, -1,+0,+0,-1,0,0x44, -1,+0,+0,+1,0,0x11,
|
||||
- -1,+0,+1,-2,1,0x40, -1,+0,+1,-1,0,0x66, -1,+0,+1,+0,1,0x22,
|
||||
- -1,+0,+1,+1,0,0x33, -1,+0,+1,+2,1,0x10, -1,+1,+1,-1,1,0x44,
|
||||
- -1,+1,+1,+0,0,0x66, -1,+1,+1,+1,0,0x22, -1,+1,+1,+2,0,0x10,
|
||||
- -1,+2,+0,+1,0,0x04, -1,+2,+1,+0,1,0x04, -1,+2,+1,+1,0,0x04,
|
||||
- +0,-2,+0,+0,1,0x80, +0,-1,+0,+1,1,0x88, +0,-1,+1,-2,0,0x40,
|
||||
- +0,-1,+1,+0,0,0x11, +0,-1,+2,-2,0,0x40, +0,-1,+2,-1,0,0x20,
|
||||
- +0,-1,+2,+0,0,0x30, +0,-1,+2,+1,1,0x10, +0,+0,+0,+2,1,0x08,
|
||||
- +0,+0,+2,-2,1,0x40, +0,+0,+2,-1,0,0x60, +0,+0,+2,+0,1,0x20,
|
||||
- +0,+0,+2,+1,0,0x30, +0,+0,+2,+2,1,0x10, +0,+1,+1,+0,0,0x44,
|
||||
- +0,+1,+1,+2,0,0x10, +0,+1,+2,-1,1,0x40, +0,+1,+2,+0,0,0x60,
|
||||
- +0,+1,+2,+1,0,0x20, +0,+1,+2,+2,0,0x10, +1,-2,+1,+0,0,0x80,
|
||||
- +1,-1,+1,+1,0,0x88, +1,+0,+1,+2,0,0x08, +1,+0,+2,-1,0,0x40,
|
||||
- +1,+0,+2,+1,0,0x10
|
||||
- }, chood[] = { -1,-1, -1,0, -1,+1, 0,+1, +1,+1, +1,0, +1,-1, 0,-1 };
|
||||
+ struct interpolate_terms {
|
||||
+ signed char y1, x1, y2, x2, weight;
|
||||
+ unsigned char grads;
|
||||
+ };
|
||||
+ static const interpolate_terms terms[] = {
|
||||
+ {-2,-2,+0,-1,0,0x01}, {-2,-2,+0,+0,1,0x01}, {-2,-1,-1,+0,0,0x01},
|
||||
+ {-2,-1,+0,-1,0,0x02}, {-2,-1,+0,+0,0,0x03}, {-2,-1,+0,+1,1,0x01},
|
||||
+ {-2,+0,+0,-1,0,0x06}, {-2,+0,+0,+0,1,0x02}, {-2,+0,+0,+1,0,0x03},
|
||||
+ {-2,+1,-1,+0,0,0x04}, {-2,+1,+0,-1,1,0x04}, {-2,+1,+0,+0,0,0x06},
|
||||
+ {-2,+1,+0,+1,0,0x02}, {-2,+2,+0,+0,1,0x04}, {-2,+2,+0,+1,0,0x04},
|
||||
+ {-1,-2,-1,+0,0,0x80}, {-1,-2,+0,-1,0,0x01}, {-1,-2,+1,-1,0,0x01},
|
||||
+ {-1,-2,+1,+0,1,0x01}, {-1,-1,-1,+1,0,0x88}, {-1,-1,+1,-2,0,0x40},
|
||||
+ {-1,-1,+1,-1,0,0x22}, {-1,-1,+1,+0,0,0x33}, {-1,-1,+1,+1,1,0x11},
|
||||
+ {-1,+0,-1,+2,0,0x08}, {-1,+0,+0,-1,0,0x44}, {-1,+0,+0,+1,0,0x11},
|
||||
+ {-1,+0,+1,-2,1,0x40}, {-1,+0,+1,-1,0,0x66}, {-1,+0,+1,+0,1,0x22},
|
||||
+ {-1,+0,+1,+1,0,0x33}, {-1,+0,+1,+2,1,0x10}, {-1,+1,+1,-1,1,0x44},
|
||||
+ {-1,+1,+1,+0,0,0x66}, {-1,+1,+1,+1,0,0x22}, {-1,+1,+1,+2,0,0x10},
|
||||
+ {-1,+2,+0,+1,0,0x04}, {-1,+2,+1,+0,1,0x04}, {-1,+2,+1,+1,0,0x04},
|
||||
+ {+0,-2,+0,+0,1,0x80}, {+0,-1,+0,+1,1,0x88}, {+0,-1,+1,-2,0,0x40},
|
||||
+ {+0,-1,+1,+0,0,0x11}, {+0,-1,+2,-2,0,0x40}, {+0,-1,+2,-1,0,0x20},
|
||||
+ {+0,-1,+2,+0,0,0x30}, {+0,-1,+2,+1,1,0x10}, {+0,+0,+0,+2,1,0x08},
|
||||
+ {+0,+0,+2,-2,1,0x40}, {+0,+0,+2,-1,0,0x60}, {+0,+0,+2,+0,1,0x20},
|
||||
+ {+0,+0,+2,+1,0,0x30}, {+0,+0,+2,+2,1,0x10}, {+0,+1,+1,+0,0,0x44},
|
||||
+ {+0,+1,+1,+2,0,0x10}, {+0,+1,+2,-1,1,0x40}, {+0,+1,+2,+0,0,0x60},
|
||||
+ {+0,+1,+2,+1,0,0x20}, {+0,+1,+2,+2,0,0x10}, {+1,-2,+1,+0,0,0x80},
|
||||
+ {+1,-1,+1,+1,0,0x88}, {+1,+0,+1,+2,0,0x08}, {+1,+0,+2,-1,0,0x40},
|
||||
+ {+1,+0,+2,+1,0,0x10}
|
||||
+ };
|
||||
+ const interpolate_terms *cpt;
|
||||
+ signed char *cp;
|
||||
+ signed char chood[] = { -1,-1, -1,0, -1,+1, 0,+1, +1,+1, +1,0, +1,-1, 0,-1 };
|
||||
ushort (*brow[5])[4], *pix;
|
||||
int prow=8, pcol=2, *ip, *code[16][16], gval[8], gmin, gmax, sum[4];
|
||||
int row, col, x, y, x1, x2, y1, y2, t, weight, grads, color, diag;
|
||||
@@ -5829,11 +5836,11 @@ void CLASS vng_interpolate()
|
||||
for (row=0; row < prow; row++) /* Precalculate for VNG */
|
||||
for (col=0; col < pcol; col++) {
|
||||
code[row][col] = ip;
|
||||
- for (cp=terms, t=0; t < 64; t++) {
|
||||
- y1 = *cp++; x1 = *cp++;
|
||||
- y2 = *cp++; x2 = *cp++;
|
||||
- weight = *cp++;
|
||||
- grads = *cp++;
|
||||
+ for (cpt=&terms[0], t=0; t < 64, cpt = &terms[t]; t++) {
|
||||
+ y1 = cpt->y1; x1 = cpt->x1;
|
||||
+ y2 = cpt->y2; x2 = cpt->x2;
|
||||
+ weight = cpt->weight;
|
||||
+ grads = cpt->grads;
|
||||
color = fcol(row+y1,col+x1);
|
||||
if (fcol(row+y2,col+x2) != color) continue;
|
||||
diag = (fcol(row,col+1) == color && fcol(row+1,col) == color) ? 2:1;
|
||||
@@ -16289,7 +16296,7 @@ void CLASS tiff_head (struct tiff_hdr *th, int full)
|
||||
strncpy (th->desc, desc, 512);
|
||||
strncpy (th->make, make, 64);
|
||||
strncpy (th->model, model, 64);
|
||||
- strcpy (th->soft, "dcraw v"DCRAW_VERSION);
|
||||
+ strcpy (th->soft, "dcraw v" DCRAW_VERSION);
|
||||
t = localtime (×tamp);
|
||||
sprintf (th->date, "%04d:%02d:%02d %02d:%02d:%02d",
|
||||
t->tm_year+1900,t->tm_mon+1,t->tm_mday,t->tm_hour,t->tm_min,t->tm_sec);
|
||||
--- a/internal/dcraw_common.cpp
|
||||
+++ b/internal/dcraw_common.cpp
|
||||
@@ -4618,30 +4618,37 @@ void CLASS lin_interpolate()
|
||||
*/
|
||||
void CLASS vng_interpolate()
|
||||
{
|
||||
- static const signed char *cp, terms[] = {
|
||||
- -2,-2,+0,-1,0,0x01, -2,-2,+0,+0,1,0x01, -2,-1,-1,+0,0,0x01,
|
||||
- -2,-1,+0,-1,0,0x02, -2,-1,+0,+0,0,0x03, -2,-1,+0,+1,1,0x01,
|
||||
- -2,+0,+0,-1,0,0x06, -2,+0,+0,+0,1,0x02, -2,+0,+0,+1,0,0x03,
|
||||
- -2,+1,-1,+0,0,0x04, -2,+1,+0,-1,1,0x04, -2,+1,+0,+0,0,0x06,
|
||||
- -2,+1,+0,+1,0,0x02, -2,+2,+0,+0,1,0x04, -2,+2,+0,+1,0,0x04,
|
||||
- -1,-2,-1,+0,0,0x80, -1,-2,+0,-1,0,0x01, -1,-2,+1,-1,0,0x01,
|
||||
- -1,-2,+1,+0,1,0x01, -1,-1,-1,+1,0,0x88, -1,-1,+1,-2,0,0x40,
|
||||
- -1,-1,+1,-1,0,0x22, -1,-1,+1,+0,0,0x33, -1,-1,+1,+1,1,0x11,
|
||||
- -1,+0,-1,+2,0,0x08, -1,+0,+0,-1,0,0x44, -1,+0,+0,+1,0,0x11,
|
||||
- -1,+0,+1,-2,1,0x40, -1,+0,+1,-1,0,0x66, -1,+0,+1,+0,1,0x22,
|
||||
- -1,+0,+1,+1,0,0x33, -1,+0,+1,+2,1,0x10, -1,+1,+1,-1,1,0x44,
|
||||
- -1,+1,+1,+0,0,0x66, -1,+1,+1,+1,0,0x22, -1,+1,+1,+2,0,0x10,
|
||||
- -1,+2,+0,+1,0,0x04, -1,+2,+1,+0,1,0x04, -1,+2,+1,+1,0,0x04,
|
||||
- +0,-2,+0,+0,1,0x80, +0,-1,+0,+1,1,0x88, +0,-1,+1,-2,0,0x40,
|
||||
- +0,-1,+1,+0,0,0x11, +0,-1,+2,-2,0,0x40, +0,-1,+2,-1,0,0x20,
|
||||
- +0,-1,+2,+0,0,0x30, +0,-1,+2,+1,1,0x10, +0,+0,+0,+2,1,0x08,
|
||||
- +0,+0,+2,-2,1,0x40, +0,+0,+2,-1,0,0x60, +0,+0,+2,+0,1,0x20,
|
||||
- +0,+0,+2,+1,0,0x30, +0,+0,+2,+2,1,0x10, +0,+1,+1,+0,0,0x44,
|
||||
- +0,+1,+1,+2,0,0x10, +0,+1,+2,-1,1,0x40, +0,+1,+2,+0,0,0x60,
|
||||
- +0,+1,+2,+1,0,0x20, +0,+1,+2,+2,0,0x10, +1,-2,+1,+0,0,0x80,
|
||||
- +1,-1,+1,+1,0,0x88, +1,+0,+1,+2,0,0x08, +1,+0,+2,-1,0,0x40,
|
||||
- +1,+0,+2,+1,0,0x10
|
||||
- }, chood[] = { -1,-1, -1,0, -1,+1, 0,+1, +1,+1, +1,0, +1,-1, 0,-1 };
|
||||
+ struct interpolate_terms {
|
||||
+ signed char y1, x1, y2, x2, weight;
|
||||
+ unsigned char grads;
|
||||
+ };
|
||||
+ static const interpolate_terms terms[] = {
|
||||
+ {-2,-2,+0,-1,0,0x01}, {-2,-2,+0,+0,1,0x01}, {-2,-1,-1,+0,0,0x01},
|
||||
+ {-2,-1,+0,-1,0,0x02}, {-2,-1,+0,+0,0,0x03}, {-2,-1,+0,+1,1,0x01},
|
||||
+ {-2,+0,+0,-1,0,0x06}, {-2,+0,+0,+0,1,0x02}, {-2,+0,+0,+1,0,0x03},
|
||||
+ {-2,+1,-1,+0,0,0x04}, {-2,+1,+0,-1,1,0x04}, {-2,+1,+0,+0,0,0x06},
|
||||
+ {-2,+1,+0,+1,0,0x02}, {-2,+2,+0,+0,1,0x04}, {-2,+2,+0,+1,0,0x04},
|
||||
+ {-1,-2,-1,+0,0,0x80}, {-1,-2,+0,-1,0,0x01}, {-1,-2,+1,-1,0,0x01},
|
||||
+ {-1,-2,+1,+0,1,0x01}, {-1,-1,-1,+1,0,0x88}, {-1,-1,+1,-2,0,0x40},
|
||||
+ {-1,-1,+1,-1,0,0x22}, {-1,-1,+1,+0,0,0x33}, {-1,-1,+1,+1,1,0x11},
|
||||
+ {-1,+0,-1,+2,0,0x08}, {-1,+0,+0,-1,0,0x44}, {-1,+0,+0,+1,0,0x11},
|
||||
+ {-1,+0,+1,-2,1,0x40}, {-1,+0,+1,-1,0,0x66}, {-1,+0,+1,+0,1,0x22},
|
||||
+ {-1,+0,+1,+1,0,0x33}, {-1,+0,+1,+2,1,0x10}, {-1,+1,+1,-1,1,0x44},
|
||||
+ {-1,+1,+1,+0,0,0x66}, {-1,+1,+1,+1,0,0x22}, {-1,+1,+1,+2,0,0x10},
|
||||
+ {-1,+2,+0,+1,0,0x04}, {-1,+2,+1,+0,1,0x04}, {-1,+2,+1,+1,0,0x04},
|
||||
+ {+0,-2,+0,+0,1,0x80}, {+0,-1,+0,+1,1,0x88}, {+0,-1,+1,-2,0,0x40},
|
||||
+ {+0,-1,+1,+0,0,0x11}, {+0,-1,+2,-2,0,0x40}, {+0,-1,+2,-1,0,0x20},
|
||||
+ {+0,-1,+2,+0,0,0x30}, {+0,-1,+2,+1,1,0x10}, {+0,+0,+0,+2,1,0x08},
|
||||
+ {+0,+0,+2,-2,1,0x40}, {+0,+0,+2,-1,0,0x60}, {+0,+0,+2,+0,1,0x20},
|
||||
+ {+0,+0,+2,+1,0,0x30}, {+0,+0,+2,+2,1,0x10}, {+0,+1,+1,+0,0,0x44},
|
||||
+ {+0,+1,+1,+2,0,0x10}, {+0,+1,+2,-1,1,0x40}, {+0,+1,+2,+0,0,0x60},
|
||||
+ {+0,+1,+2,+1,0,0x20}, {+0,+1,+2,+2,0,0x10}, {+1,-2,+1,+0,0,0x80},
|
||||
+ {+1,-1,+1,+1,0,0x88}, {+1,+0,+1,+2,0,0x08}, {+1,+0,+2,-1,0,0x40},
|
||||
+ {+1,+0,+2,+1,0,0x10}
|
||||
+ };
|
||||
+ const interpolate_terms *cpt;
|
||||
+ signed char *cp;
|
||||
+ signed char chood[] = { -1,-1, -1,0, -1,+1, 0,+1, +1,+1, +1,0, +1,-1, 0,-1 };
|
||||
ushort (*brow[5])[4], *pix;
|
||||
int prow=8, pcol=2, *ip, *code[16][16], gval[8], gmin, gmax, sum[4];
|
||||
int row, col, x, y, x1, x2, y1, y2, t, weight, grads, color, diag;
|
||||
@@ -4659,11 +4666,11 @@ void CLASS vng_interpolate()
|
||||
for (row=0; row < prow; row++) /* Precalculate for VNG */
|
||||
for (col=0; col < pcol; col++) {
|
||||
code[row][col] = ip;
|
||||
- for (cp=terms, t=0; t < 64; t++) {
|
||||
- y1 = *cp++; x1 = *cp++;
|
||||
- y2 = *cp++; x2 = *cp++;
|
||||
- weight = *cp++;
|
||||
- grads = *cp++;
|
||||
+ for (cpt=&terms[0], t=0; t < 64, cpt = &terms[t]; t++) {
|
||||
+ y1 = cpt->y1; x1 = cpt->x1;
|
||||
+ y2 = cpt->y2; x2 = cpt->x2;
|
||||
+ weight = cpt->weight;
|
||||
+ grads = cpt->grads;
|
||||
color = fcol(row+y1,col+x1);
|
||||
if (fcol(row+y2,col+x2) != color) continue;
|
||||
diag = (fcol(row,col+1) == color && fcol(row+1,col) == color) ? 2:1;
|
||||
--- a/libraw/libraw_const.h
|
||||
+++ b/libraw/libraw_const.h
|
||||
@@ -255,8 +255,7 @@ enum LibRaw_progress
|
||||
|
||||
LIBRAW_PROGRESS_THUMB_LOAD = 1<<28,
|
||||
LIBRAW_PROGRESS_TRESERVED1 = 1<<29,
|
||||
- LIBRAW_PROGRESS_TRESERVED2 = 1<<30,
|
||||
- LIBRAW_PROGRESS_TRESERVED3 = 1<<31
|
||||
+ LIBRAW_PROGRESS_TRESERVED2 = 1<<30
|
||||
};
|
||||
#define LIBRAW_PROGRESS_THUMB_MASK 0x0fffffff
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue