parent
27741caf0a
commit
3328cdeb7d
@ -1,6 +1,2 @@
|
||||
DIST puppet-agent_1.3.6-1wheezy_amd64.deb 20097384 SHA256 47f04c848eff486660ba5ab4cc6c9340193ae0f9d703e0aba6094ccc7d15ec4f SHA512 a079f66bd0ff0b9535e037712ff4306ec16cc5303e1a19016a7ebb2d19f39eea1d91d758996d37e6d848cd0c1d8f047bcfad64550647de99de248071626a0845 WHIRLPOOL 42013e4abf062548b0349db3ebd628bfd887877462b3f24dbd47058bda59828c0f13f2f3bb8a7aace5d835faf3be0fbbaeb097c55c665aa71eec6d78881d71b7
|
||||
DIST puppet-agent_1.3.6-1wheezy_i386.deb 19873296 SHA256 aaf16cffcf33070eda0979025b72c87d1528bf017f65dadc333defe623190065 SHA512 4d6390c6f9fd3464029ae8bde02e5f7536de7ecb701bc50a7a4a24f50102fcd542448729259148bb62343ed44e4e5b41ced670aed7a8aa3897fa2f7729fff9db WHIRLPOOL 17f7231cd5c546aa8a104aadec07457abebb71cccc1f8f718e7e0e5544b46502979b3079e1d3931f58d3d2d4232eb2ac82e5ee2c49c0ed54e280ef515575b45f
|
||||
DIST puppet-agent_1.4.0-1wheezy_amd64.deb 21367140 SHA256 322f3db0e1c2cebe675f6162411eecc9aec4e6a9d20daba4416ad914a7d562f0 SHA512 9d40ca518dfe5086f9fb738c971fed06b6f634f2069a0a10ae4ea4c1595db6c7122323dcbe1f871faed114acd1a3405146fb834fce964312391159b6e66edae5 WHIRLPOOL cf5f1649083e3224cffa5c1b16164e8cdb2a7fdc4756b97e12dfd6857e74e5923e04282d885ac963ef4fc386843e1014c489346836798eec1db5ed70d187a15e
|
||||
DIST puppet-agent_1.4.0-1wheezy_i386.deb 21107662 SHA256 88adf39e5fd7dba87f497c348797207df1f3192228d8601de9cbd155d481c31f SHA512 6651bb55b7ab4db5ce738dfa8ff555d385c7ea5c3806e5e3a961afaf58fc8923e44264bbd33b920871a84ebaa8b7003374a269467fe13454f7f498c18ba3afec WHIRLPOOL bffdcf7cffc6bf6dcce925728ac032c2fd7e2e19641eef200b60b5ec3fd1e0b87b44a6fd43c001cec0b69d96f050243252a0a954240568344ddcdb481010a700
|
||||
DIST puppet-agent_1.4.2-1wheezy_amd64.deb 21510444 SHA256 ee08eab9e50f9afdc979b2faa5633a3ea4d0ed7cc6fb3e9abc229098e06b9206 SHA512 fa9c47cab3847fde435c8e8a6ef875d392f86c1083e884ec4645e94d4a8620224cd5e43e3b5b8f343278b5fe6c73c41cec452a6872afc3f11a4ab0589e2b9292 WHIRLPOOL 4e082ac505baee8c4fb560ba72c12998cf72e0d13d6e13cce498239412fd638db7f36a680fbe54ddd0a9aafa4b494eba38fe11b9f29f7d28aed5171b370fbaef
|
||||
DIST puppet-agent_1.4.2-1wheezy_i386.deb 21254628 SHA256 4683fb7970805a815fe0b500de67e5d1e2b6fa88b19de36cd5326120a2eafdcb SHA512 bac02e08d8d753d6785e6a08c51009ff3ae02e547e942a21177bce6bf97b381a5110d1989fcdae6f3074b9dd9209bd5ff3d01a211f96efb25d24dcf271aa7a26 WHIRLPOOL 742bbcb6f6c55246f7e0f97978919a8d9f3b5f1acfd02e65b13973ffd3a3ebab62a385b0fdfb9076b27dfe2f7b68f25a37724eeec993a6f4c48ec7d145042892
|
||||
|
@ -1,99 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
inherit eutils systemd unpacker user
|
||||
|
||||
DESCRIPTION="general puppet client utils along with mcollective hiera and facter"
|
||||
HOMEPAGE="https://puppetlabs.com/"
|
||||
SRC_BASE="http://apt.puppetlabs.com/pool/wheezy/PC1/${PN:0:1}/${PN}/${PN}_${PV}-1wheezy"
|
||||
SRC_URI="
|
||||
amd64? ( ${SRC_BASE}_amd64.deb )
|
||||
x86? ( ${SRC_BASE}_i386.deb )
|
||||
"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="puppetdb selinux"
|
||||
RESTRICT="strip"
|
||||
|
||||
CDEPEND="!app-admin/augeas
|
||||
!app-admin/mcollective
|
||||
!app-admin/puppet
|
||||
!dev-ruby/hiera
|
||||
!dev-ruby/facter
|
||||
!app-emulation/virt-what"
|
||||
|
||||
DEPEND="
|
||||
${CDEPEND}"
|
||||
RDEPEND="${CDEPEND}
|
||||
sys-apps/dmidecode
|
||||
selinux? (
|
||||
sys-libs/libselinux[ruby]
|
||||
sec-policy/selinux-puppet
|
||||
)
|
||||
puppetdb? ( >=dev-ruby/puppetdb-termini-3.1.0 )"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
QA_PREBUILT="
|
||||
/opt/puppetlabs/puppet
|
||||
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/2.1.0/x86_64-linux/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/mathn/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/io/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/dl/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/racc/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/enc/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/json/ext/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/rbconfig/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/digest/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/*
|
||||
/opt/puppetlabs/puppet/lib/engines/*
|
||||
/opt/puppetlabs/puppet/lib/virt-what/*
|
||||
/opt/puppetlabs/puppet/lib/*
|
||||
/opt/puppetlabs/puppet/bin/*"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup puppet
|
||||
enewuser puppet -1 -1 /var/run/puppet puppet
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# conf.d
|
||||
doconfd etc/default/puppet
|
||||
doconfd etc/default/mcollective
|
||||
# logrotate.d
|
||||
insinto /etc/logrotate.d
|
||||
doins etc/logrotate.d/mcollective
|
||||
# puppet itself
|
||||
insinto /etc/puppetlabs
|
||||
doins -r etc/puppetlabs/*
|
||||
# logdir for systemd
|
||||
dodir var/log/puppetlabs/puppet/
|
||||
fperms 0750 var/log/puppetlabs/puppet/
|
||||
# the rest
|
||||
insinto /opt
|
||||
dodir opt/puppetlabs/puppet/cache
|
||||
doins -r opt/*
|
||||
fperms 0750 /opt/puppetlabs/puppet/cache
|
||||
# init
|
||||
newinitd "${FILESDIR}/puppet.initd" puppet
|
||||
newinitd "${FILESDIR}/mcollective.initd" mcollective
|
||||
systemd_dounit "${FILESDIR}/puppet.service"
|
||||
systemd_dounit "${FILESDIR}/mcollective.service"
|
||||
systemd_newtmpfilesd "${FILESDIR}/puppet-agent.conf.tmpfilesd" puppet-agent.conf
|
||||
# symlinks
|
||||
chmod 0755 -R "${D}/opt/puppetlabs/puppet/bin/"
|
||||
chmod 0755 "${D}//opt/puppetlabs/puppet/lib/virt-what/virt-what-cpuid-helper"
|
||||
dosym /opt/puppetlabs/bin/facter /usr/bin/facter
|
||||
dosym /opt/puppetlabs/bin/hiera /usr/bin/hiera
|
||||
dosym /opt/puppetlabs/bin/mco /usr/bin/mco
|
||||
dosym /opt/puppetlabs/bin/puppet /usr/bin/puppet
|
||||
dosym /opt/puppetlabs/puppet/bin/mcollectived /usr/sbin/mcollectived
|
||||
dosym /opt/puppetlabs/puppet/bin/virt-what /usr/bin/virt-what
|
||||
dosym /opt/puppetlabs/puppet/bin/augparse /usr/bin/augparse
|
||||
dosym /opt/puppetlabs/puppet/bin/augtool /usr/bin/augtool
|
||||
dosym /opt/puppetlabs/puppet/bin/extlookup2hiera /usr/bin/extlookup2hiera
|
||||
}
|
@ -1,99 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
inherit eutils systemd unpacker user
|
||||
|
||||
DESCRIPTION="general puppet client utils along with mcollective hiera and facter"
|
||||
HOMEPAGE="https://puppetlabs.com/"
|
||||
SRC_BASE="http://apt.puppetlabs.com/pool/wheezy/PC1/${PN:0:1}/${PN}/${PN}_${PV}-1wheezy"
|
||||
SRC_URI="
|
||||
amd64? ( ${SRC_BASE}_amd64.deb )
|
||||
x86? ( ${SRC_BASE}_i386.deb )
|
||||
"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="puppetdb selinux"
|
||||
RESTRICT="strip"
|
||||
|
||||
CDEPEND="!app-admin/augeas
|
||||
!app-admin/mcollective
|
||||
!app-admin/puppet
|
||||
!dev-ruby/hiera
|
||||
!dev-ruby/facter
|
||||
!app-emulation/virt-what"
|
||||
|
||||
DEPEND="
|
||||
${CDEPEND}"
|
||||
RDEPEND="${CDEPEND}
|
||||
sys-apps/dmidecode
|
||||
selinux? (
|
||||
sys-libs/libselinux[ruby]
|
||||
sec-policy/selinux-puppet
|
||||
)
|
||||
puppetdb? ( >=dev-ruby/puppetdb-termini-3.1.0 )"
|
||||
|
||||
S=${WORKDIR}
|
||||
|
||||
QA_PREBUILT="
|
||||
/opt/puppetlabs/puppet
|
||||
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/2.1.0/x86_64-linux/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/mathn/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/io/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/dl/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/racc/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/enc/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/json/ext/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/rbconfig/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/digest/*
|
||||
/opt/puppetlabs/puppet/lib/ruby/2.1.0/x86_64-linux/*
|
||||
/opt/puppetlabs/puppet/lib/engines/*
|
||||
/opt/puppetlabs/puppet/lib/virt-what/*
|
||||
/opt/puppetlabs/puppet/lib/*
|
||||
/opt/puppetlabs/puppet/bin/*"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup puppet
|
||||
enewuser puppet -1 -1 /var/run/puppet puppet
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# conf.d
|
||||
doconfd etc/default/puppet
|
||||
doconfd etc/default/mcollective
|
||||
# logrotate.d
|
||||
insinto /etc/logrotate.d
|
||||
doins etc/logrotate.d/mcollective
|
||||
# puppet itself
|
||||
insinto /etc/puppetlabs
|
||||
doins -r etc/puppetlabs/*
|
||||
# logdir for systemd
|
||||
dodir var/log/puppetlabs/puppet/
|
||||
fperms 0750 var/log/puppetlabs/puppet/
|
||||
# the rest
|
||||
insinto /opt
|
||||
dodir opt/puppetlabs/puppet/cache
|
||||
doins -r opt/*
|
||||
fperms 0750 /opt/puppetlabs/puppet/cache
|
||||
# init
|
||||
newinitd "${FILESDIR}/puppet.initd" puppet
|
||||
newinitd "${FILESDIR}/mcollective.initd" mcollective
|
||||
systemd_dounit "${FILESDIR}/puppet.service"
|
||||
systemd_dounit "${FILESDIR}/mcollective.service"
|
||||
systemd_newtmpfilesd "${FILESDIR}/puppet-agent.conf.tmpfilesd" puppet-agent.conf
|
||||
# symlinks
|
||||
chmod 0755 -R "${D}/opt/puppetlabs/puppet/bin/"
|
||||
chmod 0755 "${D}//opt/puppetlabs/puppet/lib/virt-what/virt-what-cpuid-helper"
|
||||
dosym /opt/puppetlabs/bin/facter /usr/bin/facter
|
||||
dosym /opt/puppetlabs/bin/hiera /usr/bin/hiera
|
||||
dosym /opt/puppetlabs/bin/mco /usr/bin/mco
|
||||
dosym /opt/puppetlabs/bin/puppet /usr/bin/puppet
|
||||
dosym /opt/puppetlabs/puppet/bin/mcollectived /usr/sbin/mcollectived
|
||||
dosym /opt/puppetlabs/puppet/bin/virt-what /usr/bin/virt-what
|
||||
dosym /opt/puppetlabs/puppet/bin/augparse /usr/bin/augparse
|
||||
dosym /opt/puppetlabs/puppet/bin/augtool /usr/bin/augtool
|
||||
dosym /opt/puppetlabs/puppet/bin/extlookup2hiera /usr/bin/extlookup2hiera
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
--- spec/unit/network/http/api/indirected_routes_spec.rb 2016-04-22 17:15:56.000000000 -0500
|
||||
+++ spec/unit/network/http/api/indirected_routes_spec.rb.new 2016-04-28 09:06:38.133311369 -0500
|
||||
@@ -140,15 +140,6 @@
|
||||
indirection, _, _, _ = handler.uri2indirection("GET", uri_escaped, params)
|
||||
end
|
||||
|
||||
- it "should not pass through an environment to check_authorization and fail if the environment is unknown" do
|
||||
- handler.expects(:check_authorization).with(anything,
|
||||
- anything,
|
||||
- Not(has_entry(:environment)))
|
||||
- expect(lambda { handler.uri2indirection("GET",
|
||||
- "#{master_url_prefix}/node/bar",
|
||||
- {:environment => 'bogus'}) }).to raise_error(ArgumentError)
|
||||
- end
|
||||
-
|
||||
it "should not URI unescape the indirection key as passed through to a call to check_authorization" do
|
||||
handler.expects(:check_authorization).with(anything,
|
||||
anything,
|
@ -1,2 +1 @@
|
||||
DIST puppetserver-2.2.1.tar.gz 42665674 SHA256 583662380b161fc35e0f0c5e7e2964892ec4b7e0cb848cadcd76b29684a85843 SHA512 9b7036d886467a41d0d62d4651a91676d885dfa684aa757d9e27ce5ef5f8183f188f490e1594b6b936219a3dd9bee8f609df6229d5d26fd331677fcf1f61d034 WHIRLPOOL f0f15512be55fd49da80b2e839cef9bd9684ef23eab5e872d331b0802f790451c0fb16320b97d25d0bbb8e9bad08cd66c788c0a47643c8da4d973d6649f0da2c
|
||||
DIST puppetserver-2.3.2.tar.gz 33673099 SHA256 81e92875c07f73e636143405804f1214f31f0f840d521f03289d93bd7b2a0899 SHA512 3ab750128bd11d1e3d9815a1c9907fc81b673281ec21def56318557c134635bca0418ed445d090da6257da9dd64e65a9c2b9e82257868d5a895459c7458cc731 WHIRLPOOL 55b679e1eed246ad10bea4f973ca51f65b50b2bf112a6d90d8bda600a1d0e4c09abf74756851a4844cf68705d1b94b9f80f688f1523813d9fe14fbc4424d14e0
|
||||
|
@ -1,104 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
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/conf\.d/g' ext/redhat/puppetserver.service || die
|
||||
sed -i 's/sysconfig/conf\.d/g' ext/bin/puppetserver || die
|
||||
sed -i 's/sysconfig/conf\.d/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
|
||||
}
|
||||
|
||||
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/bootstrap.cfg
|
||||
doins ext/config/request-logging.xml
|
||||
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
|
||||
# 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
|
||||
systemd_dounit ext/redhat/puppetserver.service
|
||||
newinitd "${FILESDIR}/puppetserver.initd" puppetserver
|
||||
# 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"
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST codecrypt-1.4.1.tar.gz 411794 SHA256 a3b26bb4d9488bf0569d69db3de57f5109ce64c7900b568fc6da78c4c3fe920f SHA512 d6c03d5e45346ed5c12350ae04e50eed936d45fce9e08ec2ddba8edb1bbbcfc2a3b7415a3f686af2e05630cab3c4ccfea2fe85c6fc471cface7e9038dd37425f WHIRLPOOL b37a5804a81876347ef690bfd7832c7e2a298313fec52b0517c36701fe5e34a8c701c62bd92d562a7f7d8a02b65e060bfc66acf9419f006a0bf60ae4aae049a1
|
||||
DIST codecrypt-1.6.tar.gz 436127 SHA256 8d3ea24228160546f747feff3909f21814c280bbce41bfe71956c0a9069f95a5 SHA512 d4e696956d034e2f3d212697c325bb90e6a998865890700e143572953e76e3b8adf3680a9b1fdf3ff8f24cd1c94125da97b587978b6870791a4307e1a75be08d WHIRLPOOL b8a335219b904b6bde11d4a11e612cc4b13962aa5ebe8ecaa99321f6fba5ac30a6b63d212eb4761279048361f69eb338248643157fd1d413caae436a9ec15070
|
||||
DIST codecrypt-1.7.2.tar.gz 446975 SHA256 dfe932b6aa18e85d3f1f5324dd11f1b02a75e2225748d91e07020b31eb721906 SHA512 4ad2ad9e665e486e353b48efff344436b276eac2dcbddcf4330796b8f1f06284eaeec9c4f4ef63f61e4477c3bce0973f60f76291dce11bee31a75658bee6a3a0 WHIRLPOOL 804980127104da801556a2bc09cd018a215a68c10147e0a2f2380e5f0c92f4063b390533d65a1a4d810e6c27ae912897a345a025d48362d2937c8e8ebfa5d527
|
||||
DIST codecrypt-1.7.5.tar.gz 464250 SHA256 873b6849bfb2ac0a530935da43422a763bc5763a01026c467ebe164eb41c3cc3 SHA512 237459ec4387f068d39946c1360e27b02f1cfd34a78eef0d3c3eccf31604f3d27b9e5c9c091b88257231bff02f7bf9fb82f7a9e8a8e8a6bbc27091c83ab1f880 WHIRLPOOL ecfcfaf62e59d1f62000e7c1c4a290483c7731f90e1271b1b0acfbc58cf1ce0799b23cb616f5b4d8ee5fc5a2e670d5c148ea1d893abae63aed18dec87ec843a6
|
||||
|
@ -0,0 +1,31 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="Post-quantum cryptography tool"
|
||||
HOMEPAGE="http://e-x-a.org/codecrypt/"
|
||||
SRC_URI="http://e-x-a.org/codecrypt/files/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="+cryptopp"
|
||||
|
||||
DEPEND="dev-libs/gmp:=
|
||||
cryptopp? ( dev-libs/crypto++ )
|
||||
sci-libs/fftw:3.0"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
eapply_user
|
||||
# workaround -- gentoo is missing crypto++ pkg-config file
|
||||
sed -i -e 's/PKG_CHECK_MODULES(\[CRYPTOPP\],.*/LDFLAGS="$LDFLAGS -lcrypto++"/' configure.ac
|
||||
./autogen.sh
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
$(use_with cryptopp )
|
||||
}
|
@ -0,0 +1,75 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
inherit cmake-utils flag-o-matic
|
||||
|
||||
DESCRIPTION="Vim-fork focused on extensibility and agility."
|
||||
HOMEPAGE="https://neovim.io"
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="git://github.com/neovim/neovim.git"
|
||||
else
|
||||
SRC_URI="https://github.com/neovim/neovim/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
LICENSE="Apache-2.0 vim"
|
||||
SLOT="0"
|
||||
IUSE="+nvimpager perl python +jemalloc"
|
||||
|
||||
CDEPEND="dev-lang/luajit:2
|
||||
>=dev-libs/libtermkey-0.17
|
||||
>=dev-libs/libuv-1.2.0
|
||||
>=dev-libs/msgpack-1.0.0
|
||||
>=dev-libs/unibilium-1.1.1
|
||||
dev-libs/libvterm
|
||||
dev-lua/lpeg[luajit]
|
||||
dev-lua/mpack[luajit]
|
||||
jemalloc? ( dev-libs/jemalloc )
|
||||
"
|
||||
DEPEND="${CDEPEND}
|
||||
virtual/libiconv
|
||||
virtual/libintl"
|
||||
RDEPEND="${CDEPEND}
|
||||
perl? ( dev-lang/perl )
|
||||
python? ( dev-python/neovim-python-client )"
|
||||
|
||||
CMAKE_BUILD_TYPE=RelWithDebInfo
|
||||
|
||||
src_prepare() {
|
||||
# use our system vim dir
|
||||
sed -e '/^# define SYS_VIMRC_FILE/s|$VIM|'"${EPREFIX}"'/etc/vim|' \
|
||||
-i src/nvim/globals.h || die
|
||||
|
||||
# add eclass to bash filetypes
|
||||
sed -e 's|*.ebuild|*.ebuild,*.eclass|' -i runtime/filetype.vim || die
|
||||
|
||||
cmake-utils_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
export USE_BUNDLED_DEPS=OFF
|
||||
append-cflags "-Wno-error"
|
||||
local mycmakeargs=(
|
||||
$(cmake-utils_use_enable jemalloc JEMALLOC)
|
||||
-DLIBUNIBILIUM_USE_STATIC=OFF
|
||||
-DLIBTERMKEY_USE_STATIC=OFF
|
||||
-DLIBVTERM_USE_STATIC=OFF
|
||||
)
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
|
||||
# install a default configuration file
|
||||
insinto /etc/vim
|
||||
doins "${FILESDIR}"/sysinit.vim
|
||||
|
||||
# conditionally install a symlink for nvimpager
|
||||
if use nvimpager; then
|
||||
dosym /usr/share/nvim/runtime/macros/less.sh /usr/bin/nvimpager
|
||||
fi
|
||||
}
|
@ -1,3 +1 @@
|
||||
DIST fcitx-qt5-1.0.2.tar.xz 53324 SHA256 b8073f07d9384878c616f6d2cea44fc739a3b5731b95b10b3133e0914d49f66d SHA512 f7075d5334e29fd00c54563182c9cc4027011503aa14d577aa2fb75eb8558c385d91c939f1f21e51850c9c64fc5c396aad5b32fdcc8ddd99c46ec74bd577255d WHIRLPOOL 35ae384cf13fdfdb86c34b7dbefbbe780a2c20ac220868824e25a0ba4368581c19d45cbc9447e1c2dd3236b0758ee9e4311dab1f348a524ca2d002d0b43c760c
|
||||
DIST fcitx-qt5-1.0.4.tar.xz 53552 SHA256 b42a428008d9bf3a5d9140d63c9a475386480d598bb9ce3b78fad43879a50d1c SHA512 f5a2d3ed30bbbb8da3687dc12dd5be3038242ba40e6bef48483931aacfd9f200db9d24d0df03cb93058eedb3941ef6ecb92d874040eb60742f60a44beda77868 WHIRLPOOL c1dcf45eed09625721c175b1b09724f1f9934cb8cb3413df811009815d4231d2758c54a7b346cb29910c0ce156eb9906136d471359566eb288438cc1f5466710
|
||||
DIST fcitx-qt5-1.0.5.tar.xz 53584 SHA256 8cef90024ca84c3f607943b91f6bfe63fd077507bbe100e5a1936464095841de SHA512 f4da9ede8918cef7aa0dbacea534ab81024e3c6d812bedd287c4c4c9a8b9ca994d4708489c602967f3504ce057ec6e118674503f5d796883f1890e8ecc11c501 WHIRLPOOL 764190a5f523fc40ca5f937704d5bc1a7018232284f50b9b1b6a36b5dd41dfbebda5db337bdc49b08e601e94f51935f2a70d96dddbd4091744ec8c89a77f26b0
|
||||
|
@ -1,25 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
inherit cmake-utils
|
||||
|
||||
DESCRIPTION="Qt5 input module for Fcitx"
|
||||
HOMEPAGE="http://fcitx-im.org/"
|
||||
SRC_URI="http://download.fcitx-im.org/${PN}/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=app-i18n/fcitx-4.2.8
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtdbus:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtwidgets:5
|
||||
kde-frameworks/extra-cmake-modules"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}-qt-5.5-compatibility-fix.patch" )
|
@ -1,23 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
inherit cmake-utils
|
||||
|
||||
DESCRIPTION="Qt5 input module for Fcitx"
|
||||
HOMEPAGE="http://fcitx-im.org/"
|
||||
SRC_URI="http://download.fcitx-im.org/${PN}/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=app-i18n/fcitx-4.2.8
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtdbus:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtwidgets:5
|
||||
kde-frameworks/extra-cmake-modules"
|
||||
DEPEND="${RDEPEND}"
|
@ -1,23 +0,0 @@
|
||||
From 78c482b3fdfe558da74657893a3bcd1ece6d7758 Mon Sep 17 00:00:00 2001
|
||||
From: Weng Xuetian <wengxt@gmail.com>
|
||||
Date: Thu, 2 Jul 2015 20:02:17 -0700
|
||||
Subject: [PATCH] [qt5] fixes #6
|
||||
|
||||
use macro instead of string literal and fix compatibility issue with qt5.5
|
||||
---
|
||||
platforminputcontext/main.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/platforminputcontext/main.h b/platforminputcontext/main.h
|
||||
index 1492d72..9938da1 100644
|
||||
--- a/platforminputcontext/main.h
|
||||
+++ b/platforminputcontext/main.h
|
||||
@@ -29,7 +29,7 @@ class QFcitxPlatformInputContextPlugin : public QPlatformInputContextPlugin
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
- Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QPlatformInputContextFactoryInterface" FILE "fcitx.json")
|
||||
+ Q_PLUGIN_METADATA(IID QPlatformInputContextFactoryInterface_iid FILE "fcitx.json")
|
||||
QStringList keys() const;
|
||||
QFcitxPlatformInputContext *create(const QString& system, const QStringList& paramList);
|
||||
};
|
@ -1,125 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit cmake-utils eutils gnome2-utils fdo-mime multilib readme.gentoo
|
||||
|
||||
DESCRIPTION="Flexible Contect-aware Input Tool with eXtension support"
|
||||
HOMEPAGE="http://fcitx-im.org/"
|
||||
SRC_URI="https://fcitx.googlecode.com/files/${P}_dict.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ppc ppc64 x86"
|
||||
IUSE="+X +autostart +cairo +dbus debug +enchant gtk gtk3 icu introspection lua
|
||||
nls opencc +pango qt4 snooper static-libs +table test +xml"
|
||||
|
||||
RDEPEND="
|
||||
X? (
|
||||
x11-libs/libX11
|
||||
x11-libs/libXinerama
|
||||
)
|
||||
cairo? (
|
||||
x11-libs/cairo[X]
|
||||
pango? ( x11-libs/pango[X] )
|
||||
!pango? ( media-libs/fontconfig )
|
||||
)
|
||||
dbus? ( sys-apps/dbus )
|
||||
enchant? ( app-text/enchant )
|
||||
gtk? (
|
||||
x11-libs/gtk+:2
|
||||
dev-libs/glib:2
|
||||
dev-libs/dbus-glib
|
||||
)
|
||||
gtk3? (
|
||||
x11-libs/gtk+:3
|
||||
dev-libs/glib:2
|
||||
dev-libs/dbus-glib
|
||||
)
|
||||
icu? ( dev-libs/icu:= )
|
||||
introspection? ( dev-libs/gobject-introspection )
|
||||
lua? ( dev-lang/lua )
|
||||
opencc? ( app-i18n/opencc )
|
||||
qt4? (
|
||||
dev-qt/qtdbus:4
|
||||
dev-qt/qtgui:4[glib]
|
||||
)
|
||||
xml? (
|
||||
app-text/iso-codes
|
||||
dev-libs/libxml2
|
||||
x11-libs/libxkbfile
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/libintl
|
||||
virtual/pkgconfig
|
||||
nls? ( sys-devel/gettext )"
|
||||
|
||||
DOCS=( AUTHORS ChangeLog README THANKS TODO
|
||||
doc/pinyin.txt doc/cjkvinput.txt doc/API.txt doc/Develop_Readme )
|
||||
HTML_DOCS=( doc/wb_fh.htm )
|
||||
|
||||
src_prepare() {
|
||||
use autostart && DOC_CONTENTS="You have enabled the autostart USE flag,
|
||||
which will let fcitx start automatically on XDG compatible desktop
|
||||
environments, such as Gnome, KDE, LXDE, Razor-qt and Xfce. If you use
|
||||
~/.xinitrc to configure your desktop, make sure to include the fcitx
|
||||
command to start it."
|
||||
epatch "${FILESDIR}/${P}-gcc46-compatible.patch"
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs="
|
||||
-DLIB_INSTALL_DIR=/usr/$(get_libdir)
|
||||
$(cmake-utils_use_enable X X11)
|
||||
$(cmake-utils_use_enable autostart XDGAUTOSTART)
|
||||
$(cmake-utils_use_enable cairo CAIRO)
|
||||
$(cmake-utils_use_enable dbus DBUS)
|
||||
$(cmake-utils_use_enable debug DEBUG)
|
||||
$(cmake-utils_use_enable enchant ENCHANT)
|
||||
$(cmake-utils_use_enable gtk GTK2_IM_MODULE)
|
||||
$(cmake-utils_use_enable gtk3 GTK3_IM_MODULE)
|
||||
$(cmake-utils_use_enable icu ICU)
|
||||
$(cmake-utils_use_enable introspection GIR)
|
||||
$(cmake-utils_use_enable lua LUA)
|
||||
$(cmake-utils_use_enable nls GETTEXT)
|
||||
$(cmake-utils_use_enable opencc OPENCC)
|
||||
$(cmake-utils_use_enable pango PANGO)
|
||||
$(cmake-utils_use_enable qt4 QT)
|
||||
$(cmake-utils_use_enable qt4 QT_IM_MODULE)
|
||||
$(cmake-utils_use_enable qt4 QT_GUI)
|
||||
$(cmake-utils_use_enable snooper SNOOPER)
|
||||
$(cmake-utils_use_enable static-libs STATIC)
|
||||
$(cmake-utils_use_enable table TABLE)
|
||||
$(cmake-utils_use_enable test TEST)
|
||||
$(cmake-utils_use_enable xml LIBXML2)"
|
||||
if use gtk || use gtk3 || use qt4 ; then
|
||||
mycmakeargs+=" -DENABLE_GLIB2=ON "
|
||||
fi
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
rm -rf "${ED}"/usr/share/doc/${PN} || die
|
||||
use autostart && readme.gentoo_create_doc
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_icon_cache_update
|
||||
fdo-mime_desktop_database_update
|
||||
fdo-mime_mime_database_update
|
||||
use gtk && gnome2_query_immodules_gtk2
|
||||
use gtk3 && gnome2_query_immodules_gtk3
|
||||
use autostart && readme.gentoo_pkg_postinst
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_icon_cache_update
|
||||
fdo-mime_desktop_database_update
|
||||
fdo-mime_mime_database_update
|
||||
use gtk && gnome2_query_immodules_gtk2
|
||||
use gtk3 && gnome2_query_immodules_gtk3
|
||||
}
|
@ -1,43 +0,0 @@
|
||||
From 4c703e395b55e939f3ac1e4a4bf5cd36aa5b0abc Mon Sep 17 00:00:00 2001
|
||||
From: Weng Xuetian <wengxt@gmail.com>
|
||||
Date: Sat, 26 Jan 2013 14:40:00 -0500
|
||||
Subject: [PATCH] [fcitx] fix compatible with gcc 4.6
|
||||
|
||||
---
|
||||
src/lib/fcitx/module.h | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/src/lib/fcitx/module.h b/src/lib/fcitx/module.h
|
||||
index 28de64f..bae6601 100644
|
||||
--- a/src/lib/fcitx/module.h
|
||||
+++ b/src/lib/fcitx/module.h
|
||||
@@ -109,7 +109,7 @@
|
||||
void* FcitxModuleInvokeFunction(FcitxAddon* addon, int functionId, FcitxModuleFunctionArg args);
|
||||
#define FcitxModuleInvokeVaArgs(addon, functionId, ARGV...) \
|
||||
(FcitxModuleInvokeFunction(addon, functionId, \
|
||||
- (FcitxModuleFunctionArg){ .args = {ARGV} }))
|
||||
+ (FcitxModuleFunctionArg){ {ARGV} }))
|
||||
|
||||
/**
|
||||
* invoke inter module function with addon name, returns NULL when fails (the function itself can also return NULL)
|
||||
@@ -133,7 +133,7 @@
|
||||
#define InvokeVaArgs(INST, MODULE, FUNC, ARGV...) \
|
||||
((MODULE##_##FUNC##_RETURNTYPE)FcitxModuleInvokeFunctionByName( \
|
||||
INST, MODULE##_NAME, MODULE##_##FUNC, \
|
||||
- (FcitxModuleFunctionArg){ .args = {ARGV} }))
|
||||
+ (FcitxModuleFunctionArg){ {ARGV} }))
|
||||
|
||||
/** add a function to a addon */
|
||||
#define AddFunction(ADDON, Realname) \
|
||||
@@ -215,7 +215,7 @@
|
||||
}
|
||||
|
||||
#define FCITX_DEF_MODULE_ARGS(var, ARGV...) \
|
||||
- FcitxModuleFunctionArg var = { .args = {ARGV} }
|
||||
+ FcitxModuleFunctionArg var = { {ARGV} }
|
||||
/* void *__##var##_array[] = {ARGV}; \ */
|
||||
/* size_t __##var##_length = sizeof(__##var##_array) / sizeof(void*); \ */
|
||||
/* FcitxModuleFunctionArg var[] = { { .n = __##var##_length, \ */
|
||||
--
|
||||
1.7.10
|
||||
|
@ -1,5 +1,3 @@
|
||||
DIST kcm-fcitx-0.4.2.tar.xz 63796 SHA256 f681c1a4172b74a63c36094f860eff4ea778422e1062b00fd03509eda745ed66 SHA512 51ccc5b03f076e73cda7852b1bb1598e56114fe1a7733f3eb0a731c0249cbaa2ac7f4c27115929d236cc94a3f131fc790933cddff624387d050fecf3e170842e WHIRLPOOL 6c0f3e4d345c7570ee519878c141ba2f708c85e0dc8a171058af291e6a02b48cdd3965335b9eb766f9a149b31d5fccc0334f8bb7352eb978625367af064e6b17
|
||||
DIST kcm-fcitx-0.4.3.tar.xz 56864 SHA256 b7e9ad4569c0940f9654d58de1f13281fcbcab56febbd346951edcfa0a86e208 SHA512 d311699a5d99f75d353899b7fba0a950491ee8b891724b855033449900ec4b3db9408bb1b80e60ceb0dbb0ce91072162062261a497f83a2a683214b71c3f4713 WHIRLPOOL 04aec049436a120362d02ba900a0d8639feb359b4cc6b99a871c7ffa8d9660270c321828b8660c718890a7f0ea308ea584711ed712762aab712fe8d7e72a205a
|
||||
DIST kcm-fcitx-0.5.0.tar.xz 55964 SHA256 079b309aea4b354d081d45d3dde6d754b24717eb7653344055633453cb328b33 SHA512 219b962c4b6f1763b389dc20d22a671d960a884f5c3f0faddbd4919b61dd6d93e600cbf440b15bc42f63cb383ed5ca65e657fa835c520196c8bd9d64a160baa3 WHIRLPOOL df9db7b5198130409986c4805a7771b6df4bd44d532071499ec6eb522af7bfdd9d576fbdf3664720e47a02a57e35409c69fff962152423ac59bab71d8c1e0947
|
||||
DIST kcm-fcitx-0.5.2.tar.xz 55936 SHA256 348b7afd18670c0879e616d6e097c2d8b033d1a7f5abbc3b75876953bd67f504 SHA512 9418001ad92ada2e7c48c426b24b6babebb3e41510c9ff2aac01e25f84f79cd02a3e413267a31feb677beca51070a4ca55f5d64bd103ddd9ab7853f207370882 WHIRLPOOL 8ca8032ea4b50228ea33189d7afac160cc04882c2ac7403de8cb244b39feddfb89019b4ab4a6caf67b2a9d40c2a9b97cdee0832c5beec4c108b67bc35f0b5923
|
||||
DIST kcm-fcitx-0.5.3.tar.xz 57488 SHA256 f2de5fa4e31a96fea059e4d390c6f1d6fdc98af572c19a0e84cf6181da7c2935 SHA512 19d172cbf1d2a13f289b64b67488ddc5ba83a9d26503438045271c85df3775715614951652dc6f8da52a3b9d692d6e2138a760fc51d1e7f0f8bb0bd467265496 WHIRLPOOL 7be5cfb389bfcf5f451b5619c0818afeaa7b88199375b2f5d85bdcc21b1259008a3653f1cd26e33689a9f18130bc53269dceb20fca5b64aaa8f619e06f2d413e
|
||||
|
@ -1,39 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
inherit kde5
|
||||
|
||||
DESCRIPTION="KDE configuration module for Fcitx"
|
||||
HOMEPAGE="http://fcitx-im.org/"
|
||||
SRC_URI="http://download.fcitx-im.org/${PN}/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="5"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=app-i18n/fcitx-4.2.8
|
||||
app-i18n/fcitx-qt5
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtdbus:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtwidgets:5
|
||||
$(add_frameworks_dep extra-cmake-modules)
|
||||
$(add_frameworks_dep kcoreaddons)
|
||||
$(add_frameworks_dep kcmutils)
|
||||
$(add_frameworks_dep ki18n)
|
||||
$(add_frameworks_dep kio)
|
||||
$(add_frameworks_dep kitemviews)
|
||||
$(add_frameworks_dep knewstuff)
|
||||
$(add_frameworks_dep kwidgetsaddons)
|
||||
sys-devel/gettext
|
||||
x11-libs/libxkbfile"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
src_prepare() {
|
||||
# po directory is empty, making the build fail
|
||||
comment_add_subdirectory po
|
||||
}
|
@ -1,39 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
inherit kde5
|
||||
|
||||
DESCRIPTION="KDE configuration module for Fcitx"
|
||||
HOMEPAGE="http://fcitx-im.org/"
|
||||
SRC_URI="http://download.fcitx-im.org/${PN}/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="5"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=app-i18n/fcitx-4.2.8
|
||||
app-i18n/fcitx-qt5
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtdbus:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtwidgets:5
|
||||
$(add_frameworks_dep extra-cmake-modules)
|
||||
$(add_frameworks_dep kcoreaddons)
|
||||
$(add_frameworks_dep kcmutils)
|
||||
$(add_frameworks_dep ki18n)
|
||||
$(add_frameworks_dep kio)
|
||||
$(add_frameworks_dep kitemviews)
|
||||
$(add_frameworks_dep knewstuff)
|
||||
$(add_frameworks_dep kwidgetsaddons)
|
||||
sys-devel/gettext
|
||||
x11-libs/libxkbfile"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
src_prepare() {
|
||||
# po directory is empty, making the build fail
|
||||
comment_add_subdirectory po
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST airline-0.7.tar.gz 54318 SHA256 5d6b8840ccef133662f420fb1dba132d54bf0f5cc663657945e6cbea7e4b609e SHA512 5e8b072538d8c19083bb4fe6e5f8a5df76cf00735eb8a8a08078fba33d5fc25d89f49b9d9e07276e1661748b04901f1bfdf52d054330931785eab3df71a496b5 WHIRLPOOL c664423ebfbc1e830feb81aa4573c991388756396263fdf3cd0f37b8391b673f94c6eda0cff1c7517ab7fb5de7735ac39a8d066212ea43bd03ef82e2e9aff71c
|
||||
DIST airline-0.8.tar.gz 52767 SHA256 5fb1cdcd9a760516a050bd0e3fa4cae04291cfccd2bcf58f2facbd2a07767a14 SHA512 51ae20f7e5b869f714e9c21ab6ab8af4d2de31b3cf4fe9f6bd64e75e87e7796184d41ddd9536f3e41dcc93e9ca6aad684b286df6e5d8d6eae202f91ed8851292 WHIRLPOOL a5ccf7662267c25b6855d6df81c4c3f35bffe5c2001f05808c1e0a861bb6b04b0bc04d979b04a060992626406cd84d7ac8aabd73f29afaf286fbf4dbc3dec47c
|
||||
|
@ -1,27 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
inherit vim-plugin
|
||||
|
||||
if [[ ${PV} != 9999* ]] ; then
|
||||
MY_PN=vim-${PN}
|
||||
MY_P=${MY_PN}-${PV}
|
||||
SRC_URI="https://github.com/bling/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
else
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/bling/vim-airline.git"
|
||||
fi
|
||||
|
||||
DESCRIPTION="vim plugin: lean & mean statusline for vim that's light as air"
|
||||
HOMEPAGE="https://github.com/bling/vim-airline/ http://www.vim.org/scripts/script.php?script_id=4661"
|
||||
LICENSE="MIT"
|
||||
VIM_PLUGIN_HELPFILES="${PN}.txt"
|
||||
|
||||
src_prepare() {
|
||||
# remove unwanted files
|
||||
rm -rv t Gemfile Rakefile LICENSE README* || die
|
||||
}
|
@ -1,40 +0,0 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# This script was adapted from the one used by Hwaci to build it's
|
||||
# documentation and binaries for shipping to their website.
|
||||
#
|
||||
# Any similarity to the original has probably been trampled into
|
||||
# oblivion modifying everything for Gentoo.
|
||||
#
|
||||
echo "Starting TCL Build"
|
||||
|
||||
# Set srcdir to the name of the directory that contains the publish.sh
|
||||
# script.
|
||||
#
|
||||
srcdir=`echo "$0" | sed 's%\(^.*\)/[^/][^/]*$%\1%'`
|
||||
|
||||
#
|
||||
# Build the tclsqlite.so shared library for import into tclsh or wish
|
||||
# under Linux
|
||||
#
|
||||
make target_source
|
||||
source /etc/make.conf
|
||||
cd tsrc
|
||||
rm shell.c
|
||||
|
||||
OPTS='-DUSE_TCL_STUBS=1 -DNDEBUG=1'
|
||||
TCLSTUBLIB=${TCL_BUILD_STUB_LIB_PATH}
|
||||
|
||||
export CFLAGS
|
||||
gcc -fPIC $CFLAGS $OPTS -I. -shared *.c $TCLSTUBLIB -o tclsqlite.so
|
||||
|
||||
strip tclsqlite.so
|
||||
cp tclsqlite.so ..
|
||||
|
||||
cd ..
|
||||
|
||||
echo "pkg_mkIndex [pwd] tclsqlite.so" >> make_pkgIndex.tcl
|
||||
tclsh make_pkgIndex.tcl
|
||||
|
||||
echo "Done TCL Build"
|
||||
|
@ -1,12 +0,0 @@
|
||||
--- configure.ac
|
||||
+++ configure.ac
|
||||
@@ -70,6 +70,9 @@
|
||||
[], [enable_dynamic_extensions=yes])
|
||||
if test x"$enable_dynamic_extensions" != "xno"; then
|
||||
AC_SEARCH_LIBS(dlopen, dl)
|
||||
+ if test "${ac_cv_search_dlopen}" = "no" ; then
|
||||
+ DYNAMIC_EXTENSION_FLAGS=-DSQLITE_OMIT_LOAD_EXTENSION=1
|
||||
+ fi
|
||||
else
|
||||
DYNAMIC_EXTENSION_FLAGS=-DSQLITE_OMIT_LOAD_EXTENSION=1
|
||||
fi
|
@ -1,12 +0,0 @@
|
||||
--- configure.ac
|
||||
+++ configure.ac
|
||||
@@ -611,6 +611,9 @@
|
||||
if test "${use_loadextension}" = "yes" ; then
|
||||
OPT_FEATURE_FLAGS=""
|
||||
AC_SEARCH_LIBS(dlopen, dl)
|
||||
+ if test "${ac_cv_search_dlopen}" = "no" ; then
|
||||
+ OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
|
||||
+ fi
|
||||
else
|
||||
OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
|
||||
fi
|
@ -1,49 +0,0 @@
|
||||
--- test/fts4unicode.test
|
||||
+++ test/fts4unicode.test
|
||||
@@ -366,27 +366,26 @@
|
||||
do_isspace_test 6.$T.1 $T 32
|
||||
do_isspace_test 6.$T.2 $T 160
|
||||
do_isspace_test 6.$T.3 $T 5760
|
||||
- do_isspace_test 6.$T.4 $T 6158
|
||||
- do_isspace_test 6.$T.5 $T 8192
|
||||
- do_isspace_test 6.$T.6 $T 8193
|
||||
- do_isspace_test 6.$T.7 $T 8194
|
||||
- do_isspace_test 6.$T.8 $T 8195
|
||||
- do_isspace_test 6.$T.9 $T 8196
|
||||
- do_isspace_test 6.$T.10 $T 8197
|
||||
- do_isspace_test 6.$T.11 $T 8198
|
||||
- do_isspace_test 6.$T.12 $T 8199
|
||||
- do_isspace_test 6.$T.13 $T 8200
|
||||
- do_isspace_test 6.$T.14 $T 8201
|
||||
- do_isspace_test 6.$T.15 $T 8202
|
||||
- do_isspace_test 6.$T.16 $T 8239
|
||||
- do_isspace_test 6.$T.17 $T 8287
|
||||
- do_isspace_test 6.$T.18 $T 12288
|
||||
+ do_isspace_test 6.$T.4 $T 8192
|
||||
+ do_isspace_test 6.$T.5 $T 8193
|
||||
+ do_isspace_test 6.$T.6 $T 8194
|
||||
+ do_isspace_test 6.$T.7 $T 8195
|
||||
+ do_isspace_test 6.$T.8 $T 8196
|
||||
+ do_isspace_test 6.$T.9 $T 8197
|
||||
+ do_isspace_test 6.$T.10 $T 8198
|
||||
+ do_isspace_test 6.$T.11 $T 8199
|
||||
+ do_isspace_test 6.$T.12 $T 8200
|
||||
+ do_isspace_test 6.$T.13 $T 8201
|
||||
+ do_isspace_test 6.$T.14 $T 8202
|
||||
+ do_isspace_test 6.$T.15 $T 8239
|
||||
+ do_isspace_test 6.$T.16 $T 8287
|
||||
+ do_isspace_test 6.$T.17 $T 12288
|
||||
|
||||
- do_isspace_test 6.$T.19 $T {32 160 5760 6158}
|
||||
- do_isspace_test 6.$T.20 $T {8192 8193 8194 8195}
|
||||
- do_isspace_test 6.$T.21 $T {8196 8197 8198 8199}
|
||||
- do_isspace_test 6.$T.22 $T {8200 8201 8202 8239}
|
||||
- do_isspace_test 6.$T.23 $T {8287 12288}
|
||||
+ do_isspace_test 6.$T.18 $T {32 160 5760}
|
||||
+ do_isspace_test 6.$T.19 $T {8192 8193 8194 8195}
|
||||
+ do_isspace_test 6.$T.20 $T {8196 8197 8198 8199}
|
||||
+ do_isspace_test 6.$T.21 $T {8200 8201 8202 8239}
|
||||
+ do_isspace_test 6.$T.22 $T {8287 12288}
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------------
|
@ -1,239 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit autotools eutils flag-o-matic multilib multilib-minimal toolchain-funcs versionator
|
||||
|
||||
SRC_PV="$(printf "%u%02u%02u%02u" $(get_version_components))"
|
||||
DOC_PV="${SRC_PV}"
|
||||
# DOC_PV="$(printf "%u%02u%02u00" $(get_version_components $(get_version_component_range 1-3)))"
|
||||
|
||||
DESCRIPTION="A SQL Database Engine in a C Library"
|
||||
HOMEPAGE="http://sqlite.org/"
|
||||
SRC_URI="doc? ( http://sqlite.org/2016/${PN}-doc-${DOC_PV}.zip )
|
||||
tcl? ( http://sqlite.org/2016/${PN}-src-${SRC_PV}.zip )
|
||||
test? ( http://sqlite.org/2016/${PN}-src-${SRC_PV}.zip )
|
||||
tools? ( http://sqlite.org/2016/${PN}-src-${SRC_PV}.zip )
|
||||
!tcl? ( !test? ( !tools? ( http://sqlite.org/2016/${PN}-autoconf-${SRC_PV}.tar.gz ) ) )"
|
||||
|
||||
LICENSE="public-domain"
|
||||
SLOT="3"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="debug doc icu +readline secure-delete static-libs tcl test tools"
|
||||
|
||||
RDEPEND="icu? ( dev-libs/icu:0=[${MULTILIB_USEDEP}] )
|
||||
readline? ( sys-libs/readline:0=[${MULTILIB_USEDEP}] )
|
||||
tcl? ( dev-lang/tcl:0=[${MULTILIB_USEDEP}] )
|
||||
tools? ( dev-lang/tcl:0=[${MULTILIB_USEDEP}] )
|
||||
abi_x86_32? (
|
||||
!<=app-emulation/emul-linux-x86-baselibs-20131008-r14
|
||||
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( app-arch/unzip )
|
||||
tcl? ( app-arch/unzip )
|
||||
test? (
|
||||
app-arch/unzip
|
||||
dev-lang/tcl:0[${MULTILIB_USEDEP}]
|
||||
)
|
||||
tools? ( app-arch/unzip )"
|
||||
|
||||
full_tarball() {
|
||||
use tcl || use test || use tools
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
if full_tarball; then
|
||||
S="${WORKDIR}/${PN}-src-${SRC_PV}"
|
||||
else
|
||||
S="${WORKDIR}/${PN}-autoconf-${SRC_PV}"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
if full_tarball; then
|
||||
epatch "${FILESDIR}/${PN}-3.8.1-src-dlopen_check.patch"
|
||||
|
||||
# Increase timeout for fuzzcheck from 120 s to 3600 s.
|
||||
# (iTimeout in test/fuzzcheck.c:main)
|
||||
sed -e "/\.\/fuzzcheck\$(TEXE)/s/\$(FUZZDATA)/--timeout 3600 &/" -i Makefile.in || die "sed failed"
|
||||
|
||||
# Fix shell1-5.0 test.
|
||||
# http://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-dev/2015-May/002575.html
|
||||
sed -e "/if {\$i==0x0D /s/\$i==0x0D /&|| (\$i>=0xE0 \&\& \$i<=0xEF) /" -i test/shell1.test
|
||||
|
||||
# Fix vtabH-2.0.2.2 and vtabH-2.0.3.2 tests.
|
||||
# http://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-dev/2016-January/002722.html
|
||||
# http://sqlite.org/src/info/19c1f4483e3df7fa
|
||||
sed -e "s/\(db func [^ ]\+\) \([^ ]\+\)/\1 -argcount 2 \2/" -i test/vtabH.test
|
||||
else
|
||||
epatch "${FILESDIR}/${PN}-3.8.1-autoconf-dlopen_check.patch"
|
||||
fi
|
||||
|
||||
eautoreconf
|
||||
|
||||
multilib_copy_sources
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local CPPFLAGS="${CPPFLAGS}" options=()
|
||||
|
||||
options+=(
|
||||
--enable-$(full_tarball && echo load-extension || echo dynamic-extensions)
|
||||
--enable-threadsafe
|
||||
)
|
||||
if ! full_tarball; then
|
||||
options+=(--disable-static-shell)
|
||||
fi
|
||||
|
||||
# Support detection of misuse of SQLite API.
|
||||
# http://sqlite.org/compile.html#enable_api_armor
|
||||
append-cppflags -DSQLITE_ENABLE_API_ARMOR
|
||||
|
||||
# Support column metadata functions.
|
||||
# http://sqlite.org/c3ref/column_database_name.html
|
||||
append-cppflags -DSQLITE_ENABLE_COLUMN_METADATA
|
||||
|
||||
# Support dbstat virtual table.
|
||||
# http://sqlite.org/dbstat.html
|
||||
append-cppflags -DSQLITE_ENABLE_DBSTAT_VTAB
|
||||
|
||||
# Support Full-Text Search versions 3, 4 and 5.
|
||||
# http://sqlite.org/fts3.html
|
||||
# http://sqlite.org/fts5.html
|
||||
append-cppflags -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4
|
||||
options+=(--enable-fts5)
|
||||
|
||||
# Support hidden columns.
|
||||
append-cppflags -DSQLITE_ENABLE_HIDDEN_COLUMNS
|
||||
|
||||
# Support JSON1 extension.
|
||||
# http://sqlite.org/json1.html
|
||||
append-cppflags -DSQLITE_ENABLE_JSON1
|
||||
|
||||
# Support Resumable Bulk Update extension.
|
||||
# http://sqlite.org/rbu.html
|
||||
append-cppflags -DSQLITE_ENABLE_RBU
|
||||
|
||||
# Support R*Trees.
|
||||
# http://sqlite.org/rtree.html
|
||||
append-cppflags -DSQLITE_ENABLE_RTREE
|
||||
|
||||
# Support scan status functions.
|
||||
# http://sqlite.org/c3ref/stmt_scanstatus.html
|
||||
# http://sqlite.org/c3ref/stmt_scanstatus_reset.html
|
||||
append-cppflags -DSQLITE_ENABLE_STMT_SCANSTATUS
|
||||
|
||||
# Support unlock notification.
|
||||
# http://sqlite.org/unlock_notify.html
|
||||
append-cppflags -DSQLITE_ENABLE_UNLOCK_NOTIFY
|
||||
|
||||
# Support soundex() function.
|
||||
# http://sqlite.org/lang_corefunc.html#soundex
|
||||
append-cppflags -DSQLITE_SOUNDEX
|
||||
|
||||
# debug USE flag.
|
||||
if full_tarball; then
|
||||
options+=($(use_enable debug))
|
||||
else
|
||||
if use debug; then
|
||||
append-cppflags -DSQLITE_DEBUG
|
||||
else
|
||||
append-cppflags -DNDEBUG
|
||||
fi
|
||||
fi
|
||||
|
||||
# icu USE flag.
|
||||
if use icu; then
|
||||
# Support ICU extension.
|
||||
# http://sqlite.org/compile.html#enable_icu
|
||||
append-cppflags -DSQLITE_ENABLE_ICU
|
||||
if full_tarball; then
|
||||
sed -e "s/^TLIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
|
||||
else
|
||||
sed -e "s/^LIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
|
||||
fi
|
||||
fi
|
||||
|
||||
# readline USE flag.
|
||||
options+=(
|
||||
--disable-editline
|
||||
$(use_enable readline)
|
||||
)
|
||||
if full_tarball && use readline; then
|
||||
options+=(--with-readline-inc="-I${EPREFIX}/usr/include/readline")
|
||||
fi
|
||||
|
||||
# secure-delete USE flag.
|
||||
if use secure-delete; then
|
||||
# Enable secure_delete pragma by default.
|
||||
# http://sqlite.org/pragma.html#pragma_secure_delete
|
||||
append-cppflags -DSQLITE_SECURE_DELETE
|
||||
fi
|
||||
|
||||
# static-libs USE flag.
|
||||
options+=($(use_enable static-libs static))
|
||||
|
||||
# tcl, test, tools USE flags.
|
||||
if full_tarball; then
|
||||
options+=(--enable-tcl)
|
||||
fi
|
||||
|
||||
if [[ "${CHOST}" == *-mint* ]]; then
|
||||
append-cppflags -DSQLITE_OMIT_WAL
|
||||
fi
|
||||
|
||||
# Use pread(), pread64(), pwrite(), pwrite64() functions for better performance if they are available.
|
||||
if $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -Werror=implicit-function-declaration -x c - -o "${T}/pread_pwrite_test" <<< $'#include <unistd.h>\nint main()\n{\n pread(0, NULL, 0, 0);\n pwrite(0, NULL, 0, 0);\n return 0;\n}' &> /dev/null; then
|
||||
append-cppflags -DUSE_PREAD
|
||||
fi
|
||||
if $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -Werror=implicit-function-declaration -x c - -o "${T}/pread64_pwrite64_test" <<< $'#include <unistd.h>\nint main()\n{\n pread64(0, NULL, 0, 0);\n pwrite64(0, NULL, 0, 0);\n return 0;\n}' &> /dev/null; then
|
||||
append-cppflags -DUSE_PREAD64
|
||||
elif $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -D_LARGEFILE64_SOURCE -Werror=implicit-function-declaration -x c - -o "${T}/pread64_pwrite64_test" <<< $'#include <unistd.h>\nint main()\n{\n pread64(0, NULL, 0, 0);\n pwrite64(0, NULL, 0, 0);\n return 0;\n}' &> /dev/null; then
|
||||
append-cppflags -DUSE_PREAD64 -D_LARGEFILE64_SOURCE
|
||||
fi
|
||||
|
||||
econf "${options[@]}"
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
emake HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}"
|
||||
|
||||
if use tools && multilib_is_native_abi; then
|
||||
emake showdb showjournal showstat4 showwal sqldiff sqlite3_analyzer
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
if [[ "${EUID}" -eq 0 ]]; then
|
||||
ewarn "Skipping tests due to root permissions"
|
||||
return
|
||||
fi
|
||||
|
||||
emake HAVE_TCL="$(usex tcl 1 "")" $(use debug && echo fulltest || echo test)
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake DESTDIR="${D}" HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" install
|
||||
|
||||
if use tools && multilib_is_native_abi; then
|
||||
newbin showdb sqlite3-show-db
|
||||
newbin showjournal sqlite3-show-journal
|
||||
newbin showstat4 sqlite3-show-stat4
|
||||
newbin showwal sqlite3-show-wal
|
||||
newbin sqldiff sqlite3-diff
|
||||
newbin sqlite3_analyzer sqlite3-analyzer
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
prune_libtool_files
|
||||
|
||||
doman sqlite3.1
|
||||
|
||||
if use doc; then
|
||||
dohtml -A ico,odf,odg,pdf,svg -r "${WORKDIR}/${PN}-doc-${DOC_PV}/"
|
||||
fi
|
||||
}
|
@ -1,239 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit autotools eutils flag-o-matic multilib multilib-minimal toolchain-funcs versionator
|
||||
|
||||
SRC_PV="$(printf "%u%02u%02u%02u" $(get_version_components))"
|
||||
DOC_PV="${SRC_PV}"
|
||||
# DOC_PV="$(printf "%u%02u%02u00" $(get_version_components $(get_version_component_range 1-3)))"
|
||||
|
||||
DESCRIPTION="A SQL Database Engine in a C Library"
|
||||
HOMEPAGE="http://sqlite.org/"
|
||||
SRC_URI="doc? ( http://sqlite.org/2016/${PN}-doc-${DOC_PV}.zip )
|
||||
tcl? ( http://sqlite.org/2016/${PN}-src-${SRC_PV}.zip )
|
||||
test? ( http://sqlite.org/2016/${PN}-src-${SRC_PV}.zip )
|
||||
tools? ( http://sqlite.org/2016/${PN}-src-${SRC_PV}.zip )
|
||||
!tcl? ( !test? ( !tools? ( http://sqlite.org/2016/${PN}-autoconf-${SRC_PV}.tar.gz ) ) )"
|
||||
|
||||
LICENSE="public-domain"
|
||||
SLOT="3"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="debug doc icu +readline secure-delete static-libs tcl test tools"
|
||||
|
||||
RDEPEND="icu? ( dev-libs/icu:0=[${MULTILIB_USEDEP}] )
|
||||
readline? ( sys-libs/readline:0=[${MULTILIB_USEDEP}] )
|
||||
tcl? ( dev-lang/tcl:0=[${MULTILIB_USEDEP}] )
|
||||
tools? ( dev-lang/tcl:0=[${MULTILIB_USEDEP}] )
|
||||
abi_x86_32? (
|
||||
!<=app-emulation/emul-linux-x86-baselibs-20131008-r14
|
||||
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( app-arch/unzip )
|
||||
tcl? ( app-arch/unzip )
|
||||
test? (
|
||||
app-arch/unzip
|
||||
dev-lang/tcl:0[${MULTILIB_USEDEP}]
|
||||
)
|
||||
tools? ( app-arch/unzip )"
|
||||
|
||||
full_tarball() {
|
||||
use tcl || use test || use tools
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
if full_tarball; then
|
||||
S="${WORKDIR}/${PN}-src-${SRC_PV}"
|
||||
else
|
||||
S="${WORKDIR}/${PN}-autoconf-${SRC_PV}"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
if full_tarball; then
|
||||
epatch "${FILESDIR}/${PN}-3.8.1-src-dlopen_check.patch"
|
||||
|
||||
# Increase timeout for fuzzcheck from 120 s to 3600 s.
|
||||
# (iTimeout in test/fuzzcheck.c:main)
|
||||
sed -e "/\.\/fuzzcheck\$(TEXE)/s/\$(FUZZDATA)/--timeout 3600 &/" -i Makefile.in || die "sed failed"
|
||||
|
||||
# Fix shell1-5.0 test.
|
||||
# http://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-dev/2015-May/002575.html
|
||||
sed -e "/if {\$i==0x0D /s/\$i==0x0D /&|| (\$i>=0xE0 \&\& \$i<=0xEF) /" -i test/shell1.test
|
||||
|
||||
# Fix vtabH-2.0.2.2 and vtabH-2.0.3.2 tests.
|
||||
# http://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-dev/2016-January/002722.html
|
||||
# http://sqlite.org/src/info/19c1f4483e3df7fa
|
||||
sed -e "s/\(db func [^ ]\+\) \([^ ]\+\)/\1 -argcount 2 \2/" -i test/vtabH.test
|
||||
else
|
||||
epatch "${FILESDIR}/${PN}-3.8.1-autoconf-dlopen_check.patch"
|
||||
fi
|
||||
|
||||
eautoreconf
|
||||
|
||||
multilib_copy_sources
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local CPPFLAGS="${CPPFLAGS}" options=()
|
||||
|
||||
options+=(
|
||||
--enable-$(full_tarball && echo load-extension || echo dynamic-extensions)
|
||||
--enable-threadsafe
|
||||
)
|
||||
if ! full_tarball; then
|
||||
options+=(--disable-static-shell)
|
||||
fi
|
||||
|
||||
# Support detection of misuse of SQLite API.
|
||||
# http://sqlite.org/compile.html#enable_api_armor
|
||||
append-cppflags -DSQLITE_ENABLE_API_ARMOR
|
||||
|
||||
# Support column metadata functions.
|
||||
# http://sqlite.org/c3ref/column_database_name.html
|
||||
append-cppflags -DSQLITE_ENABLE_COLUMN_METADATA
|
||||
|
||||
# Support dbstat virtual table.
|
||||
# http://sqlite.org/dbstat.html
|
||||
append-cppflags -DSQLITE_ENABLE_DBSTAT_VTAB
|
||||
|
||||
# Support Full-Text Search versions 3, 4 and 5.
|
||||
# http://sqlite.org/fts3.html
|
||||
# http://sqlite.org/fts5.html
|
||||
append-cppflags -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4
|
||||
options+=(--enable-fts5)
|
||||
|
||||
# Support hidden columns.
|
||||
append-cppflags -DSQLITE_ENABLE_HIDDEN_COLUMNS
|
||||
|
||||
# Support JSON1 extension.
|
||||
# http://sqlite.org/json1.html
|
||||
append-cppflags -DSQLITE_ENABLE_JSON1
|
||||
|
||||
# Support Resumable Bulk Update extension.
|
||||
# http://sqlite.org/rbu.html
|
||||
append-cppflags -DSQLITE_ENABLE_RBU
|
||||
|
||||
# Support R*Trees.
|
||||
# http://sqlite.org/rtree.html
|
||||
append-cppflags -DSQLITE_ENABLE_RTREE
|
||||
|
||||
# Support scan status functions.
|
||||
# http://sqlite.org/c3ref/stmt_scanstatus.html
|
||||
# http://sqlite.org/c3ref/stmt_scanstatus_reset.html
|
||||
append-cppflags -DSQLITE_ENABLE_STMT_SCANSTATUS
|
||||
|
||||
# Support unlock notification.
|
||||
# http://sqlite.org/unlock_notify.html
|
||||
append-cppflags -DSQLITE_ENABLE_UNLOCK_NOTIFY
|
||||
|
||||
# Support soundex() function.
|
||||
# http://sqlite.org/lang_corefunc.html#soundex
|
||||
append-cppflags -DSQLITE_SOUNDEX
|
||||
|
||||
# debug USE flag.
|
||||
if full_tarball; then
|
||||
options+=($(use_enable debug))
|
||||
else
|
||||
if use debug; then
|
||||
append-cppflags -DSQLITE_DEBUG
|
||||
else
|
||||
append-cppflags -DNDEBUG
|
||||
fi
|
||||
fi
|
||||
|
||||
# icu USE flag.
|
||||
if use icu; then
|
||||
# Support ICU extension.
|
||||
# http://sqlite.org/compile.html#enable_icu
|
||||
append-cppflags -DSQLITE_ENABLE_ICU
|
||||
if full_tarball; then
|
||||
sed -e "s/^TLIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
|
||||
else
|
||||
sed -e "s/^LIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
|
||||
fi
|
||||
fi
|
||||
|
||||
# readline USE flag.
|
||||
options+=(
|
||||
--disable-editline
|
||||
$(use_enable readline)
|
||||
)
|
||||
if full_tarball && use readline; then
|
||||
options+=(--with-readline-inc="-I${EPREFIX}/usr/include/readline")
|
||||
fi
|
||||
|
||||
# secure-delete USE flag.
|
||||
if use secure-delete; then
|
||||
# Enable secure_delete pragma by default.
|
||||
# http://sqlite.org/pragma.html#pragma_secure_delete
|
||||
append-cppflags -DSQLITE_SECURE_DELETE
|
||||
fi
|
||||
|
||||
# static-libs USE flag.
|
||||
options+=($(use_enable static-libs static))
|
||||
|
||||
# tcl, test, tools USE flags.
|
||||
if full_tarball; then
|
||||
options+=(--enable-tcl)
|
||||
fi
|
||||
|
||||
if [[ "${CHOST}" == *-mint* ]]; then
|
||||
append-cppflags -DSQLITE_OMIT_WAL
|
||||
fi
|
||||
|
||||
# Use pread(), pread64(), pwrite(), pwrite64() functions for better performance if they are available.
|
||||
if $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -Werror=implicit-function-declaration -x c - -o "${T}/pread_pwrite_test" <<< $'#include <unistd.h>\nint main()\n{\n pread(0, NULL, 0, 0);\n pwrite(0, NULL, 0, 0);\n return 0;\n}' &> /dev/null; then
|
||||
append-cppflags -DUSE_PREAD
|
||||
fi
|
||||
if $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -Werror=implicit-function-declaration -x c - -o "${T}/pread64_pwrite64_test" <<< $'#include <unistd.h>\nint main()\n{\n pread64(0, NULL, 0, 0);\n pwrite64(0, NULL, 0, 0);\n return 0;\n}' &> /dev/null; then
|
||||
append-cppflags -DUSE_PREAD64
|
||||
elif $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -D_LARGEFILE64_SOURCE -Werror=implicit-function-declaration -x c - -o "${T}/pread64_pwrite64_test" <<< $'#include <unistd.h>\nint main()\n{\n pread64(0, NULL, 0, 0);\n pwrite64(0, NULL, 0, 0);\n return 0;\n}' &> /dev/null; then
|
||||
append-cppflags -DUSE_PREAD64 -D_LARGEFILE64_SOURCE
|
||||
fi
|
||||
|
||||
econf "${options[@]}"
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
emake HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}"
|
||||
|
||||
if use tools && multilib_is_native_abi; then
|
||||
emake showdb showjournal showstat4 showwal sqldiff sqlite3_analyzer
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
if [[ "${EUID}" -eq 0 ]]; then
|
||||
ewarn "Skipping tests due to root permissions"
|
||||
return
|
||||
fi
|
||||
|
||||
emake HAVE_TCL="$(usex tcl 1 "")" $(use debug && echo fulltest || echo test)
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake DESTDIR="${D}" HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" install
|
||||
|
||||
if use tools && multilib_is_native_abi; then
|
||||
newbin showdb sqlite3-show-db
|
||||
newbin showjournal sqlite3-show-journal
|
||||
newbin showstat4 sqlite3-show-stat4
|
||||
newbin showwal sqlite3-show-wal
|
||||
newbin sqldiff sqlite3-diff
|
||||
newbin sqlite3_analyzer sqlite3-analyzer
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
prune_libtool_files
|
||||
|
||||
doman sqlite3.1
|
||||
|
||||
if use doc; then
|
||||
dohtml -A ico,odf,odg,pdf,svg -r "${WORKDIR}/${PN}-doc-${DOC_PV}/"
|
||||
fi
|
||||
}
|
@ -1,243 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit autotools eutils flag-o-matic multilib multilib-minimal toolchain-funcs versionator
|
||||
|
||||
SRC_PV="$(printf "%u%02u%02u%02u" $(get_version_components))"
|
||||
DOC_PV="${SRC_PV}"
|
||||
# DOC_PV="$(printf "%u%02u%02u00" $(get_version_components $(get_version_component_range 1-3)))"
|
||||
|
||||
DESCRIPTION="A SQL Database Engine in a C Library"
|
||||
HOMEPAGE="http://sqlite.org/"
|
||||
SRC_URI="doc? ( http://sqlite.org/2016/${PN}-doc-${DOC_PV}.zip )
|
||||
tcl? ( http://sqlite.org/2016/${PN}-src-${SRC_PV}.zip )
|
||||
test? ( http://sqlite.org/2016/${PN}-src-${SRC_PV}.zip )
|
||||
tools? ( http://sqlite.org/2016/${PN}-src-${SRC_PV}.zip )
|
||||
!tcl? ( !test? ( !tools? ( http://sqlite.org/2016/${PN}-autoconf-${SRC_PV}.tar.gz ) ) )"
|
||||
|
||||
LICENSE="public-domain"
|
||||
SLOT="3"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="debug doc icu +readline secure-delete static-libs tcl test tools"
|
||||
|
||||
RDEPEND="icu? ( dev-libs/icu:0=[${MULTILIB_USEDEP}] )
|
||||
readline? ( sys-libs/readline:0=[${MULTILIB_USEDEP}] )
|
||||
tcl? ( dev-lang/tcl:0=[${MULTILIB_USEDEP}] )
|
||||
tools? ( dev-lang/tcl:0=[${MULTILIB_USEDEP}] )
|
||||
abi_x86_32? (
|
||||
!<=app-emulation/emul-linux-x86-baselibs-20131008-r14
|
||||
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( app-arch/unzip )
|
||||
tcl? ( app-arch/unzip )
|
||||
test? (
|
||||
app-arch/unzip
|
||||
dev-lang/tcl:0[${MULTILIB_USEDEP}]
|
||||
)
|
||||
tools? ( app-arch/unzip )"
|
||||
|
||||
full_tarball() {
|
||||
use tcl || use test || use tools
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
if full_tarball; then
|
||||
S="${WORKDIR}/${PN}-src-${SRC_PV}"
|
||||
else
|
||||
S="${WORKDIR}/${PN}-autoconf-${SRC_PV}"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
if full_tarball; then
|
||||
epatch "${FILESDIR}/${PN}-3.11.0-full_tarball-build.patch"
|
||||
epatch "${FILESDIR}/${PN}-3.11.0-full_tarball-SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER.patch"
|
||||
|
||||
# Fix shell1-5.0 test.
|
||||
# http://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-dev/2015-May/002575.html
|
||||
sed -e "/if {\$i==0x0D /s/\$i==0x0D /&|| (\$i>=0xE0 \&\& \$i<=0xEF) /" -i test/shell1.test
|
||||
else
|
||||
epatch "${FILESDIR}/${PN}-3.11.0-nonfull_tarball-build.patch"
|
||||
epatch "${FILESDIR}/${PN}-3.11.0-nonfull_tarball-SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER.patch"
|
||||
fi
|
||||
|
||||
eautoreconf
|
||||
|
||||
multilib_copy_sources
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local CPPFLAGS="${CPPFLAGS}" options=()
|
||||
|
||||
options+=(
|
||||
--enable-$(full_tarball && echo load-extension || echo dynamic-extensions)
|
||||
--enable-threadsafe
|
||||
)
|
||||
if ! full_tarball; then
|
||||
options+=(--disable-static-shell)
|
||||
fi
|
||||
|
||||
# Support detection of misuse of SQLite API.
|
||||
# http://sqlite.org/compile.html#enable_api_armor
|
||||
append-cppflags -DSQLITE_ENABLE_API_ARMOR
|
||||
|
||||
# Support column metadata functions.
|
||||
# http://sqlite.org/c3ref/column_database_name.html
|
||||
append-cppflags -DSQLITE_ENABLE_COLUMN_METADATA
|
||||
|
||||
# Support dbstat virtual table.
|
||||
# http://sqlite.org/dbstat.html
|
||||
append-cppflags -DSQLITE_ENABLE_DBSTAT_VTAB
|
||||
|
||||
# Support Full-Text Search versions 3, 4 and 5.
|
||||
# http://sqlite.org/fts3.html
|
||||
# http://sqlite.org/fts5.html
|
||||
append-cppflags -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4
|
||||
options+=(--enable-fts5)
|
||||
|
||||
# Support hidden columns.
|
||||
append-cppflags -DSQLITE_ENABLE_HIDDEN_COLUMNS
|
||||
|
||||
# Support JSON1 extension.
|
||||
# http://sqlite.org/json1.html
|
||||
append-cppflags -DSQLITE_ENABLE_JSON1
|
||||
|
||||
# Support Resumable Bulk Update extension.
|
||||
# http://sqlite.org/rbu.html
|
||||
append-cppflags -DSQLITE_ENABLE_RBU
|
||||
|
||||
# Support R*Trees.
|
||||
# http://sqlite.org/rtree.html
|
||||
append-cppflags -DSQLITE_ENABLE_RTREE
|
||||
|
||||
# Support scan status functions.
|
||||
# http://sqlite.org/c3ref/stmt_scanstatus.html
|
||||
# http://sqlite.org/c3ref/stmt_scanstatus_reset.html
|
||||
append-cppflags -DSQLITE_ENABLE_STMT_SCANSTATUS
|
||||
|
||||
# Support unlock notification.
|
||||
# http://sqlite.org/unlock_notify.html
|
||||
append-cppflags -DSQLITE_ENABLE_UNLOCK_NOTIFY
|
||||
|
||||
# Support soundex() function.
|
||||
# http://sqlite.org/lang_corefunc.html#soundex
|
||||
append-cppflags -DSQLITE_SOUNDEX
|
||||
|
||||
# debug USE flag.
|
||||
if full_tarball; then
|
||||
options+=($(use_enable debug))
|
||||
else
|
||||
if use debug; then
|
||||
append-cppflags -DSQLITE_DEBUG
|
||||
else
|
||||
append-cppflags -DNDEBUG
|
||||
fi
|
||||
fi
|
||||
|
||||
# icu USE flag.
|
||||
if use icu; then
|
||||
# Support ICU extension.
|
||||
# http://sqlite.org/compile.html#enable_icu
|
||||
append-cppflags -DSQLITE_ENABLE_ICU
|
||||
if full_tarball; then
|
||||
sed -e "s/^TLIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
|
||||
else
|
||||
sed -e "s/^LIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
|
||||
fi
|
||||
fi
|
||||
|
||||
# readline USE flag.
|
||||
options+=(
|
||||
--disable-editline
|
||||
$(use_enable readline)
|
||||
)
|
||||
if full_tarball && use readline; then
|
||||
options+=(--with-readline-inc="-I${EPREFIX}/usr/include/readline")
|
||||
fi
|
||||
|
||||
# secure-delete USE flag.
|
||||
if use secure-delete; then
|
||||
# Enable secure_delete pragma by default.
|
||||
# http://sqlite.org/pragma.html#pragma_secure_delete
|
||||
append-cppflags -DSQLITE_SECURE_DELETE
|
||||
fi
|
||||
|
||||
# static-libs USE flag.
|
||||
options+=($(use_enable static-libs static))
|
||||
|
||||
# tcl, test, tools USE flags.
|
||||
if full_tarball; then
|
||||
options+=(--enable-tcl)
|
||||
fi
|
||||
|
||||
if [[ "${CHOST}" == *-mint* ]]; then
|
||||
append-cppflags -DSQLITE_OMIT_WAL
|
||||
fi
|
||||
|
||||
# Use pread(), pread64(), pwrite(), pwrite64() functions for better performance if they are available.
|
||||
if $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -Werror=implicit-function-declaration -x c - -o "${T}/pread_pwrite_test" <<< $'#include <unistd.h>\nint main()\n{\n pread(0, NULL, 0, 0);\n pwrite(0, NULL, 0, 0);\n return 0;\n}' &> /dev/null; then
|
||||
append-cppflags -DUSE_PREAD
|
||||
fi
|
||||
if $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -Werror=implicit-function-declaration -x c - -o "${T}/pread64_pwrite64_test" <<< $'#include <unistd.h>\nint main()\n{\n pread64(0, NULL, 0, 0);\n pwrite64(0, NULL, 0, 0);\n return 0;\n}' &> /dev/null; then
|
||||
append-cppflags -DUSE_PREAD64
|
||||
elif $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -D_LARGEFILE64_SOURCE -Werror=implicit-function-declaration -x c - -o "${T}/pread64_pwrite64_test" <<< $'#include <unistd.h>\nint main()\n{\n pread64(0, NULL, 0, 0);\n pwrite64(0, NULL, 0, 0);\n return 0;\n}' &> /dev/null; then
|
||||
append-cppflags -DUSE_PREAD64 -D_LARGEFILE64_SOURCE
|
||||
fi
|
||||
|
||||
econf "${options[@]}"
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
emake HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}"
|
||||
|
||||
if use tools && multilib_is_native_abi; then
|
||||
emake rbu showdb showjournal showstat4 showwal sqldiff sqlite3_analyzer
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
if [[ "${EUID}" -eq 0 ]]; then
|
||||
ewarn "Skipping tests due to root permissions"
|
||||
return
|
||||
fi
|
||||
|
||||
emake HAVE_TCL="$(usex tcl 1 "")" $(use debug && echo fulltest || echo test)
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake DESTDIR="${D}" HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" install
|
||||
|
||||
if use tools && multilib_is_native_abi; then
|
||||
install_tool() {
|
||||
if [[ -f ".libs/${1}" ]]; then
|
||||
newbin ".libs/${1}" "${2}"
|
||||
else
|
||||
newbin "${1}" "${2}"
|
||||
fi
|
||||
}
|
||||
|
||||
install_tool rbu sqlite3-rbu
|
||||
install_tool showdb sqlite3-show-db
|
||||
install_tool showjournal sqlite3-show-journal
|
||||
install_tool showstat4 sqlite3-show-stat4
|
||||
install_tool showwal sqlite3-show-wal
|
||||
install_tool sqldiff sqlite3-diff
|
||||
install_tool sqlite3_analyzer sqlite3-analyzer
|
||||
|
||||
unset -f install_tool
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
prune_libtool_files
|
||||
|
||||
doman sqlite3.1
|
||||
|
||||
if use doc; then
|
||||
dohtml -A ico,odf,odg,pdf,svg -r "${WORKDIR}/${PN}-doc-${DOC_PV}/"
|
||||
fi
|
||||
}
|
@ -1,210 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit autotools eutils flag-o-matic multilib multilib-minimal toolchain-funcs versionator
|
||||
|
||||
SRC_PV="$(printf "%u%02u%02u%02u" $(get_version_components))"
|
||||
DOC_PV="${SRC_PV}"
|
||||
# DOC_PV="$(printf "%u%02u%02u00" $(get_version_components $(get_version_component_range 1-3)))"
|
||||
|
||||
DESCRIPTION="A SQL Database Engine in a C Library"
|
||||
HOMEPAGE="http://sqlite.org/"
|
||||
SRC_URI="doc? ( http://sqlite.org/2015/${PN}-doc-${DOC_PV}.zip )
|
||||
tcl? ( http://sqlite.org/2015/${PN}-src-${SRC_PV}.zip )
|
||||
test? ( http://sqlite.org/2015/${PN}-src-${SRC_PV}.zip )
|
||||
tools? ( http://sqlite.org/2015/${PN}-src-${SRC_PV}.zip )
|
||||
!tcl? ( !test? ( !tools? ( http://sqlite.org/2015/${PN}-autoconf-${SRC_PV}.tar.gz ) ) )"
|
||||
|
||||
LICENSE="public-domain"
|
||||
SLOT="3"
|
||||
KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="debug doc icu +readline secure-delete static-libs tcl test tools"
|
||||
|
||||
RDEPEND="icu? ( dev-libs/icu:0=[${MULTILIB_USEDEP}] )
|
||||
readline? ( sys-libs/readline:0=[${MULTILIB_USEDEP}] )
|
||||
tcl? ( dev-lang/tcl:0=[${MULTILIB_USEDEP}] )
|
||||
abi_x86_32? (
|
||||
!<=app-emulation/emul-linux-x86-baselibs-20131008-r14
|
||||
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( app-arch/unzip )
|
||||
tcl? ( app-arch/unzip )
|
||||
test? (
|
||||
app-arch/unzip
|
||||
dev-lang/tcl:0[${MULTILIB_USEDEP}]
|
||||
)
|
||||
tools? ( dev-lang/tcl:0 )"
|
||||
|
||||
amalgamation() {
|
||||
! use tcl && ! use test && ! use tools
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
if amalgamation; then
|
||||
S="${WORKDIR}/${PN}-autoconf-${SRC_PV}"
|
||||
else
|
||||
S="${WORKDIR}/${PN}-src-${SRC_PV}"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
if amalgamation; then
|
||||
epatch "${FILESDIR}/${PN}-3.8.1-autoconf-dlopen_check.patch"
|
||||
|
||||
# http://www.sqlite.org/cgi/src/info/85bfa9a67f997084
|
||||
sed \
|
||||
-e "s/^sqlite3_SOURCES = shell.c sqlite3.h$/sqlite3_SOURCES = shell.c sqlite3.c sqlite3.h/" \
|
||||
-e "s/^sqlite3_LDADD = sqlite3.\$(OBJEXT) @READLINE_LIBS@$/sqlite3_LDADD = @READLINE_LIBS@\nsqlite3_CFLAGS = \$(AM_CFLAGS)/" \
|
||||
-i Makefile.am
|
||||
else
|
||||
epatch "${FILESDIR}/${PN}-3.8.1-src-dlopen_check.patch"
|
||||
epatch "${FILESDIR}/${PN}-3.8.1-tests-icu-52.patch"
|
||||
|
||||
# Fix shell1-5.0 test.
|
||||
# http://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-dev/2015-May/002575.html
|
||||
sed -e "/if {\$i==0x0D /s/\$i==0x0D /&|| (\$i>=0xE0 \&\& \$i<=0xEF) /" -i test/shell1.test
|
||||
fi
|
||||
|
||||
eautoreconf
|
||||
|
||||
# At least ppc-aix, x86-interix and *-solaris need newer libtool.
|
||||
# use prefix && eautoreconf
|
||||
|
||||
if use icu; then
|
||||
if amalgamation; then
|
||||
sed -e "s/LIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
|
||||
else
|
||||
sed -e "s/TLIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
|
||||
fi
|
||||
fi
|
||||
|
||||
multilib_copy_sources
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# `configure` from amalgamation tarball does not add -DSQLITE_DEBUG or -DNDEBUG flag.
|
||||
if amalgamation; then
|
||||
if use debug; then
|
||||
append-cppflags -DSQLITE_DEBUG
|
||||
else
|
||||
append-cppflags -DNDEBUG
|
||||
fi
|
||||
fi
|
||||
|
||||
# Support detection of misuse of SQLite API.
|
||||
# http://sqlite.org/compile.html#enable_api_armor
|
||||
append-cppflags -DSQLITE_ENABLE_API_ARMOR
|
||||
|
||||
# Support column metadata functions.
|
||||
# http://sqlite.org/c3ref/column_database_name.html
|
||||
append-cppflags -DSQLITE_ENABLE_COLUMN_METADATA
|
||||
|
||||
# Support dbstat virtual table.
|
||||
# http://sqlite.org/dbstat.html
|
||||
append-cppflags -DSQLITE_ENABLE_DBSTAT_VTAB
|
||||
|
||||
# Support Full-Text Search versions 3 and 4.
|
||||
# http://sqlite.org/fts3.html
|
||||
append-cppflags -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4
|
||||
|
||||
# Support R*Trees.
|
||||
# http://sqlite.org/rtree.html
|
||||
append-cppflags -DSQLITE_ENABLE_RTREE
|
||||
|
||||
# Support scan status functions.
|
||||
# http://sqlite.org/c3ref/stmt_scanstatus.html
|
||||
# http://sqlite.org/c3ref/stmt_scanstatus_reset.html
|
||||
append-cppflags -DSQLITE_ENABLE_STMT_SCANSTATUS
|
||||
|
||||
# Support unlock notification.
|
||||
# http://sqlite.org/unlock_notify.html
|
||||
append-cppflags -DSQLITE_ENABLE_UNLOCK_NOTIFY
|
||||
|
||||
# Support soundex() function.
|
||||
# http://sqlite.org/lang_corefunc.html#soundex
|
||||
append-cppflags -DSQLITE_SOUNDEX
|
||||
|
||||
if use icu; then
|
||||
# Support ICU extension.
|
||||
# http://sqlite.org/compile.html#enable_icu
|
||||
append-cppflags -DSQLITE_ENABLE_ICU
|
||||
fi
|
||||
|
||||
if use secure-delete; then
|
||||
# Enable secure_delete pragma by default.
|
||||
# http://sqlite.org/pragma.html#pragma_secure_delete
|
||||
append-cppflags -DSQLITE_SECURE_DELETE
|
||||
fi
|
||||
|
||||
if [[ "${CHOST}" == *-mint* ]]; then
|
||||
append-cppflags -DSQLITE_OMIT_WAL
|
||||
fi
|
||||
|
||||
# Use pread(), pread64(), pwrite(), pwrite64() functions for better performance if they are available.
|
||||
if $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -Werror=implicit-function-declaration -x c - -o "${T}/pread_pwrite_test" <<< $'#include <unistd.h>\nint main()\n{\n pread(0, NULL, 0, 0);\n pwrite(0, NULL, 0, 0);\n return 0;\n}' &> /dev/null; then
|
||||
append-cppflags -DUSE_PREAD
|
||||
fi
|
||||
if $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -Werror=implicit-function-declaration -x c - -o "${T}/pread64_pwrite64_test" <<< $'#include <unistd.h>\nint main()\n{\n pread64(0, NULL, 0, 0);\n pwrite64(0, NULL, 0, 0);\n return 0;\n}' &> /dev/null; then
|
||||
append-cppflags -DUSE_PREAD64
|
||||
elif $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -D_LARGEFILE64_SOURCE -Werror=implicit-function-declaration -x c - -o "${T}/pread64_pwrite64_test" <<< $'#include <unistd.h>\nint main()\n{\n pread64(0, NULL, 0, 0);\n pwrite64(0, NULL, 0, 0);\n return 0;\n}' &> /dev/null; then
|
||||
append-cppflags -DUSE_PREAD64 -D_LARGEFILE64_SOURCE
|
||||
fi
|
||||
|
||||
multilib-minimal_src_configure
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
# `configure` from amalgamation tarball does not support
|
||||
# --with-readline-inc and --(enable|disable)-tcl options.
|
||||
econf \
|
||||
--enable-$(amalgamation && echo dynamic-extensions || echo load-extension) \
|
||||
--enable-threadsafe \
|
||||
$(use_enable readline) \
|
||||
$(use_enable static-libs static) \
|
||||
$(amalgamation || echo --with-readline-inc="-I${EPREFIX}/usr/include/readline") \
|
||||
$(amalgamation || use_enable debug) \
|
||||
$(amalgamation || if use tcl || use test; then echo --enable-tcl; else echo --disable-tcl; fi)
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
emake TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}"
|
||||
|
||||
if use tools && multilib_is_native_abi; then
|
||||
emake showdb showjournal showstat4 showwal sqldiff
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
if [[ "${EUID}" -eq 0 ]]; then
|
||||
ewarn "Skipping tests due to root permissions"
|
||||
return
|
||||
fi
|
||||
|
||||
emake $(use debug && echo fulltest || echo test)
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake DESTDIR="${D}" HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" install
|
||||
|
||||
if use tools && multilib_is_native_abi; then
|
||||
newbin showdb sqlite3-show-db
|
||||
newbin showjournal sqlite3-show-journal
|
||||
newbin showstat4 sqlite3-show-stat4
|
||||
newbin showwal sqlite3-show-wal
|
||||
newbin sqldiff sqlite3-diff
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
prune_libtool_files
|
||||
|
||||
doman sqlite3.1
|
||||
|
||||
if use doc; then
|
||||
dohtml -A ico,odg,pdf,svg -r "${WORKDIR}/${PN}-doc-${DOC_PV}/"
|
||||
fi
|
||||
}
|
@ -1,210 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit autotools eutils flag-o-matic multilib multilib-minimal toolchain-funcs versionator
|
||||
|
||||
SRC_PV="$(printf "%u%02u%02u%02u" $(get_version_components))"
|
||||
DOC_PV="${SRC_PV}"
|
||||
# DOC_PV="$(printf "%u%02u%02u00" $(get_version_components $(get_version_component_range 1-3)))"
|
||||
|
||||
DESCRIPTION="A SQL Database Engine in a C Library"
|
||||
HOMEPAGE="http://sqlite.org/"
|
||||
SRC_URI="doc? ( http://sqlite.org/2015/${PN}-doc-${DOC_PV}.zip )
|
||||
tcl? ( http://sqlite.org/2015/${PN}-src-${SRC_PV}.zip )
|
||||
test? ( http://sqlite.org/2015/${PN}-src-${SRC_PV}.zip )
|
||||
tools? ( http://sqlite.org/2015/${PN}-src-${SRC_PV}.zip )
|
||||
!tcl? ( !test? ( !tools? ( http://sqlite.org/2015/${PN}-autoconf-${SRC_PV}.tar.gz ) ) )"
|
||||
|
||||
LICENSE="public-domain"
|
||||
SLOT="3"
|
||||
KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="debug doc icu +readline secure-delete static-libs tcl test tools"
|
||||
|
||||
RDEPEND="icu? ( dev-libs/icu:0=[${MULTILIB_USEDEP}] )
|
||||
readline? ( sys-libs/readline:0=[${MULTILIB_USEDEP}] )
|
||||
tcl? ( dev-lang/tcl:0=[${MULTILIB_USEDEP}] )
|
||||
abi_x86_32? (
|
||||
!<=app-emulation/emul-linux-x86-baselibs-20131008-r14
|
||||
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( app-arch/unzip )
|
||||
tcl? ( app-arch/unzip )
|
||||
test? (
|
||||
app-arch/unzip
|
||||
dev-lang/tcl:0[${MULTILIB_USEDEP}]
|
||||
)
|
||||
tools? ( dev-lang/tcl:0 )"
|
||||
|
||||
amalgamation() {
|
||||
! use tcl && ! use test && ! use tools
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
if amalgamation; then
|
||||
S="${WORKDIR}/${PN}-autoconf-${SRC_PV}"
|
||||
else
|
||||
S="${WORKDIR}/${PN}-src-${SRC_PV}"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
if amalgamation; then
|
||||
epatch "${FILESDIR}/${PN}-3.8.1-autoconf-dlopen_check.patch"
|
||||
|
||||
# http://www.sqlite.org/cgi/src/info/85bfa9a67f997084
|
||||
sed \
|
||||
-e "s/^sqlite3_SOURCES = shell.c sqlite3.h$/sqlite3_SOURCES = shell.c sqlite3.c sqlite3.h/" \
|
||||
-e "s/^sqlite3_LDADD = sqlite3.\$(OBJEXT) @READLINE_LIBS@$/sqlite3_LDADD = @READLINE_LIBS@\nsqlite3_CFLAGS = \$(AM_CFLAGS)/" \
|
||||
-i Makefile.am
|
||||
else
|
||||
epatch "${FILESDIR}/${PN}-3.8.1-src-dlopen_check.patch"
|
||||
epatch "${FILESDIR}/${PN}-3.8.1-tests-icu-52.patch"
|
||||
|
||||
# Fix shell1-5.0 test.
|
||||
# http://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-dev/2015-May/002575.html
|
||||
sed -e "/if {\$i==0x0D /s/\$i==0x0D /&|| (\$i>=0xE0 \&\& \$i<=0xEF) /" -i test/shell1.test
|
||||
fi
|
||||
|
||||
eautoreconf
|
||||
|
||||
# At least ppc-aix, x86-interix and *-solaris need newer libtool.
|
||||
# use prefix && eautoreconf
|
||||
|
||||
if use icu; then
|
||||
if amalgamation; then
|
||||
sed -e "s/LIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
|
||||
else
|
||||
sed -e "s/TLIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
|
||||
fi
|
||||
fi
|
||||
|
||||
multilib_copy_sources
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# `configure` from amalgamation tarball does not add -DSQLITE_DEBUG or -DNDEBUG flag.
|
||||
if amalgamation; then
|
||||
if use debug; then
|
||||
append-cppflags -DSQLITE_DEBUG
|
||||
else
|
||||
append-cppflags -DNDEBUG
|
||||
fi
|
||||
fi
|
||||
|
||||
# Support detection of misuse of SQLite API.
|
||||
# http://sqlite.org/compile.html#enable_api_armor
|
||||
append-cppflags -DSQLITE_ENABLE_API_ARMOR
|
||||
|
||||
# Support column metadata functions.
|
||||
# http://sqlite.org/c3ref/column_database_name.html
|
||||
append-cppflags -DSQLITE_ENABLE_COLUMN_METADATA
|
||||
|
||||
# Support dbstat virtual table.
|
||||
# http://sqlite.org/dbstat.html
|
||||
append-cppflags -DSQLITE_ENABLE_DBSTAT_VTAB
|
||||
|
||||
# Support Full-Text Search versions 3 and 4.
|
||||
# http://sqlite.org/fts3.html
|
||||
append-cppflags -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4
|
||||
|
||||
# Support R*Trees.
|
||||
# http://sqlite.org/rtree.html
|
||||
append-cppflags -DSQLITE_ENABLE_RTREE
|
||||
|
||||
# Support scan status functions.
|
||||
# http://sqlite.org/c3ref/stmt_scanstatus.html
|
||||
# http://sqlite.org/c3ref/stmt_scanstatus_reset.html
|
||||
append-cppflags -DSQLITE_ENABLE_STMT_SCANSTATUS
|
||||
|
||||
# Support unlock notification.
|
||||
# http://sqlite.org/unlock_notify.html
|
||||
append-cppflags -DSQLITE_ENABLE_UNLOCK_NOTIFY
|
||||
|
||||
# Support soundex() function.
|
||||
# http://sqlite.org/lang_corefunc.html#soundex
|
||||
append-cppflags -DSQLITE_SOUNDEX
|
||||
|
||||
if use icu; then
|
||||
# Support ICU extension.
|
||||
# http://sqlite.org/compile.html#enable_icu
|
||||
append-cppflags -DSQLITE_ENABLE_ICU
|
||||
fi
|
||||
|
||||
if use secure-delete; then
|
||||
# Enable secure_delete pragma by default.
|
||||
# http://sqlite.org/pragma.html#pragma_secure_delete
|
||||
append-cppflags -DSQLITE_SECURE_DELETE
|
||||
fi
|
||||
|
||||
if [[ "${CHOST}" == *-mint* ]]; then
|
||||
append-cppflags -DSQLITE_OMIT_WAL
|
||||
fi
|
||||
|
||||
# Use pread(), pread64(), pwrite(), pwrite64() functions for better performance if they are available.
|
||||
if $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -Werror=implicit-function-declaration -x c - -o "${T}/pread_pwrite_test" <<< $'#include <unistd.h>\nint main()\n{\n pread(0, NULL, 0, 0);\n pwrite(0, NULL, 0, 0);\n return 0;\n}' &> /dev/null; then
|
||||
append-cppflags -DUSE_PREAD
|
||||
fi
|
||||
if $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -Werror=implicit-function-declaration -x c - -o "${T}/pread64_pwrite64_test" <<< $'#include <unistd.h>\nint main()\n{\n pread64(0, NULL, 0, 0);\n pwrite64(0, NULL, 0, 0);\n return 0;\n}' &> /dev/null; then
|
||||
append-cppflags -DUSE_PREAD64
|
||||
elif $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -D_LARGEFILE64_SOURCE -Werror=implicit-function-declaration -x c - -o "${T}/pread64_pwrite64_test" <<< $'#include <unistd.h>\nint main()\n{\n pread64(0, NULL, 0, 0);\n pwrite64(0, NULL, 0, 0);\n return 0;\n}' &> /dev/null; then
|
||||
append-cppflags -DUSE_PREAD64 -D_LARGEFILE64_SOURCE
|
||||
fi
|
||||
|
||||
multilib-minimal_src_configure
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
# `configure` from amalgamation tarball does not support
|
||||
# --with-readline-inc and --(enable|disable)-tcl options.
|
||||
econf \
|
||||
--enable-$(amalgamation && echo dynamic-extensions || echo load-extension) \
|
||||
--enable-threadsafe \
|
||||
$(use_enable readline) \
|
||||
$(use_enable static-libs static) \
|
||||
$(amalgamation || echo --with-readline-inc="-I${EPREFIX}/usr/include/readline") \
|
||||
$(amalgamation || use_enable debug) \
|
||||
$(amalgamation || if use tcl || use test; then echo --enable-tcl; else echo --disable-tcl; fi)
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
emake TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}"
|
||||
|
||||
if use tools && multilib_is_native_abi; then
|
||||
emake showdb showjournal showstat4 showwal sqldiff
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
if [[ "${EUID}" -eq 0 ]]; then
|
||||
ewarn "Skipping tests due to root permissions"
|
||||
return
|
||||
fi
|
||||
|
||||
emake $(use debug && echo fulltest || echo test)
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake DESTDIR="${D}" HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" install
|
||||
|
||||
if use tools && multilib_is_native_abi; then
|
||||
newbin showdb sqlite3-show-db
|
||||
newbin showjournal sqlite3-show-journal
|
||||
newbin showstat4 sqlite3-show-stat4
|
||||
newbin showwal sqlite3-show-wal
|
||||
newbin sqldiff sqlite3-diff
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
prune_libtool_files
|
||||
|
||||
doman sqlite3.1
|
||||
|
||||
if use doc; then
|
||||
dohtml -A ico,odg,pdf,svg -r "${WORKDIR}/${PN}-doc-${DOC_PV}/"
|
||||
fi
|
||||
}
|
@ -1,216 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit autotools eutils flag-o-matic multilib multilib-minimal toolchain-funcs versionator
|
||||
|
||||
SRC_PV="$(printf "%u%02u%02u%02u" $(get_version_components))"
|
||||
DOC_PV="${SRC_PV}"
|
||||
# DOC_PV="$(printf "%u%02u%02u00" $(get_version_components $(get_version_component_range 1-3)))"
|
||||
|
||||
DESCRIPTION="A SQL Database Engine in a C Library"
|
||||
HOMEPAGE="http://sqlite.org/"
|
||||
SRC_URI="doc? ( http://sqlite.org/2015/${PN}-doc-${DOC_PV}.zip )
|
||||
tcl? ( http://sqlite.org/2015/${PN}-src-${SRC_PV}.zip )
|
||||
test? ( http://sqlite.org/2015/${PN}-src-${SRC_PV}.zip )
|
||||
tools? ( http://sqlite.org/2015/${PN}-src-${SRC_PV}.zip )
|
||||
!tcl? ( !test? ( !tools? ( http://sqlite.org/2015/${PN}-autoconf-${SRC_PV}.tar.gz ) ) )"
|
||||
|
||||
LICENSE="public-domain"
|
||||
SLOT="3"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="debug doc icu +readline secure-delete static-libs tcl test tools"
|
||||
|
||||
RDEPEND="icu? ( dev-libs/icu:0=[${MULTILIB_USEDEP}] )
|
||||
readline? ( sys-libs/readline:0=[${MULTILIB_USEDEP}] )
|
||||
tcl? ( dev-lang/tcl:0=[${MULTILIB_USEDEP}] )
|
||||
abi_x86_32? (
|
||||
!<=app-emulation/emul-linux-x86-baselibs-20131008-r14
|
||||
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( app-arch/unzip )
|
||||
tcl? ( app-arch/unzip )
|
||||
test? (
|
||||
app-arch/unzip
|
||||
dev-lang/tcl:0[${MULTILIB_USEDEP}]
|
||||
)
|
||||
tools? ( dev-lang/tcl:0 )"
|
||||
|
||||
amalgamation() {
|
||||
! use tcl && ! use test && ! use tools
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
if amalgamation; then
|
||||
S="${WORKDIR}/${PN}-autoconf-${SRC_PV}"
|
||||
else
|
||||
S="${WORKDIR}/${PN}-src-${SRC_PV}"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
if amalgamation; then
|
||||
epatch "${FILESDIR}/${PN}-3.8.1-autoconf-dlopen_check.patch"
|
||||
else
|
||||
epatch "${FILESDIR}/${PN}-3.8.1-src-dlopen_check.patch"
|
||||
|
||||
# Fix shell1-5.0 test.
|
||||
# http://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-dev/2015-May/002575.html
|
||||
sed -e "/if {\$i==0x0D /s/\$i==0x0D /&|| (\$i>=0xE0 \&\& \$i<=0xEF) /" -i test/shell1.test
|
||||
fi
|
||||
|
||||
eautoreconf
|
||||
|
||||
# At least ppc-aix, x86-interix and *-solaris need newer libtool.
|
||||
# use prefix && eautoreconf
|
||||
|
||||
# Fix building with Full-Text Search version 5.
|
||||
sed \
|
||||
-e "/^LIBOBJS1 =/s/$/ fts5.lo/" \
|
||||
-e "s/\$(LIBOBJ) \$(TLIBS)/& -lm/" \
|
||||
-e "/^TESTFIXTURE_SRC1 =/s/$/ fts5.c/" \
|
||||
-e "s/\$(TESTFIXTURE_SRC) \$(LIBTCL) \$(TLIBS)/& -lm/" \
|
||||
-i Makefile.in || die "sed failed"
|
||||
|
||||
if use icu; then
|
||||
if amalgamation; then
|
||||
sed -e "s/LIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
|
||||
else
|
||||
sed -e "s/TLIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
|
||||
fi
|
||||
fi
|
||||
|
||||
multilib_copy_sources
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# `configure` from amalgamation tarball does not add -DSQLITE_DEBUG or -DNDEBUG flag.
|
||||
if amalgamation; then
|
||||
if use debug; then
|
||||
append-cppflags -DSQLITE_DEBUG
|
||||
else
|
||||
append-cppflags -DNDEBUG
|
||||
fi
|
||||
fi
|
||||
|
||||
# Support detection of misuse of SQLite API.
|
||||
# http://sqlite.org/compile.html#enable_api_armor
|
||||
append-cppflags -DSQLITE_ENABLE_API_ARMOR
|
||||
|
||||
# Support column metadata functions.
|
||||
# http://sqlite.org/c3ref/column_database_name.html
|
||||
append-cppflags -DSQLITE_ENABLE_COLUMN_METADATA
|
||||
|
||||
# Support dbstat virtual table.
|
||||
# http://sqlite.org/dbstat.html
|
||||
append-cppflags -DSQLITE_ENABLE_DBSTAT_VTAB
|
||||
|
||||
# Support Full-Text Search versions 3, 4 and 5.
|
||||
# http://sqlite.org/fts3.html
|
||||
# http://sqlite.org/fts5.html
|
||||
append-cppflags -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS5
|
||||
|
||||
# Support Resumable Bulk Update extension.
|
||||
# http://sqlite.org/rbu.html
|
||||
append-cppflags -DSQLITE_ENABLE_RBU
|
||||
|
||||
# Support R*Trees.
|
||||
# http://sqlite.org/rtree.html
|
||||
append-cppflags -DSQLITE_ENABLE_RTREE
|
||||
|
||||
# Support scan status functions.
|
||||
# http://sqlite.org/c3ref/stmt_scanstatus.html
|
||||
# http://sqlite.org/c3ref/stmt_scanstatus_reset.html
|
||||
append-cppflags -DSQLITE_ENABLE_STMT_SCANSTATUS
|
||||
|
||||
# Support unlock notification.
|
||||
# http://sqlite.org/unlock_notify.html
|
||||
append-cppflags -DSQLITE_ENABLE_UNLOCK_NOTIFY
|
||||
|
||||
# Support soundex() function.
|
||||
# http://sqlite.org/lang_corefunc.html#soundex
|
||||
append-cppflags -DSQLITE_SOUNDEX
|
||||
|
||||
if use icu; then
|
||||
# Support ICU extension.
|
||||
# http://sqlite.org/compile.html#enable_icu
|
||||
append-cppflags -DSQLITE_ENABLE_ICU
|
||||
fi
|
||||
|
||||
if use secure-delete; then
|
||||
# Enable secure_delete pragma by default.
|
||||
# http://sqlite.org/pragma.html#pragma_secure_delete
|
||||
append-cppflags -DSQLITE_SECURE_DELETE
|
||||
fi
|
||||
|
||||
if [[ "${CHOST}" == *-mint* ]]; then
|
||||
append-cppflags -DSQLITE_OMIT_WAL
|
||||
fi
|
||||
|
||||
# Use pread(), pread64(), pwrite(), pwrite64() functions for better performance if they are available.
|
||||
if $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -Werror=implicit-function-declaration -x c - -o "${T}/pread_pwrite_test" <<< $'#include <unistd.h>\nint main()\n{\n pread(0, NULL, 0, 0);\n pwrite(0, NULL, 0, 0);\n return 0;\n}' &> /dev/null; then
|
||||
append-cppflags -DUSE_PREAD
|
||||
fi
|
||||
if $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -Werror=implicit-function-declaration -x c - -o "${T}/pread64_pwrite64_test" <<< $'#include <unistd.h>\nint main()\n{\n pread64(0, NULL, 0, 0);\n pwrite64(0, NULL, 0, 0);\n return 0;\n}' &> /dev/null; then
|
||||
append-cppflags -DUSE_PREAD64
|
||||
elif $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -D_LARGEFILE64_SOURCE -Werror=implicit-function-declaration -x c - -o "${T}/pread64_pwrite64_test" <<< $'#include <unistd.h>\nint main()\n{\n pread64(0, NULL, 0, 0);\n pwrite64(0, NULL, 0, 0);\n return 0;\n}' &> /dev/null; then
|
||||
append-cppflags -DUSE_PREAD64 -D_LARGEFILE64_SOURCE
|
||||
fi
|
||||
|
||||
multilib-minimal_src_configure
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
# `configure` from amalgamation tarball does not support
|
||||
# --with-readline-inc and --(enable|disable)-tcl options.
|
||||
econf \
|
||||
--enable-$(amalgamation && echo dynamic-extensions || echo load-extension) \
|
||||
--enable-threadsafe \
|
||||
$(use_enable readline) \
|
||||
$(use_enable static-libs static) \
|
||||
$(amalgamation || echo --with-readline-inc="-I${EPREFIX}/usr/include/readline") \
|
||||
$(amalgamation || use_enable debug) \
|
||||
$(amalgamation || if use tcl || use test; then echo --enable-tcl; else echo --disable-tcl; fi)
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
emake TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}"
|
||||
|
||||
if use tools && multilib_is_native_abi; then
|
||||
emake showdb showjournal showstat4 showwal sqldiff
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
if [[ "${EUID}" -eq 0 ]]; then
|
||||
ewarn "Skipping tests due to root permissions"
|
||||
return
|
||||
fi
|
||||
|
||||
emake $(use debug && echo fulltest || echo test)
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake DESTDIR="${D}" HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" install
|
||||
|
||||
if use tools && multilib_is_native_abi; then
|
||||
newbin showdb sqlite3-show-db
|
||||
newbin showjournal sqlite3-show-journal
|
||||
newbin showstat4 sqlite3-show-stat4
|
||||
newbin showwal sqlite3-show-wal
|
||||
newbin sqldiff sqlite3-diff
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
prune_libtool_files
|
||||
|
||||
doman sqlite3.1
|
||||
|
||||
if use doc; then
|
||||
dohtml -A ico,odg,pdf,svg -r "${WORKDIR}/${PN}-doc-${DOC_PV}/"
|
||||
fi
|
||||
}
|
@ -1,225 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit autotools eutils flag-o-matic multilib multilib-minimal toolchain-funcs versionator
|
||||
|
||||
SRC_PV="$(printf "%u%02u%02u%02u" $(get_version_components))"
|
||||
DOC_PV="${SRC_PV}"
|
||||
# DOC_PV="$(printf "%u%02u%02u00" $(get_version_components $(get_version_component_range 1-3)))"
|
||||
|
||||
DESCRIPTION="A SQL Database Engine in a C Library"
|
||||
HOMEPAGE="http://sqlite.org/"
|
||||
SRC_URI="doc? ( http://sqlite.org/2015/${PN}-doc-${DOC_PV}.zip )
|
||||
tcl? ( http://sqlite.org/2015/${PN}-src-${SRC_PV}.zip )
|
||||
test? ( http://sqlite.org/2015/${PN}-src-${SRC_PV}.zip )
|
||||
tools? ( http://sqlite.org/2015/${PN}-src-${SRC_PV}.zip )
|
||||
!tcl? ( !test? ( !tools? ( http://sqlite.org/2015/${PN}-autoconf-${SRC_PV}.tar.gz ) ) )"
|
||||
|
||||
LICENSE="public-domain"
|
||||
SLOT="3"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="debug doc icu +readline secure-delete static-libs tcl test tools"
|
||||
|
||||
RDEPEND="icu? ( dev-libs/icu:0=[${MULTILIB_USEDEP}] )
|
||||
readline? ( sys-libs/readline:0=[${MULTILIB_USEDEP}] )
|
||||
tcl? ( dev-lang/tcl:0=[${MULTILIB_USEDEP}] )
|
||||
tools? ( dev-lang/tcl:0=[${MULTILIB_USEDEP}] )
|
||||
abi_x86_32? (
|
||||
!<=app-emulation/emul-linux-x86-baselibs-20131008-r14
|
||||
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( app-arch/unzip )
|
||||
tcl? ( app-arch/unzip )
|
||||
test? (
|
||||
app-arch/unzip
|
||||
dev-lang/tcl:0[${MULTILIB_USEDEP}]
|
||||
)
|
||||
tools? ( app-arch/unzip )"
|
||||
|
||||
full_tarball() {
|
||||
use tcl || use test || use tools
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
if full_tarball; then
|
||||
S="${WORKDIR}/${PN}-src-${SRC_PV}"
|
||||
else
|
||||
S="${WORKDIR}/${PN}-autoconf-${SRC_PV}"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
if full_tarball; then
|
||||
epatch "${FILESDIR}/${PN}-3.8.1-src-dlopen_check.patch"
|
||||
|
||||
# Increase timeout for fuzzcheck from 120 s to 3600 s.
|
||||
# (iTimeout in test/fuzzcheck.c:main)
|
||||
sed -e "/\.\/fuzzcheck\$(TEXE)/s/\$(FUZZDATA)/--timeout 3600 &/" -i Makefile.in || die "sed failed"
|
||||
|
||||
# Fix shell1-5.0 test.
|
||||
# http://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-dev/2015-May/002575.html
|
||||
sed -e "/if {\$i==0x0D /s/\$i==0x0D /&|| (\$i>=0xE0 \&\& \$i<=0xEF) /" -i test/shell1.test
|
||||
else
|
||||
epatch "${FILESDIR}/${PN}-3.8.1-autoconf-dlopen_check.patch"
|
||||
fi
|
||||
|
||||
eautoreconf
|
||||
|
||||
multilib_copy_sources
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local CPPFLAGS="${CPPFLAGS}" options=()
|
||||
|
||||
options+=(
|
||||
--enable-$(full_tarball && echo load-extension || echo dynamic-extensions)
|
||||
--enable-threadsafe
|
||||
)
|
||||
|
||||
# Support detection of misuse of SQLite API.
|
||||
# http://sqlite.org/compile.html#enable_api_armor
|
||||
append-cppflags -DSQLITE_ENABLE_API_ARMOR
|
||||
|
||||
# Support column metadata functions.
|
||||
# http://sqlite.org/c3ref/column_database_name.html
|
||||
append-cppflags -DSQLITE_ENABLE_COLUMN_METADATA
|
||||
|
||||
# Support dbstat virtual table.
|
||||
# http://sqlite.org/dbstat.html
|
||||
append-cppflags -DSQLITE_ENABLE_DBSTAT_VTAB
|
||||
|
||||
# Support Full-Text Search versions 3, 4 and 5.
|
||||
# http://sqlite.org/fts3.html
|
||||
# http://sqlite.org/fts5.html
|
||||
append-cppflags -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4
|
||||
options+=(--enable-fts5)
|
||||
|
||||
# Support JSON1 extension.
|
||||
# http://sqlite.org/json1.html
|
||||
append-cppflags -DSQLITE_ENABLE_JSON1
|
||||
|
||||
# Support Resumable Bulk Update extension.
|
||||
# http://sqlite.org/rbu.html
|
||||
append-cppflags -DSQLITE_ENABLE_RBU
|
||||
|
||||
# Support R*Trees.
|
||||
# http://sqlite.org/rtree.html
|
||||
append-cppflags -DSQLITE_ENABLE_RTREE
|
||||
|
||||
# Support scan status functions.
|
||||
# http://sqlite.org/c3ref/stmt_scanstatus.html
|
||||
# http://sqlite.org/c3ref/stmt_scanstatus_reset.html
|
||||
append-cppflags -DSQLITE_ENABLE_STMT_SCANSTATUS
|
||||
|
||||
# Support unlock notification.
|
||||
# http://sqlite.org/unlock_notify.html
|
||||
append-cppflags -DSQLITE_ENABLE_UNLOCK_NOTIFY
|
||||
|
||||
# Support soundex() function.
|
||||
# http://sqlite.org/lang_corefunc.html#soundex
|
||||
append-cppflags -DSQLITE_SOUNDEX
|
||||
|
||||
# debug USE flag.
|
||||
if full_tarball; then
|
||||
options+=($(use_enable debug))
|
||||
else
|
||||
if use debug; then
|
||||
append-cppflags -DSQLITE_DEBUG
|
||||
else
|
||||
append-cppflags -DNDEBUG
|
||||
fi
|
||||
fi
|
||||
|
||||
# icu USE flag.
|
||||
if use icu; then
|
||||
# Support ICU extension.
|
||||
# http://sqlite.org/compile.html#enable_icu
|
||||
append-cppflags -DSQLITE_ENABLE_ICU
|
||||
if full_tarball; then
|
||||
sed -e "s/^TLIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
|
||||
else
|
||||
sed -e "s/^LIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
|
||||
fi
|
||||
fi
|
||||
|
||||
# readline USE flag.
|
||||
options+=($(use_enable readline))
|
||||
if full_tarball && use readline; then
|
||||
options+=(--with-readline-inc="-I${EPREFIX}/usr/include/readline")
|
||||
fi
|
||||
|
||||
# secure-delete USE flag.
|
||||
if use secure-delete; then
|
||||
# Enable secure_delete pragma by default.
|
||||
# http://sqlite.org/pragma.html#pragma_secure_delete
|
||||
append-cppflags -DSQLITE_SECURE_DELETE
|
||||
fi
|
||||
|
||||
# static-libs USE flag.
|
||||
options+=($(use_enable static-libs static))
|
||||
|
||||
# tcl, test, tools USE flags.
|
||||
if full_tarball; then
|
||||
options+=(--enable-tcl)
|
||||
fi
|
||||
|
||||
if [[ "${CHOST}" == *-mint* ]]; then
|
||||
append-cppflags -DSQLITE_OMIT_WAL
|
||||
fi
|
||||
|
||||
# Use pread(), pread64(), pwrite(), pwrite64() functions for better performance if they are available.
|
||||
if $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -Werror=implicit-function-declaration -x c - -o "${T}/pread_pwrite_test" <<< $'#include <unistd.h>\nint main()\n{\n pread(0, NULL, 0, 0);\n pwrite(0, NULL, 0, 0);\n return 0;\n}' &> /dev/null; then
|
||||
append-cppflags -DUSE_PREAD
|
||||
fi
|
||||
if $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -Werror=implicit-function-declaration -x c - -o "${T}/pread64_pwrite64_test" <<< $'#include <unistd.h>\nint main()\n{\n pread64(0, NULL, 0, 0);\n pwrite64(0, NULL, 0, 0);\n return 0;\n}' &> /dev/null; then
|
||||
append-cppflags -DUSE_PREAD64
|
||||
elif $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -D_LARGEFILE64_SOURCE -Werror=implicit-function-declaration -x c - -o "${T}/pread64_pwrite64_test" <<< $'#include <unistd.h>\nint main()\n{\n pread64(0, NULL, 0, 0);\n pwrite64(0, NULL, 0, 0);\n return 0;\n}' &> /dev/null; then
|
||||
append-cppflags -DUSE_PREAD64 -D_LARGEFILE64_SOURCE
|
||||
fi
|
||||
|
||||
econf "${options[@]}"
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
emake HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}"
|
||||
|
||||
if use tools && multilib_is_native_abi; then
|
||||
emake showdb showjournal showstat4 showwal sqldiff sqlite3_analyzer
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
if [[ "${EUID}" -eq 0 ]]; then
|
||||
ewarn "Skipping tests due to root permissions"
|
||||
return
|
||||
fi
|
||||
|
||||
emake HAVE_TCL="$(usex tcl 1 "")" $(use debug && echo fulltest || echo test)
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake DESTDIR="${D}" HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" install
|
||||
|
||||
if use tools && multilib_is_native_abi; then
|
||||
newbin showdb sqlite3-show-db
|
||||
newbin showjournal sqlite3-show-journal
|
||||
newbin showstat4 sqlite3-show-stat4
|
||||
newbin showwal sqlite3-show-wal
|
||||
newbin sqldiff sqlite3-diff
|
||||
newbin sqlite3_analyzer sqlite3-analyzer
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
prune_libtool_files
|
||||
|
||||
doman sqlite3.1
|
||||
|
||||
if use doc; then
|
||||
dohtml -A ico,odg,pdf,svg -r "${WORKDIR}/${PN}-doc-${DOC_PV}/"
|
||||
fi
|
||||
}
|
@ -1,225 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit autotools eutils flag-o-matic multilib multilib-minimal toolchain-funcs versionator
|
||||
|
||||
SRC_PV="$(printf "%u%02u%02u%02u" $(get_version_components))"
|
||||
DOC_PV="${SRC_PV}"
|
||||
# DOC_PV="$(printf "%u%02u%02u00" $(get_version_components $(get_version_component_range 1-3)))"
|
||||
|
||||
DESCRIPTION="A SQL Database Engine in a C Library"
|
||||
HOMEPAGE="http://sqlite.org/"
|
||||
SRC_URI="doc? ( http://sqlite.org/2015/${PN}-doc-${DOC_PV}.zip )
|
||||
tcl? ( http://sqlite.org/2015/${PN}-src-${SRC_PV}.zip )
|
||||
test? ( http://sqlite.org/2015/${PN}-src-${SRC_PV}.zip )
|
||||
tools? ( http://sqlite.org/2015/${PN}-src-${SRC_PV}.zip )
|
||||
!tcl? ( !test? ( !tools? ( http://sqlite.org/2015/${PN}-autoconf-${SRC_PV}.tar.gz ) ) )"
|
||||
|
||||
LICENSE="public-domain"
|
||||
SLOT="3"
|
||||
KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="debug doc icu +readline secure-delete static-libs tcl test tools"
|
||||
|
||||
RDEPEND="icu? ( dev-libs/icu:0=[${MULTILIB_USEDEP}] )
|
||||
readline? ( sys-libs/readline:0=[${MULTILIB_USEDEP}] )
|
||||
tcl? ( dev-lang/tcl:0=[${MULTILIB_USEDEP}] )
|
||||
tools? ( dev-lang/tcl:0=[${MULTILIB_USEDEP}] )
|
||||
abi_x86_32? (
|
||||
!<=app-emulation/emul-linux-x86-baselibs-20131008-r14
|
||||
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)]
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( app-arch/unzip )
|
||||
tcl? ( app-arch/unzip )
|
||||
test? (
|
||||
app-arch/unzip
|
||||
dev-lang/tcl:0[${MULTILIB_USEDEP}]
|
||||
)
|
||||
tools? ( app-arch/unzip )"
|
||||
|
||||
full_tarball() {
|
||||
use tcl || use test || use tools
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
if full_tarball; then
|
||||
S="${WORKDIR}/${PN}-src-${SRC_PV}"
|
||||
else
|
||||
S="${WORKDIR}/${PN}-autoconf-${SRC_PV}"
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
if full_tarball; then
|
||||
epatch "${FILESDIR}/${PN}-3.8.1-src-dlopen_check.patch"
|
||||
|
||||
# Increase timeout for fuzzcheck from 120 s to 3600 s.
|
||||
# (iTimeout in test/fuzzcheck.c:main)
|
||||
sed -e "/\.\/fuzzcheck\$(TEXE)/s/\$(FUZZDATA)/--timeout 3600 &/" -i Makefile.in || die "sed failed"
|
||||
|
||||
# Fix shell1-5.0 test.
|
||||
# http://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-dev/2015-May/002575.html
|
||||
sed -e "/if {\$i==0x0D /s/\$i==0x0D /&|| (\$i>=0xE0 \&\& \$i<=0xEF) /" -i test/shell1.test
|
||||
else
|
||||
epatch "${FILESDIR}/${PN}-3.8.1-autoconf-dlopen_check.patch"
|
||||
fi
|
||||
|
||||
eautoreconf
|
||||
|
||||
multilib_copy_sources
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local CPPFLAGS="${CPPFLAGS}" options=()
|
||||
|
||||
options+=(
|
||||
--enable-$(full_tarball && echo load-extension || echo dynamic-extensions)
|
||||
--enable-threadsafe
|
||||
)
|
||||
|
||||
# Support detection of misuse of SQLite API.
|
||||
# http://sqlite.org/compile.html#enable_api_armor
|
||||
append-cppflags -DSQLITE_ENABLE_API_ARMOR
|
||||
|
||||
# Support column metadata functions.
|
||||
# http://sqlite.org/c3ref/column_database_name.html
|
||||
append-cppflags -DSQLITE_ENABLE_COLUMN_METADATA
|
||||
|
||||
# Support dbstat virtual table.
|
||||
# http://sqlite.org/dbstat.html
|
||||
append-cppflags -DSQLITE_ENABLE_DBSTAT_VTAB
|
||||
|
||||
# Support Full-Text Search versions 3, 4 and 5.
|
||||
# http://sqlite.org/fts3.html
|
||||
# http://sqlite.org/fts5.html
|
||||
append-cppflags -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4
|
||||
options+=(--enable-fts5)
|
||||
|
||||
# Support JSON1 extension.
|
||||
# http://sqlite.org/json1.html
|
||||
append-cppflags -DSQLITE_ENABLE_JSON1
|
||||
|
||||
# Support Resumable Bulk Update extension.
|
||||
# http://sqlite.org/rbu.html
|
||||
append-cppflags -DSQLITE_ENABLE_RBU
|
||||
|
||||
# Support R*Trees.
|
||||
# http://sqlite.org/rtree.html
|
||||
append-cppflags -DSQLITE_ENABLE_RTREE
|
||||
|
||||
# Support scan status functions.
|
||||
# http://sqlite.org/c3ref/stmt_scanstatus.html
|
||||
# http://sqlite.org/c3ref/stmt_scanstatus_reset.html
|
||||
append-cppflags -DSQLITE_ENABLE_STMT_SCANSTATUS
|
||||
|
||||
# Support unlock notification.
|
||||
# http://sqlite.org/unlock_notify.html
|
||||
append-cppflags -DSQLITE_ENABLE_UNLOCK_NOTIFY
|
||||
|
||||
# Support soundex() function.
|
||||
# http://sqlite.org/lang_corefunc.html#soundex
|
||||
append-cppflags -DSQLITE_SOUNDEX
|
||||
|
||||
# debug USE flag.
|
||||
if full_tarball; then
|
||||
options+=($(use_enable debug))
|
||||
else
|
||||
if use debug; then
|
||||
append-cppflags -DSQLITE_DEBUG
|
||||
else
|
||||
append-cppflags -DNDEBUG
|
||||
fi
|
||||
fi
|
||||
|
||||
# icu USE flag.
|
||||
if use icu; then
|
||||
# Support ICU extension.
|
||||
# http://sqlite.org/compile.html#enable_icu
|
||||
append-cppflags -DSQLITE_ENABLE_ICU
|
||||
if full_tarball; then
|
||||
sed -e "s/^TLIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
|
||||
else
|
||||
sed -e "s/^LIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
|
||||
fi
|
||||
fi
|
||||
|
||||
# readline USE flag.
|
||||
options+=($(use_enable readline))
|
||||
if full_tarball && use readline; then
|
||||
options+=(--with-readline-inc="-I${EPREFIX}/usr/include/readline")
|
||||
fi
|
||||
|
||||
# secure-delete USE flag.
|
||||
if use secure-delete; then
|
||||
# Enable secure_delete pragma by default.
|
||||
# http://sqlite.org/pragma.html#pragma_secure_delete
|
||||
append-cppflags -DSQLITE_SECURE_DELETE
|
||||
fi
|
||||
|
||||
# static-libs USE flag.
|
||||
options+=($(use_enable static-libs static))
|
||||
|
||||
# tcl, test, tools USE flags.
|
||||
if full_tarball; then
|
||||
options+=(--enable-tcl)
|
||||
fi
|
||||
|
||||
if [[ "${CHOST}" == *-mint* ]]; then
|
||||
append-cppflags -DSQLITE_OMIT_WAL
|
||||
fi
|
||||
|
||||
# Use pread(), pread64(), pwrite(), pwrite64() functions for better performance if they are available.
|
||||
if $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -Werror=implicit-function-declaration -x c - -o "${T}/pread_pwrite_test" <<< $'#include <unistd.h>\nint main()\n{\n pread(0, NULL, 0, 0);\n pwrite(0, NULL, 0, 0);\n return 0;\n}' &> /dev/null; then
|
||||
append-cppflags -DUSE_PREAD
|
||||
fi
|
||||
if $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -Werror=implicit-function-declaration -x c - -o "${T}/pread64_pwrite64_test" <<< $'#include <unistd.h>\nint main()\n{\n pread64(0, NULL, 0, 0);\n pwrite64(0, NULL, 0, 0);\n return 0;\n}' &> /dev/null; then
|
||||
append-cppflags -DUSE_PREAD64
|
||||
elif $(tc-getCC) ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -D_LARGEFILE64_SOURCE -Werror=implicit-function-declaration -x c - -o "${T}/pread64_pwrite64_test" <<< $'#include <unistd.h>\nint main()\n{\n pread64(0, NULL, 0, 0);\n pwrite64(0, NULL, 0, 0);\n return 0;\n}' &> /dev/null; then
|
||||
append-cppflags -DUSE_PREAD64 -D_LARGEFILE64_SOURCE
|
||||
fi
|
||||
|
||||
econf "${options[@]}"
|
||||
}
|
||||
|
||||
multilib_src_compile() {
|
||||
emake HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}"
|
||||
|
||||
if use tools && multilib_is_native_abi; then
|
||||
emake showdb showjournal showstat4 showwal sqldiff sqlite3_analyzer
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_test() {
|
||||
if [[ "${EUID}" -eq 0 ]]; then
|
||||
ewarn "Skipping tests due to root permissions"
|
||||
return
|
||||
fi
|
||||
|
||||
emake HAVE_TCL="$(usex tcl 1 "")" $(use debug && echo fulltest || echo test)
|
||||
}
|
||||
|
||||
multilib_src_install() {
|
||||
emake DESTDIR="${D}" HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" install
|
||||
|
||||
if use tools && multilib_is_native_abi; then
|
||||
newbin showdb sqlite3-show-db
|
||||
newbin showjournal sqlite3-show-journal
|
||||
newbin showstat4 sqlite3-show-stat4
|
||||
newbin showwal sqlite3-show-wal
|
||||
newbin sqldiff sqlite3-diff
|
||||
newbin sqlite3_analyzer sqlite3-analyzer
|
||||
fi
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
prune_libtool_files
|
||||
|
||||
doman sqlite3.1
|
||||
|
||||
if use doc; then
|
||||
dohtml -A ico,odf,odg,pdf,svg -r "${WORKDIR}/${PN}-doc-${DOC_PV}/"
|
||||
fi
|
||||
}
|
@ -1,5 +1,4 @@
|
||||
DIST CEGUI-0.6.2-DOCS.tar.gz 18396638 SHA256 f1ea46bd583c486a6c588118573ebde55b06e90b190083e95525820e950ce2c8 SHA512 56ded923f21f18d837d71425e06fe8675a2efa979edde461a9e4e558c213cbb79ff8eeb576211da6ade56526ccdd9644a7a45b3619058615388e3882f96b9fb4 WHIRLPOOL f67c9dba4558c43ec9d14c160f228e974de4364bfe36ebfa9f3fe6bfc290fd5c4f024e954525845cd83645a06d53e6d63776137cbe58c459bcdd0e350d12e9c7
|
||||
DIST CEGUI-0.6.2b.tar.gz 2628081 SHA256 eb77741cd9fcc927a876e8116b98691212e973d2264e2071406423f6ca3e305f SHA512 52ed7e7a97024138af957815a396dda74b650e7c53542d2d48c5eb95335bec270abca3685c49b05078f4338079334df6bfbcec75e9b7eb21ee40bdbff5f57b20 WHIRLPOOL 3fde683a82fb0be33565adb28fbcb4b7001be99f1b3bdb2d3af9abecc5dc7681d633f141cc19f9eb1dc264d0fb0b2084ea604202a22a3e2cc415bdb6b9686161
|
||||
DIST cegui-0.8.4.tar.bz2 17894771 SHA256 b5fcbd548b83045e92c4da413928113be77ebee0117368925e1904b3b957a388 SHA512 493c949426ff2d9b760712b5fe7ed6a427404cd13934c36c7bdf207c0458686bcc74b675e9aeb5d16cd04f0874515503b8d3135ceb71b4d74738f047e4da39c7 WHIRLPOOL 1550a7fe2688c8247c8036e7302b0990b3abf3b16d794cd1d7f38a4af1feb4d373db476d911428e1380b79ff0feba1dedc1abefba17255b46eb6fa4956c39bc4
|
||||
DIST cegui-0.8.5.tar.bz2 18112881 SHA256 a82b0d970c6ceccb8db419a1dc81b5fc3e0e4afb5888fe8d58c63561c82884ce SHA512 b2d9b378f1ddbfc5612d05d2d86cdd98887b4a6e6286a796c338410dd527b05c84db712621ffc474a2690646e23b43b5207fd5f4709c69c9879639ad7292a7c4 WHIRLPOOL b3b562b56229a0fc73187899f36844225a70aaa92113a05498fa4cb88b14c1bc3b58221305782f54974d05147b279f3859eeb0eeede956411633f720a8aa8307
|
||||
DIST cegui-0.8.6.tar.bz2 18114333 SHA256 5a5dd820aea4b7c8d300e9f7ca6892348bc8b77ec5157d6a3ed1e78236628686 SHA512 3aa901d493c3767d3e5ecd2d72e20a85158289c13e1765c654ed2bd052a3e5a2b86fb2ba5c3e80aa41d118c884df04108f681f523057f24626465999b1faa9ba WHIRLPOOL 888c246ecab77189a8abbc64254f50d51d01ee503c406da2b461d51b01abaf6abb56acc2adf0ad63a7cdd59cd1b8e19a8872e1690264d7b695545f25f41281e9
|
||||
DIST cegui-0.8.7.tar.bz2 18114465 SHA256 b351e8957716d9c170612c13559e49530ef911ae4bac2feeb2dacd70b430e518 SHA512 271ff2a1e19f46c7d40cbc210bc665666e45b56cd0efea460db4d08df134d929337846eaf923db1b915597965aab27ad39512d6567cc63ef883555cbff542e56 WHIRLPOOL 55b7dda2ccbb344b504d81681e900979bc31c261875741d2ff483bf3822eea3d484ac6d99526c9e6d718d0376f8a4bd3cd08d7dd38e030880b1d275bb325959b
|
||||
|
@ -1,111 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
# TODO: multiple ABI?
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
inherit eutils flag-o-matic cmake-utils python-single-r1
|
||||
|
||||
DESCRIPTION="Crazy Eddie's GUI System"
|
||||
HOMEPAGE="http://www.cegui.org.uk/"
|
||||
SRC_URI="mirror://sourceforge/crayzedsgui/${P}.tar.bz2"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 -ppc ~x86"
|
||||
IUSE="bidi debug devil doc freeimage expat irrlicht lua ogre opengl pcre python static-libs tinyxml truetype xerces-c +xml zip"
|
||||
REQUIRED_USE="|| ( expat tinyxml xerces-c xml )
|
||||
${PYTHON_REQUIRED_USE}" # bug 362223
|
||||
|
||||
# gles broken
|
||||
# gles? ( media-libs/mesa[gles1] )
|
||||
# directfb broken
|
||||
# directfb? ( dev-libs/DirectFB )
|
||||
RDEPEND="
|
||||
virtual/libiconv
|
||||
bidi? ( dev-libs/fribidi )
|
||||
devil? ( media-libs/devil )
|
||||
expat? ( dev-libs/expat )
|
||||
freeimage? ( media-libs/freeimage )
|
||||
irrlicht? ( dev-games/irrlicht )
|
||||
lua? (
|
||||
dev-lang/lua:0
|
||||
dev-lua/toluapp
|
||||
)
|
||||
ogre? ( >=dev-games/ogre-1.7 )
|
||||
opengl? (
|
||||
virtual/opengl
|
||||
virtual/glu
|
||||
media-libs/glew
|
||||
)
|
||||
pcre? ( dev-libs/libpcre )
|
||||
python? (
|
||||
${PYTHON_DEPS}
|
||||
dev-libs/boost:=[python,${PYTHON_USEDEP}]
|
||||
)
|
||||
tinyxml? ( dev-libs/tinyxml )
|
||||
truetype? ( media-libs/freetype:2 )
|
||||
xerces-c? ( dev-libs/xerces-c )
|
||||
xml? ( dev-libs/libxml2 )
|
||||
zip? ( sys-libs/zlib[minizip] )"
|
||||
DEPEND="${RDEPEND}
|
||||
${PYTHON_DEPS}
|
||||
virtual/pkgconfig
|
||||
doc? ( app-doc/doxygen )
|
||||
opengl? ( media-libs/glm )"
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e '/CEGUI_ABI_AGE/s/5/4/' CMakeLists.txt || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# https://bitbucket.org/cegui/cegui/issues/991
|
||||
append-ldflags $(no-as-needed)
|
||||
|
||||
local mycmakeargs=(
|
||||
-DCEGUI_BUILD_IMAGECODEC_CORONA=OFF
|
||||
$(cmake-utils_use devil CEGUI_BUILD_IMAGECODEC_DEVIL)
|
||||
$(cmake-utils_use freeimage CEGUI_BUILD_IMAGECODEC_FREEIMAGE)
|
||||
-DCEGUI_BUILD_IMAGECODEC_PVR=OFF
|
||||
-DCEGUI_BUILD_IMAGECODEC_SILLY=OFF
|
||||
-DCEGUI_BUILD_IMAGECODEC_STB=ON
|
||||
-DCEGUI_BUILD_IMAGECODEC_TGA=ON
|
||||
$(cmake-utils_use lua CEGUI_BUILD_LUA_GENERATOR)
|
||||
$(cmake-utils_use lua CEGUI_BUILD_LUA_MODULE)
|
||||
$(cmake-utils_use python CEGUI_BUILD_PYTHON_MODULES)
|
||||
-DCEGUI_BUILD_RENDERER_DIRECTFB=OFF
|
||||
$(cmake-utils_use irrlicht CEGUI_BUILD_RENDERER_IRRLICHT)
|
||||
-DCEGUI_BUILD_RENDERER_NULL=ON
|
||||
$(cmake-utils_use ogre CEGUI_BUILD_RENDERER_OGRE)
|
||||
$(cmake-utils_use opengl CEGUI_BUILD_RENDERER_OPENGL)
|
||||
$(cmake-utils_use opengl CEGUI_BUILD_RENDERER_OPENGL3)
|
||||
-DCEGUI_BUILD_RENDERER_OPENGLES=OFF
|
||||
$(cmake-utils_use static-libs CEGUI_BUILD_STATIC_CONFIGURATION)
|
||||
-DCEGUI_BUILD_TESTS=OFF
|
||||
$(cmake-utils_use expat CEGUI_BUILD_XMLPARSER_EXPAT)
|
||||
$(cmake-utils_use xml CEGUI_BUILD_XMLPARSER_LIBXML2)
|
||||
-DCEGUI_BUILD_XMLPARSER_RAPIDXML=OFF
|
||||
$(cmake-utils_use tinyxml CEGUI_BUILD_XMLPARSER_TINYXML)
|
||||
$(cmake-utils_use xerces-c CEGUI_BUILD_XMLPARSER_XERCES)
|
||||
$(cmake-utils_use truetype CEGUI_HAS_FREETYPE)
|
||||
$(cmake-utils_use zip CEGUI_HAS_MINIZIP_RESOURCE_PROVIDER)
|
||||
$(cmake-utils_use pcre CEGUI_HAS_PCRE_REGEX)
|
||||
-DCEGUI_SAMPLES_ENABLED=OFF
|
||||
$(cmake-utils_use bidi CEGUI_USE_FRIBIDI)
|
||||
-DCEGUI_USE_MINIBIDI=OFF
|
||||
)
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake-utils_src_compile
|
||||
use doc && emake -C "${BUILD_DIR}" html
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
use doc && dohtml "${BUILD_DIR}"/doc/doxygen/html/*
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST libarcus-1.0.0_pre20160307.tar.gz 40461 SHA256 ca4f286cc8bae08ddf166fa470f8381f25cf61629168ca965a2f4079e758ebfc SHA512 ec654fbe2d34ad60afd0c1f3745e9f0ef5709e3698ea78d17089dad5e86cb686f38a0ea4cca07b6911058ebdf61c17b51a89c002cbf74cbbd4a68a133d8984e5 WHIRLPOOL 0c688c0fb20022a14bce6870fd1da84c891b2f68f335d9f6ebcc25432dab51823b3e9d20be8a3a51a69bc1832c3cd55576c91e0246fcc15fc4456916d5278b28
|
@ -0,0 +1,77 @@
|
||||
diff -Naur a/CMakeLists.txt b/CMakeLists.txt
|
||||
--- a/CMakeLists.txt 2016-03-07 10:36:38.000000000 +0100
|
||||
+++ b/CMakeLists.txt 2016-04-16 11:54:15.499524812 +0200
|
||||
@@ -1,6 +1,7 @@
|
||||
project(arcus)
|
||||
cmake_minimum_required(VERSION 2.8.12)
|
||||
|
||||
+include(GNUInstallDirs)
|
||||
include(CMakePackageConfigHelpers)
|
||||
|
||||
option(BUILD_PYTHON "Build " ON)
|
||||
@@ -14,10 +15,12 @@
|
||||
|
||||
if(BUILD_PYTHON)
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
|
||||
- if(APPLE OR WIN32)
|
||||
- set(PYTHON_SITE_PACKAGES_DIR lib/python3.4/site-packages CACHE STRING "Directory to install Python bindings to")
|
||||
- else()
|
||||
- set(PYTHON_SITE_PACKAGES_DIR lib/python3/dist-packages CACHE STRING "Directory to install Python bindings to")
|
||||
+ if(NOT PYTHON_SITE_PACKAGES_DIR)
|
||||
+ if(APPLE OR WIN32)
|
||||
+ set(PYTHON_SITE_PACKAGES_DIR lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages CACHE STRING "Directory to install Python bindings to")
|
||||
+ else()
|
||||
+ set(PYTHON_SITE_PACKAGES_DIR lib/python${PYTHON_VERSION_MAJOR}/dist-packages CACHE STRING "Directory to install Python bindings to")
|
||||
+ endif()
|
||||
endif()
|
||||
find_package(SIP REQUIRED)
|
||||
include_directories(python/ src/ ${PYTHON_INCLUDE_DIR} ${SIP_INCLUDE_DIR})
|
||||
@@ -57,7 +60,7 @@
|
||||
set(ARCUS_VERSION 1.0.0)
|
||||
set(ARCUS_SOVERSION 2)
|
||||
|
||||
-set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
|
||||
+set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")
|
||||
|
||||
if(BUILD_STATIC)
|
||||
add_library(Arcus STATIC ${arcus_SRCS})
|
||||
@@ -89,7 +92,7 @@
|
||||
target_include_directories(Arcus PUBLIC
|
||||
${PROTOBUF_INCLUDE_DIR}
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>
|
||||
- $<INSTALL_INTERFACE:include>
|
||||
+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
|
||||
)
|
||||
target_link_libraries(Arcus PUBLIC
|
||||
${PROTOBUF_LIBRARY}
|
||||
@@ -120,23 +123,23 @@
|
||||
|
||||
install(TARGETS Arcus
|
||||
EXPORT Arcus-targets
|
||||
- RUNTIME DESTINATION bin
|
||||
- LIBRARY DESTINATION lib
|
||||
- ARCHIVE DESTINATION lib
|
||||
- PUBLIC_HEADER DESTINATION include/Arcus
|
||||
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
+ PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/Arcus
|
||||
)
|
||||
|
||||
install(EXPORT Arcus-targets
|
||||
- DESTINATION lib/cmake/Arcus
|
||||
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/Arcus
|
||||
)
|
||||
|
||||
-configure_package_config_file(ArcusConfig.cmake.in ${CMAKE_BINARY_DIR}/ArcusConfig.cmake INSTALL_DESTINATION lib/cmake/Arcus)
|
||||
+configure_package_config_file(ArcusConfig.cmake.in ${CMAKE_BINARY_DIR}/ArcusConfig.cmake INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/Arcus)
|
||||
write_basic_package_version_file(${CMAKE_BINARY_DIR}/ArcusConfigVersion.cmake VERSION ${ARCUS_VERSION} COMPATIBILITY SameMajorVersion)
|
||||
|
||||
install(FILES
|
||||
${CMAKE_BINARY_DIR}/ArcusConfig.cmake
|
||||
${CMAKE_BINARY_DIR}/ArcusConfigVersion.cmake
|
||||
- DESTINATION lib/cmake/Arcus
|
||||
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/Arcus
|
||||
)
|
||||
|
||||
include(CPackConfig.cmake)
|
@ -0,0 +1,43 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="6"
|
||||
|
||||
PYTHON_COMPAT=( python3_4 python3_5 )
|
||||
inherit cmake-utils python-single-r1
|
||||
|
||||
MY_PN="libArcus"
|
||||
COMMIT="1db8a8e57dbf0d68d9e9f85ef9022b8eae17c9ec"
|
||||
|
||||
DESCRIPTION="This library facilitates communication between Cura and its backend"
|
||||
HOMEPAGE="https://github.com/Ultimaker/libArcus"
|
||||
SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="AGPL-3"
|
||||
SLOT="0/2"
|
||||
IUSE="examples python static-libs"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
dev-python/sip[${PYTHON_USEDEP}]
|
||||
>=dev-libs/protobuf-3:=
|
||||
>=dev-python/protobuf-python-3:*[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}"
|
||||
S="${WORKDIR}/${MY_PN}-${COMMIT}"
|
||||
PATCHES=( "${FILESDIR}/${PN}-1.0.0-fix-install-paths.patch" )
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
pkg_setup() {
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DBUILD_PYTHON=$(usex python ON OFF)
|
||||
-DBUILD_EXAMPLES=$(usex examples ON OFF)
|
||||
-DBUILD_STATIC=$(usex static-libs ON OFF)
|
||||
)
|
||||
use python && mycmakeargs+=( -DPYTHON_SITE_PACKAGES_DIR="$(python_get_sitedir)" )
|
||||
cmake-utils_src_configure
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>tomboy64@sina.cn</email>
|
||||
<name>Matthew Brewer</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Gentoo Proxy Maintainers Project</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>3dprint@gentoo.org</email>
|
||||
<name>Gentoo 3D Printer Project</name>
|
||||
</maintainer>
|
||||
<slots>
|
||||
<subslots>soname major version number</subslots>
|
||||
</slots>
|
||||
<upstream>
|
||||
<remote-id type="github">Ultimaker/libArcus</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1,2 +1,3 @@
|
||||
DIST PyQt-x11-gpl-4.11.1.tar.gz 11118850 SHA256 df9d7358d70748efa5b84fa3fe9e182a80c39ac590157daaabcc2618df176da3 SHA512 3851d4e61d9c6a0c62cbfd2a08153972fa3446c1982fc925796eb1d4c6524e7054cdb14ed2f4566386727e9e0cf67246765de19fab79152b0834477452681113 WHIRLPOOL 17e23997afcf06b99028d0d2115bc9328848acaaa1b6bcd8ec7397409ab2001d5fa29ca08bf42e0cef6dcd0441d0cff04e349fa8913a2b0fc86da878b79b5a5d
|
||||
DIST PyQt-x11-gpl-4.11.4.tar.gz 11317088 SHA256 fc1fe77495432ba3b0d74ff5cb164d375a97f5dddb728256330f615a7cdcf407 SHA512 58d0c5e30b0480c1b6ce1a3cc3ef0a1841bb15631830fb937d1f17f5d3d8cbe66a5e2adcfb2c3990fae38db66dd430668bd25413e254e72064a38c48f689f170 WHIRLPOOL cf635d6399bd04def2648eee65e038d720f06dddfac70f3df6f87deb7483e023ee1a4aa07285a5075adc19dc91bca4500b82f65b342e07a8845023cf98bb6233
|
||||
DIST PyQt4_gpl_x11-4.12.dev1604171631.tar.xz 8055208 SHA256 0c8440d871fe25c78ef1deaba449cc188b11b65a4e4cd485844bb1f5e3e97604 SHA512 ae114f235e179bd21992ae17c17e843f2cafc70b6e4afa152201052d52a0e531335bc90137d81b8c195e5f4fbba69ed8e19cc72535c2484f58f922a548abd43e WHIRLPOOL dbb40ad3e9498e90fe21e8255805f13b5a37ad8fbf826ce83eeded23c271646e709985545fd991db21ba0be1480176d341bb934ca8b3b196bebe01bc71fb970d
|
||||
|
@ -0,0 +1,164 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
|
||||
|
||||
inherit multibuild python-r1 qmake-utils
|
||||
|
||||
DESCRIPTION="Python bindings for the Qt framework"
|
||||
HOMEPAGE="http://www.riverbankcomputing.com/software/pyqt/intro
|
||||
https://pypi.python.org/pypi/PyQt4"
|
||||
|
||||
MY_P=${PN}_gpl_x11-${PV/_pre/.dev}
|
||||
if [[ ${PV} == *_pre* ]]; then
|
||||
SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.xz"
|
||||
else
|
||||
SRC_URI="mirror://sourceforge/pyqt/${MY_P}.tar.gz"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||
|
||||
IUSE="X dbus debug declarative designer doc examples help kde multimedia
|
||||
opengl phonon script scripttools sql svg testlib webkit xmlpatterns"
|
||||
REQUIRED_USE="
|
||||
${PYTHON_REQUIRED_USE}
|
||||
sql? ( X )
|
||||
testlib? ( X )
|
||||
"
|
||||
|
||||
# Minimal supported version of Qt.
|
||||
QT_PV="4.8.5:4"
|
||||
|
||||
RDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
>=dev-python/sip-4.18:=[${PYTHON_USEDEP}]
|
||||
>=dev-qt/qtcore-${QT_PV}
|
||||
X? ( >=dev-qt/qtgui-${QT_PV} )
|
||||
dbus? (
|
||||
dev-python/dbus-python[${PYTHON_USEDEP}]
|
||||
>=dev-qt/qtdbus-${QT_PV}
|
||||
)
|
||||
declarative? ( >=dev-qt/qtdeclarative-${QT_PV} )
|
||||
designer? ( >=dev-qt/designer-${QT_PV} )
|
||||
help? ( >=dev-qt/qthelp-${QT_PV} )
|
||||
multimedia? ( >=dev-qt/qtmultimedia-${QT_PV} )
|
||||
opengl? ( >=dev-qt/qtopengl-${QT_PV} )
|
||||
phonon? (
|
||||
kde? ( >=media-libs/phonon-4.7[qt4] )
|
||||
!kde? ( || ( >=dev-qt/qtphonon-${QT_PV} >=media-libs/phonon-4.7[qt4] ) )
|
||||
)
|
||||
script? ( >=dev-qt/qtscript-${QT_PV} )
|
||||
scripttools? ( >=dev-qt/qtgui-${QT_PV} )
|
||||
sql? ( >=dev-qt/qtsql-${QT_PV} )
|
||||
svg? ( >=dev-qt/qtsvg-${QT_PV} )
|
||||
testlib? ( >=dev-qt/qttest-${QT_PV} )
|
||||
webkit? ( >=dev-qt/qtwebkit-${QT_PV} )
|
||||
xmlpatterns? ( >=dev-qt/qtxmlpatterns-${QT_PV} )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
dbus? ( virtual/pkgconfig )
|
||||
"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
DOCS=( "${S}"/{ChangeLog,NEWS,THANKS} )
|
||||
PATCHES=(
|
||||
# Allow building against KDE's phonon (bug 525354)
|
||||
"${FILESDIR}/${PN}-4.11.2-phonon.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
# Support qreal on arm architecture (bug 322349)
|
||||
use arm && PATCHES+=("${FILESDIR}/${PN}-4.7.3-qreal_float_support.patch")
|
||||
|
||||
# Typo?
|
||||
sed -i -e '/pyqt4_qtdbus/ s/pyqtslots_/pyqtslot_/' \
|
||||
sip/QtDBus/qdbusconnection.sip || die
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
pyqt_use_enable() {
|
||||
use "$1" || return
|
||||
|
||||
echo --enable=${2:-Qt$(tr 'a-z' 'A-Z' <<< ${1:0:1})${1:1}}
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
configuration() {
|
||||
local myconf=(
|
||||
"${PYTHON}"
|
||||
"${S}"/configure-ng.py
|
||||
$(usex debug '--debug --trace' '')
|
||||
--verbose
|
||||
--confirm-license
|
||||
--qmake="$(qt4_get_bindir)"/qmake
|
||||
--bindir="${EPREFIX}/usr/bin"
|
||||
--destdir="$(python_get_sitedir)"
|
||||
--sip-incdir="$(python_get_includedir)"
|
||||
--qsci-api
|
||||
--enable=QtCore
|
||||
--enable=QtNetwork
|
||||
--enable=QtXml
|
||||
$(pyqt_use_enable X QtGui)
|
||||
$(pyqt_use_enable dbus QtDBus)
|
||||
$(usex dbus '' --no-python-dbus)
|
||||
$(pyqt_use_enable declarative)
|
||||
$(pyqt_use_enable designer)
|
||||
$(usex designer '' --no-designer-plugin)
|
||||
$(pyqt_use_enable help)
|
||||
$(pyqt_use_enable multimedia)
|
||||
$(pyqt_use_enable opengl QtOpenGL)
|
||||
$(pyqt_use_enable phonon phonon)
|
||||
$(pyqt_use_enable script)
|
||||
$(pyqt_use_enable scripttools QtScriptTools)
|
||||
$(pyqt_use_enable sql)
|
||||
$(pyqt_use_enable svg)
|
||||
$(pyqt_use_enable testlib QtTest)
|
||||
$(pyqt_use_enable webkit QtWebKit)
|
||||
$(pyqt_use_enable xmlpatterns QtXmlPatterns)
|
||||
)
|
||||
echo "${myconf[@]}"
|
||||
"${myconf[@]}" || die
|
||||
|
||||
eqmake4 -recursive ${PN}.pro
|
||||
}
|
||||
python_foreach_impl run_in_build_dir configuration
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
python_foreach_impl run_in_build_dir default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
installation() {
|
||||
local tmp_root=${D%/}/tmp
|
||||
emake INSTALL_ROOT="${tmp_root}" install
|
||||
|
||||
local uic_dir=${tmp_root}$(python_get_sitedir)/${PN}/uic
|
||||
if python_is_python3; then
|
||||
rm -r "${uic_dir}"/port_v2 || die
|
||||
else
|
||||
rm -r "${uic_dir}"/port_v3 || die
|
||||
fi
|
||||
|
||||
python_doexe "${tmp_root}${EPREFIX}"/usr/bin/pyuic4
|
||||
rm "${tmp_root}${EPREFIX}"/usr/bin/pyuic4 || die
|
||||
|
||||
multibuild_merge_root "${tmp_root}" "${D}"
|
||||
python_optimize
|
||||
}
|
||||
python_foreach_impl run_in_build_dir installation
|
||||
|
||||
einstalldocs
|
||||
use doc && dodoc -r doc/html
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r examples
|
||||
fi
|
||||
}
|
@ -1,2 +1,2 @@
|
||||
DIST PyQt-gpl-5.5.1.tar.gz 3705749 SHA256 0a70ef94fbffcf674b0dde024aae2a2a7a3f5a8c42806109ff7df2c941bd8386 SHA512 ed9a4f30a50c0879f25b6a0841247f3f0de86942b55c1de9efea963bfbf64ee963a9e5c09be036ff2dec76164863b3b6235e45e8662776425f15378fa0abeab4 WHIRLPOOL 199a36ff1ee3689a76d0aae9d2bee586f9de3a0e3cf23c5b625c1f62b5f19311450afd9d009cbdb4f5be63ba024326c63ff0e6c9ea515216c686db9d8e07bcb3
|
||||
DIST PyQt5_gpl-5.6.tar.gz 3720782 SHA256 2e481a6c4c41b96ed3b33449e5f9599987c63a5c8db93313bd57a6acbf20f0e1 SHA512 979537b35b7b6f7f63f702200db35453a9efe93565a0f0ea99d8092df4ca8c2a3d0fc10a5adcb499058e2340ed9141b3b38febf8049793beb471920c03645ee8 WHIRLPOOL ca7a023371005416e2846fd50be113ca72e9713b423b54f5d9c9bf75414a98f3f6c4ef69d913bf3c2f8783d684440e006feab85dea796354e931e80fa8a80ac4
|
||||
DIST PyQt5_gpl-5.6.1.dev1604271126.tar.xz 2300884 SHA256 2a9ac535ac921bcd3678e33655bb3842a14f4cf6836eb29f32d0a62335ea061b SHA512 281d48cd8a875c454e970d6cecb0af2a2299f2ea6d062de599736d613c413dbab67072c80a80d490980eacf18bb35819b94255cd5891abbf6e291101bcd5b578 WHIRLPOOL e8255192a318529307b67992cdd12f9c9d4983099c1cece82761140bf3615fc36e1db52a9a795645c8ca93e21b801826802fd1b0fb3cf867c0f80d380a45c279
|
||||
|
@ -0,0 +1 @@
|
||||
DIST uranium-2.1.0_beta.tar.gz 436367 SHA256 9e7969fdaccb761a261eaed0b72ea94c7b6c0e4455df8f352f93647a6344673e SHA512 aacddf202e633ed3c7dc216a2700900af2ef5935a021a6534e815d373b666bdc775ab116b34d46cdec1d9b50ef8c81b9d113799f0f6d2b8e229ea14c2d8a0e66 WHIRLPOOL 5050d7fd0b07bf1b36f423d8576a312f2d667efc9574314b5748cee357251b39f36b69cce97203a569d63e56f779ce5db91eacd6ee4a1eda1d121713114bf01e
|
@ -0,0 +1,27 @@
|
||||
diff -Naur a/CMakeLists.txt b/CMakeLists.txt
|
||||
--- a/CMakeLists.txt 2016-04-12 16:28:06.000000000 +0200
|
||||
+++ b/CMakeLists.txt 2016-04-16 12:34:29.241397806 +0200
|
||||
@@ -67,12 +67,18 @@
|
||||
install(DIRECTORY ${CMAKE_BINARY_DIR}/resources DESTINATION ${CMAKE_INSTALL_DATADIR}/uranium/)
|
||||
endif()
|
||||
|
||||
-if(APPLE OR WIN32)
|
||||
- install(DIRECTORY UM DESTINATION lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages)
|
||||
-else()
|
||||
- install(DIRECTORY UM DESTINATION lib/python${PYTHON_VERSION_MAJOR}/dist-packages)
|
||||
+if(NOT PYTHON_SITE_PACKAGES_DIR)
|
||||
+ if(APPLE OR WIN32)
|
||||
+ set(PYTHON_SITE_PACKAGES_DIR lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages CACHE
|
||||
+ STRING "Directory to install Python bindings to")
|
||||
+ else()
|
||||
+ set(PYTHON_SITE_PACKAGES_DIR lib/python${PYTHON_VERSION_MAJOR}/dist-packages CACHE
|
||||
+ STRING "Directory to install Python bindings to")
|
||||
+ endif()
|
||||
endif()
|
||||
+
|
||||
+install(DIRECTORY UM DESTINATION ${PYTHON_SITE_PACKAGES_DIR})
|
||||
install(DIRECTORY resources DESTINATION ${CMAKE_INSTALL_DATADIR}/uranium)
|
||||
-install(DIRECTORY plugins DESTINATION lib/uranium)
|
||||
+install(DIRECTORY plugins DESTINATION ${CMAKE_INSTALL_LIBDIR}/uranium)
|
||||
|
||||
include(CPackConfig.cmake)
|
@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>tomboy64@sina.cn</email>
|
||||
<name>Matthew Brewer</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>3dprint@gentoo.org</email>
|
||||
<name>Gentoo 3D Printer Project</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Gentoo Proxy Maintainers Project</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>python@gentoo.org</email>
|
||||
<name>Gentoo Python Project</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">Ultimaker/Uranium</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -0,0 +1,58 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python3_{4,5} )
|
||||
inherit cmake-utils python-single-r1
|
||||
|
||||
MY_PN=Uranium
|
||||
MY_PV=${PV/_beta}
|
||||
|
||||
DESCRIPTION="A Python framework for building 3D printing related applications"
|
||||
HOMEPAGE="https://github.com/Ultimaker/Uranium"
|
||||
SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="AGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc test"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
dev-libs/libarcus:*[${PYTHON_USEDEP}]
|
||||
dev-python/PyQt5[${PYTHON_USEDEP}]
|
||||
dev-python/numpy[${PYTHON_USEDEP}]
|
||||
dev-qt/qtdeclarative:5
|
||||
dev-qt/qtquickcontrols:5"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/gettext
|
||||
doc? ( app-doc/doxygen )
|
||||
test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
|
||||
S="${WORKDIR}/${MY_PN}-${MY_PV}"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
PATCHES=( "${FILESDIR}/uranium-2.1.0_beta-fix-install-paths.patch" )
|
||||
DOCS=( README.md )
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DPYTHON_SITE_PACKAGES_DIR="$(python_get_sitedir)" )
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake-utils_src_compile
|
||||
if use doc; then
|
||||
cmake-utils_src_compile doc
|
||||
DOCS+=( html )
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake -C "${BUILD_DIR}" tests
|
||||
}
|
||||
|
||||
src_install() {
|
||||
enable_cmake-utils_src_install
|
||||
python_optimize "${D}usr/$(get_libdir)"
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST qtlocation-opensource-src-5.6.0.tar.xz 3076136 SHA256 360e1519d0fcafe4f86923d224e76d56dd785dfb0e1a19fd2e2b0016799653c9 SHA512 76cc7f27a043999af56f7bec408c46f0bb0709f651a3d84084f7ae92c3f50f6450420bdda31db17436111df537b94d51a9ca2819cce13ce83c538490d3f62a1d WHIRLPOOL b4bd14bb1882155ae9143d66ae99191dd95b89860ca609bbf5cffedec745f026369ce12df0bfd40c9b79d74f26036c184ebadee11dcd929a1f6a4d01634a2ab2
|
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>qt@gentoo.org</email>
|
||||
<name>Gentoo Qt Project</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<bugs-to>https://bugreports.qt.io/</bugs-to>
|
||||
<doc>http://doc.qt.io/</doc>
|
||||
</upstream>
|
||||
<slots>
|
||||
<subslots>
|
||||
Must only be used by packages that are known to use private parts of the Qt API.
|
||||
</subslots>
|
||||
</slots>
|
||||
</pkgmetadata>
|
@ -0,0 +1,30 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
inherit qt5-build
|
||||
|
||||
DESCRIPTION="The Location module for the Qt5 framework"
|
||||
|
||||
if [[ ${QT5_BUILD_TYPE} == release ]]; then
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
IUSE=""
|
||||
|
||||
DEPEND="
|
||||
~dev-qt/qtcore-${PV}
|
||||
~dev-qt/qtdeclarative-${PV}
|
||||
~dev-qt/qtgui-${PV}
|
||||
~dev-qt/qtnetwork-${PV}
|
||||
~dev-qt/qtpositioning-${PV}
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
QT5_TARGET_SUBDIRS=(
|
||||
src/3rdparty
|
||||
src/location
|
||||
src/imports/location
|
||||
src/plugins/geoservices
|
||||
)
|
@ -1,3 +1,2 @@
|
||||
DIST ethon-0.7.4.gem 54272 SHA256 2670e329ff113f772448b9af8ed45fabf570f37b1dea9f68377ed056fb94ce13 SHA512 a4df7083b545d1b777e640ba238f63a939ee1db97d25f6d4be6f4a20f0e629eb3e107724a6a87da037529667130ad220f216a82c3b4044588780f5fff809f69b WHIRLPOOL a64b0573869dc4cc48eb1c6488eac065fa9b2053b3362a82af906af2c35025f318ccb0b46a8cda18e30f697dc2ec4ae9c7461c48b8afefffa4a978ce1779f930
|
||||
DIST ethon-0.8.0.gem 54784 SHA256 63889de174693c81b48421cbbe98070d1c61aa8ecabc57beb8a1528bb96a92e5 SHA512 8882dccd0da00efa59e18168f06e9bb492463cdd36408bf1239799f78a20932a02cfa9635736cdd16c2d00d82e2e716f9a0d0b413dfd311ba61dc4e636413f4d WHIRLPOOL c736d4b84a1829dca644384b29dad878574660289cfa46025dbd7a58e9cbc3e3bd90e579d40b8a112270e86b80ae6e64e02e002f661100ec88728eca324157b2
|
||||
DIST ethon-0.8.1.gem 55296 SHA256 327a3413c1aac2be7d5a56ea4fdaf6e0c8878d9ce97732a10463e8aec9dedb29 SHA512 9626f4e4c98a8cdd925b528044ac1ee2bbff594ccb521db44c642019b4c99e05cab71ca567b85036683856a2cfe7dc663cede1ba815a32ed69ee9b678fe9dd76 WHIRLPOOL f01f154caad31ee6512a2a7567fe8d014dff6476d5438b86c21dda3500439bb5845d039e30efe8bf85e242ce3eff63d7798cc6834cfd4f03388d2fe65c85f5b7
|
||||
DIST ethon-0.9.0.gem 55808 SHA256 8e17d26b47c9fd335747c7c4d2fc2670d892121b1113ef9f3e28a5906ba48b1c SHA512 5061977f6a94b5cf03f361844aea1be38436810fc88d1faa37f12d798050e55da30530d46cda295d7623d810c2286b5683b638077cf01c0b90127bb78b298868 WHIRLPOOL 9311f6ad4ec099d6c41417779075ce896c7f23203348ead7824bf236ffd4b0f68cba8f4037c223ebfa263b593d5936043da270b76ea665076151f24df6352543
|
||||
|
@ -1,33 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
USE_RUBY="ruby19 ruby20 ruby21 ruby22"
|
||||
|
||||
RUBY_FAKEGEM_TASK_DOC=""
|
||||
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
|
||||
|
||||
RUBY_FAKEGEM_RECIPE_TEST="rspec"
|
||||
|
||||
inherit ruby-fakegem
|
||||
|
||||
DESCRIPTION="Very lightweight libcurl wrapper"
|
||||
HOMEPAGE="https://github.com/typhoeus/ethon"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND+=" net-misc/curl"
|
||||
|
||||
ruby_add_rdepend ">=dev-ruby/ffi-1.3.0"
|
||||
|
||||
ruby_add_bdepend "test? ( dev-ruby/sinatra dev-ruby/mime-types )"
|
||||
|
||||
all_ruby_prepare() {
|
||||
rm Gemfile || die
|
||||
sed -e '/bundler/I s:^:#:' -i Rakefile spec/spec_helper.rb || 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.6.tar.gz 32261 SHA256 81fca307339b8232ebc672017cedbd0603e04ed96e9340e9517c92e7bf9e0ee4 SHA512 3a91f972b4355e5d578693a1e5daa874524207c3bb5f7abc234b39e33f9a3cf3c1161d45edb90656bf81154297b7d4a5faeddfa42fac4b989c16d2db71e4f9f9 WHIRLPOOL 02384e2b8ad7b1e5df596b7a12adf685b5bef9765c0cf1c2eb14ac32dee9c9b8764f97383c31f9268520215ae0b667357430173f1a9c3958b859dc699f3012ab
|
||||
DIST rake-compiler-0.9.7.tar.gz 32292 SHA256 0ac3cf05c3bdb1c2c6fe6c5180b0da5994a1fa748447c1bdbc2eef2daeefefa5 SHA512 9d92d34bb82f2e6a0ba824c1c099a51c137368817aefd5e0821a216fabef9ab77e15895211b858e54afc965d5167810fd2ed3e36e57d91cb0bed8491b287c7db WHIRLPOOL 3c6171fa6f8b9252758315f82063a097ee366b4b9cf90c7990cf2ba5b95f4680074915670b983d608812259f9c8e5f9ef0b09a800fa65bbb18a26adad33dba8f
|
||||
DIST rake-compiler-0.9.8.tar.gz 32550 SHA256 35d68a295ca70ad8a25194e4d443bee2189e0b26540727fddf5729491cc34d3f SHA512 a0e0c6713ab62dd137d189a210e26020398df11483069ce49348f2e03d457dfd001492ac1dac9c6c082fa677a807dc61a2963366fde6ac378ee10eb392491f74 WHIRLPOOL a48b3ba61f19a38adb4def0730ea04d878745abb25b43c1edfaef5d6a21e8ea74b47b9cd74677bc913ea1dc98a9e56c575d51fdb9a2b33734ff918f6501cc430
|
||||
|
@ -0,0 +1,62 @@
|
||||
# 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_prepare() {
|
||||
case ${RUBY} in
|
||||
*ruby19)
|
||||
# Remove this task so that it won't load on Ruby 1.9
|
||||
# that lack the package_task file. It is, though, needed for the
|
||||
# tests
|
||||
rm tasks/gem.rake || die
|
||||
# Remove specs aimed at a C-compiling ruby implementation.
|
||||
rm spec/lib/rake/extensiontask_spec.rb || die
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
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
|
||||
}
|
@ -0,0 +1,111 @@
|
||||
# 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"
|
||||
|
||||
inherit ruby-ng prefix
|
||||
|
||||
DESCRIPTION="Centralized Ruby extension management system"
|
||||
HOMEPAGE="https://rubygems.org/"
|
||||
LICENSE="|| ( Ruby MIT )"
|
||||
|
||||
SRC_URI="https://rubygems.org/rubygems/${P}.tgz"
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
SLOT="0"
|
||||
IUSE="server test"
|
||||
|
||||
PDEPEND="server? ( >=dev-ruby/builder-2.1 )"
|
||||
|
||||
ruby_add_bdepend "
|
||||
test? (
|
||||
>=dev-ruby/minitest-4:0
|
||||
dev-ruby/rdoc
|
||||
)"
|
||||
|
||||
all_ruby_prepare() {
|
||||
|
||||
mkdir -p lib/rubygems/defaults || die
|
||||
cp "${FILESDIR}/gentoo-defaults.rb" lib/rubygems/defaults/operating_system.rb || die
|
||||
|
||||
eprefixify lib/rubygems/defaults/operating_system.rb
|
||||
|
||||
# Disable broken tests when changing default values:
|
||||
sed -i -e '/test_default_path/,/^ end/ s:^:#:' test/rubygems/test_gem.rb || die
|
||||
|
||||
# Skip tests for default gems that all fail
|
||||
sed -i -e '/test_default_gems_use_full_paths/,/^ end/ s:^:#:' test/rubygems/test_gem.rb || die
|
||||
sed -i -e '/test_execute_ignore_default_gem_verbose/,/^ end/ s:^:#:' test/rubygems/test_gem_commands_cleanup_command.rb || die
|
||||
sed -i -e '/test_execute_default_gem/,/^ end/ s:^:#:' test/rubygems/test_gem_commands_contents_command.rb test/rubygems/test_gem_commands_pristine_command.rb || die
|
||||
sed -i -e '/test_execute_\(default_details\|show_default_gems\)/,/^ end/ s:^:#:' test/rubygems/test_gem_commands_query_command.rb || die
|
||||
sed -i -e '/test_execute_all/,/^ end/ s:^:#:' test/rubygems/test_gem_commands_uninstall_command.rb || die
|
||||
sed -i -e '/\(test_default_gem\|test_check_executable_overwrite\|test_require_works_after_cleanup\)/,/^ end/ s:^:#:' \
|
||||
test/rubygems/test_{gem_installer,require}.rb || die
|
||||
sed -i -e '/test_\(load_default_gem\|default_spec_stub\)/,/^ end/ s:^:#:' test/rubygems/test_gem_specification.rb || die
|
||||
sed -i -e '/test_uninstall_default_gem/,/^ end/ s:^:#:' test/rubygems/test_gem_uninstaller.rb || die
|
||||
rm -f test/rubygems/test_gem_indexer.rb || die
|
||||
|
||||
# Avoid tests playing tricks with ruby engine that don't seem to
|
||||
# work for us.
|
||||
rm test/rubygems/test_gem_request_set_gem_dependency_api.rb || die
|
||||
|
||||
# Avoid test requiring network access
|
||||
sed -i -e '/test_download_to_cache/askip "requires network access"' test/rubygems/test_gem_remote_fetcher.rb || die
|
||||
}
|
||||
|
||||
each_ruby_compile() {
|
||||
# Not really a build but...
|
||||
sed -i -e 's:#!.*:#!'"${RUBY}"':' bin/gem
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
# Unset RUBYOPT to avoid interferences, bug #158455 et. al.
|
||||
#unset RUBYOPT
|
||||
|
||||
if [[ "${EUID}" -ne "0" ]]; then
|
||||
RUBYLIB="$(pwd)/lib${RUBYLIB+:${RUBYLIB}}" ${RUBY} -I.:lib:test \
|
||||
-e 'Dir["test/**/test_*.rb"].each { |tu| require tu }' || die "tests failed"
|
||||
else
|
||||
ewarn "The userpriv feature must be enabled to run tests, bug 408951."
|
||||
eerror "Testsuite will not be run."
|
||||
fi
|
||||
}
|
||||
|
||||
each_ruby_install() {
|
||||
# Unset RUBYOPT to avoid interferences, bug #158455 et. al.
|
||||
unset RUBYOPT
|
||||
export RUBYLIB="$(pwd)/lib${RUBYLIB+:${RUBYLIB}}"
|
||||
|
||||
pushd lib &>/dev/null
|
||||
doruby -r *
|
||||
popd &>/dev/null
|
||||
|
||||
local sld=$(ruby_rbconfig_value 'sitelibdir')
|
||||
insinto "${sld#${EPREFIX}}" # bug #320813
|
||||
newins "${FILESDIR}/auto_gem.rb.ruby19" auto_gem.rb || die
|
||||
|
||||
newbin bin/gem $(basename ${RUBY} | sed -e 's:ruby:gem:') || die
|
||||
}
|
||||
|
||||
all_ruby_install() {
|
||||
dodoc History.txt README.rdoc
|
||||
|
||||
if use server; then
|
||||
newinitd "${FILESDIR}/init.d-gem_server2" gem_server || die "newinitd failed"
|
||||
newconfd "${FILESDIR}/conf.d-gem_server" gem_server || die "newconfd failed"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ ! -n $(readlink "${ROOT}"usr/bin/gem) ]] ; then
|
||||
eselect ruby set $(eselect --brief --colour=no ruby show | head -n1)
|
||||
fi
|
||||
|
||||
ewarn
|
||||
ewarn "To switch between available Ruby profiles, execute as root:"
|
||||
ewarn "\teselect ruby set ruby(20|21|...)"
|
||||
ewarn
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
DIST subversion-1.7.21.tar.bz2 5996788 SHA256 efeb349c5ba6d529ff8e9730a2abd9cb70f276b249238a6b7f27ba7da1190620 SHA512 d0ba3f0771c523b44efd2f12c1d101d720b7d834bc6bef12b8e47789a2fb76a2d399c041c1cdcd0e04411c29abfb9b2974ca9df6f2389f8a01d82e7738881975 WHIRLPOOL 0d12286ab0e5043f28622529ff5d2af5a1c8a61ef65227cc069cf93de35479bf79433fa201417456499fa16f11b03474127b66547b9c2e2a8c0d209fa2108e59
|
||||
DIST subversion-1.8.14.tar.bz2 6850562 SHA256 7f3883cdfcad4174e06dd94d6e3e8ec91856823268eebe60c924be76f5229a1f SHA512 95e1501494f5355f0c331fbe81422ca8f0b4d69e6d303125f4a5aac5f6fe946e958ca76fc96fe6b096cc0a530634ca103bf35622c12af90489ae17d0b9a9d987 WHIRLPOOL 0323746d40830109e081e002f499f1c73c15fe77acd4f1c9b790ae12440b3361d189f1d5212d49ba6f6c449297aec3513761375f748800686892607705310a56
|
||||
DIST subversion-1.8.15.tar.bz2 6917489 SHA256 cf98a1f7686cfd6a15cbcde8379f15730fd5e00a3573cdb035a6491dbcccc82c SHA512 f5a33b0b2c87eae48a3c21c41164786e92aa061e774e9cc951bc93c1936db58a5d901904ad9dc28e85926f38c7d75645f39bb7e8543333943d3883ee9718aeb0 WHIRLPOOL 101c00a059e350d4999c37977059a439c5253d7ef185664ff8133b152bccdf386a8556f6d47390246ac742a4b4b77c89abd06e5cce76b6e276db6cc55f205374
|
||||
DIST subversion-1.9.2.tar.bz2 7910994 SHA256 023da881139b4514647b6f8a830a244071034efcaad8c8e98c6b92393122b4eb SHA512 debe1be153a7abd89d1c0c8d665725a9003e280a7fcde666c21818627bef0c47c30b27560aaa5a9a75251ba0d9c1490613cc79237704f4777a3cad0def52f08a WHIRLPOOL 3a5ff8067079d7e81f9414e3858afb98839cbdcb989b086d1696b4f0eac46ae2ed7c9933d3fa232431ad32578bf2fab986052a05dac7c528415bb5057fa5d213
|
||||
DIST subversion-1.8.16.tar.bz2 6919310 SHA256 f18f6e8309270982135aae54d96958f9ca6b93f8a4e746dd634b1b5b84edb346 SHA512 de8ce1aacd60516fd412f3f8b73e0e43c1a5e91d21d099937d3b02a1620aa947a330ec435d8662d5ad5372e23b1ebec1d8aea7d3ca4dd02eb3421924f6da88b1 WHIRLPOOL 01093eaf39173f4a789120ab8ed1b68dcb9b1bea5e9d396d23831b9a0733be412842a711ffe9b72e9d1bf26e835f47b1395b24f2a1301cc556e2520da6151f3e
|
||||
DIST subversion-1.9.3.tar.bz2 7909193 SHA256 8bbf6bb125003d88ee1c22935a36b7b1ab7d957e0c8b5fbfe5cb6310b6e86ae0 SHA512 2197c5076e688ac09e63c345e45f2a5ee2999426edb76a91c6b92d229fa8c87772d76e99003a4438035771b4c11c502de399d44f4f42c0d759dcbd01b628a4cb WHIRLPOOL d0b515c53384da558d0838a78f3be75e3bac643f5d95e536e65e0034e1814c91e0d2c218dd41bb5ee76447d47a0484105a25da1abef7851e7461a2a84c320a79
|
||||
DIST subversion-1.9.4.tar.bz2 7911473 SHA256 1267f9e2ab983f260623bee841e6c9cc458bf4bf776238ed5f100983f79e9299 SHA512 fa512d8315dd6a435dcc5a3c2ca3cd7cf932364dd3a82063be868aa3ebcc04caf87cd3ff732d3e3d8aec86f3f58848e2b55987451d4697479bb151d1269db07f WHIRLPOOL 0323e5258be08dfdacb0e450b413bdfd053c0026a290dd45cfe5a03437c727d9ad088baba5a42fdd98ff47af5bdc09a0bbeba70a1e4e4e19a8ebcba7e7b7ddd3
|
||||
|
@ -0,0 +1,404 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
#
|
||||
# @ECLASS: mozconfig-v6.46.eclass
|
||||
# @MAINTAINER:
|
||||
# mozilla team <mozilla@gentoo.org>
|
||||
# @BLURB: the new mozilla common configuration eclass for FF33 and newer, v6
|
||||
# @DESCRIPTION:
|
||||
# This eclass is used in mozilla ebuilds (firefox, thunderbird, seamonkey)
|
||||
# to provide a single common place for the common mozilla engine compoments.
|
||||
#
|
||||
# The eclass provides all common dependencies as well as common use flags.
|
||||
#
|
||||
# Some use flags which may be optional in particular mozilla packages can be
|
||||
# supported through setting eclass variables.
|
||||
#
|
||||
# This eclass inherits mozconfig helper functions as defined in mozcoreconf-v3,
|
||||
# and so ebuilds inheriting this eclass do not need to inherit that.
|
||||
|
||||
case ${EAPI} in
|
||||
0|1|2|3|4)
|
||||
die "EAPI=${EAPI} not supported"
|
||||
;;
|
||||
5)
|
||||
inherit multilib
|
||||
;;
|
||||
esac
|
||||
|
||||
inherit flag-o-matic toolchain-funcs mozcoreconf-v3
|
||||
|
||||
# @ECLASS-VARIABLE: MOZCONFIG_OPTIONAL_WIFI
|
||||
# @DESCRIPTION:
|
||||
# Set this variable before the inherit line, when an ebuild needs to provide
|
||||
# optional necko-wifi support via IUSE="wifi". Currently this would include
|
||||
# ebuilds for firefox, and potentially seamonkey.
|
||||
#
|
||||
# Leave the variable UNSET if necko-wifi support should not be available.
|
||||
# Set the variable to "enabled" if the use flag should be enabled by default.
|
||||
# Set the variable to any value if the use flag should exist but not be default-enabled.
|
||||
|
||||
# @ECLASS-VARIABLE: MOZCONFIG_OPTIONAL_JIT
|
||||
# @DESCRIPTION:
|
||||
# Set this variable before the inherit line, when an ebuild needs to provide
|
||||
# optional necko-wifi support via IUSE="jit". Currently this would include
|
||||
# ebuilds for firefox, and potentially seamonkey.
|
||||
#
|
||||
# Leave the variable UNSET if optional jit support should not be available.
|
||||
# Set the variable to "enabled" if the use flag should be enabled by default.
|
||||
# Set the variable to any value if the use flag should exist but not be default-enabled.
|
||||
|
||||
# @ECLASS-VARIABLE: MOZCONFIG_OPTIONAL_GTK3
|
||||
# @DESCRIPTION:
|
||||
# Set this variable before the inherit line, when an ebuild can provide
|
||||
# optional gtk3 support via IUSE="gtk3". Currently this would include
|
||||
# ebuilds for firefox, but thunderbird and seamonkey could follow in the future.
|
||||
#
|
||||
# Leave the variable UNSET if gtk3 support should not be available.
|
||||
# Set the variable to "enabled" if the use flag should be enabled by default.
|
||||
# Set the variable to any value if the use flag should exist but not be default-enabled.
|
||||
|
||||
# @ECLASS-VARIABLE: MOZCONFIG_OPTIONAL_GTK2ONLY
|
||||
# @DESCRIPTION:
|
||||
# Set this variable before the inherit line, when an ebuild can provide
|
||||
# optional gtk2-only support via IUSE="force-gtk2".
|
||||
#
|
||||
# Note that this option conflicts directly with MOZCONFIG_OPTIONAL_GTK3, both
|
||||
# variables cannot be set at the same time and this variable will be ignored if
|
||||
# MOZCONFIG_OPTIONAL_GTK3 is set.
|
||||
#
|
||||
# Leave the variable UNSET if gtk2-only support should not be available.
|
||||
# Set the variable to "enabled" if the use flag should be enabled by default.
|
||||
# Set the variable to any value if the use flag should exist but not be default-enabled.
|
||||
|
||||
# @ECLASS-VARIABLE: MOZCONFIG_OPTIONAL_QT5
|
||||
# @DESCRIPTION:
|
||||
# Set this variable before the inherit line, when an ebuild can provide
|
||||
# optional qt5 support via IUSE="qt5". Currently this would include
|
||||
# ebuilds for firefox, but thunderbird and seamonkey could follow in the future.
|
||||
#
|
||||
# Leave the variable UNSET if qt5 support should not be available.
|
||||
# Set the variable to "enabled" if the use flag should be enabled by default.
|
||||
# Set the variable to any value if the use flag should exist but not be default-enabled.
|
||||
|
||||
# use-flags common among all mozilla ebuilds
|
||||
IUSE="${IUSE} dbus debug +ffmpeg +jemalloc3 neon pulseaudio selinux startup-notification system-cairo
|
||||
system-harfbuzz system-icu system-jpeg system-libevent system-sqlite system-libvpx"
|
||||
|
||||
# some notes on deps:
|
||||
# gtk:2 minimum is technically 2.10 but gio support (enabled by default) needs 2.14
|
||||
# media-libs/mesa needs to be 10.2 or above due to a bug with flash+vdpau
|
||||
|
||||
RDEPEND=">=app-text/hunspell-1.2
|
||||
dev-libs/atk
|
||||
dev-libs/expat
|
||||
>=x11-libs/cairo-1.10[X]
|
||||
>=x11-libs/gtk+-2.18:2
|
||||
x11-libs/gdk-pixbuf
|
||||
>=x11-libs/pango-1.22.0
|
||||
>=media-libs/libpng-1.6.19:0=[apng]
|
||||
>=media-libs/mesa-10.2:*
|
||||
media-libs/fontconfig
|
||||
>=media-libs/freetype-2.4.10
|
||||
kernel_linux? ( media-libs/alsa-lib )
|
||||
pulseaudio? ( media-sound/pulseaudio )
|
||||
virtual/freedesktop-icon-theme
|
||||
dbus? ( >=sys-apps/dbus-0.60
|
||||
>=dev-libs/dbus-glib-0.72 )
|
||||
startup-notification? ( >=x11-libs/startup-notification-0.8 )
|
||||
>=dev-libs/glib-2.26:2
|
||||
>=sys-libs/zlib-1.2.3
|
||||
>=virtual/libffi-3.0.10
|
||||
ffmpeg? ( virtual/ffmpeg )
|
||||
x11-libs/libX11
|
||||
x11-libs/libXcomposite
|
||||
x11-libs/libXdamage
|
||||
x11-libs/libXext
|
||||
x11-libs/libXfixes
|
||||
x11-libs/libXrender
|
||||
x11-libs/libXt
|
||||
system-cairo? ( >=x11-libs/cairo-1.12[X,xcb] >=x11-libs/pixman-0.19.2 )
|
||||
system-icu? ( >=dev-libs/icu-51.1:= )
|
||||
system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 )
|
||||
system-libevent? ( =dev-libs/libevent-2.0*:0= )
|
||||
system-sqlite? ( >=dev-db/sqlite-3.10.2:3[secure-delete,debug=] )
|
||||
system-libvpx? ( >=media-libs/libvpx-1.3.0:0=[postproc,svc(-)] )
|
||||
system-harfbuzz? ( >=media-libs/harfbuzz-1.1.3:0=[graphite,icu] >=media-gfx/graphite2-1.3.8 )
|
||||
"
|
||||
|
||||
if [[ -n ${MOZCONFIG_OPTIONAL_GTK3} ]]; then
|
||||
MOZCONFIG_OPTIONAL_GTK2ONLY=
|
||||
if [[ ${MOZCONFIG_OPTIONAL_GTK3} = "enabled" ]]; then
|
||||
IUSE+=" +gtk3"
|
||||
else
|
||||
IUSE+=" gtk3"
|
||||
fi
|
||||
RDEPEND+="
|
||||
gtk3? ( >=x11-libs/gtk+-3.4.0:3 )"
|
||||
elif [[ -n ${MOZCONFIG_OPTIONAL_GTK2ONLY} ]]; then
|
||||
if [[ ${MOZCONFIG_OPTIONAL_GTK2ONLY} = "enabled" ]]; then
|
||||
IUSE+=" +force-gtk2"
|
||||
else
|
||||
IUSE+=" force-gtk2"
|
||||
fi
|
||||
RDEPEND+="
|
||||
!force-gtk2? ( >=x11-libs/gtk+-3.4.0:3 )"
|
||||
fi
|
||||
if [[ -n ${MOZCONFIG_OPTIONAL_QT5} ]]; then
|
||||
inherit qmake-utils
|
||||
if [[ ${MOZCONFIG_OPTIONAL_QT5} = "enabled" ]]; then
|
||||
IUSE+=" +qt5"
|
||||
else
|
||||
IUSE+=" qt5"
|
||||
fi
|
||||
RDEPEND+="
|
||||
qt5? (
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtnetwork:5
|
||||
dev-qt/qtprintsupport:5
|
||||
dev-qt/qtwidgets:5
|
||||
dev-qt/qtxml:5
|
||||
dev-qt/qtdeclarative:5
|
||||
)"
|
||||
fi
|
||||
if [[ -n ${MOZCONFIG_OPTIONAL_WIFI} ]]; then
|
||||
if [[ ${MOZCONFIG_OPTIONAL_WIFI} = "enabled" ]]; then
|
||||
IUSE+=" +wifi"
|
||||
else
|
||||
IUSE+=" wifi"
|
||||
fi
|
||||
RDEPEND+="
|
||||
wifi? (
|
||||
kernel_linux? ( >=sys-apps/dbus-0.60
|
||||
>=dev-libs/dbus-glib-0.72
|
||||
net-misc/networkmanager )
|
||||
)"
|
||||
fi
|
||||
if [[ -n ${MOZCONFIG_OPTIONAL_JIT} ]]; then
|
||||
if [[ ${MOZCONFIG_OPTIONAL_JIT} = "enabled" ]]; then
|
||||
IUSE+=" +jit"
|
||||
else
|
||||
IUSE+=" jit"
|
||||
fi
|
||||
fi
|
||||
|
||||
DEPEND="app-arch/zip
|
||||
app-arch/unzip
|
||||
>=sys-devel/binutils-2.16.1
|
||||
${RDEPEND}"
|
||||
|
||||
RDEPEND+="
|
||||
selinux? ( sec-policy/selinux-mozilla )"
|
||||
|
||||
# force system-icu if system-harfbuzz is selected, to avoid potential ABI issues
|
||||
REQUIRED_USE="
|
||||
system-harfbuzz? ( system-icu )"
|
||||
|
||||
# only one of gtk3 or qt5 should be permitted to be selected, since only one will be used.
|
||||
[[ -n ${MOZCONFIG_OPTIONAL_GTK3} ]] && [[ -n ${MOZCONFIG_OPTIONAL_QT5} ]] && \
|
||||
REQUIRED_USE+=" ?? ( gtk3 qt5 )"
|
||||
|
||||
# only one of force-gtk2 or qt5 should be permitted to be selected, since only one will be used.
|
||||
[[ -n ${MOZCONFIG_OPTIONAL_GTK2ONLY} ]] && [[ -n ${MOZCONFIG_OPTIONAL_QT5} ]] && \
|
||||
REQUIRED_USE+=" ?? ( force-gtk2 qt5 )"
|
||||
|
||||
# @FUNCTION: mozconfig_config
|
||||
# @DESCRIPTION:
|
||||
# Set common configure options for mozilla packages.
|
||||
# Call this within src_configure() phase, after mozconfig_init
|
||||
#
|
||||
# Example:
|
||||
#
|
||||
# inherit mozconfig-v6.46
|
||||
#
|
||||
# src_configure() {
|
||||
# mozconfig_init
|
||||
# mozconfig_config
|
||||
# # ... misc ebuild-unique settings via calls to
|
||||
# # ... mozconfig_{annotate,use_with,use_enable}
|
||||
# mozconfig_final
|
||||
# }
|
||||
|
||||
mozconfig_config() {
|
||||
# Migrated from mozcoreconf-2
|
||||
mozconfig_annotate 'system_libs' \
|
||||
--with-system-zlib \
|
||||
--enable-pango \
|
||||
--enable-svg \
|
||||
--with-system-bz2
|
||||
|
||||
if has bindist ${IUSE}; then
|
||||
mozconfig_use_enable !bindist official-branding
|
||||
if [[ ${PN} == firefox ]] && use bindist ; then
|
||||
mozconfig_annotate '' --with-branding=browser/branding/aurora
|
||||
fi
|
||||
fi
|
||||
|
||||
mozconfig_use_enable debug
|
||||
mozconfig_use_enable debug tests
|
||||
|
||||
if ! use debug ; then
|
||||
mozconfig_annotate 'disabled by Gentoo' --disable-debug-symbols
|
||||
else
|
||||
mozconfig_annotate 'enabled by Gentoo' --enable-debug-symbols
|
||||
fi
|
||||
|
||||
mozconfig_use_enable startup-notification
|
||||
|
||||
if [[ -n ${MOZCONFIG_OPTIONAL_WIFI} ]] ; then
|
||||
# wifi pulls in dbus so manage both here
|
||||
mozconfig_use_enable wifi necko-wifi
|
||||
if use kernel_linux && use wifi && ! use dbus; then
|
||||
echo "Enabling dbus support due to wifi request"
|
||||
mozconfig_annotate 'dbus required by necko-wifi on linux' --enable-dbus
|
||||
else
|
||||
mozconfig_use_enable dbus
|
||||
fi
|
||||
else
|
||||
mozconfig_use_enable dbus
|
||||
mozconfig_annotate 'disabled' --disable-necko-wifi
|
||||
fi
|
||||
|
||||
# These are forced-on for webm support
|
||||
mozconfig_annotate 'required' --enable-ogg
|
||||
mozconfig_annotate 'required' --enable-wave
|
||||
|
||||
if [[ -n ${MOZCONFIG_OPTIONAL_JIT} ]]; then
|
||||
mozconfig_use_enable jit ion
|
||||
fi
|
||||
|
||||
# These are enabled by default in all mozilla applications
|
||||
mozconfig_annotate '' --with-system-nspr --with-nspr-prefix="${EPREFIX}"/usr
|
||||
mozconfig_annotate '' --with-system-nss --with-nss-prefix="${EPREFIX}"/usr
|
||||
mozconfig_annotate '' --x-includes="${EPREFIX}"/usr/include --x-libraries="${EPREFIX}"/usr/$(get_libdir)
|
||||
if use system-libevent; then
|
||||
mozconfig_annotate '' --with-system-libevent="${EPREFIX}"/usr
|
||||
fi
|
||||
mozconfig_annotate '' --prefix="${EPREFIX}"/usr
|
||||
mozconfig_annotate '' --libdir="${EPREFIX}"/usr/$(get_libdir)
|
||||
mozconfig_annotate 'Gentoo default' --enable-system-hunspell
|
||||
mozconfig_annotate '' --disable-gnomeui
|
||||
mozconfig_annotate '' --enable-gio
|
||||
mozconfig_annotate '' --disable-crashreporter
|
||||
mozconfig_annotate 'Gentoo default' --with-system-png
|
||||
mozconfig_annotate '' --enable-system-ffi
|
||||
mozconfig_annotate 'Gentoo default to honor system linker' --disable-gold
|
||||
mozconfig_annotate 'Gentoo default' --disable-skia
|
||||
mozconfig_annotate '' --disable-gconf
|
||||
mozconfig_annotate '' --with-intl-api
|
||||
|
||||
# default toolkit is cairo-gtk2, optional use flags can change this
|
||||
local toolkit="cairo-gtk2"
|
||||
local toolkit_comment=""
|
||||
if [[ -n ${MOZCONFIG_OPTIONAL_GTK3} ]]; then
|
||||
if use gtk3; then
|
||||
toolkit="cairo-gtk3"
|
||||
toolkit_comment="gtk3 use flag"
|
||||
fi
|
||||
fi
|
||||
if [[ -n ${MOZCONFIG_OPTIONAL_GTK2ONLY} ]]; then
|
||||
if ! use force-gtk2 ; then
|
||||
toolkit="cairo-gtk3"
|
||||
else
|
||||
toolkit_comment="force-gtk2 use flag"
|
||||
fi
|
||||
fi
|
||||
if [[ -n ${MOZCONFIG_OPTIONAL_QT5} ]]; then
|
||||
if use qt5; then
|
||||
toolkit="cairo-qt"
|
||||
toolkit_comment="qt5 use flag"
|
||||
# need to specify these vars because the qt5 versions are not found otherwise,
|
||||
# and setting --with-qtdir overrides the pkg-config include dirs
|
||||
local i
|
||||
for i in qmake moc rcc; do
|
||||
echo "export HOST_${i^^}=\"$(qt5_get_bindir)/${i}\"" \
|
||||
>> "${S}"/.mozconfig || die
|
||||
done
|
||||
echo 'unset QTDIR' >> "${S}"/.mozconfig || die
|
||||
mozconfig_annotate '+qt5' --disable-gio
|
||||
fi
|
||||
fi
|
||||
mozconfig_annotate "${toolkit_comment}" --enable-default-toolkit=${toolkit}
|
||||
|
||||
# Use jemalloc unless libc is not glibc >= 2.4
|
||||
# at this time the minimum glibc in the tree is 2.9 so we should be safe.
|
||||
if use elibc_glibc && use jemalloc3; then
|
||||
# We must force-enable jemalloc 3 via .mozconfig
|
||||
echo "export MOZ_JEMALLOC3=1" >> "${S}"/.mozconfig || die
|
||||
mozconfig_annotate '' --enable-jemalloc
|
||||
mozconfig_annotate '' --enable-replace-malloc
|
||||
fi
|
||||
|
||||
mozconfig_annotate '' --target="${CTARGET:-${CHOST}}"
|
||||
mozconfig_annotate '' --build="${CTARGET:-${CHOST}}"
|
||||
|
||||
use ffmpeg || mozconfig_annotate '-ffmpeg' --disable-ffmpeg
|
||||
mozconfig_use_enable pulseaudio
|
||||
|
||||
mozconfig_use_enable system-cairo
|
||||
mozconfig_use_enable system-sqlite
|
||||
mozconfig_use_with system-jpeg
|
||||
mozconfig_use_with system-icu
|
||||
mozconfig_use_with system-libvpx
|
||||
mozconfig_use_with system-harfbuzz
|
||||
mozconfig_use_with system-harfbuzz system-graphite2
|
||||
|
||||
# Modifications to better support ARM, bug 553364
|
||||
if use neon ; then
|
||||
mozconfig_annotate '' --with-fpu=neon
|
||||
mozconfig_annotate '' --with-thumb=yes
|
||||
mozconfig_annotate '' --with-thumb-interwork=no
|
||||
fi
|
||||
if [[ ${CHOST} == armv* ]] ; then
|
||||
mozconfig_annotate '' --with-float-abi=hard
|
||||
mozconfig_annotate '' --enable-skia
|
||||
|
||||
if ! use system-libvpx ; then
|
||||
sed -i -e "s|softfp|hard|" \
|
||||
"${S}"/media/libvpx/moz.build
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
# @FUNCTION: mozconfig_install_prefs
|
||||
# @DESCRIPTION:
|
||||
# Set preferences into the prefs.js file specified as a parameter to
|
||||
# the function. This sets both some common prefs to all mozilla
|
||||
# packages, and any prefs that may relate to the use flags administered
|
||||
# by mozconfig_config().
|
||||
#
|
||||
# Call this within src_install() phase, after copying the template
|
||||
# prefs file (if any) from ${FILESDIR}
|
||||
#
|
||||
# Example:
|
||||
#
|
||||
# inherit mozconfig-v6.46
|
||||
#
|
||||
# src_install() {
|
||||
# cp "${FILESDIR}"/gentoo-default-prefs.js \
|
||||
# "${BUILD_OBJ_DIR}/dist/bin/browser/defaults/preferences/all-gentoo.js" \
|
||||
# || die
|
||||
#
|
||||
# mozconfig_install_prefs \
|
||||
# "${BUILD_OBJ_DIR}/dist/bin/browser/defaults/preferences/all-gentoo.js"
|
||||
#
|
||||
# ...
|
||||
# }
|
||||
|
||||
mozconfig_install_prefs() {
|
||||
local prefs_file="${1}"
|
||||
|
||||
einfo "Adding prefs from mozconfig to ${prefs_file}"
|
||||
|
||||
# set dictionary path, to use system hunspell
|
||||
echo "pref(\"spellchecker.dictionary_path\", \"${EPREFIX}/usr/share/myspell\");" \
|
||||
>>"${prefs_file}" || die
|
||||
|
||||
# force the graphite pref if system-harfbuzz is enabled, since the pref cant disable it
|
||||
if use system-harfbuzz ; then
|
||||
echo "sticky_pref(\"gfx.font_rendering.graphite.enabled\",true);" \
|
||||
>>"${prefs_file}" || die
|
||||
fi
|
||||
}
|
@ -1,3 +1,2 @@
|
||||
DIST etr-0.6.0.tar.xz 32889668 SHA256 44312719a1e9aa33e5aa0c8ad50bb52df702d64fd2d16bf2abda62ee27bf893a SHA512 c3127dd1f8d9b856cc42808713a53b48a64821f020ecf3bfaae8be96e36eaddfadfedcf394d445ea1f49df650763b50d35a5ad9cac03308bcb1a4a473e4906d8 WHIRLPOOL d003d5ef070ed15d4521cc2025ceb372b18b69f3172065159b5fd18bf5f2126da4cc8c179b95311c63afd5093ec2700483697544ade7ad02e1f255e1cdfc44e4
|
||||
DIST etr-0.7.1.tar.xz 44306872 SHA256 a47bd5c998b97e5cbc522f36318a7fa2cd9b9d2a2134efb224aaa452b9b148c4 SHA512 e6f4cb6fa59ac3534aac79822b398f59d94885530ba1ded15b96da6f5750946547f8a491349095d9a27d39e6a02f18e9bdaff6ea409f36f00c5309cd81d98c71 WHIRLPOOL 72c5434edce7c2bfcc59b997761a3154b68c4b8b8e7d564843fb16689a3f9e951fdcf87830e6f0b787c86d5b3969703f32db33e2bef691882d4d0269d25fb5b3
|
||||
DIST etr-0.7.2.tar.xz 44178196 SHA256 246d4e65f5c1d3f739e27c75f403d277b54f4e1f3b6e09fd1497a13457292417 SHA512 256db82becdc69344e8aca49f74eed49d7cb99d1c44ef4dff78289acc1ac5f1c2d7b161cecb25c26395d2d8a8b88d33d09bbb94254b5c0c132c09eb658cf87a2 WHIRLPOOL 34f76aa40c548e1c5b54c68c8e43c0fb43ecd6c510a58fe80f77ade21326fffc820a794ac68449dfb2e9d1415269e6aa7951c62522c3fe6f02e4ee5557deef67
|
||||
|
@ -1,53 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
inherit eutils autotools gnome2-utils games
|
||||
|
||||
DESCRIPTION="High speed arctic racing game based on Tux Racer"
|
||||
HOMEPAGE="http://extremetuxracer.sourceforge.net/"
|
||||
SRC_URI="mirror://sourceforge/extremetuxracer/etr-${PV/_/}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="virtual/opengl
|
||||
virtual/glu
|
||||
>=media-libs/libsfml-2.2
|
||||
media-libs/freetype:2"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
S=${WORKDIR}/etr-${PV/_/}
|
||||
|
||||
src_prepare() {
|
||||
# kind of ugly in there so we'll do it ourselves
|
||||
sed -i -e '/SUBDIRS/s/resources doc//' Makefile.am || die
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
dodoc doc/{code,courses_events,guide,score_algorithm}
|
||||
doicon -s 48 resources/etr.png
|
||||
doicon -s scalable resources/etr.svg
|
||||
domenu resources/etr.desktop
|
||||
prepgamesdirs
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
games_pkg_preinst
|
||||
gnome2_icon_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
games_pkg_postinst
|
||||
gnome2_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_icon_cache_update
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
From dc07b64245459ff75c638dedc14ac86bdf9bc176 Mon Sep 17 00:00:00 2001
|
||||
From: Alexandre Rostovtsev <tetromino@gentoo.org>
|
||||
Date: Mon, 16 Jul 2012 05:43:38 -0400
|
||||
Subject: [PATCH] Export fits to home directory, not python sitedir
|
||||
|
||||
---
|
||||
service/settings.py | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/service/settings.py b/service/settings.py
|
||||
index 60627e6..7087e5c 100644
|
||||
--- a/service/settings.py
|
||||
+++ b/service/settings.py
|
||||
@@ -21,6 +21,7 @@ import cPickle
|
||||
import os.path
|
||||
import config
|
||||
import urllib2
|
||||
+import sys
|
||||
|
||||
class SettingsProvider():
|
||||
BASE_PATH = os.path.join(config.savePath, "settings")
|
||||
@@ -221,7 +222,7 @@ class HTMLExportSettings():
|
||||
return cls._instance
|
||||
|
||||
def __init__(self):
|
||||
- serviceHTMLExportDefaultSettings = {"enabled": False, "path": config.pyfaPath + os.sep + 'pyfaFits.html', "website": "null-sec.com" }
|
||||
+ serviceHTMLExportDefaultSettings = {"enabled": False, "path": unicode(os.path.expanduser(os.path.join('~', 'pyfaFits.html')), sys.getfilesystemencoding()), "website": "null-sec.com" }
|
||||
self.serviceHTMLExportSettings = SettingsProvider.getInstance().getSettings("pyfaServiceHTMLExportSettings", serviceHTMLExportDefaultSettings)
|
||||
|
||||
def getEnabled(self):
|
||||
--
|
||||
2.8.1
|
||||
|
@ -1,34 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
KDE_HANDBOOK="forceoptional"
|
||||
KDE_TEST="forceoptional"
|
||||
inherit kde5
|
||||
|
||||
DESCRIPTION="A shell script to create the necessary framework to develop KDE applications"
|
||||
HOMEPAGE="https://www.kde.org/applications/development/kapptemplate"
|
||||
KEYWORDS=" ~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="
|
||||
$(add_frameworks_dep karchive)
|
||||
$(add_frameworks_dep kcompletion)
|
||||
$(add_frameworks_dep kconfig)
|
||||
$(add_frameworks_dep kconfigwidgets)
|
||||
$(add_frameworks_dep kcoreaddons)
|
||||
$(add_frameworks_dep ki18n)
|
||||
$(add_frameworks_dep kio)
|
||||
$(add_frameworks_dep kwidgetsaddons)
|
||||
$(add_qt_dep qtgui)
|
||||
$(add_qt_dep qtwidgets)
|
||||
"
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_install() {
|
||||
kde5_src_install
|
||||
rm "${ED}"usr/share/kdevappwizard/templates/qml-plasmoid.tar.bz2 || die
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST cura-2.1.0_beta.tar.gz 19784684 SHA256 b81f09307968475e33b03199aaf968e25d2b37fc7db9777b95c03053b1836f83 SHA512 9e4b4f0a93098f9cadf7d8969725e17ac549b6caced602a3d088e65068ab7fcda5a18e7e6f293434e7042360f0e37d87074d82d8884370bfbfc10e07a4212ce2 WHIRLPOOL 19ae138fa4b7c840ffc2d61779a08d48624bc6078fa83a6bec280d1a725e93bad6682d9f21a0cbe3ee4a4343a47a7e6f58d3fd559804f278241c7a5bb7d3cf89
|
@ -0,0 +1,65 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="6"
|
||||
|
||||
PYTHON_COMPAT=( python3_4 python3_5 )
|
||||
inherit cmake-utils fdo-mime gnome2-utils python-single-r1
|
||||
|
||||
MY_PN=Cura
|
||||
MY_PV=${PV/_beta}
|
||||
|
||||
DESCRIPTION="A 3D model slicing application for 3D printing"
|
||||
HOMEPAGE="https://github.com/Ultimaker/Cura"
|
||||
SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
LICENSE="AGPL-3"
|
||||
SLOT="0"
|
||||
IUSE="+usb"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
dev-libs/libarcus:=[${PYTHON_USEDEP}]
|
||||
dev-python/uranium[${PYTHON_USEDEP}]
|
||||
usb? ( dev-python/pyserial[${PYTHON_USEDEP}] )
|
||||
~media-gfx/curaengine-${PV}"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/gettext"
|
||||
|
||||
S="${WORKDIR}/${MY_PN}-${MY_PV}"
|
||||
PATCHES=( "${FILESDIR}/${P}-fix-install-paths.patch" )
|
||||
DOCS=( README.md )
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DPYTHON_SITE_PACKAGES_DIR="$(python_get_sitedir)" )
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake-utils_src_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
doicon icons/*.png
|
||||
python_optimize "${D}${get_libdir}"
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
gnome2_icon_savelist
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
fdo-mime_desktop_database_update
|
||||
fdo-mime_mime_database_update
|
||||
gnome2_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
fdo-mime_desktop_database_update
|
||||
fdo-mime_mime_database_update
|
||||
gnome2_icon_cache_update
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
diff -Naur a/CMakeLists.txt b/CMakeLists.txt
|
||||
--- a/CMakeLists.txt 2016-04-12 17:39:03.000000000 +0200
|
||||
+++ b/CMakeLists.txt 2016-04-16 13:30:27.339900905 +0200
|
||||
@@ -55,20 +55,31 @@
|
||||
|
||||
find_package(PythonInterp 3.4.0 REQUIRED)
|
||||
|
||||
+if(NOT PYTHON_SITE_PACKAGES_DIR)
|
||||
+ if(APPLE OR WIN32)
|
||||
+ set(PYTHON_SITE_PACKAGES_DIR lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages CACHE
|
||||
+STRING "Directory to install Python bindings to")
|
||||
+ else()
|
||||
+ set(PYTHON_SITE_PACKAGES_DIR lib/python${PYTHON_VERSION_MAJOR}/dist-packages CACHE
|
||||
+STRING "Directory to install Python bindings to")
|
||||
+ endif()
|
||||
+endif()
|
||||
+
|
||||
install(DIRECTORY resources
|
||||
DESTINATION ${CMAKE_INSTALL_DATADIR}/cura)
|
||||
install(DIRECTORY plugins
|
||||
- DESTINATION lib/cura)
|
||||
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cura)
|
||||
+
|
||||
if(NOT APPLE AND NOT WIN32)
|
||||
install(FILES cura_app.py
|
||||
DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
|
||||
RENAME cura)
|
||||
install(DIRECTORY cura
|
||||
- DESTINATION lib/python${PYTHON_VERSION_MAJOR}/dist-packages
|
||||
+ DESTINATION ${PYTHON_SITE_PACKAGES_DIR}
|
||||
FILES_MATCHING PATTERN *.py)
|
||||
install(FILES ${CMAKE_BINARY_DIR}/CuraVersion.py
|
||||
- DESTINATION lib/python${PYTHON_VERSION_MAJOR}/dist-packages/cura)
|
||||
+ DESTINATION ${PYTHON_SITE_PACKAGES_DIR}/cura)
|
||||
install(FILES cura.desktop
|
||||
DESTINATION ${CMAKE_INSTALL_DATADIR}/applications)
|
||||
install(FILES cura.sharedmimeinfo
|
@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>tomboy64@sina.cn</email>
|
||||
<name>Matthew Brewer</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>3dprint@gentoo.org</email>
|
||||
<name>Gentoo 3D Printer Project</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Gentoo Proxy Maintainers Project</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>python@gentoo.org</email>
|
||||
<name>Gentoo Python Project</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="usb">Access 3D printers via USB</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="github">Ultimaker/Cura</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -0,0 +1 @@
|
||||
DIST curaengine-2.1.0_beta.tar.gz 33322580 SHA256 0db6ca118637972546b04f672bc0cbecbe29b772a3586c7ca5441dc4ae7a7c85 SHA512 23b1e1116fad8e75354a92b8320a228a0b7acb03bcdffa175b8b6f47af0b8af099efdc3c75f840d172fc157d432a05c741a5028f3b8da1e7fc1dd8cf158115fb WHIRLPOOL 45520cf601b5ee2e2845e69f85d051f426317bc38c69b7d1dfe2632bb211b39d7286a747d9d0963e4d20d13c0def8d50dd69fdaf0a027187ec2ad9fd717c13fe
|
@ -0,0 +1,42 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="6"
|
||||
|
||||
inherit cmake-utils
|
||||
|
||||
MY_PN=CuraEngine
|
||||
MY_PV=${PV/_beta}
|
||||
|
||||
DESCRIPTION="A 3D model slicing engine for 3D printing"
|
||||
HOMEPAGE="https://github.com/Ultimaker/CuraEngine"
|
||||
SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
LICENSE="AGPL-3"
|
||||
SLOT="0"
|
||||
IUSE="doc test"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
dev-libs/libarcus:=
|
||||
>=dev-libs/protobuf-3"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( app-doc/doxygen )"
|
||||
S="${WORKDIR}/${MY_PN}-${MY_PV}"
|
||||
DOCS=( README.md )
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=( "-DBUILD_TESTS=$(usex test ON OFF)" )
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cmake-utils_src_make
|
||||
if use doc; then
|
||||
doxygen
|
||||
mv docs/html . || die
|
||||
find html -name '*.md5' -or -name '*.map' -delete || die
|
||||
DOCS+=( html )
|
||||
fi
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>tomboy64@sina.cn</email>
|
||||
<name>Matthew Brewer</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>3dprint@gentoo.org</email>
|
||||
<name>Gentoo 3D Printer Project</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Gentoo Proxy Maintainers Project</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">Ultimaker/CuraEngine</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue