parent
5314ff9b5c
commit
7f2b15d071
@ -1,2 +1,3 @@
|
||||
DIST glance-13.0.0.tar.gz 1742124 SHA256 3ef3594018469ba36425afafa61ae31487b6025e6f8d9d14febcedfa7136160f SHA512 2f49af5c462a10f8132bb50ad62a45026e77db1324384299551cfe2097b166ccb6fab82eacb092ab6c157f27cdb7253062e62881af795b15d8fd400c1fa096d8 WHIRLPOOL 0c859bbe9e87d2658118bdc111fd052ef088489d83d30574ec07271a50674d18b93d80de05a6282f7d43a8630d980340445b7eeee926bda84572df40086e5e5c
|
||||
DIST glance-14.0.0.tar.gz 1788173 SHA256 360a9ef92121ed355ea812478933ac4b020adc6ae3bb5440b05cbdf06a2f9f46 SHA512 4d0b6654dc6a9848e164422d138d4f6c1ec3711a7eb56a3c437202aa5c8cf86bf341201c9007b2f12173189f18beb73eadbaaade936ececf705a31e8b6eac155 WHIRLPOOL 40c7959e052cb3f1d93f3542669b3009b83004cce7dbdcbe67651e69af93e01969f70f4586a022ffc60127ce70037d4887ab0d8de4e11de98519bef578632265
|
||||
DIST glance-15.0.0.tar.gz 1803491 SHA256 6e0305e5bdc8f22dca083809e86cf82c430d1cb0164364dbc68263e36676e565 SHA512 beb5744f9e8b296356cb731c79f1efd7b60408c1282e8a64ab7d414929c447c4f2ff0562a0d59c0a05f828d420ba190946866543a37dbd2df73ae322cbcabab5 WHIRLPOOL dfb8ec280a161c09a03f2495b9ec26ec8b2a18f14fca0cad13d6c581a735858893bc0dce2de2bbe317ad61cb7fbca5de7d05d6bb85cb7e6949acd49baf91eb8f
|
||||
|
@ -0,0 +1,145 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python2_7 python3_4 python3_5 )
|
||||
|
||||
inherit distutils-r1 user
|
||||
|
||||
DESCRIPTION="Services for discovering, registering, and retrieving VM images"
|
||||
HOMEPAGE="https://launchpad.net/glance"
|
||||
SRC_URI="https://tarballs.openstack.org/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
IUSE="doc mysql postgres +sqlite +swift"
|
||||
REQUIRED_USE="|| ( mysql postgres sqlite )"
|
||||
|
||||
CDEPEND=">=dev-python/pbr-2.0.0[${PYTHON_USEDEP}]
|
||||
!~dev-python/pbr-2.1.0"
|
||||
DEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
${CDEPEND}"
|
||||
|
||||
#note to self, wsgiref is a python builtin, no need to package it
|
||||
#>=dev-python/wsgiref-0.1.2[${PYTHON_USEDEP}]
|
||||
|
||||
RDEPEND="
|
||||
${CDEPEND}
|
||||
sqlite? (
|
||||
>=dev-python/sqlalchemy-1.0.10[sqlite,${PYTHON_USEDEP}]
|
||||
!~dev-python/sqlalchemy-1.1.5[sqlite,${PYTHON_USEDEP}]
|
||||
!~dev-python/sqlalchemy-1.1.6[sqlite,${PYTHON_USEDEP}]
|
||||
!~dev-python/sqlalchemy-1.1.7[sqlite,${PYTHON_USEDEP}]
|
||||
!~dev-python/sqlalchemy-1.1.8[sqlite,${PYTHON_USEDEP}]
|
||||
)
|
||||
mysql? (
|
||||
>=dev-python/pymysql-0.7.6[${PYTHON_USEDEP}]
|
||||
!~dev-python/pymysql-0.7.7[${PYTHON_USEDEP}]
|
||||
>=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}]
|
||||
!~dev-python/sqlalchemy-1.1.5[${PYTHON_USEDEP}]
|
||||
!~dev-python/sqlalchemy-1.1.6[${PYTHON_USEDEP}]
|
||||
!~dev-python/sqlalchemy-1.1.7[${PYTHON_USEDEP}]
|
||||
!~dev-python/sqlalchemy-1.1.8[${PYTHON_USEDEP}]
|
||||
)
|
||||
postgres? (
|
||||
>=dev-python/psycopg-2.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/sqlalchemy-1.0.10[${PYTHON_USEDEP}]
|
||||
!~dev-python/sqlalchemy-1.1.5[${PYTHON_USEDEP}]
|
||||
!~dev-python/sqlalchemy-1.1.6[${PYTHON_USEDEP}]
|
||||
!~dev-python/sqlalchemy-1.1.7[${PYTHON_USEDEP}]
|
||||
!~dev-python/sqlalchemy-1.1.8[${PYTHON_USEDEP}]
|
||||
)
|
||||
>=dev-python/eventlet-0.18.4[${PYTHON_USEDEP}]
|
||||
!~dev-python/eventlet-0.20.1[${PYTHON_USEDEP}]
|
||||
<dev-python/eventlet-0.21.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pastedeploy-1.5.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/routes-2.3.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/webob-1.7.1[${PYTHON_USEDEP}]
|
||||
>=dev-python/sqlalchemy-migrate-0.11.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-sqlparse-0.2.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/alembic-0.8.10[${PYTHON_USEDEP}]
|
||||
>=dev-python/httplib2-0.7.5[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-config-4.0.0[${PYTHON_USEDEP}]
|
||||
!~dev-python/oslo-config-4.3.0[${PYTHON_USEDEP}]
|
||||
!~dev-python/oslo-config-4.4.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-concurrency-3.8.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-context-2.14.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-utils-3.20.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/stevedore-1.20.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/futurist-0.11.0[${PYTHON_USEDEP}]
|
||||
!~dev-python/futurist-0.15.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/taskflow-2.7.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/keystoneauth-3.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/keystonemiddleware-4.12.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/WSME-0.8.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/prettytable-0.7.0[${PYTHON_USEDEP}]
|
||||
<dev-python/prettytable-0.8.0[${PYTHON_USEDEP}]
|
||||
dev-python/paste[${PYTHON_USEDEP}]
|
||||
>=dev-python/jsonschema-2.0.0[${PYTHON_USEDEP}]
|
||||
!~dev-python/jsonschema-2.5.0[${PYTHON_USEDEP}]
|
||||
<dev-python/jsonschema-3.0.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/python-keystoneclient-3.8.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/pyopenssl-0.14[${PYTHON_USEDEP}]
|
||||
>=dev-python/six-1.9.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-db-4.24.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-i18n-2.1.0[${PYTHON_USEDEP}]
|
||||
!~dev-python/oslo-i18n-3.15.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-log-3.22.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-messaging-5.24.2[${PYTHON_USEDEP}]
|
||||
!~dev-python/oslo-messaging-5.25.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-middleware-3.27.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/oslo-policy-1.23.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/retrying-1.2.3[${PYTHON_USEDEP}]
|
||||
!~dev-python/retrying-1.3.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/osprofiler-1.4.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/glance_store-0.22.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/debtcollector-1.2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/cryptography-1.6[${PYTHON_USEDEP}]
|
||||
!~dev-python/cryptography-2.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/cursive-0.1.2[${PYTHON_USEDEP}]
|
||||
>=dev-python/iso8601-0.1.11[${PYTHON_USEDEP}]
|
||||
>=dev-python/monotonic-0.6[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
#PATCHES=(
|
||||
#)
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup glance
|
||||
enewuser glance -1 -1 /var/lib/glance glance
|
||||
}
|
||||
|
||||
python_prepare_all() {
|
||||
sed -i '/xattr/d' test-requirements.txt || die
|
||||
sed -i '/pysendfile/d' test-requirements.txt || die
|
||||
sed -i '/^hacking/d' test-requirements.txt || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && "${PYTHON}" setup.py build_sphinx
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
for svc in api glare registry scrubber; do
|
||||
newinitd "${FILESDIR}/glance.initd-r2" glance-${svc}
|
||||
done
|
||||
|
||||
diropts -m 0750 -o glance -g glance
|
||||
dodir /var/log/glance /var/lib/glance/images /var/lib/glance/scrubber
|
||||
keepdir /etc/glance
|
||||
keepdir /var/log/glance
|
||||
keepdir /var/lib/glance/images
|
||||
keepdir /var/lib/glance/scrubber
|
||||
|
||||
insinto /etc/glance
|
||||
insopts -m 0640 -o glance -g glance
|
||||
doins -r etc/*.ini etc/*.conf etc/*.sample etc/*.json etc/meta*
|
||||
|
||||
use doc && local HTML_DOCS=( doc/build/html/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1,5 +1 @@
|
||||
DIST par2cmdline-0.6.12.tar.gz 3536512 SHA256 1788aaab2cd7f760c4dc24c1d31a471a4b584fbbfa2a47f06f340b4d73480144 SHA512 17f0ff482c1410b1ef07a700f472f463660d393b7c06c796849c9b67d95f7283a91d135e67e20dbcaf888a85d0abf96959dc9d80b92e7b638ac632acd9b4107e WHIRLPOOL efe80eecd402a1ad800307a63edbe5b473bd8b29204d24b1e008b48549cb96336957fda4cd7f2e4fc83dda3152e663a70b2e0d00984e377f8b6cb03d80e91a0a
|
||||
DIST par2cmdline-0.6.13.tar.gz 3538108 SHA256 024b9f0ed5c57ebdd633333b288818790b0d5c4ecc9c6296dc32ae3f98690abe SHA512 fae4707c2d11c17774e890db9a5173f9ef14be1308dfa1e193d3e7f49d1decff651d58d410fc493992b41b84e5bb42930988a5bd8369bf13e083e95eb45f4bcc WHIRLPOOL 8ff13317c3961aa9c032f25084e2de65fbbcb8615c7e93a9b59a2ca5fc500863c03d489e56c1ba8e29113c6ef0897714db2ce17d6966ad9254f98d7755415444
|
||||
DIST par2cmdline-0.7.0.tar.xz 2634708 SHA256 21fd762acbe3b427daf83bd80897beb8b039550e61b6d74c67f2d4a233278a4f SHA512 5fed6f2c1f819617249e9b5d58489faf66f2728e4c63f4222b07136a31c022fe63633c93c7cf3e460bc436b15773672fad13fd857a49240f8ea2c04986914a75 WHIRLPOOL f878409c72402b6cdf15a99b324f324f09bbaf70347b82dd17cb0c8f52319e7a5bdc579f6aa6c3b3325acdd8f7e135c86b3c286fe1818a80bcf187ba77a1ae09
|
||||
DIST par2cmdline-0.7.1.tar.bz2 3129827 SHA256 65bd96b96aece0c280025c2d4345a68e4d63f25fd408b4f617c033a2ff6196cd SHA512 d7c86609554eab085d0a8a175e2029ff92fd7a6b94b54a8f3b6dd98c4bda34dc3862361565ba472cc22564103edc0145a3ffb6fa49d3c67ec3be8d07943d944e WHIRLPOOL 400175f2fe78239cfc06c8361f02bdb41879e3f2801e404a882565a8412a8aeb48fc980d7bb4873bed5ffab343b413ba7995e772bb4ccc821f8293eb3937e836
|
||||
DIST par2cmdline-0.7.3.tar.bz2 3129759 SHA256 dfd8cb54c8ce6672ca1f94ae180179d702bbd2c2f88b36dac256d7cf1edfad55 SHA512 85fe91f2e7cc1888171390f82fe2d12279e65eab17b3a6db209998aed316c5ea9dd5e63004cf975cbe460c1ef27860af31160e8757921c4027e27997dcd8be8a WHIRLPOOL e40818de0da3ddf5df8b17fdb2e62d39647161de1cd7368f615ccc05efbfabaa47dedf9e56181e638dba51bc1e41828afb415e26acddaa8881c7b73e70b1d288
|
||||
|
@ -1,20 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
inherit autotools
|
||||
|
||||
DESCRIPTION="A PAR-2.0 file verification and repair tool"
|
||||
HOMEPAGE="https://github.com/BlackIkeEagle/par2cmdline"
|
||||
SRC_URI="https://github.com/BlackIkeEagle/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~hppa ppc ~ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
|
||||
IUSE=""
|
||||
|
||||
DOCS="AUTHORS ChangeLog README" # NEWS is empty, PORTING and ROADMAP are for building
|
||||
|
||||
src_prepare() {
|
||||
eautoreconf
|
||||
}
|
@ -1,20 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
inherit autotools
|
||||
|
||||
DESCRIPTION="A PAR-2.0 file verification and repair tool"
|
||||
HOMEPAGE="https://github.com/BlackIkeEagle/par2cmdline"
|
||||
SRC_URI="https://github.com/BlackIkeEagle/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
|
||||
IUSE=""
|
||||
|
||||
DOCS="AUTHORS ChangeLog README" # NEWS is empty, PORTING and ROADMAP are for building
|
||||
|
||||
src_prepare() {
|
||||
eautoreconf
|
||||
}
|
@ -1,30 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="A PAR-2.0 file verification and repair tool"
|
||||
HOMEPAGE="https://github.com/Parchive/par2cmdline"
|
||||
SRC_URI="https://github.com/Parchive/${PN}/releases/download/v${PV}/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
|
||||
IUSE="openmp"
|
||||
|
||||
DOCS="AUTHORS ChangeLog README" # NEWS is empty, PORTING and ROADMAP are for building
|
||||
|
||||
pkg_pretend() {
|
||||
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# test22 fails when run in parallel
|
||||
emake -j1 check
|
||||
}
|
@ -1,30 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="A PAR-2.0 file verification and repair tool"
|
||||
HOMEPAGE="https://github.com/Parchive/par2cmdline"
|
||||
SRC_URI="https://github.com/Parchive/${PN}/releases/download/v${PV}/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
|
||||
IUSE="openmp"
|
||||
|
||||
DOCS="AUTHORS ChangeLog README" # NEWS is empty, PORTING and ROADMAP are for building
|
||||
|
||||
pkg_pretend() {
|
||||
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# test22 fails when run in parallel
|
||||
emake -j1 check
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST zsh-lovers_0.9.0.tar.gz 28883 SHA256 fd97f0ca69180a86acd6330acc013553cb978af3ce2c1e9e7755a9eaa92c239b SHA512 54e7465304313556f9299877314f18cef631c076cad1a8f3b1ce13a6e24dcb4778e852f0eec31bce62bad2bd9503b8741238f097be8cec541e5c4c8f08af9dc4 WHIRLPOOL c86f51cc799be14e79083b23357f2d712a2945fcecaeaf8984cf8a8b920a41ca4bad90632d6db88546e2b38626ba08ecd82f1cc87ee0717b7db51e26c7e60785
|
||||
DIST zsh-lovers_0.9.1.tar.xz 26632 SHA256 4ffc5dec97b38a1ede66cea0e8a0a34ff1600f77a092d9a57de123202bef98f3 SHA512 16493f2ec095fbdb992188a732ca4205880fa10fc1f1ab6cde8cbd2a0977d95bb06e46d1635c0c9910c249bec024f3cd13a1f8c6597e5201ef8a26b80fac9c2f WHIRLPOOL d6e56f8d597d8cbe5fcf5ebb48075da42fbf0ea200b9c9f67f1c4a1f6418bdd836c0c43197213ab09c21bc615fae65eb058fd99fb4e70fc25cc2f19671a3ab0f
|
||||
|
@ -0,0 +1,25 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="Tips, tricks and examples for the Z shell"
|
||||
HOMEPAGE="https://grml.org/zsh/zsh-lovers.html"
|
||||
SRC_URI="https://deb.grml.org/pool/main/z/${PN}/${PN}_${PV}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
|
||||
DEPEND="app-text/asciidoc"
|
||||
|
||||
src_compile() {
|
||||
asciidoc ${PN}.1.txt || die
|
||||
mv ${PN}.1.html ${PN}.html || die
|
||||
a2x -f manpage ${PN}.1.txt || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
doman ${PN}.1
|
||||
dodoc ${PN}.html
|
||||
}
|
@ -1 +1 @@
|
||||
DIST sandy-0.4.tar.bz2 18309 SHA256 d30336704178611f36a55982932369c6dd55a781e22735bb7dfcb3e4b939492a SHA512 3579436d6566b9ef3273abb7bb1d8934901155220edb963a0ed93db4b860e1e3fa0d0f1235ea87b42f1b6ddbb69e3ef1f5ba7a2e9455d6659b621d9a4e3f25c2 WHIRLPOOL 5e1042ebab68bd2f0e71c25dbd15a35ec06e4b953b3a44637c52cc0949dcddc44131ef64324eac1ba00f49bf0421ac0600f884daded73608bc1aca3cce22bb17
|
||||
DIST sandy-0.4.tar.bz2 18409 SHA256 cc549e70936424b65b012a664fe8959a5b3f345e3d5be3af9bd1ee9ea80a412b SHA512 6f28588e15ccdc467dd9d0de8b221508333defefe5866005d82292583db9f296284f233271af5e85b648c194dff117f94752cc364ed6c1409dae5c3af755b530 WHIRLPOOL 3944bbf11e7548e8675e5461c5c8686a6046854aa189a1bfa018a0eb14962c9d3601ab9b734c5516457bb402f98b7798825f3660b7a294323f64742eced49bfe
|
||||
|
@ -1,2 +1,3 @@
|
||||
DIST appliance-1.26.0.tar.xz 94753208 SHA256 446e8f0cfb24977843049984879d471760a1f56dd9f891f2a66c16827c7dfbcf SHA512 5d493ed6e8601dde8d5a45debfee71696b96a36d0f69d428388a6f2a2d49e12c0a66bcee210fe606fc9b2b41cb42d0d2a9f5d12425f2b234423194b2609f081f WHIRLPOOL 18cb09b44ce568e4270e574fffe7ffd935c4d64564abaae66c3d70202db9df75b013a0ed8add639ac13ea4ebd0ec9d74645a774d2e969686c8bc0d616587f625
|
||||
DIST appliance-1.28.1.tar.xz 100065044 SHA256 d6aa214ba05666ca7b8494b2f1814f2f291e569a9476e837e4b9d061ff92cfa2 SHA512 f13c556953d3542f92c2c007d3e97c3568382a1879e7a558471dbeac8962bd2809e446bbf0f4647002967112abe8f9a9a06910b74e9b7d72694cf49859a26330 WHIRLPOOL fa80fc747e4270fb3bc3b853ea9abf62fd655cab4c72eb6a084d319078a9f89baf2a8c00b34c9dcbc8fb875f1526c0a8e681a6f4917710934a9c2a8d99010e04
|
||||
DIST appliance-1.36.1.tar.xz 91514476 SHA256 45040a9dacf597870108fde0ac395f340d2469bf3cee2d1f2cc1bcfb46c89bce SHA512 2af550078a0e6b37e97988018f579df0e19072d06cbb53eccd85c2873850b472cabf34bbfb4e0ef5f43b5a1af4155f014eeefb85a1b05035d7916c7b1187d722 WHIRLPOOL 85400a9fee5204ef764bc1959444c9678778d2f52b3aab6ed1a94a8f55352da3a2a3992d1e4ad7c50873379d33c114d6a713b13a0b148a6efc03056fa740129d
|
||||
|
@ -0,0 +1,44 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
CHECKREQS_DISK_USR=500M
|
||||
CHECKREQS_DISK_BUILD=500M
|
||||
|
||||
inherit check-reqs
|
||||
|
||||
DESCRIPTION="VM appliance disk image used in libguestfs package"
|
||||
HOMEPAGE="http://libguestfs.org/"
|
||||
SRC_URI="http://libguestfs.org/download/binaries/appliance/appliance-${PV}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="app-arch/xz-utils"
|
||||
# Mixing libguestfs versions causes weird problems. #501588
|
||||
RDEPEND="!<app-emulation/libguestfs-${PV}"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_unpack() {
|
||||
# We'll unpack the tarball directly into ${D} to speed up install.
|
||||
# Otherwise we need to duplicate hundreds of data.
|
||||
:
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodir /usr/share/guestfs
|
||||
cd "${ED}"/usr/share/guestfs
|
||||
unpack ${A}
|
||||
cd appliance || die
|
||||
dodoc README*
|
||||
# Don't rm README.* here, at least README.fixed is needed for libguestfs, see
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1183780
|
||||
chmod 755 . || die
|
||||
chmod 644 * || die
|
||||
|
||||
newenvd "${FILESDIR}"/env.file 99"${PN}"
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST libguestfs-1.28.5.tar.gz 12747537 SHA256 e9f38c6ad15cefe18b096a86334a60fc7df6367358f2641d8c5c5f3122ad9d91 SHA512 5ab25498fa9141950c1077cc52bae05a2781fa86a983b5fa49fbd4a4bca70710db3d4f7b9f45fb6f8b4ee8e3d77ffde7c4c0d9e9e526443e2a8251a62306ebb6 WHIRLPOOL cbbac5cce87dd41ad05b13732d0f5a3442c980152d8864522f5df47ffed7a260a131c819ceb40edd07cd74454fc9f4c0c7eb41fe734509a4e123d28bc58d813f
|
||||
DIST libguestfs-1.36.5.tar.gz 23012703 SHA256 c2f7c10c42de04567a9b5cfd8345a995fb951ded9a7fbe72fae061d66dfe8f98 SHA512 01f10ab902386130f0565f53d0c361b903d6790b572e5562a2180e896952ead2e7661795bd976a7e2442887ea17014a6767db8b6e575de634f32de82ca4124c6 WHIRLPOOL aec77d2f3070722d6f39b172054ae1f526f731757a7d539ad1b7dc93c328259560172c91b77ca182526b73f1cbebfd037dea441a7c386f8398a0628145580502
|
||||
|
@ -0,0 +1,29 @@
|
||||
From a5fd133e001bb62d13c47ebc392fbb696a513640 Mon Sep 17 00:00:00 2001
|
||||
From: Gilles Dartiguelongue <g.dartiguelongue@lexfo.fr>
|
||||
Date: Wed, 30 Aug 2017 11:30:56 +0200
|
||||
Subject: [PATCH 1/3] Update libtool initialization
|
||||
|
||||
Use the recommanded macro post libtool-2 release.
|
||||
---
|
||||
m4/guestfs_misc.m4 | 5 +----
|
||||
1 file changed, 1 insertion(+), 4 deletions(-)
|
||||
|
||||
diff --git a/m4/guestfs_misc.m4 b/m4/guestfs_misc.m4
|
||||
index 5dce207d7..a2bb39c0d 100644
|
||||
--- a/m4/guestfs_misc.m4
|
||||
+++ b/m4/guestfs_misc.m4
|
||||
@@ -17,10 +17,7 @@
|
||||
|
||||
dnl Miscellaneous configuration that doesn't fit anywhere else.
|
||||
|
||||
-dnl Replace libtool with a wrapper that clobbers dependency_libs in *.la files
|
||||
-dnl http://lists.fedoraproject.org/pipermail/devel/2010-November/146343.html
|
||||
-LIBTOOL='bash $(top_srcdir)/libtool-kill-dependency_libs.sh $(top_builddir)/libtool'
|
||||
-AC_SUBST([LIBTOOL])
|
||||
+LT_INIT
|
||||
|
||||
dnl Only build boot-analysis program on x86-64 and aarch64. It
|
||||
dnl requires custom work to port to each architecture.
|
||||
--
|
||||
2.14.1
|
||||
|
@ -0,0 +1,25 @@
|
||||
From 9c423cd2d24b6de924afc6e0d715594bb056288d Mon Sep 17 00:00:00 2001
|
||||
From: Gilles Dartiguelongue <g.dartiguelongue@lexfo.fr>
|
||||
Date: Wed, 30 Aug 2017 11:27:50 +0200
|
||||
Subject: [PATCH 2/3] Add support for Gentoo in distribution detection
|
||||
|
||||
---
|
||||
m4/guestfs_appliance.m4 | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/m4/guestfs_appliance.m4 b/m4/guestfs_appliance.m4
|
||||
index 890b1999c..9b79e1a41 100644
|
||||
--- a/m4/guestfs_appliance.m4
|
||||
+++ b/m4/guestfs_appliance.m4
|
||||
@@ -114,6 +114,8 @@ elif test -f /etc/frugalware-release; then
|
||||
DISTRO=FRUGALWARE
|
||||
elif test -f /etc/mageia-release; then
|
||||
DISTRO=MAGEIA
|
||||
+elif test -f /etc/gentoo-release; then
|
||||
+ DISTRO=GENTOO
|
||||
else
|
||||
dnl fallback option
|
||||
DISTRO=REDHAT
|
||||
--
|
||||
2.14.1
|
||||
|
@ -0,0 +1,42 @@
|
||||
From 9bfa78095f6090c377fb40970653d1105a343cb7 Mon Sep 17 00:00:00 2001
|
||||
From: Gilles Dartiguelongue <g.dartiguelongue@lexfo.fr>
|
||||
Date: Wed, 30 Aug 2017 11:33:58 +0200
|
||||
Subject: [PATCH 3/3] Workaround autotools-utils detection of gtk-doc
|
||||
|
||||
---
|
||||
configure.ac | 3 +++
|
||||
m4/guestfs_gobject.m4 | 7 -------
|
||||
2 files changed, 3 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 268e6a182..65f4231bc 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -121,6 +121,9 @@ m4_include([m4/guestfs_lua.m4])
|
||||
m4_include([m4/guestfs_golang.m4])
|
||||
m4_include([m4/guestfs_gobject.m4])
|
||||
|
||||
+dnl check for gtk-doc
|
||||
+GTK_DOC_CHECK([1.14],[--flavour no-tmpl])
|
||||
+
|
||||
dnl Bash completion.
|
||||
m4_include([m4/guestfs_bash_completion.m4])
|
||||
|
||||
diff --git a/m4/guestfs_gobject.m4 b/m4/guestfs_gobject.m4
|
||||
index 4b4eab80d..4304f7b00 100644
|
||||
--- a/m4/guestfs_gobject.m4
|
||||
+++ b/m4/guestfs_gobject.m4
|
||||
@@ -59,10 +59,3 @@ m4_ifdef([GOBJECT_INTROSPECTION_CHECK], [
|
||||
],[
|
||||
AM_CONDITIONAL([HAVE_INTROSPECTION], [false])
|
||||
])
|
||||
-
|
||||
-# check for gtk-doc
|
||||
-m4_ifdef([GTK_DOC_CHECK], [
|
||||
- GTK_DOC_CHECK([1.14],[--flavour no-tmpl])
|
||||
-],[
|
||||
- AM_CONDITIONAL([ENABLE_GTK_DOC], false)
|
||||
-])
|
||||
--
|
||||
2.14.1
|
||||
|
@ -0,0 +1,171 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_{4,5}} )
|
||||
|
||||
inherit autotools linux-info perl-module python-single-r1 versionator
|
||||
|
||||
MY_PV_1="$(get_version_component_range 1-2)"
|
||||
MY_PV_2="$(get_version_component_range 2)"
|
||||
[[ $(( $(get_version_component_range 2) % 2 )) -eq 0 ]] && SD="stable" || SD="development"
|
||||
|
||||
DESCRIPTION="Tools for accessing, inspect and modifying virtual machine (VM) disk images"
|
||||
HOMEPAGE="http://libguestfs.org/"
|
||||
SRC_URI="http://libguestfs.org/download/${MY_PV_1}-${SD}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2"
|
||||
SLOT="0/"${MY_PV_1}""
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="bash-completion erlang +fuse debug ocaml doc +perl python ruby static-libs
|
||||
selinux systemtap introspection inspect-icons test lua gtk"
|
||||
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
# Failures - doc
|
||||
# Failures - bash-completion, see GBZ #486306
|
||||
|
||||
# FIXME: selinux support is automagic
|
||||
COMMON_DEPEND="
|
||||
sys-libs/ncurses:0=
|
||||
sys-devel/gettext
|
||||
>=app-misc/hivex-1.3.1
|
||||
dev-libs/libpcre:3
|
||||
app-arch/cpio
|
||||
dev-lang/perl
|
||||
virtual/cdrtools
|
||||
>=app-emulation/qemu-2.0[qemu_softmmu_targets_x86_64,systemtap?,selinux?,filecaps]
|
||||
sys-apps/fakeroot
|
||||
sys-apps/file
|
||||
app-emulation/libvirt
|
||||
dev-libs/libxml2:2
|
||||
>=sys-apps/fakechroot-2.8
|
||||
>=app-admin/augeas-1.0.0
|
||||
sys-fs/squashfs-tools:*
|
||||
dev-libs/libconfig
|
||||
sys-libs/readline:0=
|
||||
>=sys-libs/db-4.6:*
|
||||
app-arch/xz-utils
|
||||
app-arch/lzma
|
||||
app-crypt/gnupg
|
||||
app-arch/unzip[natspec]
|
||||
perl? (
|
||||
virtual/perl-ExtUtils-MakeMaker
|
||||
>=dev-perl/Sys-Virt-0.2.4
|
||||
virtual/perl-Getopt-Long
|
||||
virtual/perl-Data-Dumper
|
||||
dev-perl/libintl-perl
|
||||
>=app-misc/hivex-1.3.1[perl?]
|
||||
dev-perl/String-ShellQuote
|
||||
)
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
fuse? ( sys-fs/fuse:= )
|
||||
introspection? (
|
||||
>=dev-libs/glib-2.26:2
|
||||
>=dev-libs/gobject-introspection-1.30.0:=
|
||||
dev-libs/gjs
|
||||
)
|
||||
selinux? (
|
||||
sys-libs/libselinux
|
||||
sys-libs/libsemanage
|
||||
)
|
||||
systemtap? ( dev-util/systemtap )
|
||||
ocaml? ( >=dev-lang/ocaml-4.02[ocamlopt]
|
||||
dev-ml/findlib[ocamlopt]
|
||||
dev-ml/ocaml-gettext
|
||||
>=dev-ml/ounit-2
|
||||
)
|
||||
erlang? ( dev-lang/erlang )
|
||||
inspect-icons? (
|
||||
media-libs/netpbm
|
||||
media-gfx/icoutils
|
||||
)
|
||||
virtual/acl
|
||||
sys-libs/libcap
|
||||
lua? ( dev-lang/lua:* )
|
||||
>=app-shells/bash-completion-2.0
|
||||
>=dev-libs/yajl-2.0.4
|
||||
gtk? (
|
||||
sys-apps/dbus
|
||||
x11-libs/gtk+:3
|
||||
)
|
||||
"
|
||||
DEPEND="${COMMON_DEPEND}
|
||||
dev-util/gperf
|
||||
>=dev-util/gtk-doc-am-1.14
|
||||
doc? ( app-text/po4a )
|
||||
ruby? ( dev-lang/ruby virtual/rubygems dev-ruby/rake )
|
||||
"
|
||||
RDEPEND="${COMMON_DEPEND}
|
||||
app-emulation/libguestfs-appliance
|
||||
"
|
||||
|
||||
DOCS=( AUTHORS BUGS ChangeLog HACKING README TODO )
|
||||
|
||||
pkg_setup () {
|
||||
CONFIG_CHECK="~KVM ~VIRTIO"
|
||||
[ -n "${CONFIG_CHECK}" ] && check_extra_config;
|
||||
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
eapply "${FILESDIR}"/${MY_PV_1}
|
||||
eapply_user
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# Disable feature test for kvm for more reason
|
||||
# i.e: not loaded module in __build__ time,
|
||||
# build server not supported kvm, etc. ...
|
||||
#
|
||||
# In fact, this feature is virtio support and requires
|
||||
# configured kernel.
|
||||
export vmchannel_test=no
|
||||
|
||||
econf \
|
||||
$(use_enable test werror) \
|
||||
--with-libvirt \
|
||||
--with-default-backend=libvirt \
|
||||
--disable-appliance \
|
||||
--disable-daemon \
|
||||
--with-extra="-gentoo" \
|
||||
--with-readline \
|
||||
--disable-php \
|
||||
$(use_enable python) \
|
||||
--without-java \
|
||||
$(use_enable perl) \
|
||||
$(use_enable fuse) \
|
||||
$(use_enable ocaml) \
|
||||
$(use_enable ruby) \
|
||||
--disable-haskell \
|
||||
--disable-golang \
|
||||
$(use_enable introspection gobject) \
|
||||
$(use_enable erlang) \
|
||||
$(use_enable systemtap probes) \
|
||||
$(use_enable lua) \
|
||||
--with-gtk=$(usex gtk 3 no)
|
||||
$(usex doc '' PO4A=no)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
strip-linguas -i po
|
||||
emake DESTDIR="${D}" install "LINGUAS=""${LINGUAS}"""
|
||||
|
||||
use perl && perl_delete_localpod
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if ! use perl ; then
|
||||
einfo "Perl based tools NOT build"
|
||||
fi
|
||||
if ! use ocaml ; then
|
||||
einfo "Ocaml based tools ( sysprep , ... ) NOT installed"
|
||||
fi
|
||||
if ! gtk ; then
|
||||
einfo "virt-p2v NOT installed"
|
||||
fi
|
||||
}
|
@ -0,0 +1,60 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
inherit cmake-utils gnome2-utils
|
||||
|
||||
if [[ "${PV}" == "9999" ]]; then
|
||||
inherit git-r3
|
||||
|
||||
EGIT_REPO_URI="https://github.com/fcitx/fcitx-libpinyin"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Chinese LibPinyin input methods for Fcitx"
|
||||
HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx-libpinyin"
|
||||
if [[ "${PV}" == "9999" ]]; then
|
||||
SRC_URI=""
|
||||
else
|
||||
SRC_URI="https://download.fcitx-im.org/${PN}/${P}_dict.tar.xz"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2+ GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
|
||||
IUSE="dictmanager"
|
||||
|
||||
RDEPEND=">=app-i18n/fcitx-4.2.8
|
||||
>=app-i18n/libpinyin-2.1.0:=
|
||||
dev-libs/glib:2
|
||||
sys-apps/dbus
|
||||
virtual/libintl
|
||||
dictmanager? (
|
||||
>=app-i18n/fcitx-qt5-1.1
|
||||
>=dev-qt/qtcore-5.7:5
|
||||
>=dev-qt/qtdbus-5.7:5
|
||||
>=dev-qt/qtgui-5.7:5
|
||||
>=dev-qt/qtnetwork-5.7:5
|
||||
>=dev-qt/qtwebengine-5.7:5[widgets]
|
||||
>=dev-qt/qtwidgets-5.7:5
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
DOCS=(AUTHORS)
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DENABLE_QT=$(usex dictmanager)
|
||||
)
|
||||
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_icon_cache_update
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST ibus-libpinyin-1.6.92.tar.gz 1686249 SHA256 e611cff47b84345e1f60b8e94f74811bcfdf53b6ef7436b5cb5aff47eea743a3 SHA512 b4af0083c9c1dd4273c75372acf5d74ce317effdf56d8a0de8a3e3cd24f40b1b2dba91786d0a1cd72c9d7867b9ae630c4f69b04b378529dca8be0869e91d322d WHIRLPOOL 5dd8493bbbaa0f3d189a825bd4237a56276e88b8da91e75c1e3d49c1c1b2050ee2f9aaa4524ea00418690d8ff2085d6b6f686e60752e838f2515ca9d780347ef
|
||||
DIST ibus-libpinyin-1.7.4.tar.gz 1692228 SHA256 4627eab10ded24bd1a95ee56a2f7bd6a82deb94435aea674267fc40febd66f81 SHA512 d94f495e74650830f759889112df8b749d6e28192ed866f6bd132b16e16cda59d97aabc2762596bbe337a3deeb30ccd680ad370c28c1932ab05c6a40d8e1c265 WHIRLPOOL 1227c7f96565c001a90bced8aa4f847cfbe9bfae6810641e76472c437a29cdb539d2b316add9850270fa4eb2436761375f9d436749c8f06a573206ddba02064c
|
||||
DIST ibus-libpinyin-1.9.0.tar.gz 1692442 SHA256 c8ec2450cec6f11870982b0130293dc967632631077029ca76c27ef349189e3e SHA512 cf90fd5233ca7a77d45b69efc76a211ff69895eed09998bec09b362f6b67a91687510144f55ee67e31897ee81c47e86e2e1258ee1771bae1f04d8aa398b13e1e WHIRLPOOL cb4a5cb645b2a0126f1d44452813021d3dc6b484e3f07f2a1bf5370b475103f0bf86a91576620ac038342dccf1d3f21da220a457b926c61329dc1e718e7f4c15
|
||||
DIST ibus-libpinyin-1.9.1.tar.gz 1691476 SHA256 52371801da350fb98632b20b483a2556ae27b3faf05fdcacc4f7ead01c969718 SHA512 600ceb9cb2ef38b07588914f2071b458825ee32b5cf32e6064394500a6d4854c4beea830f5057bba313c17f805033ab06de79e7fbc0a733506279ab2fc7585f6 WHIRLPOOL 08d7fd63a24af88f521ee0985c6e3b13a197fdb6a3d6c73342e33fe73f1e7cd77810a234b77b4bd947ccf7a773db3c5375d248e58fcbc00f5409860276f05f66
|
||||
|
@ -0,0 +1,53 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
|
||||
PYTHON_REQ_USE="sqlite(+)"
|
||||
|
||||
inherit autotools gnome2-utils python-single-r1
|
||||
|
||||
DESCRIPTION="Intelligent Pinyin engine based on libpinyin for IBus"
|
||||
HOMEPAGE="https://github.com/libpinyin/ibus-libpinyin"
|
||||
SRC_URI="https://github.com/libpinyin/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="boost lua opencc"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
app-i18n/ibus[python(+),${PYTHON_USEDEP}]
|
||||
>=app-i18n/libpinyin-2.1.0:=
|
||||
dev-python/pygobject:3[${PYTHON_USEDEP}]
|
||||
boost? ( dev-libs/boost:= )
|
||||
lua? ( dev-lang/lua:0 )
|
||||
opencc? ( app-i18n/opencc:= )"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/libintl
|
||||
virtual/pkgconfig"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -i "s/python/${EPYTHON}/" setup/ibus-setup-libpinyin.in || die
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--enable-english-input-mode \
|
||||
$(use_enable boost) \
|
||||
$(use_enable lua lua-extension) \
|
||||
$(use_enable opencc)
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_icon_cache_update
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
inherit autotools
|
||||
|
||||
if [[ "${PV}" == "9999" ]]; then
|
||||
inherit git-r3
|
||||
|
||||
EGIT_REPO_URI="https://github.com/libpinyin/libpinyin"
|
||||
fi
|
||||
|
||||
LIBPINYIN_MODEL_VERSION="14"
|
||||
|
||||
DESCRIPTION="Library to deal with pinyin"
|
||||
HOMEPAGE="https://github.com/libpinyin/libpinyin https://sourceforge.net/projects/libpinyin/"
|
||||
if [[ "${PV}" == "9999" ]]; then
|
||||
SRC_URI=""
|
||||
else
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
fi
|
||||
SRC_URI+=" mirror://sourceforge/${PN}/models/model${LIBPINYIN_MODEL_VERSION}.text.tar.gz -> ${PN}-model${LIBPINYIN_MODEL_VERSION}.text.tar.gz"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0/13"
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-libs/glib:2
|
||||
sys-libs/db:="
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/libintl
|
||||
virtual/pkgconfig"
|
||||
|
||||
src_unpack() {
|
||||
if [[ "${PV}" == "9999" ]]; then
|
||||
git-r3_src_unpack
|
||||
else
|
||||
unpack ${P}.tar.gz
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
ln -s "${DISTDIR}/${PN}-model${LIBPINYIN_MODEL_VERSION}.text.tar.gz" "data/model${LIBPINYIN_MODEL_VERSION}.text.tar.gz" || die
|
||||
sed -e "/^\twget .*\/model${LIBPINYIN_MODEL_VERSION}\.text\.tar\.gz$/d" -i data/Makefile.am || die
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf --disable-static
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${D}" -name "*.la" -delete || die
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
inherit autotools
|
||||
|
||||
if [[ "${PV}" == "9999" ]]; then
|
||||
inherit git-r3
|
||||
|
||||
EGIT_REPO_URI="https://github.com/libpinyin/libpinyin"
|
||||
fi
|
||||
|
||||
LIBPINYIN_MODEL_VERSION="14"
|
||||
|
||||
DESCRIPTION="Library to deal with pinyin"
|
||||
HOMEPAGE="https://github.com/libpinyin/libpinyin https://sourceforge.net/projects/libpinyin/"
|
||||
if [[ "${PV}" == "9999" ]]; then
|
||||
SRC_URI=""
|
||||
else
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
fi
|
||||
SRC_URI+=" mirror://sourceforge/${PN}/models/model${LIBPINYIN_MODEL_VERSION}.text.tar.gz -> ${PN}-model${LIBPINYIN_MODEL_VERSION}.text.tar.gz"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0/13"
|
||||
KEYWORDS=""
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-libs/glib:2
|
||||
sys-libs/db:="
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/libintl
|
||||
virtual/pkgconfig"
|
||||
|
||||
src_unpack() {
|
||||
if [[ "${PV}" == "9999" ]]; then
|
||||
git-r3_src_unpack
|
||||
else
|
||||
unpack ${P}.tar.gz
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
ln -s "${DISTDIR}/${PN}-model${LIBPINYIN_MODEL_VERSION}.text.tar.gz" "data/model${LIBPINYIN_MODEL_VERSION}.text.tar.gz" || die
|
||||
sed -e "/^\twget .*\/model${LIBPINYIN_MODEL_VERSION}\.text\.tar\.gz$/d" -i data/Makefile.am || die
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf --disable-static
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
find "${D}" -name "*.la" -delete || die
|
||||
}
|
@ -0,0 +1,48 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="MirBSD KSH Shell"
|
||||
HOMEPAGE="http://mirbsd.de/mksh"
|
||||
SRC_URI="http://www.mirbsd.org/MirOS/dist/mir/mksh/${PN}-R${PV}.tgz"
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="static"
|
||||
DEPEND="static? ( dev-libs/klibc )"
|
||||
RDEPEND=""
|
||||
S="${WORKDIR}/${PN}"
|
||||
|
||||
src_compile() {
|
||||
tc-export CC
|
||||
# we want to build static with klibc
|
||||
if use static ; then
|
||||
unset CC
|
||||
export CC="/usr/bin/klcc"
|
||||
export LDSTATIC="-static"
|
||||
fi
|
||||
export CPPFLAGS="${CPPFLAGS} -DMKSH_DEFAULT_PROFILEDIR=\\\"${EPREFIX}/etc\\\""
|
||||
# we can't assume lto existing/enabled, so we add a fallback
|
||||
sh Build.sh -r -c lto || sh Build.sh -r || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
exeinto /bin
|
||||
doexe mksh
|
||||
doman mksh.1
|
||||
dodoc dot.mkshrc
|
||||
}
|
||||
|
||||
src_test() {
|
||||
./test.sh || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ebegin "Updating /etc/shells"
|
||||
( grep -v "^/bin/mksh$" "${ROOT}"etc/shells; echo "/bin/mksh" ) > "${T}"/shells
|
||||
mv -f "${T}"/shells "${ROOT}"etc/shells
|
||||
eend $?
|
||||
}
|
@ -1,2 +1,2 @@
|
||||
DIST mpv-bash-completion-3.3.12.tar.gz 19310 SHA256 9291ef730af6f69cc0efc82e88d170d43d79266a1500461b08719130507870ef SHA512 f019e9a66072333b40213437f07097cacb9f01a1f322fded763e695ef5ef4656016ca07fcb402d406fd99785026dba1fc7292a2c04a14ac18a24557bb8ab2cd1 WHIRLPOOL 96db10c112767d8c8e648a989f416cb02123018e8406842ee27bfc603f5f6ca9ee6360f6aa46a19e14a194f44d510eb971219b10bb598785720c3a6f23047f6c
|
||||
DIST mpv-bash-completion-3.3.13.tar.gz 19726 SHA256 65172975bfca59f9921afd9788c1e1532c734c068a6af21517eeec63b9a1ea34 SHA512 0f9301447c4f1d9443106e01c602a17f8d3ea62eacf63be807157c7b39a08d54c3cacb3a103fc8f77bc88dd71df433fe7bcb6c09bd3b9aeaa685c407c64cc3c7 WHIRLPOOL 3a1696dcf3cce68186e3fbee5f90982daaadf7fd238d022722b3e7d363a17551e066b953e08e40aac762d587d4cb839f3c704ac379572b62ad29ff5acba89779
|
||||
DIST mpv-bash-completion-3.3.15.tar.gz 19830 SHA256 1c3f4a6b95de7b573db3480dc79f7359207f7c95d31ac7368f6f5c84e9176ed8 SHA512 d4e263bb7c21f80b962bac9f1b01c594d5038d7a7095af0e7702dc5688fd69a9de1b5d8976f24d7a652a8fba4ceaf3ea2a81c771e7ea704807aeac0c526a09f6 WHIRLPOOL 740dc9f3e43031cba115b8c23bd7ac8d000f10f0a6e7a89144437c39b085d20dc09b47d540772afe7b2743cd444d71cda6231c795602fe9d262e8a699a4cdb77
|
||||
|
@ -0,0 +1 @@
|
||||
DIST coolreader-3.1.2.71.tar.bz2 10141514 SHA256 746345984be549284713a450686f0c8b04f1485f9a28bedc457940ea1b52f7d1 SHA512 2859eabfc8ba603d1cb09b07358887135b6968268a5f2fa7f874a1e8613d1b5ebe69d9b133f16e84321d1a460eae5088a7947433c6fb340a47bde9ceee415735 WHIRLPOOL b8a8bb58c811592577dc4e1b9b1ae0ed0a3dd92e277b1501962d2c7683c0969b49f71fa147c445f7985cf82bea6431a818915bdf2387f48831fab70defdf42c7
|
@ -0,0 +1,87 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit cmake-utils
|
||||
|
||||
if [ "${PV}" == 9999 ]
|
||||
then
|
||||
inherit git
|
||||
EGIT_REPO_URI="git://crengine.git.sourceforge.net/gitroot/crengine/crengine"
|
||||
SRC_URI=""
|
||||
else
|
||||
# git tag cr3.1.2-71
|
||||
SRC_URI="https://dev.gentoo.org/~grozin/${P}.tar.bz2"
|
||||
fi
|
||||
|
||||
DESCRIPTION="CoolReader - reader of eBook files (fb2,epub,htm,rtf,txt)"
|
||||
HOMEPAGE="https://sourceforge.net/projects/crengine/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="qt4 qt5 wxwidgets corefonts"
|
||||
REQUIRED_USE="^^ ( qt4 qt5 wxwidgets )
|
||||
wxwidgets? ( corefonts )"
|
||||
|
||||
DEPEND="sys-libs/zlib
|
||||
media-libs/libpng:0
|
||||
virtual/jpeg:0
|
||||
media-libs/freetype
|
||||
wxwidgets? (
|
||||
|| ( x11-libs/wxGTK:3.0 x11-libs/wxGTK:2.8 ) )
|
||||
qt4? ( dev-qt/qtcore:4
|
||||
dev-qt/qtgui:4 )
|
||||
qt5? ( dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtwidgets:5 )"
|
||||
RDEPEND="${DEPEND}
|
||||
corefonts? ( media-fonts/corefonts )"
|
||||
|
||||
src_prepare() {
|
||||
# setting patch to save cr3.ini to ~homedir
|
||||
epatch "${FILESDIR}/cr3ini.diff"
|
||||
# patch to build QT5 and WX GUI version of coolreader3
|
||||
# and setting correct vesrion number and years of cr3qt/cr3wx
|
||||
epatch "${FILESDIR}/cr3.1.2.71-r1_qt5_wx.diff"
|
||||
if [ $(eselect wxwidgets list | grep '*' | cut -d ' ' -f 6) == "gtk2-unicode-3.0" ]; then
|
||||
# patch if wxGTK3.0 (not wxGTK2.8) is active eselect profile
|
||||
epatch "${FILESDIR}/cr3.1.2.71_wxGTK3.diff"
|
||||
fi
|
||||
eapply_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
CMAKE_USE_DIR="${S}"
|
||||
CMAKE_BUILD_TYPE="Release"
|
||||
if use qt4; then
|
||||
local mycmakeargs=(-D GUI=QT)
|
||||
elif use qt5; then
|
||||
local mycmakeargs=(-D GUI=QT5)
|
||||
elif use wxwidgets; then
|
||||
. "${ROOT}/var/lib/wxwidgets/current"
|
||||
if [[ "${WXCONFIG}" -eq "none" ]]; then
|
||||
die "The wxGTK profile should be selected!"
|
||||
fi
|
||||
local mycmakeargs=(-D GUI=WX)
|
||||
fi
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-utils_src_install
|
||||
dosym ../fonts/corefonts /usr/share/crengine/fonts
|
||||
elog
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if use wxwidgets; then
|
||||
elog ""
|
||||
elog "KNOWN ISSUE TO FIX:"
|
||||
elog "With wxwidgets gui you can see a warning message \"iCCP: known incorrect sRGB profile\""
|
||||
elog "that appears if \"Toolbar size\" is setting to \"Medium buttons\" in Options."
|
||||
elog "To avoid appearing of this warning popup window you can change \"Toolbar size\" or set it to \"Hide Toolbar\"."
|
||||
elog ""
|
||||
fi
|
||||
}
|
@ -0,0 +1,94 @@
|
||||
# Patch that allows to build Coolreader3 with Qt5 or wxWindgets GUI.
|
||||
# Qt5 build related bug : https://sourceforge.net/p/crengine/bugs/370
|
||||
# => absence of "-std=c++11 -fPIC" options in ../cr3qt/CMakeLIsts.txt
|
||||
# and absence of Qt5 libraries in linking library list of ../cr3qt/CMakeLIsts.txt;
|
||||
# wxWidgets build related bug : https://sourceforge.net/p/crengine/bugs/371
|
||||
# => absence of "fonconfig" in linking library list of ../cr3wx/CMakeLIsts.txt
|
||||
# Add chages to years of cr3wx about dialog and merge with cr3qt about dialog patch.
|
||||
|
||||
diff -Naur old/CMakeLists.txt new/CMakeLists.txt
|
||||
--- old/CMakeLists.txt 2015-07-13 11:23:37.000000000 +0300
|
||||
+++ new/CMakeLists.txt 2017-08-28 00:34:39.000000000 +0300
|
||||
@@ -29,7 +29,7 @@
|
||||
endif()
|
||||
elseif(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
|
||||
# Update if necessary
|
||||
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-long-long -pedantic")
|
||||
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-long-long -pedantic -std=c++11 -fPIC")
|
||||
endif()
|
||||
|
||||
if (NOT DEFINED GUI)
|
||||
@@ -323,7 +323,7 @@
|
||||
message("Will make CR3/WX")
|
||||
ADD_DEFINITIONS( ${DESKTOP_DEFS} -DCR_WX_SUPPORT=1 )
|
||||
SET(wxWidgets_USE_LIBS base core )
|
||||
- FIND_PACKAGE(wxWidgets)
|
||||
+ FIND_PACKAGE(wxWidgets 2.8)
|
||||
IF (wxWidgets_FOUND)
|
||||
INCLUDE(${wxWidgets_USE_FILE})
|
||||
include_directories( ${wxWidgets_INCLUDE_DIRS} )
|
||||
diff -Naur old/cr3qt/CMakeLists.txt new/cr3qt/CMakeLists.txt
|
||||
--- old/cr3qt/CMakeLists.txt 2015-07-13 11:23:37.000000000 +0300
|
||||
+++ new/cr3qt/CMakeLists.txt 2017-08-26 03:25:55.000000000 +0300
|
||||
@@ -173,7 +173,11 @@
|
||||
SET (EXTRA_LIBS ${QT_LIBRARIES} ${STD_LIBS} )
|
||||
#${QT_LIBRARIES}
|
||||
ELSEIF (UNIX)
|
||||
- SET (EXTRA_LIBS ${QT_LIBRARIES} fontconfig ${STD_LIBS} )
|
||||
+ IF( ${GUI} STREQUAL QT )
|
||||
+ SET (EXTRA_LIBS ${QT_LIBRARIES} fontconfig ${STD_LIBS} )
|
||||
+ ELSE()
|
||||
+ SET (EXTRA_LIBS fontconfig ${STD_LIBS} ${Qt5Core_LIBRARIES} ${Qt5Widgets_LIBRARIES})
|
||||
+ ENDIF()
|
||||
ELSE()
|
||||
SET (EXTRA_LIBS ${STD_LIBS} ${QT_LIBRARIES} ${Qt5Core_LIBRARIES} ${Qt5Widgets_LIBRARIES} )
|
||||
ENDIF(MAC)
|
||||
diff -Naur old/cr3wx/CMakeLists.txt new/cr3wx/CMakeLists.txt
|
||||
--- old/cr3wx/CMakeLists.txt 2015-07-13 11:23:37.000000000 +0300
|
||||
+++ new/cr3wx/CMakeLists.txt 2017-08-26 01:22:53.000000000 +0300
|
||||
@@ -10,7 +10,7 @@
|
||||
)
|
||||
LINK_DIRECTORIES(${wxWidgets_LIBRARY_DIRS})
|
||||
ADD_EXECUTABLE(cr3 ${CR3_SOURCES})
|
||||
-SET (EXTRA_LIBS ${wxWidgets_LIBRARIES} ${STD_LIBS})
|
||||
+SET (EXTRA_LIBS ${wxWidgets_LIBRARIES} fontconfig ${STD_LIBS})
|
||||
TARGET_LINK_LIBRARIES(cr3 crengine tinydict ${EXTRA_LIBS})
|
||||
|
||||
IF (UNIX)
|
||||
@@ -22,6 +22,9 @@
|
||||
INSTALL( DIRECTORY ../cr3qt/data/hyph DESTINATION share/cr3
|
||||
FILES_MATCHING PATTERN "*.pattern" )
|
||||
INSTALL( DIRECTORY ../cr3qt/data/skins DESTINATION share/cr3/skins )
|
||||
+ INSTALL( FILES ../cr3qt/src/desktop/cr3.desktop DESTINATION share/applications )
|
||||
+ INSTALL( FILES ../cr3qt/src/desktop/cr3.png DESTINATION share/pixmaps )
|
||||
+ INSTALL( FILES ../cr3qt/src/desktop/cr3.xpm DESTINATION share/pixmaps )
|
||||
ELSE()
|
||||
INSTALL( TARGETS cr3 RUNTIME DESTINATION . )
|
||||
INSTALL( DIRECTORY ../cr3qt/data/ DESTINATION .
|
||||
|
||||
# Change the dates in About program dialogs:
|
||||
--- a/crengine/include/cr3version.h 2015-07-13 11:23:37.000000000 +0300
|
||||
+++ b/crengine/include/cr3version.h 2017-07-12 11:09:49.000000000 +0300
|
||||
@@ -1,2 +1,2 @@
|
||||
-#define CR_ENGINE_VERSION "3.1.2-52"
|
||||
-#define CR_ENGINE_BUILD_DATE "2014-11-19"
|
||||
+#define CR_ENGINE_VERSION "3.1.2-71"
|
||||
+#define CR_ENGINE_BUILD_DATE "2015-07-02"
|
||||
|
||||
--- a/cr3qt/src/aboutdlg.ui
|
||||
+++ b/cr3qt/src/aboutdlg.ui
|
||||
@@ -59 +59 @@
|
||||
- <string notr="true">(c) 1998-2010 Vadim Lopatin</string>
|
||||
+ <string notr="true">(c) 1998-2015 Vadim Lopatin</string>
|
||||
|
||||
--- old/cr3wx/src/cr3.cpp 2015-07-13 11:23:37.000000000 +0300
|
||||
+++ new/cr3wx/src/cr3.cpp 2017-08-28 02:29:32.000000000 +0300
|
||||
@@ -1479,7 +1479,7 @@
|
||||
void
|
||||
cr3Frame::OnAbout( wxCommandEvent& WXUNUSED( event ) )
|
||||
{
|
||||
- wxMessageBox( wxT( "Cool Reader " wxT(CR3_VERSION) wxT("\n(c) 1998-2007 Vadim Lopatin\nwxWidgets version\n") )
|
||||
+ wxMessageBox( wxT( "Cool Reader " wxT(CR3_VERSION) wxT("\n(c) 1998-2015 Vadim Lopatin\nwxWidgets version\n") )
|
||||
wxT("\nBased on CREngine library " wxT(CR_ENGINE_VERSION) )
|
||||
wxT("\nThird party libraries used:")
|
||||
wxT("\nzlib, libpng, libjpeg, freetype2,")
|
@ -0,0 +1,99 @@
|
||||
# Patch to build CoolReader3 with active wxGTK-3.0 profile
|
||||
# (eselect wxwidgets is set to "gtk2-unicode-3.0" instead of "gtk2-inicode-release-2.8")
|
||||
diff -Naur old/cr3wx/src/cr3.cpp new/cr3wx/src/cr3.cpp
|
||||
--- old/cr3wx/src/cr3.cpp 2015-07-13 11:23:37.000000000 +0300
|
||||
+++ new/cr3wx/src/cr3.cpp 2017-08-28 12:54:13.000000000 +0300
|
||||
@@ -395,7 +395,7 @@
|
||||
|
||||
lString16 GetConfigFileName()
|
||||
{
|
||||
- lString16 cfgdir( wxStandardPaths::Get().GetUserDataDir().c_str() );
|
||||
+ lString16 cfgdir( wxStandardPaths::Get().GetUserDataDir().wx_str() );
|
||||
if ( !wxDirExists( cfgdir.c_str() ) )
|
||||
::wxMkdir( wxString( cfgdir.c_str() ) );
|
||||
lChar16 slash = detectSlash( cfgdir );
|
||||
@@ -622,7 +622,7 @@
|
||||
wxImage::AddHandler(new wxPNGHandler);
|
||||
resources = new ResourceContainer();
|
||||
|
||||
- lString16 appname( argv[0] );
|
||||
+ lString16 appname( argv[0].wx_str() );
|
||||
int lastSlash=-1;
|
||||
lChar16 slashChar = '/';
|
||||
for ( int p=0; p<(int)appname.length(); p++ ) {
|
||||
@@ -777,7 +777,7 @@
|
||||
int argc = wxGetApp().argc;
|
||||
lString16 fnameToOpen;
|
||||
for ( int i=1; i<argc; i++ ) {
|
||||
- lString16 param = lString16( wxGetApp().argv[1] );
|
||||
+ lString16 param = lString16( wxGetApp().argv[1].wx_str() );
|
||||
if ( param[0]!='-' )
|
||||
fnameToOpen = param;
|
||||
}
|
||||
@@ -1193,7 +1193,7 @@
|
||||
lString16 outFile;
|
||||
bool convert = false;
|
||||
for ( int i=1; i<argc; i++ ) {
|
||||
- lString16 param = lString16( wxGetApp().argv[i] );
|
||||
+ lString16 param = lString16( wxGetApp().argv[i].wx_str() );
|
||||
if ( param[0]!='-' )
|
||||
fnameToOpen = param;
|
||||
else if (param.startsWith("--convert"))
|
||||
@@ -1470,7 +1470,7 @@
|
||||
wxCursor hg( wxCURSOR_WAIT );
|
||||
this->SetCursor( hg );
|
||||
wxSetCursor( hg );
|
||||
- _view->getDocView()->exportWolFile( dlg.GetPath(), opts.getMode()==0, opts.getLevels() );
|
||||
+ _view->getDocView()->exportWolFile( dlg.GetPath().wx_str(), opts.getMode()==0, opts.getLevels() );
|
||||
wxSetCursor( wxNullCursor );
|
||||
this->SetCursor( wxNullCursor );
|
||||
}
|
||||
diff -Naur old/cr3wx/src/optdlg.cpp new/cr3wx/src/optdlg.cpp
|
||||
--- old/cr3wx/src/optdlg.cpp 2015-07-13 11:23:37.000000000 +0300
|
||||
+++ new/cr3wx/src/optdlg.cpp 2017-08-28 11:38:06.000000000 +0300
|
||||
@@ -41,7 +41,7 @@
|
||||
if ( v==_choices[i] )
|
||||
tb = i;
|
||||
if ( _storeStringValues ) {
|
||||
- props->setString( _option, lString16(_choices[tb]) );
|
||||
+ props->setString( _option, lString16(_choices[tb].wx_str()) );
|
||||
} else {
|
||||
props->setInt( _option, tb );
|
||||
}
|
||||
@@ -50,7 +50,7 @@
|
||||
{
|
||||
unsigned tb = _defvalue;
|
||||
if ( _storeStringValues ) {
|
||||
- lString8 s8 = UnicodeToUtf8( lString16(_choices[_defvalue]) );
|
||||
+ lString8 s8 = UnicodeToUtf8( lString16(_choices[_defvalue].wx_str()) );
|
||||
lString16 s16 = props->getStringDef( _option, s8.c_str() );
|
||||
wxString v = s16.c_str();
|
||||
for ( unsigned i=0; i<_choices.GetCount(); i++ )
|
||||
diff -Naur old/cr3wx/src/view.cpp new/cr3wx/src/view.cpp
|
||||
--- old/cr3wx/src/view.cpp 2015-07-13 11:23:37.000000000 +0300
|
||||
+++ new/cr3wx/src/view.cpp 2017-08-28 12:57:55.000000000 +0300
|
||||
@@ -353,7 +353,7 @@
|
||||
|
||||
lString16 cr3view::GetHistoryFileName()
|
||||
{
|
||||
- lString16 cfgdir( wxStandardPaths::Get().GetUserDataDir().c_str() );
|
||||
+ lString16 cfgdir( wxStandardPaths::Get().GetUserDataDir().wx_str() );
|
||||
if ( !wxDirExists( cfgdir.c_str() ) )
|
||||
::wxMkdir( wxString( cfgdir.c_str() ) );
|
||||
lChar16 slash = detectSlash( cfgdir );
|
||||
@@ -667,13 +667,13 @@
|
||||
//===========================================
|
||||
GetParent()->Update();
|
||||
//printf(" loading... ");
|
||||
- bool res = getDocView()->LoadDocument( fname.c_str() );
|
||||
+ bool res = getDocView()->LoadDocument( fname.wx_str() );
|
||||
//printf(" done. \n");
|
||||
//DEBUG
|
||||
//_docview->exportWolFile( "test.wol", true );
|
||||
//_docview->SetPos(0);
|
||||
if ( !res )
|
||||
- getDocView()->createDefaultDocument(lString16("File open error"), lString16("Cannot open file ") + fname.c_str() );
|
||||
+ getDocView()->createDefaultDocument(lString16("File open error"), lString16("Cannot open file ") + fname.wx_str() );
|
||||
lString16 title = getDocView()->getAuthors();
|
||||
if ( !title.empty() && !getDocView()->getTitle().empty() )
|
||||
title << L". ";
|
@ -0,0 +1,35 @@
|
||||
# Patch to allow creating cr3.ini file in the home directory of user
|
||||
# instead to trying save it in /usr/share/cr3/cr3.ini
|
||||
# Bug: https://sourceforge.net/p/crengine/bugs/179/
|
||||
# Patch was proposed by "Olexandr" (see bug report)
|
||||
diff --git a/cr3qt/src/mainwindow.cpp b/cr3qt/src/mainwindow.cpp
|
||||
index 142242a..0401f71 100644
|
||||
--- a/cr3qt/src/mainwindow.cpp
|
||||
+++ b/cr3qt/src/mainwindow.cpp
|
||||
@@ -77,8 +77,8 @@ MainWindow::MainWindow(QWidget *parent)
|
||||
#endif
|
||||
QString cacheDir = homeDir + "cache";
|
||||
QString bookmarksDir = homeDir + "bookmarks";
|
||||
- QString histFile = exeDir + "cr3hist.bmk";
|
||||
- QString histFile2 = homeDir + "cr3hist.bmk";
|
||||
+ QString histFile2 = exeDir + "cr3hist.bmk";
|
||||
+ QString histFile = homeDir + "cr3hist.bmk";
|
||||
QString iniFile2 = exeDir + "cr3.ini";
|
||||
QString iniFile = homeDir + "cr3.ini";
|
||||
QString cssFile = homeDir + "fb2.css";
|
||||
@@ -92,9 +92,13 @@ MainWindow::MainWindow(QWidget *parent)
|
||||
ldomDocCache::init( qt2cr( cacheDir ), DOC_CACHE_SIZE );
|
||||
ui->view->setPropsChangeCallback( this );
|
||||
if ( !ui->view->loadSettings( iniFile ) )
|
||||
- ui->view->loadSettings( iniFile2 );
|
||||
+ if ( !ui->view->loadSettings( iniFile2 ) )
|
||||
+ ui->view->saveSettings( iniFile );
|
||||
+
|
||||
if ( !ui->view->loadHistory( histFile ) )
|
||||
- ui->view->loadHistory( histFile2 );
|
||||
+ if ( !ui->view->loadHistory( histFile2 ) )
|
||||
+ ui->view->saveHistory( histFile );
|
||||
+
|
||||
if ( !ui->view->loadCSS( cssFile ) )
|
||||
ui->view->loadCSS( cssFile2 );
|
||||
#if ENABLE_BOOKMARKS_DIR==1
|
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>grozin@gentoo.org</email>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
A fast and small cross-platform XML/CSS based eBook reader for desktops and handheld devices.
|
||||
Supported formats: FB2, TXT, RTF, DOC, TCR, HTML, EPUB, CHM, PDB, MOBI.
|
||||
</longdescription>
|
||||
<use>
|
||||
<flag name="corefonts">Use <pkg>media-fonts/corefonts</pkg></flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="sourceforge">crengine</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1,3 +1 @@
|
||||
DIST restview-2.4.0.tar.gz 27644 SHA256 52eed1a9ce2bc31d6b4269c8c4ba8c5c1cf7c989b465e9a62bfa6357fc0da965 SHA512 e386b7debb07426733e109d9a77be03443c1621ce727ef982dad572a795dce512b0b89051712009aecefd91e258c304ef936bf2e8dbd15bdb35bdca03913ac07 WHIRLPOOL 51e8f01035096feb31dbc403184276d9427320f26c540779cf635381a6a9a29a4296de8b0745c85fd426752e857bab6ea024eaa6ad6e20faad1d13daa6ee0b74
|
||||
DIST restview-2.5.2.tar.gz 28230 SHA256 a5ad94898b9de765b9840ea46e9e99909c21c2f851d513e253d4f808a9adad3e SHA512 40d9a7b871f8c501221ee9b37f22c5cdeed3cdba20388ffd0a4a0d452ca1a08855b8dada0cd9a27b99a4ff2a4e45e12734b7747a3169a5c739a7ad7717c47104 WHIRLPOOL 9994352de19b9cca590c4b9ce629fbede5767ea0916632663edf738632fb82ab1cc3f9fe438c60b6628c65ae2cba4b4328c8a701af342b06b1657bba4acbe9fb
|
||||
DIST restview-2.7.0.tar.gz 29448 SHA256 e7842100f3de179c68cfe7c2cf56c61509cd6068bc6dd58ab42c0ade5d5f97ec SHA512 fccfed505832b85bd4fad964f78b0de371ea0a42ac5cc700a8604e413743a236b70f0160edc115d1e9cdef03f2aa7fc461893f40e01203a048756887f655f65c WHIRLPOOL b72e5c4b179198e51facc0b8ce9b3aa713617100adcaacb7359e58c6d964300c4e2cb60bd73ab059ed4d1e20e55df098df0b5769887315d70fc85c3d520305e1
|
||||
|
@ -1,32 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_7,3_4} pypy )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="reStructuredText viewer"
|
||||
HOMEPAGE="https://mg.pov.lt/restview/ https://pypi.python.org/pypi/restview"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
dev-python/docutils[${PYTHON_USEDEP}]
|
||||
dev-python/pygments[${PYTHON_USEDEP}]
|
||||
dev-python/readme[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( dev-python/mock[${PYTHON_USEDEP}] )
|
||||
"
|
||||
|
||||
DOCS=( README.rst CHANGES.rst )
|
||||
|
||||
python_test() {
|
||||
esetup.py test
|
||||
}
|
@ -1,32 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
PYTHON_COMPAT=( python{2_7,3_4,3_5} pypy )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="reStructuredText viewer"
|
||||
HOMEPAGE="https://mg.pov.lt/restview/ https://pypi.python.org/pypi/restview"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
dev-python/docutils[${PYTHON_USEDEP}]
|
||||
dev-python/pygments[${PYTHON_USEDEP}]
|
||||
dev-python/readme[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( dev-python/mock[${PYTHON_USEDEP}] )
|
||||
"
|
||||
|
||||
DOCS=( README.rst CHANGES.rst )
|
||||
|
||||
python_test() {
|
||||
esetup.py test
|
||||
}
|
@ -1,3 +1,3 @@
|
||||
DIST Catch-1.10.0.tar.gz 375205 SHA256 cb752cbc8033d7c967d6bd7bc3eed428f6d05f2511945db819d4a18a46853ada SHA512 07ea6c8fbef849000c69009478fc895fe520420d835a57881b832f8181ca28f04030027ab0f8614d590cff1c36d06598bd4f5723f44e252c3a2566da1be1341e WHIRLPOOL 74bc82eecbafa289c3abec540ebc47b0239eaf6224eaf6d408a88871e03338994d361194f6d92b15096f3c2a0672a24af424db5f490923be3638d1ed0f17a355
|
||||
DIST Catch-1.9.7.tar.gz 371816 SHA256 751090d755072777c5bb98de6ead1f7919ea239d4b77bb028fb7b06624ec0d7a SHA512 573d324b3e0ffe1026bdd10410a9299eff6d3e0a316b2b84c687dc993fb33570620e26107667ce8b59ab66844cfbc39526ed6ba4e9dd1ba529c6b21ebd274b63 WHIRLPOOL 1d3bcf6b2a3d8af6fba7ded0e92d7381857360a4bbf2dd689474408c52612f874da35579ad0adaf13679e1d8aaddee101274cd29070a5a51d58e7d52b76473f2
|
||||
DIST Catch-2.0.0-develop.2.tar.gz 376246 SHA256 b7f4210353be2c78d65801d0cc3885110aeae3824f6b67d59dff71deccad1694 SHA512 89fd36d310ac6322d7d8683360482a564e5c90bf0880b8cc9a6e379044dfc1bcea99669d8dada67293d8b70d274c6129018bc97598eb72b48fd85d4ebe0b21ef WHIRLPOOL 94a2f270b2a884e17a6d35936409911d544b7447c98f217b4b14e58387d8c8ac045dde5569bbf3560547b195a91f93101d3e293ebc1b981ddc447264d9742906
|
||||
DIST Catch-2.0.0-develop.3.tar.gz 381015 SHA256 c482fd4f0730cb82a05b1fc3eeee1beb599c5ae43c33719f5875cb23fa745b8f SHA512 52e6234379a435e7ddf3ee82a0689120a498f6be3c19dce9bf0a32059caa0a259fbc28c0e4f2e53841636874140970ec8cf7f15818ddfa9a1a5a80bc2922d0f0 WHIRLPOOL 537801b6c8f50a96f4f6a1594d6660a48e01e54ea83646a90e4d5c559f1f6ee6f582023f8d88bd69ad983035e3bacb0257ccaf1167eaa70b2e9302d031c07ded
|
||||
|
@ -1 +1,2 @@
|
||||
DIST gtest-1.7.0.zip 1164254 SHA256 247ca18dd83f53deb1328be17e4b1be31514cedfc1e3424f672bf11fd7e0d60d SHA512 8859369f2dd32cbc2ac01aba029aa3ff20a321f40658b9643aff442d34c33468221866b801b28c66a28af47dbcd362d26941fc98db92b6efb7e41ea5b7be1a07 WHIRLPOOL 0c31a385159551859c1afe76480b3fb1b560d666db9a0afc5cbda92bcd53bf129f85a8f902c6ded0779c2b4c49aacec59ba5a4d5ce316a07bf08174f4fc64049
|
||||
DIST gtest-1.7.0.tar.gz 1001582 SHA256 c0f860eee47c86e0aeb462fd0bdfd70e3975297e0b8b178e0e03a95e1f6c9bc4 SHA512 a9f5c047b39efb2d11b55ee9913662ca402ac6837b3ad2d278ecfbd1caf32ed4546f169e3e92503d57bf3b62ccf89cd062da1c7ea3638aae98e868d2766363c3 WHIRLPOOL 36edbdf8be7c3793a89918a3c43d74e75a6281a37c394f7d2f20506130a76aab04a3beddba01bf7f0e9b6901c7e834ca014c31c913c0ea846d3f6be9c93599d2
|
||||
DIST gtest-1.8.0.tar.gz 1281617 SHA256 58a6f4277ca2bc8565222b3bbd58a177609e9c488e8a72649359ba51450db7d8 SHA512 1dbece324473e53a83a60601b02c92c089f5d314761351974e097b2cf4d24af4296f9eb8653b6b03b1e363d9c5f793897acae1f0c7ac40149216035c4d395d9d WHIRLPOOL 7d95c06818332f9596dbda03d21416012c00e05c78be0814279ab9e7059b9d836060bab83ad46d013ccf1ba40973680c0793d78ac22f6016773fd93aa97b779b
|
||||
|
@ -0,0 +1,40 @@
|
||||
--- a/googlemock/CMakeLists.txt
|
||||
+++ b/googlemock/CMakeLists.txt
|
||||
@@ -11,6 +11,8 @@
|
||||
|
||||
option(gmock_build_tests "Build all of Google Mock's own tests." OFF)
|
||||
|
||||
+set(LIB_INSTALL_DIR lib CACHE STRING "Library install directory")
|
||||
+
|
||||
# A directory to find Google Test sources.
|
||||
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/gtest/CMakeLists.txt")
|
||||
set(gtest_dir gtest)
|
||||
@@ -104,7 +106,7 @@
|
||||
#
|
||||
# Install rules
|
||||
install(TARGETS gmock gmock_main
|
||||
- DESTINATION lib)
|
||||
+ DESTINATION ${LIB_INSTALL_DIR})
|
||||
install(DIRECTORY ${gmock_SOURCE_DIR}/include/gmock
|
||||
DESTINATION include)
|
||||
|
||||
--- a/googletest/CMakeLists.txt
|
||||
+++ b/googletest/CMakeLists.txt
|
||||
@@ -27,6 +27,8 @@
|
||||
"Build gtest with internal symbols hidden in shared libraries."
|
||||
OFF)
|
||||
|
||||
+set(LIB_INSTALL_DIR lib CACHE STRING "Library install directory")
|
||||
+
|
||||
# Defines pre_project_set_up_hermetic_build() and set_up_hermetic_build().
|
||||
include(cmake/hermetic_build.cmake OPTIONAL)
|
||||
|
||||
@@ -103,7 +105,7 @@
|
||||
#
|
||||
# Install rules
|
||||
install(TARGETS gtest gtest_main
|
||||
- DESTINATION lib)
|
||||
+ DESTINATION ${LIB_INSTALL_DIR})
|
||||
install(DIRECTORY ${gtest_SOURCE_DIR}/include/gtest
|
||||
DESTINATION include)
|
||||
|
@ -0,0 +1,59 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
# Python is required for tests and some build tasks.
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy )
|
||||
|
||||
inherit python-any-r1 cmake-multilib
|
||||
|
||||
DESCRIPTION="Google C++ Testing Framework"
|
||||
HOMEPAGE="https://github.com/google/googletest"
|
||||
SRC_URI="https://github.com/google/googletest/archive/release-${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
|
||||
IUSE="examples test"
|
||||
|
||||
DEPEND="test? ( ${PYTHON_DEPS} )"
|
||||
RDEPEND="!dev-cpp/gmock"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-9999-fix-py-tests.patch
|
||||
"${FILESDIR}"/${PN}-9999-fix-gcc6-undefined-behavior.patch
|
||||
"${FILESDIR}"/${PN}-1.8.0-multilib-strict.patch
|
||||
)
|
||||
|
||||
S="${WORKDIR}"/googletest-release-${PV}
|
||||
|
||||
pkg_setup() {
|
||||
use test && python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DBUILD_GMOCK=ON
|
||||
-DBUILD_GTEST=ON
|
||||
-DLIB_INSTALL_DIR=$(get_libdir)
|
||||
-Dgtest_build_samples=OFF
|
||||
-Dgtest_disable_pthreads=OFF
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
|
||||
# tests
|
||||
-Dgmock_build_tests=$(usex test)
|
||||
-Dgtest_build_tests=$(usex test)
|
||||
-DPYTHON_EXECUTABLE="${PYTHON}"
|
||||
)
|
||||
cmake-utils_src_configure mycmakeargs
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
|
||||
if use examples; then
|
||||
docinto examples
|
||||
dodoc googletest/samples/*.{cc,h}
|
||||
fi
|
||||
}
|
@ -0,0 +1,261 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
|
||||
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="https://sqlite.org/"
|
||||
SRC_URI="doc? ( https://sqlite.org/2017/${PN}-doc-${DOC_PV}.zip )
|
||||
tcl? ( https://sqlite.org/2017/${PN}-src-${SRC_PV}.zip )
|
||||
test? ( https://sqlite.org/2017/${PN}-src-${SRC_PV}.zip )
|
||||
tools? ( https://sqlite.org/2017/${PN}-src-${SRC_PV}.zip )
|
||||
!tcl? ( !test? ( !tools? ( https://sqlite.org/2017/${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 ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~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}] )"
|
||||
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
|
||||
eapply -p0 "${FILESDIR}/${PN}-3.20.0-full_tarball-build.patch"
|
||||
|
||||
eapply_user
|
||||
|
||||
# Fix AC_CHECK_FUNCS.
|
||||
# https://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-dev/2016-March/002762.html
|
||||
sed -e "s/AC_CHECK_FUNCS(.*)/AC_CHECK_FUNCS([fdatasync fullfsync gmtime_r isnan localtime_r localtime_s malloc_usable_size posix_fallocate pread pread64 pwrite pwrite64 strchrnul usleep utime])/" -i configure.ac || die "sed failed"
|
||||
else
|
||||
eapply -p0 "${FILESDIR}/${PN}-3.16.0-nonfull_tarball-build.patch"
|
||||
|
||||
eapply_user
|
||||
|
||||
# Fix AC_CHECK_FUNCS.
|
||||
# https://mailinglists.sqlite.org/cgi-bin/mailman/private/sqlite-dev/2016-March/002762.html
|
||||
sed \
|
||||
-e "s/AC_CHECK_FUNCS(\[fdatasync.*/AC_CHECK_FUNCS([fdatasync fullfsync gmtime_r isnan localtime_r localtime_s malloc_usable_size posix_fallocate pread pread64 pwrite pwrite64 strchrnul usleep utime])/" \
|
||||
-e "/AC_CHECK_FUNCS(posix_fallocate)/d" \
|
||||
-i configure.ac || die "sed failed"
|
||||
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.
|
||||
# https://sqlite.org/compile.html#enable_api_armor
|
||||
append-cppflags -DSQLITE_ENABLE_API_ARMOR
|
||||
|
||||
# Support column metadata functions.
|
||||
# https://sqlite.org/c3ref/column_database_name.html
|
||||
append-cppflags -DSQLITE_ENABLE_COLUMN_METADATA
|
||||
|
||||
# Support dbstat virtual table.
|
||||
# https://sqlite.org/dbstat.html
|
||||
append-cppflags -DSQLITE_ENABLE_DBSTAT_VTAB
|
||||
|
||||
# Support comments in output of EXPLAIN.
|
||||
# https://sqlite.org/compile.html#enable_explain_comments
|
||||
append-cppflags -DSQLITE_ENABLE_EXPLAIN_COMMENTS
|
||||
|
||||
# Support Full-Text Search versions 3, 4 and 5.
|
||||
# https://sqlite.org/fts3.html
|
||||
# https://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.
|
||||
# https://sqlite.org/json1.html
|
||||
append-cppflags -DSQLITE_ENABLE_JSON1
|
||||
|
||||
# Support memsys5 memory allocator.
|
||||
# https://sqlite.org/malloc.html#memsys5
|
||||
append-cppflags -DSQLITE_ENABLE_MEMSYS5
|
||||
|
||||
# Support Resumable Bulk Update extension.
|
||||
# https://sqlite.org/rbu.html
|
||||
append-cppflags -DSQLITE_ENABLE_RBU
|
||||
|
||||
# Support R*Trees.
|
||||
# https://sqlite.org/rtree.html
|
||||
append-cppflags -DSQLITE_ENABLE_RTREE
|
||||
|
||||
# Support scan status functions.
|
||||
# https://sqlite.org/c3ref/stmt_scanstatus.html
|
||||
# https://sqlite.org/c3ref/stmt_scanstatus_reset.html
|
||||
append-cppflags -DSQLITE_ENABLE_STMT_SCANSTATUS
|
||||
|
||||
# Support Session extension.
|
||||
# https://sqlite.org/sessionintro.html
|
||||
options+=(--enable-session)
|
||||
|
||||
# Support unknown() function.
|
||||
# https://sqlite.org/compile.html#enable_unknown_sql_function
|
||||
append-cppflags -DSQLITE_ENABLE_UNKNOWN_SQL_FUNCTION
|
||||
|
||||
# Support unlock notification.
|
||||
# https://sqlite.org/unlock_notify.html
|
||||
append-cppflags -DSQLITE_ENABLE_UNLOCK_NOTIFY
|
||||
|
||||
# Support soundex() function.
|
||||
# https://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.
|
||||
# https://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.
|
||||
# https://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
|
||||
|
||||
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 changeset dbdump dbhash rbu scrub 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 changeset sqlite3-changeset
|
||||
install_tool dbdump sqlite3-db-dump
|
||||
install_tool dbhash sqlite3-db-hash
|
||||
install_tool rbu sqlite3-rbu
|
||||
install_tool scrub sqlite3-scrub
|
||||
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
|
||||
rm "${WORKDIR}/${PN}-doc-${DOC_PV}/"*.{db,txt}
|
||||
(
|
||||
docinto html
|
||||
dodoc -r "${WORKDIR}/${PN}-doc-${DOC_PV}/"*
|
||||
)
|
||||
fi
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue