parent
05b0c2df08
commit
37bcbc1606
Binary file not shown.
Binary file not shown.
@ -1,7 +1,4 @@
|
||||
DIST filebeat-5.5.2.tar.gz 18075191 BLAKE2B 9786cb8f3db003c86e4bc6d56fcac660b615e7e6ad82d0912f70c545f2af3caab605be739481355466438a1769c20b28db576d208af6b0af9620ce6408068215 SHA512 ad92b41a9ceaad6c6e6fc80d0adccd7fe03a7056d121484bcf35c6a46b2061a5ef6d32121dd12d59b51e7678769da5c405b1d549fa130631ae3f1989b78fba48
|
||||
DIST filebeat-5.6.10.tar.gz 18211551 BLAKE2B 5ed3a3d63fc758757cdb30e999a10bee15c8a66d7b4b603f755ebdfad712f4b48c2a1b79612dcfe3ce89d29458e672276b26f188ea3509ce4c349e2bff8b7508 SHA512 cca193e0c03ca5451c6158ab8f0669bf24aa0d34d46f2a4808d27f4ce1ff701dca6ea2db7a72275a635ea4e091571aa73e0b51228750b140a5340d27cba0e982
|
||||
DIST filebeat-5.6.13.tar.gz 18212575 BLAKE2B a0b8810523cecd1c6c87a69832c92b39fdc4cbe199eeae3c837f60b5057915e4d1ffb0fd371b3296cea398a11135b9d8da147451997514c85447722d086b8739 SHA512 fd572666858f1aeeede9e1b2074668d0bd691f58d51acd7955a3203b27d3ee850784a39e47941a570a833926a4109645eb98c24b49263276d1df475578c17efa
|
||||
DIST filebeat-6.1.1.tar.gz 17061456 BLAKE2B 5a5d23618f8140f3815c499305d99ae3dc4c4caa49535043040387922f924ee49a9494b5139f34a70d74173d97332b92909fc74e2f91a2fc0f288ef5d1493ade SHA512 54e85cfce58ba724f6b2892f115ac9ef5b1bb89ce8dc6f2a977e50ccfc07cf95fc578e46e0cadd96acd90c59f4b01446851b93c519afa094ff6dcdb7e716219a
|
||||
DIST filebeat-6.2.4.tar.gz 19466271 BLAKE2B 417f1db19b7fdd9bcf66f2c3dcdf2aaa6be9ba5edff1c97a0b8f4a5d7953ef27bcbd860e097fb40e67b3b42b795b684dabb2995eee572243831f749a7184b625 SHA512 49293e28e4ca769a88f7b889ea888a559ae7e142698714e24bf5519d00c2030237cac591590aa284f17792906a6137333173716ddf5db4496217f8b5a054b19c
|
||||
DIST filebeat-6.3.1.tar.gz 20915568 BLAKE2B 048898bc4520c0dc2a0aa5257149ecb75abc0b52d9a8cae63fdfe9fc8c329b3fa30d7277ae0cb916a86477d60e82b63839956cfa7a1985961c5ee5f6622b9f83 SHA512 1c03cc8fd3b968ade678cf2290fd7bd8fed2f9daa64cd550455567296ff51517b502b54e1b2413820c25cf899b7759662c9c18278c78a2568c74a26841f5f525
|
||||
DIST filebeat-6.3.2.tar.gz 20923316 BLAKE2B 70ac7e574f94a6141a7c6a1bd0af45ddbda3d01d6ea006c90ea341d2df03cac320d53496833cace3b394b9433251ea68a248dafdc8e28a85a6014314d5a2f3c4 SHA512 3d6ed03c9286bc7784444ad979b1398fcd70d870be184f912202ee5fab7c0ff23df639f445ec14cfcfd4d41ef648f33e88c2959f3c5f966fd3986884a223623a
|
||||
DIST filebeat-6.4.0.tar.gz 21996282 BLAKE2B 892a7ff307af3370d8df3661490359b4984bb6eedaf688a9fb845531b3de4e7785081602c4071b244c4ed26021d7455e35745a1011f8830b69a9440affe46997 SHA512 c059428b6d4d85e061b9078955f56323e7f02c74495702dca318f8c53c3fb7c4244a86a388ab79c5288601fbd08963acf7959834b1f9cdeddfbb10011e9d8184
|
||||
DIST filebeat-6.4.3.tar.gz 22085261 BLAKE2B 466580ba371d02bd0b51bd80f0e8d9766f2af1d371f88cd01144a648cd8d5488ca54447e925e9014790a836009d76be9eec9ef9b14a102287d3f4a71b852d20d SHA512 c28d9939c2082b586ddf744b4e18427096290987efd74f7ea03d2632a1cdcbc5dd2b043ee7ceeb0457098faeb52abbac57652077c518112fb65858954ee27f34
|
||||
|
@ -1,69 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
DESCRIPTION="Lightweight log shipper for Logstash and Elasticsearch"
|
||||
HOMEPAGE="https://www.elastic.co/products/beats"
|
||||
SRC_URI="https://github.com/elastic/beats/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~x86"
|
||||
|
||||
DEPEND=">=dev-lang/go-1.8.3"
|
||||
RDEPEND="!app-admin/filebeat-bin"
|
||||
|
||||
ELASTIC="${WORKDIR}/src/github.com/elastic"
|
||||
BEATS="${ELASTIC}/beats"
|
||||
S="${BEATS}"
|
||||
|
||||
src_unpack() {
|
||||
mkdir -p "${ELASTIC}" || die
|
||||
unpack ${P}.tar.gz
|
||||
mv beats-${PV} "${BEATS}" || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
cd ${BEATS}/filebeat || die
|
||||
GOPATH="${WORKDIR}" emake
|
||||
}
|
||||
|
||||
src_test() {
|
||||
cd ${BEATS}/filebeat || die
|
||||
GOPATH="${WORKDIR}" emake check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
keepdir /var/{lib,log}/${PN}
|
||||
|
||||
fperms 0750 /var/{lib,log}/${PN}
|
||||
|
||||
newconfd "${FILESDIR}/${PN}.confd" ${PN}
|
||||
newinitd "${FILESDIR}/${PN}.initd" ${PN}
|
||||
|
||||
insinto "/usr/share/doc/${PF}/examples"
|
||||
doins ${PN}/{filebeat.yml,filebeat.full.yml}
|
||||
|
||||
insinto "/etc/${PN}"
|
||||
doins ${PN}/{filebeat.template.json,filebeat.template-es2x.json,filebeat.template-es6x.json}
|
||||
|
||||
exeinto "/usr/share/${PN}"
|
||||
doexe libbeat/scripts/migrate_beat_config_1_x_to_5_0.py
|
||||
|
||||
dobin filebeat/filebeat
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -n "${REPLACING_VERSIONS}" ]]; then
|
||||
elog "Please read the migration guide at:"
|
||||
elog "https://www.elastic.co/guide/en/beats/libbeat/5.0/upgrading.html"
|
||||
elog ""
|
||||
elog "The migration script:"
|
||||
elog "${EROOT%/}/usr/share/filebeat/migrate_beat_config_1_x_to_5_0.py"
|
||||
elog ""
|
||||
fi
|
||||
|
||||
elog "Example configurations:"
|
||||
elog "${EROOT%/}/usr/share/doc/${PF}/examples"
|
||||
}
|
@ -1,55 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit eapi7-ver
|
||||
|
||||
DESCRIPTION="Lightweight log shipper for Logstash and Elasticsearch"
|
||||
HOMEPAGE="https://www.elastic.co/products/beats"
|
||||
SRC_URI="https://github.com/elastic/beats/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
RESTRICT="test"
|
||||
|
||||
DEPEND=">=dev-lang/go-1.9.2"
|
||||
RDEPEND="!app-admin/filebeat-bin"
|
||||
|
||||
S="${WORKDIR}/src/github.com/elastic/beats"
|
||||
|
||||
src_unpack() {
|
||||
mkdir -p "${S%/*}" || die
|
||||
default
|
||||
mv beats-${PV} "${S}" || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
GOPATH="${WORKDIR}" emake -C "${S}/filebeat"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
keepdir /var/{lib,log}/${PN}
|
||||
|
||||
fperms 0750 /var/{lib,log}/${PN}
|
||||
|
||||
newconfd "${FILESDIR}/${PN}.confd" ${PN}
|
||||
newinitd "${FILESDIR}/${PN}.initd.1" ${PN}
|
||||
|
||||
docinto examples
|
||||
dodoc ${PN}/{filebeat.yml,filebeat.reference.yml}
|
||||
|
||||
dobin filebeat/filebeat
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -n "${REPLACING_VERSIONS}" ]]; then
|
||||
elog "Please read the migration guide at:"
|
||||
elog "https://www.elastic.co/guide/en/beats/libbeat/$(ver_cut 1-2)/upgrading.html"
|
||||
elog ""
|
||||
fi
|
||||
|
||||
elog "Example configurations:"
|
||||
elog "${EROOT%/}/usr/share/doc/${PF}/examples"
|
||||
}
|
@ -1,60 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit eapi7-ver
|
||||
|
||||
DESCRIPTION="Lightweight log shipper for Logstash and Elasticsearch"
|
||||
HOMEPAGE="https://www.elastic.co/products/beats"
|
||||
SRC_URI="https://github.com/elastic/beats/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
RESTRICT="test"
|
||||
|
||||
DEPEND=">=dev-lang/go-1.10.3"
|
||||
RDEPEND="!app-admin/filebeat-bin"
|
||||
|
||||
S="${WORKDIR}/src/github.com/elastic/beats"
|
||||
|
||||
src_unpack() {
|
||||
mkdir -p "${S%/*}" || die
|
||||
default
|
||||
mv beats-${PV} "${S}" || die
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -i "s/\(COMMIT_ID=\).*/\1${PV}/g" "${S}/libbeat/scripts/Makefile" || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
GOPATH="${WORKDIR}" emake -C "${S}/filebeat"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
keepdir /var/{lib,log}/${PN}
|
||||
|
||||
fperms 0750 /var/{lib,log}/${PN}
|
||||
|
||||
newconfd "${FILESDIR}/${PN}.confd" ${PN}
|
||||
newinitd "${FILESDIR}/${PN}.initd.1" ${PN}
|
||||
|
||||
docinto examples
|
||||
dodoc ${PN}/{filebeat.yml,filebeat.reference.yml}
|
||||
|
||||
dobin filebeat/filebeat
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -n "${REPLACING_VERSIONS}" ]]; then
|
||||
elog "Please read the migration guide at:"
|
||||
elog "https://www.elastic.co/guide/en/beats/libbeat/$(ver_cut 1-2)/upgrading.html"
|
||||
elog ""
|
||||
fi
|
||||
|
||||
elog "Example configurations:"
|
||||
elog "${EROOT%/}/usr/share/doc/${PF}/examples"
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
@ -1,5 +1,5 @@
|
||||
DIST logstash-5.6.12.tar.gz 104371301 BLAKE2B be7a2c7df807ae9ab738c1ec7693e23bd4491e14cc866e50b2a4d6b58466ce94801ccc6684c7d297a2d89faba67ba10d61b50b57c439a8b3ba3fa3a0752b4529 SHA512 39411a92eac34160a9b38914c08165ba789c5d16f76b1823dd08305581b18a668fb680b60c6be50fd59b2bb79bf7f507b39b42cc71ac0f5b9c5be597048f32a5
|
||||
DIST logstash-5.6.13.tar.gz 104517136 BLAKE2B c4f0ba5f8e1624ef0493e553166a3c18aab9c4d73a661a5f91988627ec8470dc8a1b52461673e27169c8c10b33dfdeffeef96e70e1a8a04b7ee4a1e71a9afb68 SHA512 df12877b8d28ce9392f9d9ec9414205dd1f628a8e927c8b31f0ad3c3c7b11108509fe6b44119faa3f1bab393ea7be74a3a7c5b5b6b49d6ff5b54ce31fd024a04
|
||||
DIST logstash-6.3.2.tar.gz 144211416 BLAKE2B 8471fd0a920b4ef06cd775ceaafde33e16e5d1898c89339f4a039262a7a6472d6cb8dd2017db8811d6a827395a5b1e7040d9759c8734de2ccd1fc7e615345813 SHA512 11507b9177aa6cd4172eb825e395571de71bae8b0e39d7f700fe27c7219b22bc2b9a493e39016eead2d54407dc5e5cc20a0c6e4453140d628cadea076453308f
|
||||
DIST logstash-6.4.1.tar.gz 153922055 BLAKE2B 5a9c2852047e7a6a318eaa710d273cbfa172ae02c08a08b361a6f2bc48c5e46b3d7709652a51e3b0102fbf7c73ad179c18b6ed6a961bece53d009de065f13e5c SHA512 b496ed0746ee38a375a3efc5eb93677accb61c3482550a75cf9ad5e7b8e104eb8560bce79325ce85a27d22b664299edf1970452837189fcfa9310798c58825c1
|
||||
DIST logstash-6.4.3.tar.gz 153936585 BLAKE2B efdcc4664587a3ab18e2e78136c92bc643e99989fa5ac1cd1daaeb48ca1f6fa57f122a5686ddcaab59d920a0ef0e59dc70f59c05a520b731347f37d8faa78c38 SHA512 39bab1b9b0c9f0006c2ad7aa152b3863179030352202ec0c4c4a887bdeb98d4c34127699655cfc7c5b9f44119b45de9629bfacc670d520dcf266b3298fdf2484
|
||||
DIST logstash-oss-6.3.2.tar.gz 144128583 BLAKE2B 99de9d375a06d132844ce63fa5d0e092bb05aedb93ff5e4a278ea75ca2fe68701afa3028af4f9c3e5b3b469e46faf4d6dc62d006e9dac3a9e9528ff94aa2dd47 SHA512 7fa97f0ca070677aaddc73ff900397ce4a45f4b02467917219acb3c414cf0cbf396b481f624d2ebc3f370b2e41120b3b103f6d080a9fafdce98b119eb8d27f5d
|
||||
DIST logstash-oss-6.4.1.tar.gz 153795059 BLAKE2B 1262fac2128bbbf1d172473ea8522ed2469a449d93eef4f3aefa6026e4347e2247ed03990164d72a9b8a01fa1c1b393207b7c5d73d82d20934ada78cefb5af64 SHA512 1192154eaa48cccbdefa4db7f08dce3a68066d5fd7a14cc3093d06c848efc5c4f1a87c873c43c4e17741be9e41c3de1f14ff41df7af2c3c4600a741fefc94b47
|
||||
DIST logstash-oss-6.4.3.tar.gz 153809786 BLAKE2B 774e67b7f3b89747299fda520456164186e843dedbea4b6727fa325dc8148ea1b25fcb2105e76b84330729a55390e597fac93cf2e2f258e83f2b6cc1c1091372 SHA512 c84e4fcdbf8e96e5d3005186bdf45f20939bb065f02370128b4e15273c4c0fe5609bab606fc7a6a2b71fcee90beb3f435ff42c9126efaed436bf5af1d784c56a
|
||||
|
@ -1,4 +1,4 @@
|
||||
DIST mongo-tools-3.4.10.tar.gz 4719399 BLAKE2B 8165248bf58f2ea2b02e365a3609c72b72e98dd5902f176e251fa2add1ad26e90900e06c35dc6db4dbe161e541bedfc1776f5e15bbb41dcc9a7be17800424362 SHA512 b861bb3fb1a32c3aa2efefcf6a13bb6d4783ac1a9b006c477fd04deb338cbf6b7adc3944bc6919513b92bd96b8500813ff4af49c9dec0719ebd2fdaa99bc39a5
|
||||
DIST mongo-tools-3.4.16.tar.gz 4697191 BLAKE2B 2e9a0e7dc8016d3e7d7c7f8d0cf80a97d3d199603c0b8b791df5a0d79d418ffaa232eee694047a7ca11fa7623023b4123becd437cfe3dec11e26cd525720bcad SHA512 b40c6dee75d860de1da73faf79f5f68c098ce7c80681486c66fff04a937474dcede91c7be907a8e36033b3898f7499e8f53271944c0df3360756c27361efb6f5
|
||||
DIST mongo-tools-3.6.8.tar.gz 4723878 BLAKE2B a1693024d60f69d25c268eaaa30a478b1e4c0042c5fb7a3fd6252ed00aef2fee3fba94516fe825165a1a57887ed38e4fbce488c48ddd4f45349f0b7a1b244020 SHA512 359e8ce2d847d005d48ff12bc2e8af73213d81cd1521d2b5b5ac94792468218248bebbe808e1bd8fd49234eab8480608f294c1b63f317aed58f456b84ef17dcf
|
||||
DIST mongo-tools-4.0.3.tar.gz 10874727 BLAKE2B 3e5d07b8ae797d0876b68a3018806e91a30758415aaa236423648a77f5e0d475848060516ee0da91a8448813a12a685410b93bf219b8180beb91f448e329a532 SHA512 cbe74b3fdebd0d4f6be6e3acf7f55f5f1a551b0ad1a23d82782643d2a9eb9ea4b7e0133985485b8c5a88c1fea26595e3ed9c759f1f63b578b6472d850154d67b
|
||||
DIST mongo-tools-4.0.4.tar.gz 10878921 BLAKE2B 3960838f68333bf033be9b72191e221b449bde8157ecb6d2f595d84c862fadd9597a53be88e5b0ad691cb6163cf90294348145ecce4c796c88bf84a4d7d8ab86 SHA512 d7900dbbd1e1e63d5518494c85559a7eab34f53ffa38880628f3dda0a71ee1211f67cf7dfaac66498b0359eca32abb9c89410e5cc56415a1594acf38ebfa226b
|
||||
|
@ -1,5 +1,3 @@
|
||||
DIST sudo-1.8.23.tar.gz 3150674 BLAKE2B 11b1c7bfa372005cda8baf651c4662f6fd15e94ca77f7705b23ca6573424796d5c1f8e47e2874c4b54017141d01a632885ac60c92346d932537048373cad0ede SHA512 a9d61850a4857bfd075547a13efb13b054e4736e3ebe3c8a98a90a090b1d9b9688354ec9725fc99d1d256999b6f9c6ae6215ce9770fcdebd7f24731107b48342
|
||||
DIST sudo-1.8.24.tar.gz 3175719 BLAKE2B 61fc469e2d8146b8bb59709192dc33828f0065d4dcf9625e72ae1da9a2c1d6925a0201e5999e146e2e15f5a103ad5690a88fcabb75f57e76b779fe07de53b459 SHA512 ec6295a456a300e81ea2356080d51a57e3eb5d8070d8aab228cece0100ef54954f6c3dd458316b0c2da6839c0d8dab7cdc1a360aceb2594641e064465ecb1ee8
|
||||
DIST sudo-1.8.25.tar.gz 3189660 BLAKE2B 9eeab3ac4ea67a866071750a8cf19e0753ef1b59187f715c69547bbae8ee0039bf15116ef30ed5dc6fc11b17beeff174e08756b2d701e0f2668a05f2e318f623 SHA512 f3f0c9e315484e5ba2d535f41ab722881343b1fa299f75cfad456bd41a555d80080369677e62626307df792aeabc29ba450e6f0b9c284ea2cfb8dc5e3568f46d
|
||||
DIST sudo-1.8.25p1.tar.gz 3189951 BLAKE2B ebfedaad62e60f625db8c46a5c8f19977a5ec0a86bab3b34d91096c08e8b8ece056ba312f9fecd4cdd704fc17d49a36681b41cd40269df7c67cd66d80c0d8efb SHA512 b1445be688d3c1dd7efbdfab68977a7a9b6fd6887191dc99ca717117eec0a550492642556cd55ca5873d054ddc5ccc2b87b2c34602e1ffc729ab6fbc4e523a72
|
||||
DIST sudo-1.8.26b1.tar.gz 3228444 BLAKE2B 5e30144a2aaa5a92a6e9a2a30567f78ccee4e9b05caf0b0f97e587f1f62ac8b276f9d46712f6bdc7d7456214758046e557cc316e8990f5ff14d66621021d3616 SHA512 2fd09aecfc9d9c8fa69717b1a37404855c5c1c9be92a994ee5447c15c1e600e8a15c9060ae1388346d6b57178f412233aa7060b7788017e580ff60884a7da5ca
|
||||
|
@ -1,240 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit eutils pam multilib libtool tmpfiles
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
EHG_REPO_URI="https://www.sudo.ws/repos/sudo"
|
||||
inherit mercurial
|
||||
fi
|
||||
|
||||
MY_P=${P/_/}
|
||||
MY_P=${MY_P/beta/b}
|
||||
|
||||
uri_prefix=
|
||||
case ${P} in
|
||||
*_beta*|*_rc*) uri_prefix=beta/ ;;
|
||||
esac
|
||||
|
||||
DESCRIPTION="Allows users or groups to run commands as other users"
|
||||
HOMEPAGE="https://www.sudo.ws/"
|
||||
if [[ ${PV} != "9999" ]] ; then
|
||||
SRC_URI="https://www.sudo.ws/sudo/dist/${uri_prefix}${MY_P}.tar.gz
|
||||
ftp://ftp.sudo.ws/pub/sudo/${uri_prefix}${MY_P}.tar.gz"
|
||||
if [[ ${PV} != *_beta* ]] && [[ ${PV} != *_rc* ]] ; then
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~sparc-solaris"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Basic license is ISC-style as-is, some files are released under
|
||||
# 3-clause BSD license
|
||||
LICENSE="ISC BSD"
|
||||
SLOT="0"
|
||||
IUSE="gcrypt ldap nls offensive openssl pam sasl selinux +sendmail skey"
|
||||
|
||||
CDEPEND="
|
||||
sys-libs/zlib:=
|
||||
gcrypt? ( dev-libs/libgcrypt:= )
|
||||
ldap? (
|
||||
>=net-nds/openldap-2.1.30-r1
|
||||
dev-libs/cyrus-sasl
|
||||
)
|
||||
openssl? ( dev-libs/openssl:0= )
|
||||
pam? ( virtual/pam )
|
||||
sasl? ( dev-libs/cyrus-sasl )
|
||||
skey? ( >=sys-auth/skey-1.1.5-r1 )
|
||||
"
|
||||
RDEPEND="
|
||||
${CDEPEND}
|
||||
>=app-misc/editor-wrapper-3
|
||||
virtual/editor
|
||||
ldap? ( dev-lang/perl )
|
||||
pam? ( sys-auth/pambase )
|
||||
selinux? ( sec-policy/selinux-sudo )
|
||||
sendmail? ( virtual/mta )
|
||||
"
|
||||
DEPEND="
|
||||
${CDEPEND}
|
||||
sys-devel/bison
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
REQUIRED_USE="
|
||||
pam? ( !skey )
|
||||
skey? ( !pam )
|
||||
?? ( gcrypt openssl )
|
||||
"
|
||||
|
||||
MAKEOPTS+=" SAMPLES="
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
elibtoolize
|
||||
}
|
||||
|
||||
set_secure_path() {
|
||||
# FIXME: secure_path is a compile time setting. using PATH or
|
||||
# ROOTPATH is not perfect, env-update may invalidate this, but until it
|
||||
# is available as a sudoers setting this will have to do.
|
||||
einfo "Setting secure_path ..."
|
||||
|
||||
# first extract the default ROOTPATH from build env
|
||||
SECURE_PATH=$(unset ROOTPATH; . "${EPREFIX}"/etc/profile.env;
|
||||
echo "${ROOTPATH}")
|
||||
case "${SECURE_PATH}" in
|
||||
*/usr/sbin*) ;;
|
||||
*) SECURE_PATH=$(unset PATH;
|
||||
. "${EPREFIX}"/etc/profile.env; echo "${PATH}")
|
||||
;;
|
||||
esac
|
||||
if [[ -z ${SECURE_PATH} ]] ; then
|
||||
ewarn " Failed to detect SECURE_PATH, please report this"
|
||||
fi
|
||||
|
||||
# then remove duplicate path entries
|
||||
cleanpath() {
|
||||
local newpath thisp IFS=:
|
||||
for thisp in $1 ; do
|
||||
if [[ :${newpath}: != *:${thisp}:* ]] ; then
|
||||
newpath+=:$thisp
|
||||
else
|
||||
einfo " Duplicate entry ${thisp} removed..."
|
||||
fi
|
||||
done
|
||||
SECURE_PATH=${newpath#:}
|
||||
}
|
||||
cleanpath /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin${SECURE_PATH:+:${SECURE_PATH}}
|
||||
|
||||
# finally, strip gcc paths #136027
|
||||
rmpath() {
|
||||
local e newpath thisp IFS=:
|
||||
for thisp in ${SECURE_PATH} ; do
|
||||
for e ; do [[ $thisp == $e ]] && continue 2 ; done
|
||||
newpath+=:$thisp
|
||||
done
|
||||
SECURE_PATH=${newpath#:}
|
||||
}
|
||||
rmpath '*/gcc-bin/*' '*/gnat-gcc-bin/*' '*/gnat-gcc/*'
|
||||
|
||||
einfo "... done"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local SECURE_PATH
|
||||
set_secure_path
|
||||
|
||||
# audit: somebody got to explain me how I can test this before I
|
||||
# enable it.. - Diego
|
||||
# plugindir: autoconf code is crappy and does not delay evaluation
|
||||
# until `make` time, so we have to use a full path here rather than
|
||||
# basing off other values.
|
||||
myeconfargs=(
|
||||
--enable-zlib=system
|
||||
--enable-tmpfiles.d="${EPREFIX}"/usr/lib/tmpfiles.d
|
||||
--with-editor="${EPREFIX}"/usr/libexec/editor
|
||||
--with-env-editor
|
||||
--with-plugindir="${EPREFIX}"/usr/$(get_libdir)/sudo
|
||||
--with-rundir="${EPREFIX}"/run/sudo
|
||||
--with-secure-path="${SECURE_PATH}"
|
||||
--with-vardir="${EPREFIX}"/var/db/sudo
|
||||
--without-linux-audit
|
||||
--without-opie
|
||||
$(use_enable gcrypt)
|
||||
$(use_enable nls)
|
||||
$(use_enable openssl)
|
||||
$(use_enable sasl)
|
||||
$(use_with offensive insults)
|
||||
$(use_with offensive all-insults)
|
||||
$(use_with ldap ldap_conf_file /etc/ldap.conf.sudo)
|
||||
$(use_with ldap)
|
||||
$(use_with pam)
|
||||
$(use_with skey)
|
||||
$(use_with selinux)
|
||||
$(use_with sendmail)
|
||||
)
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
if use ldap ; then
|
||||
dodoc README.LDAP
|
||||
|
||||
cat <<-EOF > "${T}"/ldap.conf.sudo
|
||||
# See ldap.conf(5) and README.LDAP for details
|
||||
# This file should only be readable by root
|
||||
|
||||
# supported directives: host, port, ssl, ldap_version
|
||||
# uri, binddn, bindpw, sudoers_base, sudoers_debug
|
||||
# tls_{checkpeer,cacertfile,cacertdir,randfile,ciphers,cert,key}
|
||||
EOF
|
||||
|
||||
insinto /etc
|
||||
doins "${T}"/ldap.conf.sudo
|
||||
fperms 0440 /etc/ldap.conf.sudo
|
||||
|
||||
insinto /etc/openldap/schema
|
||||
newins doc/schema.OpenLDAP sudo.schema
|
||||
fi
|
||||
|
||||
pamd_mimic system-auth sudo auth account session
|
||||
|
||||
keepdir /var/db/sudo/lectured
|
||||
fperms 0700 /var/db/sudo/lectured
|
||||
fperms 0711 /var/db/sudo #652958
|
||||
|
||||
# Don't install into /run as that is a tmpfs most of the time
|
||||
# (bug #504854)
|
||||
rm -rf "${ED%/}"/run
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
tmpfiles_process sudo.conf
|
||||
|
||||
#652958
|
||||
local sudo_db="${EROOT}/var/db/sudo"
|
||||
if [[ "$(stat -c %a "${sudo_db}")" -ne 711 ]] ; then
|
||||
chmod 711 "${sudo_db}" || die
|
||||
fi
|
||||
|
||||
if use ldap ; then
|
||||
ewarn
|
||||
ewarn "sudo uses the /etc/ldap.conf.sudo file for ldap configuration."
|
||||
ewarn
|
||||
if grep -qs '^[[:space:]]*sudoers:' "${ROOT}"/etc/nsswitch.conf ; then
|
||||
ewarn "In 1.7 series, LDAP is no more consulted, unless explicitly"
|
||||
ewarn "configured in /etc/nsswitch.conf."
|
||||
ewarn
|
||||
ewarn "To make use of LDAP, add this line to your /etc/nsswitch.conf:"
|
||||
ewarn " sudoers: ldap files"
|
||||
ewarn
|
||||
fi
|
||||
fi
|
||||
if use prefix ; then
|
||||
ewarn
|
||||
ewarn "To use sudo, you need to change file ownership and permissions"
|
||||
ewarn "with root privileges, as follows:"
|
||||
ewarn
|
||||
ewarn " # chown root:root ${EPREFIX}/usr/bin/sudo"
|
||||
ewarn " # chown root:root ${EPREFIX}/usr/lib/sudo/sudoers.so"
|
||||
ewarn " # chown root:root ${EPREFIX}/etc/sudoers"
|
||||
ewarn " # chown root:root ${EPREFIX}/etc/sudoers.d"
|
||||
ewarn " # chown root:root ${EPREFIX}/var/db/sudo"
|
||||
ewarn " # chmod 4111 ${EPREFIX}/usr/bin/sudo"
|
||||
ewarn
|
||||
fi
|
||||
|
||||
elog "To use the -A (askpass) option, you need to install a compatible"
|
||||
elog "password program from the following list. Starred packages will"
|
||||
elog "automatically register for the use with sudo (but will not force"
|
||||
elog "the -A option):"
|
||||
elog ""
|
||||
elog " [*] net-misc/ssh-askpass-fullscreen"
|
||||
elog " net-misc/x11-ssh-askpass"
|
||||
elog ""
|
||||
elog "You can override the choice by setting the SUDO_ASKPASS environmnent"
|
||||
elog "variable to the program you want to use."
|
||||
}
|
@ -1,240 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit eutils pam multilib libtool tmpfiles
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
EHG_REPO_URI="https://www.sudo.ws/repos/sudo"
|
||||
inherit mercurial
|
||||
fi
|
||||
|
||||
MY_P=${P/_/}
|
||||
MY_P=${MY_P/beta/b}
|
||||
|
||||
uri_prefix=
|
||||
case ${P} in
|
||||
*_beta*|*_rc*) uri_prefix=beta/ ;;
|
||||
esac
|
||||
|
||||
DESCRIPTION="Allows users or groups to run commands as other users"
|
||||
HOMEPAGE="https://www.sudo.ws/"
|
||||
if [[ ${PV} != "9999" ]] ; then
|
||||
SRC_URI="https://www.sudo.ws/sudo/dist/${uri_prefix}${MY_P}.tar.gz
|
||||
ftp://ftp.sudo.ws/pub/sudo/${uri_prefix}${MY_P}.tar.gz"
|
||||
if [[ ${PV} != *_beta* ]] && [[ ${PV} != *_rc* ]] ; then
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~sparc-solaris"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Basic license is ISC-style as-is, some files are released under
|
||||
# 3-clause BSD license
|
||||
LICENSE="ISC BSD"
|
||||
SLOT="0"
|
||||
IUSE="gcrypt ldap nls offensive openssl pam sasl selinux +sendmail skey"
|
||||
|
||||
CDEPEND="
|
||||
sys-libs/zlib:=
|
||||
gcrypt? ( dev-libs/libgcrypt:= )
|
||||
ldap? (
|
||||
>=net-nds/openldap-2.1.30-r1
|
||||
dev-libs/cyrus-sasl
|
||||
)
|
||||
openssl? ( dev-libs/openssl:0= )
|
||||
pam? ( virtual/pam )
|
||||
sasl? ( dev-libs/cyrus-sasl )
|
||||
skey? ( >=sys-auth/skey-1.1.5-r1 )
|
||||
"
|
||||
RDEPEND="
|
||||
${CDEPEND}
|
||||
>=app-misc/editor-wrapper-3
|
||||
virtual/editor
|
||||
ldap? ( dev-lang/perl )
|
||||
pam? ( sys-auth/pambase )
|
||||
selinux? ( sec-policy/selinux-sudo )
|
||||
sendmail? ( virtual/mta )
|
||||
"
|
||||
DEPEND="
|
||||
${CDEPEND}
|
||||
sys-devel/bison
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
REQUIRED_USE="
|
||||
pam? ( !skey )
|
||||
skey? ( !pam )
|
||||
?? ( gcrypt openssl )
|
||||
"
|
||||
|
||||
MAKEOPTS+=" SAMPLES="
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
elibtoolize
|
||||
}
|
||||
|
||||
set_secure_path() {
|
||||
# FIXME: secure_path is a compile time setting. using PATH or
|
||||
# ROOTPATH is not perfect, env-update may invalidate this, but until it
|
||||
# is available as a sudoers setting this will have to do.
|
||||
einfo "Setting secure_path ..."
|
||||
|
||||
# first extract the default ROOTPATH from build env
|
||||
SECURE_PATH=$(unset ROOTPATH; . "${EPREFIX}"/etc/profile.env;
|
||||
echo "${ROOTPATH}")
|
||||
case "${SECURE_PATH}" in
|
||||
*/usr/sbin*) ;;
|
||||
*) SECURE_PATH=$(unset PATH;
|
||||
. "${EPREFIX}"/etc/profile.env; echo "${PATH}")
|
||||
;;
|
||||
esac
|
||||
if [[ -z ${SECURE_PATH} ]] ; then
|
||||
ewarn " Failed to detect SECURE_PATH, please report this"
|
||||
fi
|
||||
|
||||
# then remove duplicate path entries
|
||||
cleanpath() {
|
||||
local newpath thisp IFS=:
|
||||
for thisp in $1 ; do
|
||||
if [[ :${newpath}: != *:${thisp}:* ]] ; then
|
||||
newpath+=:$thisp
|
||||
else
|
||||
einfo " Duplicate entry ${thisp} removed..."
|
||||
fi
|
||||
done
|
||||
SECURE_PATH=${newpath#:}
|
||||
}
|
||||
cleanpath /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin${SECURE_PATH:+:${SECURE_PATH}}
|
||||
|
||||
# finally, strip gcc paths #136027
|
||||
rmpath() {
|
||||
local e newpath thisp IFS=:
|
||||
for thisp in ${SECURE_PATH} ; do
|
||||
for e ; do [[ $thisp == $e ]] && continue 2 ; done
|
||||
newpath+=:$thisp
|
||||
done
|
||||
SECURE_PATH=${newpath#:}
|
||||
}
|
||||
rmpath '*/gcc-bin/*' '*/gnat-gcc-bin/*' '*/gnat-gcc/*'
|
||||
|
||||
einfo "... done"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local SECURE_PATH
|
||||
set_secure_path
|
||||
|
||||
# audit: somebody got to explain me how I can test this before I
|
||||
# enable it.. - Diego
|
||||
# plugindir: autoconf code is crappy and does not delay evaluation
|
||||
# until `make` time, so we have to use a full path here rather than
|
||||
# basing off other values.
|
||||
myeconfargs=(
|
||||
--enable-zlib=system
|
||||
--enable-tmpfiles.d="${EPREFIX}"/usr/lib/tmpfiles.d
|
||||
--with-editor="${EPREFIX}"/usr/libexec/editor
|
||||
--with-env-editor
|
||||
--with-plugindir="${EPREFIX}"/usr/$(get_libdir)/sudo
|
||||
--with-rundir="${EPREFIX}"/run/sudo
|
||||
--with-secure-path="${SECURE_PATH}"
|
||||
--with-vardir="${EPREFIX}"/var/db/sudo
|
||||
--without-linux-audit
|
||||
--without-opie
|
||||
$(use_enable gcrypt)
|
||||
$(use_enable nls)
|
||||
$(use_enable openssl)
|
||||
$(use_enable sasl)
|
||||
$(use_with offensive insults)
|
||||
$(use_with offensive all-insults)
|
||||
$(use_with ldap ldap_conf_file /etc/ldap.conf.sudo)
|
||||
$(use_with ldap)
|
||||
$(use_with pam)
|
||||
$(use_with skey)
|
||||
$(use_with selinux)
|
||||
$(use_with sendmail)
|
||||
)
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
if use ldap ; then
|
||||
dodoc README.LDAP
|
||||
|
||||
cat <<-EOF > "${T}"/ldap.conf.sudo
|
||||
# See ldap.conf(5) and README.LDAP for details
|
||||
# This file should only be readable by root
|
||||
|
||||
# supported directives: host, port, ssl, ldap_version
|
||||
# uri, binddn, bindpw, sudoers_base, sudoers_debug
|
||||
# tls_{checkpeer,cacertfile,cacertdir,randfile,ciphers,cert,key}
|
||||
EOF
|
||||
|
||||
insinto /etc
|
||||
doins "${T}"/ldap.conf.sudo
|
||||
fperms 0440 /etc/ldap.conf.sudo
|
||||
|
||||
insinto /etc/openldap/schema
|
||||
newins doc/schema.OpenLDAP sudo.schema
|
||||
fi
|
||||
|
||||
pamd_mimic system-auth sudo auth account session
|
||||
|
||||
keepdir /var/db/sudo/lectured
|
||||
fperms 0700 /var/db/sudo/lectured
|
||||
fperms 0711 /var/db/sudo #652958
|
||||
|
||||
# Don't install into /run as that is a tmpfs most of the time
|
||||
# (bug #504854)
|
||||
rm -rf "${ED%/}"/run
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
tmpfiles_process sudo.conf
|
||||
|
||||
#652958
|
||||
local sudo_db="${EROOT}/var/db/sudo"
|
||||
if [[ "$(stat -c %a "${sudo_db}")" -ne 711 ]] ; then
|
||||
chmod 711 "${sudo_db}" || die
|
||||
fi
|
||||
|
||||
if use ldap ; then
|
||||
ewarn
|
||||
ewarn "sudo uses the /etc/ldap.conf.sudo file for ldap configuration."
|
||||
ewarn
|
||||
if grep -qs '^[[:space:]]*sudoers:' "${ROOT}"/etc/nsswitch.conf ; then
|
||||
ewarn "In 1.7 series, LDAP is no more consulted, unless explicitly"
|
||||
ewarn "configured in /etc/nsswitch.conf."
|
||||
ewarn
|
||||
ewarn "To make use of LDAP, add this line to your /etc/nsswitch.conf:"
|
||||
ewarn " sudoers: ldap files"
|
||||
ewarn
|
||||
fi
|
||||
fi
|
||||
if use prefix ; then
|
||||
ewarn
|
||||
ewarn "To use sudo, you need to change file ownership and permissions"
|
||||
ewarn "with root privileges, as follows:"
|
||||
ewarn
|
||||
ewarn " # chown root:root ${EPREFIX}/usr/bin/sudo"
|
||||
ewarn " # chown root:root ${EPREFIX}/usr/lib/sudo/sudoers.so"
|
||||
ewarn " # chown root:root ${EPREFIX}/etc/sudoers"
|
||||
ewarn " # chown root:root ${EPREFIX}/etc/sudoers.d"
|
||||
ewarn " # chown root:root ${EPREFIX}/var/db/sudo"
|
||||
ewarn " # chmod 4111 ${EPREFIX}/usr/bin/sudo"
|
||||
ewarn
|
||||
fi
|
||||
|
||||
elog "To use the -A (askpass) option, you need to install a compatible"
|
||||
elog "password program from the following list. Starred packages will"
|
||||
elog "automatically register for the use with sudo (but will not force"
|
||||
elog "the -A option):"
|
||||
elog ""
|
||||
elog " [*] net-misc/ssh-askpass-fullscreen"
|
||||
elog " net-misc/x11-ssh-askpass"
|
||||
elog ""
|
||||
elog "You can override the choice by setting the SUDO_ASKPASS environmnent"
|
||||
elog "variable to the program you want to use."
|
||||
}
|
Binary file not shown.
@ -1,3 +1,2 @@
|
||||
DIST dict-en-20160901.oxt 6025820 BLAKE2B b4b698d63e31c478ec15eea8fa90afba6fafebb90c88618094ab3535af0effb5777e9be313f8a72a460ac32379c699308a791a79ad977d326d9161857a793dc8 SHA512 f52b1fe8c32c6f7dad389d43f52356ecc989365113593513c61a36ad6fed03c6eab7e08c9a07b281c1a30bdf6dbe2d201bc2ed83c6b1fce1006e16de969a30b0
|
||||
DIST dict-en-20170101.oxt 5960816 BLAKE2B 65505ed6e8323f28377728ac29e550cf151688517b83209b055966be4e7e14465aacc1d1677d22bc005089d7623e78e63bf91dcdffcde3a790532dba87b54615 SHA512 fae05d3e4bdc9bbd5dda6eb2c0de2f5d0860973e75fe0931bcb0d0e0a5015fb6042beec7f811bee0011f519d13d0f3b52b09fbd906a75340bf311177885ccc1d
|
||||
DIST dict-en-20170501.oxt 5964856 BLAKE2B 71a19b8c5215dde7d2779a259310bb3b098c0e6493000e77e7c0433efbf5faf03e8a4eae85ba500142f72838a6b0b9dba173c0025c1568d367d7093548ac0a1a SHA512 df8b2f15903d650b5fe9499dd278d2831f98aba421e83d38e7807e42c3c2304fc7921f12663589a7195de6d298be6103e3f7a58b15755512bd1db0e4c4f7c5d5
|
||||
DIST dict-en-20181101.oxt 6052772 BLAKE2B 46825cb406406a3d64e8495f047ae81d6b693e6ff5cd89152a9c829a80d7be1920dfb3572a84aedb2e8f8e5c767aa49ed7e71ab330aca83b3936133699f1098a SHA512 1f351b97c4fc907c5751a35b6665b6d91b1157b6a952a378f565989249b1900395f08f0204407a21b0bcb999fe695c14707c4744f5da32d521ee8d75f73c89f9
|
||||
|
@ -1,4 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>onigino@protonmail.com</email>
|
||||
<name>Gino McCarty</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
|
@ -1,39 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
MY_PV="${PV:0:4}.${PV:4:2}.${PV:6:2}"
|
||||
|
||||
MYSPELL_DICT=(
|
||||
"en_AU.aff"
|
||||
"en_AU.dic"
|
||||
"en_CA.aff"
|
||||
"en_CA.dic"
|
||||
"en_GB.aff"
|
||||
"en_GB.dic"
|
||||
"en_US.aff"
|
||||
"en_US.dic"
|
||||
"en_ZA.aff"
|
||||
"en_ZA.dic"
|
||||
)
|
||||
|
||||
MYSPELL_HYPH=(
|
||||
"hyph_en_GB.dic"
|
||||
)
|
||||
|
||||
MYSPELL_THES=(
|
||||
"th_en_US_v2.dat"
|
||||
"th_en_US_v2.idx"
|
||||
)
|
||||
|
||||
inherit myspell-r2
|
||||
|
||||
DESCRIPTION="English dictionaries for myspell/hunspell"
|
||||
HOMEPAGE="https://extensions.libreoffice.org/extensions/english-dictionaries"
|
||||
SRC_URI="https://extensions.libreoffice.org/extensions/english-dictionaries/${MY_PV}/@@download/file/dict-en.oxt -> dict-en-${PV}.oxt"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2.1 Princeton myspell-en_CA-KevinAtkinson"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
|
||||
IUSE=""
|
@ -1,39 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
MY_PV="${PV:0:4}-${PV:4:2}.${PV:6:2}"
|
||||
|
||||
MYSPELL_DICT=(
|
||||
"en_AU.aff"
|
||||
"en_AU.dic"
|
||||
"en_CA.aff"
|
||||
"en_CA.dic"
|
||||
"en_GB.aff"
|
||||
"en_GB.dic"
|
||||
"en_US.aff"
|
||||
"en_US.dic"
|
||||
"en_ZA.aff"
|
||||
"en_ZA.dic"
|
||||
)
|
||||
|
||||
MYSPELL_HYPH=(
|
||||
"hyph_en_GB.dic"
|
||||
)
|
||||
|
||||
MYSPELL_THES=(
|
||||
"th_en_US_v2.dat"
|
||||
"th_en_US_v2.idx"
|
||||
)
|
||||
|
||||
inherit myspell-r2
|
||||
|
||||
DESCRIPTION="English dictionaries for myspell/hunspell"
|
||||
HOMEPAGE="https://extensions.libreoffice.org/extensions/english-dictionaries"
|
||||
SRC_URI="https://extensions.libreoffice.org/extensions/english-dictionaries/${MY_PV}/@@download/file/dict-en-${PV}.oxt"
|
||||
|
||||
LICENSE="GPL-2 LGPL-2.1 Princeton myspell-en_CA-KevinAtkinson"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
|
||||
IUSE=""
|
@ -0,0 +1,55 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
MY_PV="${PV:0:4}-${PV:4:2}.${PV:6:2}"
|
||||
|
||||
inherit myspell-r2
|
||||
|
||||
DESCRIPTION="English dictionaries for myspell/hunspell"
|
||||
HOMEPAGE="https://extensions.libreoffice.org/extensions/english-dictionaries"
|
||||
SRC_URI="https://extensions.libreoffice.org/extensions/english-dictionaries/${MY_PV}/@@download/file/dict-en-${PV}.oxt"
|
||||
|
||||
LICENSE="BSD MIT LGPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
|
||||
IUSE=""
|
||||
|
||||
PLOCALES=( "en" "en-AU" "en-CA" "en-GB" "en-US" "en-ZA" )
|
||||
IUSE+="${PLOCALES[@]/#/l10n_}"
|
||||
REQUIRED_USE="|| ( ${IUSE[@]} )"
|
||||
|
||||
src_prepare() {
|
||||
if use l10n_en-GB || use l10n_en; then
|
||||
MYSPELL_HYPH=( "hyph_en_GB.dic" )
|
||||
fi
|
||||
if use l10n_en-US || use l10n_en; then
|
||||
MYSPELL_THES=(
|
||||
"th_en_US_v2.dat"
|
||||
"th_en_US_v2.idx"
|
||||
)
|
||||
fi
|
||||
|
||||
MYSPELL_DICT=( )
|
||||
for lang in "${PLOCALES[@]}"; do
|
||||
if [[ "${lang}" == "en" ]]; then
|
||||
continue
|
||||
fi
|
||||
local mylinguas="${lang//-/_}"
|
||||
if use "l10n_${lang}" || use l10n_en; then
|
||||
MYSPELL_DICT+=( "${mylinguas}.aff" "${mylinguas}.dic" )
|
||||
else
|
||||
rm "README_${mylinguas}.txt" || die
|
||||
if [[ ${lang} == "en-US" ]]; then
|
||||
rm "README_hyph_en_US.txt" || die
|
||||
fi
|
||||
if [[ ${lang} == "en-GB" ]]; then
|
||||
rm "README_hyph_en_GB.txt" || die
|
||||
rm "README_en_GB_thes.txt" || die
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
default
|
||||
}
|
Binary file not shown.
@ -1,20 +1,31 @@
|
||||
DIST asar-0.13.0.tar.gz 1622264 BLAKE2B 018bccc3d2b54040fe7c6e6c1ecfbe0ab4d52554feab78fae41a09d35b7e934720cba45f77239eda46d746390c4f072b3e0eecdf7f0953882d6f27cb940de018 SHA512 619b59e9576a185905b455b780630188ce32aed72b424c69967a7bf15236d1edf2f5d92f7dde972599679c88fe0a80f05295a3d82b2ae0944be08d332a659aee
|
||||
DIST atom-1.23.3.tar.gz 9553983 BLAKE2B ed5f77a51fbbf7a5ba828f5c488b139067636865fef30c88926baf5855b89a7283a35de383cfc65a06391479ec70c067e8ddacd5132b46859b4d4c6ee5cf35e8 SHA512 879a6a209659b612efcef6d3cac9c218da033295b3cc915259e2d4ab51567627a2369b2b8630f6e8a4706aa7b4e0cfb7cc3a55b635f559c8a913cc19e702d524
|
||||
DIST atom-1.24.0-beta3.tar.gz 9550090 BLAKE2B e74923afb56573530a3297d7ce27197af478b2697f49e3d1d9d239e12281a43ab614f8bb9356451372723af7a2bb6cfe2dc21c2e672a321eeeeca6455dcedd9b SHA512 31dc4e9be108fdd5e770a21e94f1284f3e5aa3a8293bce542fbf5a449930bb4f9a3f2405653e27809ccb3d2395b9bf3e0e630b4b1d6c2f7995859b2af391c554
|
||||
DIST atom-bin-1.23.3.rpm 129956012 BLAKE2B eedb8a55955dbd30d85073e536435a6faa214e9f197acda4f3c7a46408ed5fdcff16141b28c519b1d1fc680d0a17f77d0f22ccb561eaea9665c7836ef282ab8d SHA512 f17b0edc33c537ced60360ff5daba44257ac2a85fdb8cf10e886133429093cbd99cd5835ea1ec451a2c1c485971dd5176585357b980d7dbab17f12ee0adacbe8
|
||||
DIST atom-bin-1.24.0-beta3.rpm 129894085 BLAKE2B 9c58bd91ed3d4c9eaf97de0b2ba168c1f4118890f40f8aa9c4f50a9fe24d614c1d52ce8d91f0efdfc8b7bb01891096d8e39a2e2f67faefdd6db33e0114288892 SHA512 a942732dfc975c44c3db11c8e43b88e6dbe247245947964704ee2ada79a8732da5a6f6cedd960556349844ca92333c3504541b300975bd4daad639abb3ce309b
|
||||
DIST asar-0.14.3.tar.gz 1516628 BLAKE2B 4f04d08c3084843bc3974e99dea2bd327843afd97575fbedcc0ae224c9511be2b2a178a0ff0e555f1c890218d768cca6616a39a0a4fb2fd119f94b074db73ef7 SHA512 8dc099d038d7c8748d20d64adb037167e43640bb923391d2d94f1e2859d41700b39d6b631ee959505cffc695b8284f7e09d43a914af7effc349a768cfaf1efb4
|
||||
DIST atom-1.32.1.tar.gz 11685572 BLAKE2B 4e2463d56d3c4c54e3661e8eeb665a86b165f317dd221d849fd6b447bf6e895ac573b019356695fce0da0c176702356cbd5ff53e0878edbd49aa95e15323cda5 SHA512 8220c7cf1bb602dbcb312e986b4c2ff560baf3e46903e770135da36d92920da4d9f2490e9a5dc6b04821dbbb033415b6008f0f483d88c841996c06a9bf36f7e3
|
||||
DIST atom-bin-1.32.1.rpm 281163511 BLAKE2B 4ff4e055d1cad690c37e6264a7e5771bf50047246950fc45a94cb5217e6cfef2abb8c067efa1ca780550db7f046a8fecc623013cab27fe56df3e22af68f018b6 SHA512 9ff621cb8bcfb185c36eb56cac698a9bd0d2a02b5cc9c7982786b0db241a625188fc6ea9079943bb2c83a122f916a387810fa30161ee9531c1c5c3e28f876f52
|
||||
DIST atomdep-atom--nsfw-1.0.18.tar.gz 20870 BLAKE2B 2e90e2cc337b2d40805db44c48a6f9da2b4e749bd5d036bdeec78790286a0d0c7e4536a8d461480b91c45552ce1f6db06e6f70f975e52b2ec90146714c4a0fb9 SHA512 61c78a57d6b75fada687843bf0dca2f1a4d16a8546769789047a202fc831535ee206112962fc4680c7d37b4da3d611f6b5a153e1b6ab919e51759906288b09ff
|
||||
DIST atomdep-cached-run-in-this-context-0.4.1.tar.gz 2388 BLAKE2B 9cf59f69c3433a9982c1dedf58c03eef5e1ccf1275f92ed192a2de601f38caceea5926e9b3a8571e2124b83e49c99a14f262db39a44732e1ff6550d6cd46d500 SHA512 942db40139b0beda616a25628772e515ce92ceca3e9a5288b10920e68c35149c52677a975e6e30f278ec64f06ae341fa1fa00702b339b2fb8f7af1cf9685efe5
|
||||
DIST atomdep-atom--watcher-1.0.8.tar.gz 702118 BLAKE2B 21fdb472bc1cd6cc396f686e45f1048ff5507d2126e71d92e1531601d142339a97f3ab8748b34cf8ff8c935fc4f2fa36e86a379a05f79403c7bc3949f5ae8ebb SHA512 e77ba7faf192698ec5b1bbe683c81ead8380dc84a2a4c591dea89847d8595aa49fbc5b24b1725f1ab985b1f6c18f7baa19143780f4e2eb0a717054968db59515
|
||||
DIST atomdep-cached-run-in-this-context-0.5.0.tar.gz 2697 BLAKE2B aada7cb35fa57abc4e97bc76a1a1c77f167441bf82bec4743b4e570721f67edd1c037033dcf058bf72957c7423c957343697e816e85c401e6497c43af41aa3a1 SHA512 15db433f4bbc5a37ad43de672f3f6f234e9e7c94c5ae6b66939653e85102a724ca8bd69a90d2cc1f2307db55916c66325a56e607f42546807f83595c129ca333
|
||||
DIST atomdep-ctags-3.0.0.tar.gz 12864 BLAKE2B 561a64734f67cd7943f2d6f972e4d1ec55913934357e7a0d3077c2910f938071b090f55880788ebeab5d7fcaa3009c8984a9045dc83089c46d276152653eb156 SHA512 af1d3764cc3a6bb781a9a2357eeb8503886fc14481c3dbe4a899d3c672fea9325524aed3a4c1c87965bc4cce2fbae20b56b32690849afc1fcb751cd5462adbcc
|
||||
DIST atomdep-fs-admin-0.1.6.tar.gz 5539 BLAKE2B 9ee1857152cca343673a270c1044ad33a3ddbfb5b8389f2e0449e99348d0bdd4aaaa7e4c07bfb8871ae840f1a69cd90074a769f80fa3cc7f914050bc6f45b29c SHA512 2474523d5441ad882000633a929bcdbc5771b859a80f16a69c15504ff240a59b558e2edb1ca6e12ce91ad58da935243f3950a16e664529c59da70b9912903ae7
|
||||
DIST atomdep-git-utils-5.1.0.tar.gz 4141959 BLAKE2B 7504a4ba57b093da659ed0ba7319863636d7f9f1e9a6a4bbd4b6c6fcf9922c9ca32398b44550e4a94d519471ca5cf249976426583f998186398c147c6cce5636 SHA512 1f9c38646b25a526c0399d538e58864c552d65802402df82f8303a936374121db40f61195ea3254e56e31dd9d25b847b325264911f62d6beddfc24931a9367bf
|
||||
DIST atomdep-keyboard-layout-2.0.13.tar.gz 17881 BLAKE2B e86a399be545a43768a53d5d9279dae1bc4d87fd99af87a10861f2e3367d6786e3631f8dc77671b08b06e30290f2c97833402e3732a010ae31c7c1c02d9d6afd SHA512 5b155cddb0484edb47a334b21183eccabe6b376290b97b4469732541f4231337b526b90bc37d321ff6dc367d481b1e3c6feb5d39dc9ba67abef8914b53615a66
|
||||
DIST atomdep-keytar-4.1.0.tar.gz 8564 BLAKE2B 69b745c6afd22dd4ffd5694205294f4cc7985b9ae5df51e5c7671cee296a2d28732ccd453417eeb60cc66fdfd39247ee90205808fdbfbea8b5585029c22d4d76 SHA512 2f72aa89232da558ad96e838bae23e2b95cb9def52015105584f120902214221f4200fc24dba27e6fe69ad52ca2b429e9f9e28d8ef15f4771e29a829c09ba6f9
|
||||
DIST atomdep-nsfw-1.0.16.tar.gz 43214 BLAKE2B 261539bebfe494aad0b372f1837a87c7c2a410bb591df523ea25bd5acd008f7eb0e8460a218fd4ee70d98bc26dd166472e9ea0aea265971cf2e904da913dda88 SHA512 0060d7fb5016454aaaf7df438d973b9a389a6e5f7a166c5d402cf8ef8bcda724501c3bfbd44e37e9e6c38d5f1decaeb48c571aad9145dec38ba0c94073b9702a
|
||||
DIST atomdep-fs-admin-0.1.7.tar.gz 5465 BLAKE2B 50e2f5a2b013d3ca877ad608f62c0bb5464b32af55167d3d97b5d03530ff53cf7e84360fe8de2a7e3b29a226ee462b4735ffe5a16d9e6a6e51027f5bd34431b6 SHA512 110362a2a50782d9d7f44acc88fbaf1c2031d0cd5549af6ee28c4617e10655804bd79320e41c44cc606b4c06075100c3a1bab0d5873ee98a995b048821ef84c1
|
||||
DIST atomdep-git-utils-5.2.1.tar.gz 4142068 BLAKE2B 7a803e0bbfb8c6afc2e7c82f782d3d80482646935b94e6d878d13120dc0294818a60bfb898a82d3fdea02300bbe473640c1c8fdf2ece9a531eb4b0eb564edad5 SHA512 3eb5da5f8a9bead8bdc94e29d794567969251ddc845c210871d8db9b75f998058bd55085a65d613ddc64ed3daa70544d845ed3557ab7822a2d9c95677bed61b4
|
||||
DIST atomdep-keyboard-layout-2.0.14.tar.gz 17919 BLAKE2B 9b2a83cf0b4db13e402d6a97fd8729041a25e7296f5e5be23181bad84a314a9012dc69cc387699b3edc5d37a98fcfe8923feb457c3f80e7d0db7b1610542e49b SHA512 42e09fa440bca1a8ba17ca1a3507718b9fb5408a5a42ef4749523dcb3902d876c85de0676a1cc7143455194b70c005a2367ce33418d423f763b2b30651380ad7
|
||||
DIST atomdep-keytar-4.3.0.tar.gz 8896 BLAKE2B 56d669320ee7eeb78eb676a76de6efe4417b80b5931507009b73cf4aa70b4125fd96a7b1ec0bf05ada86d3107dbdb82028517eccccabfb1d61b1fecd08261de8 SHA512 a5dfbefeff9f4b42d02a6cd6956e91d65ce24d716a85f19e4bab182dfb9322a132da90f301b8eeb5b496f1ff6d9c974410c9fff578404254f7e1502d97d87831
|
||||
DIST atomdep-nslog-3.0.0.tar.gz 2270 BLAKE2B 3258b7e7d7f94a89b0e5a21bfedfbe71bbfe3d776871aaeb3443ce6a7759860abfef2b8af823dab009183b5378c1ed06c7b2729df9acc09d3c5ea6a5f47ff160 SHA512 6a0ce8970ae12fdefd0935916e5501bb89e366fb66b05fffade884f3adf4add4b135eb4f0f208684e28424fdb9858ee8193eb1f3db1f7eac3cb49bdb5d1a4bb1
|
||||
DIST atomdep-oniguruma-6.2.1.tar.gz 586350 BLAKE2B 65574ef004c98cced7a9f5917845015ccd84b2383a85d889365da5c73313114454458b441bf6588eaee2a17150d674b7754ccc0bbb2d68ae3d98f7d5ca63530e SHA512 faa46dc4c1b8d7e75ab54512de9a823c5b958a7ccb43333375b33e16de47a464ea2a9ba9996596a8359d423a3e8c9d63cc92a5162b3f9d44b4485304073b41f1
|
||||
DIST atomdep-oniguruma-7.0.2.tar.gz 584590 BLAKE2B 2e3e622fdf7c463fa670786f0af8815ffbb1d7a85ff5759b8b13fa2b4ed8cec5959b4186b09521a3060e42abb5d83505f7b925a18f41c99e4d9dab809e39ec01 SHA512 cc2b1d3714ebac1e3254f33185c20e0c6bf5a7835506ef56bec5a720684ca6ee5d8cee0c4165eb0bb60a8edcdaf8eca846aaa0cb6ec2a9859ad61e5ed830db8a
|
||||
DIST atomdep-pathwatcher-8.0.1.tar.gz 18357 BLAKE2B 8e2b86da307757c352d0cab5eff64cc31e6745bf10a982f6ef11a0fd92eeeadf5b438aaaaa00e679100600691e59ff7aa7badf33e62c33a2497b5573cf7b4711 SHA512 34df8fecf456753f1977517018e5ff78b143f2d36e1417435bfcac2f9b9f8bd045a8080e7d0ad5d2930c63fa110c539911447863c46e757a4bb8f8c4f5bda999
|
||||
DIST atomdep-scrollbar-style-3.2.0.tar.gz 3498 BLAKE2B 2d1a88f2764b5a51da92e41f5dd5424a4ffbc13ec9b2e826236097ff7ebb0babd22b4e4cd00873e786aa52d901eedce49bd102ad6398eda614734bdd78b8b4e3 SHA512 9f5fcc2bcb13cb81e95a52aa6db0c99ffd67c9cd48a9faf0223587359f4082c3e867cb384497dc6be3e8230b4cd035e910a7048d431e81a28dfded0bc572da18
|
||||
DIST atomdep-spellchecker-3.4.4.tar.gz 481892 BLAKE2B 3bae26ffffbaffdbac6f082c6f33ea4f5127583663e1df3ed8d98cebed2ce11ea0d9965615e369383695df6ad55aa996e8968e6616415d359ffae640a679f47b SHA512 974b3ce9866ce7e3f30137856ea0f4b1348c105edb833a94620c6b53cfa7052c37575f6dcd160a322fa10c61babfc32c916786d9d44ad10efdb2ab3578620ac1
|
||||
DIST atomdep-superstring-2.2.16.tar.gz 795922 BLAKE2B 58f66a51f20f11bd6d4335c945c5af2418ab5e210af989f9480e319a55cf273d63c97db2c5a32e8196dc06c14bbb552ea1e34d2e8910807f8e2d04925c953b41 SHA512 1ea105483032a5f6fb3b752dce33cef7498a9d597cdef35efb00ef26dba95c84dda863452eaa954d38c9c22510397aedfeed2ed44874560fdca4151d87d49e5c
|
||||
DIST nodejs-nan-2.6.2.tar.gz 161949 BLAKE2B f74e8d56e67ae03e60e0be7752ed9527bd8499c01f7df8899f3eb6735b1286633753e8bf595781b6d3d1446df20483fc0377bd745be10c6bae0ad66426751b79 SHA512 d1b5ed12e90accfa117cb73b9432897631ed2dd6045f93fa8b53237a13cec0ec467b14c035e9e4d4a5c6588949c1c80b0eef48a46d5c9c0a1f81ef400da031c3
|
||||
DIST atomdep-spellchecker-3.5.0.tar.gz 476758 BLAKE2B 73ca0225bedf7daa0b9f9e3ad5a549cb124443de0887ee77f1a7a7c1e31f1a1c363a5f0118ecb17e70c4ae64338eac83c24dbe4cd13a6ae182d314d22bef3dc4 SHA512 5daed79d1ba562187937f5c435e2f63bcffcef95e12c18e8b3b05e9afd2b7dc815ea88cd60c4ab5ec714654189c27897dadebb798fa535425ea6d0f56cc6ae1d
|
||||
DIST atomdep-superstring-2.3.4.tar.gz 822697 BLAKE2B 0e81ab0fe8d429c80298a70034c0645412e16dcd38540f5a87433689581c741b554a82739e6bb6954d316bd9a9a6425b9770b3880fe883e27199ea1aa10bbe81 SHA512 0dc3644c2741f45dc531945d5114802ec1e2fbb0d6a85088d1c1fe120f26c0183e93142ce86781dcbac652f088e5b101e83b65bb6a31f1460dd289cf37825e65
|
||||
DIST atomdep-tree-sitter-0.13.15.tar.gz 193608 BLAKE2B adcc1cec97e0675868b4782a4dede09bbad58e3d85fb55eba9ec0867bc4bc91045db8023aff3975471748297563325359cd6a4819c4474e5aedfec3e8d7565c9 SHA512 16ebd4f9cb0eeedfeb42a2dd2f7fb0e0983ee19976d98e2e0a2e0bf57fea246e7b667ef56733f7a07b434918298889acea0dd8edc109bc5ecafeb0b0d75abdd9
|
||||
DIST atomdep-tree-sitter-bash-0.13.6.tar.gz 346883 BLAKE2B f1a7bd0391d3d21223d889deb4e38ecf5e323051977cd42095fdb2ac458803968d1c435e6f7c12b0073486eb677ab2f2748fc7dd76e9228e746ac634221ea1c5 SHA512 9761d822c2f5f608950fa4f91b237db136afd4d545b708412b993f89785eb3a931a9a29fc3a652169af20e3c8281ab28ca117bc59bb4b1f2e1dfb6298c843712
|
||||
DIST atomdep-tree-sitter-c-0.13.7.tar.gz 192058 BLAKE2B e673311a6903736d204b149a983159f7ca52ffc3e1b44f7e800f6a8fcebb49059d6fd6e341506d50d19d3781b495bf0414f8794af2f9e6a93e341fd55fdfa264 SHA512 af533977d06be796c3c1a98fbc44f60cf46a4fdc0f233edd9766c462cdad5116398231863d9cfbe4ffb49befe9bf97466c6d8b9a1535d0af835aa0242e4f5ed5
|
||||
DIST atomdep-tree-sitter-cpp-0.13.8.tar.gz 610448 BLAKE2B df5ac56a6317c39b5ac1a4d248b0c96751ebed08868977417f68daf30a1c04806874128dd75667d7b543b3062d168ba570783df291931c0a3bed990526eea727 SHA512 3d3b488f8b1e277a73c9c961bf48f3207e6720faac5731d1ed9a02bd01fad0bd844180e867f2bc7b3bc278fe5d218d6808e0e191cf20c763d9fa7e326b34de4e
|
||||
DIST atomdep-tree-sitter-css-0.13.7.tar.gz 79065 BLAKE2B 5671e6395f41b3dd2f3154d335e9b581507a8a7ad90ed3f4f27bd89055c96bef82d883984055dbf1675c93fe8aa9edce5151902261300d1cedf1dc7d955b9149 SHA512 c4c85564779300081c5f8991eb7ab32eecd5e477eba7c2217430ec2c0b276bba5b4f5107859c412bba68b1531fd5089c6db9491f81aa1409d9e9f3aa5036ca5d
|
||||
DIST atomdep-tree-sitter-embedded-template-0.13.0.tar.gz 6153 BLAKE2B 7da15e09def3a4088b16f691273f0e99311aea53a20577a618026fbd3f4bd78d3cb4c5a6aa694ed3122465621128d26dd084c85d492f8a6d62246a1e50f29a2f SHA512 20956331c2f6060faa17e1e26ed1174c5e0213a03aea9a464aa53c13ed9d767da90aa0ed646444848f8a7ea7ab17d369292a353ad6ef8578845cf75740034b1a
|
||||
DIST atomdep-tree-sitter-go-0.13.3.tar.gz 162468 BLAKE2B a3530580f1cddd672807d1d4c6652405a0558edf7d362523d507edacb6ba2abefa58fefe50d762e9c611ab51f6a4b6e62000f2e898058ac3f892fe6e6a11940c SHA512 a579e5103330ac276761a3b37c4ce53255aa644283257106e1b3ef73d8f925277b2180d606bc31a3e5d7bab68b4a56e3d6624bda428b2033bc70a0cdc54b1c1f
|
||||
DIST atomdep-tree-sitter-html-0.13.5.tar.gz 13738 BLAKE2B c33b69eeb6b1eba0c864988eafe49327eb2f9a770678b03c49548aeb2fff2a1f31a5132565ca4025c008914a410d6cd0a757e9e435efc90cba58443cc2dc88be SHA512 95ac288df0e58fff6e8c462f2e85b8f964d3876a1cad80983f60f0e4b9b0c6ebef136947aff0f845603c5b53788e9479f2d55e7f4492aa79d0c09925d6934878
|
||||
DIST atomdep-tree-sitter-javascript-0.13.8.tar.gz 1729028 BLAKE2B ea2c8de9091ae224e595b0f50d4b32797c0b87937698b074e6603cdde0ecbfd57e6da7d9d6540d0de7175c6386130de5fb3db6a537a935c121eee8c5ae46879a SHA512 a7bbba657117d6c2238063408ae48d9cae8f4a5e45894b10cc457640e018547e46375ddc52752ca1afc189a0cc590dee75da0d5f04ddc6107c530340a258b341
|
||||
DIST atomdep-tree-sitter-python-0.13.4.tar.gz 204998 BLAKE2B 54d22a4482705cf482cd13bf8786f2d4a26e709b836007a1cd2bf43a537738a2b27474bc050253462f834f7f211b4c6b5b8b82cc3a1de41faa334c93fdc02db3 SHA512 250ef9ffaf15b0f3125ad7a88ad37181d4e5030e6ca5b4c518ad97822478d6d893b6493c70e35db5f07b3dedb25928285c60cdb5cbb4fd392ae07acaad6aca7d
|
||||
DIST atomdep-tree-sitter-regex-0.13.1.tar.gz 17153 BLAKE2B 44e137c5464af5e77011a9d8bb9cd6ffa7abf50bbd27a6fc3b8e53739fd6e6c664bce7c1ed348ecbb2a27e8f301caa8a783c5ba756870622fbe1bfe76ee4a8bb SHA512 03e50bb9539cdfb34e8e69a675da97311c14abc839d4509167b612ba92dd15c1e7825d5a748de70513ec902f40f1efbef6317ee5f2f2b700385fab875bfbff9a
|
||||
DIST atomdep-tree-sitter-ruby-0.13.11.tar.gz 2020951 BLAKE2B 106eb35468106d971338e3387484470a61c84da8a1a2f9632eecd0e84fe13dc801da527652817633083469668f03cc9ea4241526cfe414a7c0c2c2d96d44f311 SHA512 101981059db4c9aa11a834604287fd622af6f7fde5bf9718ff2f140d40b51b345fe6961de02b185345808c827b77202ffb79fba77cbf2ceb9793224b888375c0
|
||||
DIST atomdep-tree-sitter-typescript-0.13.6.tar.gz 662334 BLAKE2B a4e7898fc115fd73c9a86578aa214cfb11ac0b57bcfe3db8226463a7613d78bec11b987311f8ee884a4aa679ff16deaee158eb36ba8a370be65daff98e41cdac SHA512 d5cb2f0ab5b981fe1de03d195c272db150ebd0cf9f3825d87d7fd3bdee8e01e1d4745bb426c23e084b12e97dd51fbba65f9ffad910d87b57306ef3a10ae2225c
|
||||
DIST nodejs-nan-2.11.1.tar.gz 170929 BLAKE2B 21287b45865c578257399abddd2fb6a7234891da47bb97073b7595ace6bafc83630f44141d871b061e5d13b6c4b9e02c0d4883ef0a6d6f0d9851ff645a0ab616 SHA512 a80c2857c2f15c085c506cabd081338e25a5de2028327567a039ed9219b912d36ebdfec80f13bebab9872b981d86a2fcc2c8145739b428b8f4148d1a883e408f
|
||||
|
@ -1,535 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# NOTE: this ebuild has been generated by atom-ebuild-gen.py from the
|
||||
# atom overlay. If you would like to make changes, please consider
|
||||
# modifying the ebuild template and submitting a PR to
|
||||
# https://github.com/elprans/atom-overlay.
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
inherit python-single-r1 multiprocessing rpm virtualx xdg-utils
|
||||
|
||||
DESCRIPTION="A hackable text editor for the 21st Century"
|
||||
HOMEPAGE="https://atom.io"
|
||||
MY_PV="${PV//_/-}"
|
||||
|
||||
ELECTRON_V=1.6.15
|
||||
ELECTRON_SLOT=1.6
|
||||
|
||||
ASAR_V=0.13.0
|
||||
# All binary packages depend on this
|
||||
NAN_V=2.6.2
|
||||
|
||||
ATOM__NSFW_V=1.0.18
|
||||
CACHED_RUN_IN_THIS_CONTEXT_V=0.4.1
|
||||
CTAGS_V=3.0.0
|
||||
FS_ADMIN_V=0.1.6
|
||||
GIT_UTILS_V=5.1.0
|
||||
KEYBOARD_LAYOUT_V=2.0.13
|
||||
KEYTAR_V=4.1.0
|
||||
NSFW_V=1.0.16
|
||||
NSLOG_V=3.0.0
|
||||
ONIGURUMA_V=6.2.1
|
||||
PATHWATCHER_V=8.0.1
|
||||
SCROLLBAR_STYLE_V=3.2.0
|
||||
SPELLCHECKER_V=3.4.4
|
||||
SUPERSTRING_V=2.2.16
|
||||
|
||||
# The x86_64 arch below is irrelevant, as we will rebuild all binary packages.
|
||||
SRC_URI="
|
||||
https://github.com/${PN}/${PN}/releases/download/v${MY_PV}/atom.x86_64.rpm -> atom-bin-${MY_PV}.rpm
|
||||
https://github.com/${PN}/${PN}/archive/v${MY_PV}.tar.gz -> atom-${MY_PV}.tar.gz
|
||||
https://github.com/elprans/asar/releases/download/v${ASAR_V}-gentoo/asar-build.tar.gz -> asar-${ASAR_V}.tar.gz
|
||||
https://github.com/nodejs/nan/archive/v${NAN_V}.tar.gz -> nodejs-nan-${NAN_V}.tar.gz
|
||||
https://registry.npmjs.org/@atom/nsfw/-/nsfw-1.0.18.tgz -> atomdep-atom--nsfw-1.0.18.tar.gz
|
||||
https://registry.npmjs.org/cached-run-in-this-context/-/cached-run-in-this-context-0.4.1.tgz -> atomdep-cached-run-in-this-context-0.4.1.tar.gz
|
||||
https://registry.npmjs.org/ctags/-/ctags-3.0.0.tgz -> atomdep-ctags-3.0.0.tar.gz
|
||||
https://registry.npmjs.org/fs-admin/-/fs-admin-0.1.6.tgz -> atomdep-fs-admin-0.1.6.tar.gz
|
||||
https://registry.npmjs.org/git-utils/-/git-utils-5.1.0.tgz -> atomdep-git-utils-5.1.0.tar.gz
|
||||
https://registry.npmjs.org/keyboard-layout/-/keyboard-layout-2.0.13.tgz -> atomdep-keyboard-layout-2.0.13.tar.gz
|
||||
https://registry.npmjs.org/keytar/-/keytar-4.1.0.tgz -> atomdep-keytar-4.1.0.tar.gz
|
||||
https://registry.npmjs.org/nsfw/-/nsfw-1.0.16.tgz -> atomdep-nsfw-1.0.16.tar.gz
|
||||
https://registry.npmjs.org/nslog/-/nslog-3.0.0.tgz -> atomdep-nslog-3.0.0.tar.gz
|
||||
https://registry.npmjs.org/oniguruma/-/oniguruma-6.2.1.tgz -> atomdep-oniguruma-6.2.1.tar.gz
|
||||
https://registry.npmjs.org/pathwatcher/-/pathwatcher-8.0.1.tgz -> atomdep-pathwatcher-8.0.1.tar.gz
|
||||
https://registry.npmjs.org/scrollbar-style/-/scrollbar-style-3.2.0.tgz -> atomdep-scrollbar-style-3.2.0.tar.gz
|
||||
https://registry.npmjs.org/spellchecker/-/spellchecker-3.4.4.tgz -> atomdep-spellchecker-3.4.4.tar.gz
|
||||
https://registry.npmjs.org/superstring/-/superstring-2.2.16.tgz -> atomdep-superstring-2.2.16.tar.gz
|
||||
"
|
||||
|
||||
BINMODS=(
|
||||
atom--nsfw
|
||||
cached-run-in-this-context
|
||||
ctags
|
||||
fs-admin
|
||||
git-utils
|
||||
keyboard-layout
|
||||
keytar
|
||||
nsfw
|
||||
nslog
|
||||
oniguruma
|
||||
pathwatcher
|
||||
scrollbar-style
|
||||
spellchecker
|
||||
superstring
|
||||
)
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
DEPEND="
|
||||
${PYTHON_DEPS}
|
||||
>=app-text/hunspell-1.3.3:=
|
||||
>=dev-libs/libgit2-0.23:=[ssh]
|
||||
>=dev-libs/libpcre2-10.22:=[jit,pcre16]
|
||||
>=gnome-base/libgnome-keyring-3.12:=
|
||||
>=dev-libs/oniguruma-6.6.0:=
|
||||
>=dev-util/ctags-5.8
|
||||
>=dev-util/electron-${ELECTRON_V}:${ELECTRON_SLOT}
|
||||
x11-libs/libxkbfile"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
!sys-apps/apmd
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||
BIN_S="${WORKDIR}/${PN}-bin-${MY_PV}"
|
||||
BUILD_DIR="${S}/out"
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
local a
|
||||
|
||||
for a in ${A} ; do
|
||||
case ${a} in
|
||||
*.rpm) srcrpm_unpack "${a}" ;;
|
||||
*) _unpack "${a}" ;;
|
||||
esac
|
||||
done
|
||||
|
||||
mkdir "${BIN_S}" || die
|
||||
mv "${WORKDIR}/usr" "${BIN_S}" || die
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local install_dir="$(get_install_dir)"
|
||||
local suffix="$(get_install_suffix)"
|
||||
local nan_s="${WORKDIR}/nodejs-nan-${NAN_V}"
|
||||
local patch
|
||||
local binmod
|
||||
local _s
|
||||
|
||||
mkdir "${BUILD_DIR}" || die
|
||||
cp -a "${BIN_S}/$(get_atom_rpmdir)/resources/app" \
|
||||
"${BUILD_DIR}/app" || die
|
||||
|
||||
# Add source files omitted from the upstream binary distribution,
|
||||
# and which we want to include in ours.
|
||||
cp -a -t "${BUILD_DIR}/app" "${S}/spec" || die
|
||||
|
||||
# Unpack app.asar
|
||||
if [ -e "${BIN_S}/$(get_atom_rpmdir)/resources/app.asar" ]; then
|
||||
easar extract "${BIN_S}/$(get_atom_rpmdir)/resources/app.asar" \
|
||||
"${BUILD_DIR}/app"
|
||||
fi
|
||||
|
||||
cd "${BUILD_DIR}/app" || die
|
||||
|
||||
eapply "${FILESDIR}/atom-python.patch"
|
||||
eapply "${FILESDIR}/apm-python.patch"
|
||||
eapply "${FILESDIR}/atom-unbundle-electron-r1.patch"
|
||||
eapply "${FILESDIR}/atom-apm-path-r2.patch"
|
||||
eapply "${FILESDIR}/atom-license-path-r1.patch"
|
||||
eapply "${FILESDIR}/atom-fix-app-restart-r1.patch"
|
||||
eapply "${FILESDIR}/atom-marker-layer-r1.patch"
|
||||
|
||||
sed -i -e "s|{{NPM_CONFIG_NODEDIR}}|$(get_electron_nodedir)|g" \
|
||||
./atom.sh \
|
||||
|| die
|
||||
|
||||
sed -i -e "s|{{ATOM_PATH}}|$(get_electron_dir)/electron|g" \
|
||||
./atom.sh \
|
||||
|| die
|
||||
|
||||
sed -i -e "s|{{ATOM_RESOURCE_PATH}}|${EROOT%/}${install_dir}/app.asar|g" \
|
||||
./atom.sh \
|
||||
|| die
|
||||
|
||||
sed -i -e "s|{{ATOM_PREFIX}}|${EROOT%/}|g" \
|
||||
./atom.sh \
|
||||
|| die
|
||||
|
||||
sed -i -e "s|^#!/bin/bash|#!${EROOT%/}/bin/bash|g" \
|
||||
./atom.sh \
|
||||
|| die
|
||||
|
||||
local env="export NPM_CONFIG_NODEDIR=$(get_electron_nodedir)\n\
|
||||
export ELECTRON_NO_ASAR=1"
|
||||
sed -i -e \
|
||||
"s|\"\$binDir/\$nodeBin\"|${env}\nexec $(get_electron_dir)/node|g" \
|
||||
apm/bin/apm || die
|
||||
|
||||
sed -i -e \
|
||||
"s|^\([[:space:]]*\)node[[:space:]]\+|\1\"$(get_electron_dir)/node\" |g" \
|
||||
apm/node_modules/npm/bin/node-gyp-bin/node-gyp || die
|
||||
|
||||
sed -i -e \
|
||||
"s|atomCommand = 'atom';|atomCommand = '${EROOT%/}/usr/bin/atom${suffix}'|g" \
|
||||
apm/lib/test.js || die
|
||||
|
||||
rm apm/bin/node || die
|
||||
|
||||
sed -i -e "s|/$(get_atom_rpmdir)/atom|${EROOT%/}/usr/bin/atom${suffix}|g" \
|
||||
"${BIN_S}/usr/share/applications/$(get_atom_appname).desktop" || die
|
||||
|
||||
for binmod in ${BINMODS[@]}; do
|
||||
_s="${WORKDIR}/$(package_dir ${binmod})"
|
||||
cd "${_s}" || die
|
||||
if _have_patches_for "${binmod}"; then
|
||||
for patch in "${FILESDIR}"/${binmod}-*.patch; do
|
||||
eapply "${patch}"
|
||||
done
|
||||
fi
|
||||
done
|
||||
|
||||
cd "${BUILD_DIR}/app" || die
|
||||
|
||||
# Unbundle bundled libs from modules
|
||||
|
||||
_s="${WORKDIR}/$(package_dir git-utils)"
|
||||
${EPYTHON} "${FILESDIR}/gyp-unbundle.py" \
|
||||
--inplace --unbundle "git;libgit2;git2" \
|
||||
"${_s}/binding.gyp" || die
|
||||
|
||||
_s="${WORKDIR}/$(package_dir oniguruma)"
|
||||
${EPYTHON} "${FILESDIR}/gyp-unbundle.py" \
|
||||
--inplace --unbundle "onig_scanner;oniguruma;onig" \
|
||||
"${_s}/binding.gyp" || die
|
||||
|
||||
_s="${WORKDIR}/$(package_dir spellchecker)"
|
||||
${EPYTHON} "${FILESDIR}/gyp-unbundle.py" \
|
||||
--inplace --unbundle "spellchecker;hunspell;hunspell" \
|
||||
"${_s}/binding.gyp" || die
|
||||
|
||||
_s="${WORKDIR}/$(package_dir superstring)"
|
||||
${EPYTHON} "${FILESDIR}/gyp-unbundle.py" \
|
||||
--inplace --unbundle \
|
||||
"superstring_core;./vendor/pcre/pcre.gyp:pcre;pcre2-16; \
|
||||
-DPCRE2_CODE_UNIT_WIDTH=16" \
|
||||
"${_s}/binding.gyp" || die
|
||||
|
||||
for binmod in ${BINMODS[@]}; do
|
||||
_s="${WORKDIR}/$(package_dir ${binmod})"
|
||||
mkdir -p "${_s}/node_modules" || die
|
||||
ln -s "${nan_s}" "${_s}/node_modules/nan" || die
|
||||
done
|
||||
|
||||
sed -i -e "s|{{ATOM_PREFIX}}|${EROOT%/}|g" \
|
||||
"${BUILD_DIR}/app/src/config-schema.js" || die
|
||||
|
||||
sed -i -e "s|{{ATOM_SUFFIX}}|${suffix}|g" \
|
||||
"${BUILD_DIR}/app/src/config-schema.js" || die
|
||||
|
||||
eapply_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local binmod
|
||||
|
||||
for binmod in ${BINMODS[@]}; do
|
||||
einfo "Configuring ${binmod}..."
|
||||
cd "${WORKDIR}/$(package_dir ${binmod})" || die
|
||||
enodegyp_atom configure
|
||||
done
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local binmod
|
||||
local x
|
||||
local ctags_d="node_modules/symbols-view/vendor"
|
||||
local jobs=$(makeopts_jobs)
|
||||
local gypopts
|
||||
|
||||
# Transpile any yet untranspiled files.
|
||||
ecoffeescript "${BUILD_DIR}/app/spec/*.coffee"
|
||||
|
||||
gypopts="--verbose"
|
||||
|
||||
if [[ ${MAKEOPTS} == *-j* && ${jobs} != 999 ]]; then
|
||||
gypopts+=" --jobs ${jobs}"
|
||||
fi
|
||||
|
||||
mkdir -p "${BUILD_DIR}/modules/" || die
|
||||
|
||||
for binmod in ${BINMODS[@]}; do
|
||||
einfo "Building ${binmod}..."
|
||||
cd "${WORKDIR}/$(package_dir ${binmod})" || die
|
||||
enodegyp_atom ${gypopts} build
|
||||
x=${binmod##node-}
|
||||
mkdir -p "${BUILD_DIR}/modules/${x}" || die
|
||||
cp build/Release/*.node "${BUILD_DIR}/modules/${x}" || die
|
||||
done
|
||||
|
||||
# Put compiled binary modules in place
|
||||
_fix_binmods "${BUILD_DIR}/app" "apm"
|
||||
_fix_binmods "${BUILD_DIR}/app" "node_modules"
|
||||
|
||||
# Remove non-Linux vendored ctags binaries
|
||||
rm "${BUILD_DIR}/app/${ctags_d}/ctags-darwin" \
|
||||
"${BUILD_DIR}/app/${ctags_d}/ctags-win32.exe" || die
|
||||
|
||||
# Re-pack app.asar
|
||||
# Keep unpack rules in sync with build/tasks/generate-asar-task.coffee
|
||||
cd "${BUILD_DIR}" || die
|
||||
x="--unpack={*.node,ctags-config,ctags-linux,**/spec/fixtures/**,**/node_modules/spellchecker/**,**/resources/atom.png}"
|
||||
xd="--unpack-dir=apm"
|
||||
easar pack "${x}" "${xd}" "app" "app.asar"
|
||||
|
||||
rm -r "${BUILD_DIR}/app.asar.unpacked/apm" || die
|
||||
|
||||
# Replace vendored ctags with a symlink to system ctags
|
||||
rm "${BUILD_DIR}/app.asar.unpacked/${ctags_d}/ctags-linux" || die
|
||||
ln -s "${EROOT%/}/usr/bin/ctags" \
|
||||
"${BUILD_DIR}/app.asar.unpacked/${ctags_d}/ctags-linux" || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local electron="$(get_electron_dir)/electron"
|
||||
local app="${BUILD_DIR}/app.asar"
|
||||
|
||||
virtx "${electron}" --app="${app}" --test "${app}/spec"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local install_dir="$(get_install_dir)"
|
||||
local suffix="$(get_install_suffix)"
|
||||
|
||||
insinto "${install_dir}"
|
||||
|
||||
doins "${BUILD_DIR}/app.asar"
|
||||
doins -r "${BUILD_DIR}/app.asar.unpacked"
|
||||
|
||||
insinto "${install_dir}/app"
|
||||
doins -r "${BUILD_DIR}/app/apm"
|
||||
|
||||
insinto "/usr/share/applications/"
|
||||
newins "${BIN_S}/usr/share/applications/$(get_atom_appname).desktop" \
|
||||
"atom${suffix}.desktop"
|
||||
|
||||
insinto "/usr/share/icons/"
|
||||
doins -r "${BIN_S}/usr/share/icons/hicolor"
|
||||
|
||||
exeinto "${install_dir}"
|
||||
newexe "${BUILD_DIR}/app/atom.sh" atom
|
||||
insinto "/usr/share/licenses/${PN}${suffix}"
|
||||
doins "${BIN_S}/$(get_atom_rpmdir)/resources/LICENSE.md"
|
||||
dosym "${install_dir}/atom" "/usr/bin/atom${suffix}"
|
||||
dosym "${install_dir}/app/apm/bin/apm" "/usr/bin/apm${suffix}"
|
||||
|
||||
_fix_executables "${install_dir}/app/apm/bin"
|
||||
_fix_executables "${install_dir}/app/apm/node_modules/.bin"
|
||||
_fix_executables "${install_dir}/app/apm/node_modules/npm/bin"
|
||||
_fix_executables "${install_dir}/app/apm/node_modules/npm/bin/node-gyp-bin"
|
||||
_fix_executables "${install_dir}/app/apm/node_modules/node-gyp/bin"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_desktop_database_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_desktop_database_update
|
||||
}
|
||||
|
||||
# Helpers
|
||||
# -------
|
||||
|
||||
# Return the installation suffix appropriate for the slot.
|
||||
get_install_suffix() {
|
||||
local c=(${SLOT//\// })
|
||||
local slot=${c[0]}
|
||||
local suffix
|
||||
|
||||
if [[ "${slot}" == "0" ]]; then
|
||||
suffix=""
|
||||
else
|
||||
suffix="-${slot}"
|
||||
fi
|
||||
|
||||
echo -n "${suffix}"
|
||||
}
|
||||
|
||||
# Return the upstream app name appropriate for $PV.
|
||||
get_atom_appname() {
|
||||
if [[ "${PV}" == *beta* ]]; then
|
||||
echo -n "atom-beta"
|
||||
else
|
||||
echo -n "atom"
|
||||
fi
|
||||
}
|
||||
|
||||
# Return the app installation path inside the upstream archive.
|
||||
get_atom_rpmdir() {
|
||||
echo -n "usr/share/$(get_atom_appname)"
|
||||
}
|
||||
|
||||
# Return the installation target directory.
|
||||
get_install_dir() {
|
||||
echo -n "/usr/$(get_libdir)/atom$(get_install_suffix)"
|
||||
}
|
||||
|
||||
# Return the Electron installation directory.
|
||||
get_electron_dir() {
|
||||
echo -n "${EROOT%/}/usr/$(get_libdir)/electron-${ELECTRON_SLOT}"
|
||||
}
|
||||
|
||||
# Return the directory containing appropriate Node headers
|
||||
# for the required version of Electron.
|
||||
get_electron_nodedir() {
|
||||
echo -n "${EROOT%/}/usr/include/electron-${ELECTRON_SLOT}/node/"
|
||||
}
|
||||
|
||||
# Run JavaScript using Electron's version of Node.
|
||||
enode_electron() {
|
||||
"$(get_electron_dir)"/node $@
|
||||
}
|
||||
|
||||
# Run node-gyp using Electron's version of Node.
|
||||
enodegyp_atom() {
|
||||
local apmpath="$(get_atom_rpmdir)/resources/app/apm"
|
||||
local nodegyp="${BIN_S}/${apmpath}/node_modules/node-gyp/bin/node-gyp.js"
|
||||
|
||||
PATH="$(get_electron_dir):${PATH}" \
|
||||
enode_electron "${nodegyp}" \
|
||||
--nodedir="$(get_electron_nodedir)" $@ || die
|
||||
}
|
||||
|
||||
# Coffee Script wrapper.
|
||||
ecoffeescript() {
|
||||
local cscript="${FILESDIR}/transpile-coffee-script.js"
|
||||
|
||||
# Disable shell glob expansion, as we want the coffee script
|
||||
# transpiler to do that instead.
|
||||
set -f
|
||||
echo "ecoffeescript" $@
|
||||
ATOM_HOME="${T}/.atom" ATOM_SRC_ROOT="${BUILD_DIR}/app" \
|
||||
NODE_PATH="${BUILD_DIR}/app/node_modules" \
|
||||
enode_electron "${cscript}" $@ || die
|
||||
set +f
|
||||
}
|
||||
|
||||
# asar wrapper.
|
||||
easar() {
|
||||
local asar="${WORKDIR}/$(package_dir asar)/node_modules/asar/bin/asar"
|
||||
echo "asar" $@
|
||||
enode_electron "${asar}" $@ || die
|
||||
}
|
||||
|
||||
# Return a $WORKDIR directory for a given package name.
|
||||
package_dir() {
|
||||
local binmod="${1//-/_}"
|
||||
local binmod_v="${binmod^^}_V"
|
||||
echo -n ${1}-${!binmod_v}
|
||||
}
|
||||
|
||||
# Check if there are patches for a given package.
|
||||
_have_patches_for() {
|
||||
local _patches="${1}-*.patch" _find
|
||||
_find=$(find "${FILESDIR}" -maxdepth 1 -name "${_patches}" -print -quit)
|
||||
test -n "$_find"
|
||||
}
|
||||
|
||||
# Tarballs on registry.npmjs.org are wildly inconsistent,
|
||||
# and violate the convention of having ${P} as the top directory name.
|
||||
# This helper detects and fixes that.
|
||||
_unpack() {
|
||||
local a="${1}"
|
||||
local b="${a%.tar.gz}"
|
||||
local p="${b#atomdep-}"
|
||||
local dir="$(tar -tzf "${DISTDIR}/${a}" | head -1 | cut -f1 -d'/')"
|
||||
|
||||
unpack "${a}"
|
||||
|
||||
if [[ "${dir}" != "${p}" ]]; then
|
||||
# Set the correct name for the unpacked directory.
|
||||
mv "${WORKDIR}/${dir}" "${WORKDIR}/${p}" || die
|
||||
fi
|
||||
}
|
||||
|
||||
# Check if the binary node module is actually a valid dependency.
|
||||
# Sometimes the upstream removes a dependency from package.json but
|
||||
# forgets to remove the module from node_modules.
|
||||
_is_valid_binmod() {
|
||||
local mod
|
||||
|
||||
for mod in "${BINMODS[@]}"; do
|
||||
if [[ "${mod}" == "${1}" ]]; then
|
||||
return 0
|
||||
fi
|
||||
done
|
||||
|
||||
return 1
|
||||
}
|
||||
|
||||
# Replace binary node modules with the newly compiled versions thereof.
|
||||
_fix_binmods() {
|
||||
local _dir="${2}"
|
||||
local _prefix="${1}"
|
||||
local path
|
||||
local relpath
|
||||
local modpath
|
||||
local mod
|
||||
local f
|
||||
local d
|
||||
local cruft
|
||||
|
||||
(find "${_prefix}/${_dir}" -name '*.node' -print || die) \
|
||||
| while IFS= read -r path; do
|
||||
f=$(basename "${path}")
|
||||
d=$(dirname "${path}")
|
||||
relpath=${path#${_prefix}}
|
||||
relpath=${relpath##/}
|
||||
relpath=${relpath#W${_dir}}
|
||||
modpath=$(dirname ${relpath})
|
||||
modpath=${modpath%build/Release}
|
||||
mod=$(basename ${modpath})
|
||||
|
||||
_is_valid_binmod "${mod}" || continue
|
||||
|
||||
# must copy here as symlinks will cause the module loading to fail
|
||||
cp -f "${BUILD_DIR}/modules/${mod}/${f}" "${path}" || die
|
||||
cruft=$(find "${d}" -name '*.a' -print)
|
||||
if [[ -n "${cruft}" ]]; then
|
||||
rm ${cruft} || die
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
# Fix script permissions and shebangs to point to the correct version
|
||||
# of Node.
|
||||
_fix_executables() {
|
||||
local _dir="${1}"
|
||||
local _node_sb="#!$(get_electron_dir)"/node
|
||||
|
||||
(find -L "${ED}/${_dir}" -maxdepth 1 -mindepth 1 -type f -print || die) \
|
||||
| while IFS= read -r f; do
|
||||
IFS= read -r shebang < "${f}"
|
||||
|
||||
if [[ ${shebang} == '#!'* ]]; then
|
||||
fperms +x "${f#${ED}}"
|
||||
if [[ "${shebang}" == "#!/usr/bin/env node" || "${shebang}" == "#!/usr/bin/node" ]]; then
|
||||
einfo "Fixing node shebang in ${f#${ED}}"
|
||||
sed --follow-symlinks -i \
|
||||
-e "1s:${shebang}$:${_node_sb}:" "${f}" || die
|
||||
fi
|
||||
fi
|
||||
done || die
|
||||
}
|
@ -1,535 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# NOTE: this ebuild has been generated by atom-ebuild-gen.py from the
|
||||
# atom overlay. If you would like to make changes, please consider
|
||||
# modifying the ebuild template and submitting a PR to
|
||||
# https://github.com/elprans/atom-overlay.
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
inherit python-single-r1 multiprocessing rpm virtualx xdg-utils
|
||||
|
||||
DESCRIPTION="A hackable text editor for the 21st Century"
|
||||
HOMEPAGE="https://atom.io"
|
||||
MY_PV="${PV//_/-}"
|
||||
|
||||
ELECTRON_V=1.6.15
|
||||
ELECTRON_SLOT=1.6
|
||||
|
||||
ASAR_V=0.13.0
|
||||
# All binary packages depend on this
|
||||
NAN_V=2.6.2
|
||||
|
||||
ATOM__NSFW_V=1.0.18
|
||||
CACHED_RUN_IN_THIS_CONTEXT_V=0.4.1
|
||||
CTAGS_V=3.0.0
|
||||
FS_ADMIN_V=0.1.6
|
||||
GIT_UTILS_V=5.1.0
|
||||
KEYBOARD_LAYOUT_V=2.0.13
|
||||
KEYTAR_V=4.1.0
|
||||
NSFW_V=1.0.16
|
||||
NSLOG_V=3.0.0
|
||||
ONIGURUMA_V=6.2.1
|
||||
PATHWATCHER_V=8.0.1
|
||||
SCROLLBAR_STYLE_V=3.2.0
|
||||
SPELLCHECKER_V=3.4.4
|
||||
SUPERSTRING_V=2.2.16
|
||||
|
||||
# The x86_64 arch below is irrelevant, as we will rebuild all binary packages.
|
||||
SRC_URI="
|
||||
https://github.com/${PN}/${PN}/releases/download/v${MY_PV}/atom.x86_64.rpm -> atom-bin-${MY_PV}.rpm
|
||||
https://github.com/${PN}/${PN}/archive/v${MY_PV}.tar.gz -> atom-${MY_PV}.tar.gz
|
||||
https://github.com/elprans/asar/releases/download/v${ASAR_V}-gentoo/asar-build.tar.gz -> asar-${ASAR_V}.tar.gz
|
||||
https://github.com/nodejs/nan/archive/v${NAN_V}.tar.gz -> nodejs-nan-${NAN_V}.tar.gz
|
||||
https://registry.npmjs.org/@atom/nsfw/-/nsfw-1.0.18.tgz -> atomdep-atom--nsfw-1.0.18.tar.gz
|
||||
https://registry.npmjs.org/cached-run-in-this-context/-/cached-run-in-this-context-0.4.1.tgz -> atomdep-cached-run-in-this-context-0.4.1.tar.gz
|
||||
https://registry.npmjs.org/ctags/-/ctags-3.0.0.tgz -> atomdep-ctags-3.0.0.tar.gz
|
||||
https://registry.npmjs.org/fs-admin/-/fs-admin-0.1.6.tgz -> atomdep-fs-admin-0.1.6.tar.gz
|
||||
https://registry.npmjs.org/git-utils/-/git-utils-5.1.0.tgz -> atomdep-git-utils-5.1.0.tar.gz
|
||||
https://registry.npmjs.org/keyboard-layout/-/keyboard-layout-2.0.13.tgz -> atomdep-keyboard-layout-2.0.13.tar.gz
|
||||
https://registry.npmjs.org/keytar/-/keytar-4.1.0.tgz -> atomdep-keytar-4.1.0.tar.gz
|
||||
https://registry.npmjs.org/nsfw/-/nsfw-1.0.16.tgz -> atomdep-nsfw-1.0.16.tar.gz
|
||||
https://registry.npmjs.org/nslog/-/nslog-3.0.0.tgz -> atomdep-nslog-3.0.0.tar.gz
|
||||
https://registry.npmjs.org/oniguruma/-/oniguruma-6.2.1.tgz -> atomdep-oniguruma-6.2.1.tar.gz
|
||||
https://registry.npmjs.org/pathwatcher/-/pathwatcher-8.0.1.tgz -> atomdep-pathwatcher-8.0.1.tar.gz
|
||||
https://registry.npmjs.org/scrollbar-style/-/scrollbar-style-3.2.0.tgz -> atomdep-scrollbar-style-3.2.0.tar.gz
|
||||
https://registry.npmjs.org/spellchecker/-/spellchecker-3.4.4.tgz -> atomdep-spellchecker-3.4.4.tar.gz
|
||||
https://registry.npmjs.org/superstring/-/superstring-2.2.16.tgz -> atomdep-superstring-2.2.16.tar.gz
|
||||
"
|
||||
|
||||
BINMODS=(
|
||||
atom--nsfw
|
||||
cached-run-in-this-context
|
||||
ctags
|
||||
fs-admin
|
||||
git-utils
|
||||
keyboard-layout
|
||||
keytar
|
||||
nsfw
|
||||
nslog
|
||||
oniguruma
|
||||
pathwatcher
|
||||
scrollbar-style
|
||||
spellchecker
|
||||
superstring
|
||||
)
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="beta"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
DEPEND="
|
||||
${PYTHON_DEPS}
|
||||
>=app-text/hunspell-1.3.3:=
|
||||
>=dev-libs/libgit2-0.23:=[ssh]
|
||||
>=dev-libs/libpcre2-10.22:=[jit,pcre16]
|
||||
>=gnome-base/libgnome-keyring-3.12:=
|
||||
>=dev-libs/oniguruma-6.6.0:=
|
||||
>=dev-util/ctags-5.8
|
||||
>=dev-util/electron-${ELECTRON_V}:${ELECTRON_SLOT}
|
||||
x11-libs/libxkbfile"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
!sys-apps/apmd
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||
BIN_S="${WORKDIR}/${PN}-bin-${MY_PV}"
|
||||
BUILD_DIR="${S}/out"
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
local a
|
||||
|
||||
for a in ${A} ; do
|
||||
case ${a} in
|
||||
*.rpm) srcrpm_unpack "${a}" ;;
|
||||
*) _unpack "${a}" ;;
|
||||
esac
|
||||
done
|
||||
|
||||
mkdir "${BIN_S}" || die
|
||||
mv "${WORKDIR}/usr" "${BIN_S}" || die
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local install_dir="$(get_install_dir)"
|
||||
local suffix="$(get_install_suffix)"
|
||||
local nan_s="${WORKDIR}/nodejs-nan-${NAN_V}"
|
||||
local patch
|
||||
local binmod
|
||||
local _s
|
||||
|
||||
mkdir "${BUILD_DIR}" || die
|
||||
cp -a "${BIN_S}/$(get_atom_rpmdir)/resources/app" \
|
||||
"${BUILD_DIR}/app" || die
|
||||
|
||||
# Add source files omitted from the upstream binary distribution,
|
||||
# and which we want to include in ours.
|
||||
cp -a -t "${BUILD_DIR}/app" "${S}/spec" || die
|
||||
|
||||
# Unpack app.asar
|
||||
if [ -e "${BIN_S}/$(get_atom_rpmdir)/resources/app.asar" ]; then
|
||||
easar extract "${BIN_S}/$(get_atom_rpmdir)/resources/app.asar" \
|
||||
"${BUILD_DIR}/app"
|
||||
fi
|
||||
|
||||
cd "${BUILD_DIR}/app" || die
|
||||
|
||||
eapply "${FILESDIR}/atom-python.patch"
|
||||
eapply "${FILESDIR}/apm-python.patch"
|
||||
eapply "${FILESDIR}/atom-unbundle-electron-r1.patch"
|
||||
eapply "${FILESDIR}/atom-apm-path-r2.patch"
|
||||
eapply "${FILESDIR}/atom-license-path-r1.patch"
|
||||
eapply "${FILESDIR}/atom-fix-app-restart-r1.patch"
|
||||
eapply "${FILESDIR}/atom-marker-layer-r1.patch"
|
||||
|
||||
sed -i -e "s|{{NPM_CONFIG_NODEDIR}}|$(get_electron_nodedir)|g" \
|
||||
./atom.sh \
|
||||
|| die
|
||||
|
||||
sed -i -e "s|{{ATOM_PATH}}|$(get_electron_dir)/electron|g" \
|
||||
./atom.sh \
|
||||
|| die
|
||||
|
||||
sed -i -e "s|{{ATOM_RESOURCE_PATH}}|${EROOT%/}${install_dir}/app.asar|g" \
|
||||
./atom.sh \
|
||||
|| die
|
||||
|
||||
sed -i -e "s|{{ATOM_PREFIX}}|${EROOT%/}|g" \
|
||||
./atom.sh \
|
||||
|| die
|
||||
|
||||
sed -i -e "s|^#!/bin/bash|#!${EROOT%/}/bin/bash|g" \
|
||||
./atom.sh \
|
||||
|| die
|
||||
|
||||
local env="export NPM_CONFIG_NODEDIR=$(get_electron_nodedir)\n\
|
||||
export ELECTRON_NO_ASAR=1"
|
||||
sed -i -e \
|
||||
"s|\"\$binDir/\$nodeBin\"|${env}\nexec $(get_electron_dir)/node|g" \
|
||||
apm/bin/apm || die
|
||||
|
||||
sed -i -e \
|
||||
"s|^\([[:space:]]*\)node[[:space:]]\+|\1\"$(get_electron_dir)/node\" |g" \
|
||||
apm/node_modules/npm/bin/node-gyp-bin/node-gyp || die
|
||||
|
||||
sed -i -e \
|
||||
"s|atomCommand = 'atom';|atomCommand = '${EROOT%/}/usr/bin/atom${suffix}'|g" \
|
||||
apm/lib/test.js || die
|
||||
|
||||
rm apm/bin/node || die
|
||||
|
||||
sed -i -e "s|/$(get_atom_rpmdir)/atom|${EROOT%/}/usr/bin/atom${suffix}|g" \
|
||||
"${BIN_S}/usr/share/applications/$(get_atom_appname).desktop" || die
|
||||
|
||||
for binmod in ${BINMODS[@]}; do
|
||||
_s="${WORKDIR}/$(package_dir ${binmod})"
|
||||
cd "${_s}" || die
|
||||
if _have_patches_for "${binmod}"; then
|
||||
for patch in "${FILESDIR}"/${binmod}-*.patch; do
|
||||
eapply "${patch}"
|
||||
done
|
||||
fi
|
||||
done
|
||||
|
||||
cd "${BUILD_DIR}/app" || die
|
||||
|
||||
# Unbundle bundled libs from modules
|
||||
|
||||
_s="${WORKDIR}/$(package_dir git-utils)"
|
||||
${EPYTHON} "${FILESDIR}/gyp-unbundle.py" \
|
||||
--inplace --unbundle "git;libgit2;git2" \
|
||||
"${_s}/binding.gyp" || die
|
||||
|
||||
_s="${WORKDIR}/$(package_dir oniguruma)"
|
||||
${EPYTHON} "${FILESDIR}/gyp-unbundle.py" \
|
||||
--inplace --unbundle "onig_scanner;oniguruma;onig" \
|
||||
"${_s}/binding.gyp" || die
|
||||
|
||||
_s="${WORKDIR}/$(package_dir spellchecker)"
|
||||
${EPYTHON} "${FILESDIR}/gyp-unbundle.py" \
|
||||
--inplace --unbundle "spellchecker;hunspell;hunspell" \
|
||||
"${_s}/binding.gyp" || die
|
||||
|
||||
_s="${WORKDIR}/$(package_dir superstring)"
|
||||
${EPYTHON} "${FILESDIR}/gyp-unbundle.py" \
|
||||
--inplace --unbundle \
|
||||
"superstring_core;./vendor/pcre/pcre.gyp:pcre;pcre2-16; \
|
||||
-DPCRE2_CODE_UNIT_WIDTH=16" \
|
||||
"${_s}/binding.gyp" || die
|
||||
|
||||
for binmod in ${BINMODS[@]}; do
|
||||
_s="${WORKDIR}/$(package_dir ${binmod})"
|
||||
mkdir -p "${_s}/node_modules" || die
|
||||
ln -s "${nan_s}" "${_s}/node_modules/nan" || die
|
||||
done
|
||||
|
||||
sed -i -e "s|{{ATOM_PREFIX}}|${EROOT%/}|g" \
|
||||
"${BUILD_DIR}/app/src/config-schema.js" || die
|
||||
|
||||
sed -i -e "s|{{ATOM_SUFFIX}}|${suffix}|g" \
|
||||
"${BUILD_DIR}/app/src/config-schema.js" || die
|
||||
|
||||
eapply_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local binmod
|
||||
|
||||
for binmod in ${BINMODS[@]}; do
|
||||
einfo "Configuring ${binmod}..."
|
||||
cd "${WORKDIR}/$(package_dir ${binmod})" || die
|
||||
enodegyp_atom configure
|
||||
done
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local binmod
|
||||
local x
|
||||
local ctags_d="node_modules/symbols-view/vendor"
|
||||
local jobs=$(makeopts_jobs)
|
||||
local gypopts
|
||||
|
||||
# Transpile any yet untranspiled files.
|
||||
ecoffeescript "${BUILD_DIR}/app/spec/*.coffee"
|
||||
|
||||
gypopts="--verbose"
|
||||
|
||||
if [[ ${MAKEOPTS} == *-j* && ${jobs} != 999 ]]; then
|
||||
gypopts+=" --jobs ${jobs}"
|
||||
fi
|
||||
|
||||
mkdir -p "${BUILD_DIR}/modules/" || die
|
||||
|
||||
for binmod in ${BINMODS[@]}; do
|
||||
einfo "Building ${binmod}..."
|
||||
cd "${WORKDIR}/$(package_dir ${binmod})" || die
|
||||
enodegyp_atom ${gypopts} build
|
||||
x=${binmod##node-}
|
||||
mkdir -p "${BUILD_DIR}/modules/${x}" || die
|
||||
cp build/Release/*.node "${BUILD_DIR}/modules/${x}" || die
|
||||
done
|
||||
|
||||
# Put compiled binary modules in place
|
||||
_fix_binmods "${BUILD_DIR}/app" "apm"
|
||||
_fix_binmods "${BUILD_DIR}/app" "node_modules"
|
||||
|
||||
# Remove non-Linux vendored ctags binaries
|
||||
rm "${BUILD_DIR}/app/${ctags_d}/ctags-darwin" \
|
||||
"${BUILD_DIR}/app/${ctags_d}/ctags-win32.exe" || die
|
||||
|
||||
# Re-pack app.asar
|
||||
# Keep unpack rules in sync with build/tasks/generate-asar-task.coffee
|
||||
cd "${BUILD_DIR}" || die
|
||||
x="--unpack={*.node,ctags-config,ctags-linux,**/spec/fixtures/**,**/node_modules/spellchecker/**,**/resources/atom.png}"
|
||||
xd="--unpack-dir=apm"
|
||||
easar pack "${x}" "${xd}" "app" "app.asar"
|
||||
|
||||
rm -r "${BUILD_DIR}/app.asar.unpacked/apm" || die
|
||||
|
||||
# Replace vendored ctags with a symlink to system ctags
|
||||
rm "${BUILD_DIR}/app.asar.unpacked/${ctags_d}/ctags-linux" || die
|
||||
ln -s "${EROOT%/}/usr/bin/ctags" \
|
||||
"${BUILD_DIR}/app.asar.unpacked/${ctags_d}/ctags-linux" || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local electron="$(get_electron_dir)/electron"
|
||||
local app="${BUILD_DIR}/app.asar"
|
||||
|
||||
virtx "${electron}" --app="${app}" --test "${app}/spec"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local install_dir="$(get_install_dir)"
|
||||
local suffix="$(get_install_suffix)"
|
||||
|
||||
insinto "${install_dir}"
|
||||
|
||||
doins "${BUILD_DIR}/app.asar"
|
||||
doins -r "${BUILD_DIR}/app.asar.unpacked"
|
||||
|
||||
insinto "${install_dir}/app"
|
||||
doins -r "${BUILD_DIR}/app/apm"
|
||||
|
||||
insinto "/usr/share/applications/"
|
||||
newins "${BIN_S}/usr/share/applications/$(get_atom_appname).desktop" \
|
||||
"atom${suffix}.desktop"
|
||||
|
||||
insinto "/usr/share/icons/"
|
||||
doins -r "${BIN_S}/usr/share/icons/hicolor"
|
||||
|
||||
exeinto "${install_dir}"
|
||||
newexe "${BUILD_DIR}/app/atom.sh" atom
|
||||
insinto "/usr/share/licenses/${PN}${suffix}"
|
||||
doins "${BIN_S}/$(get_atom_rpmdir)/resources/LICENSE.md"
|
||||
dosym "${install_dir}/atom" "/usr/bin/atom${suffix}"
|
||||
dosym "${install_dir}/app/apm/bin/apm" "/usr/bin/apm${suffix}"
|
||||
|
||||
_fix_executables "${install_dir}/app/apm/bin"
|
||||
_fix_executables "${install_dir}/app/apm/node_modules/.bin"
|
||||
_fix_executables "${install_dir}/app/apm/node_modules/npm/bin"
|
||||
_fix_executables "${install_dir}/app/apm/node_modules/npm/bin/node-gyp-bin"
|
||||
_fix_executables "${install_dir}/app/apm/node_modules/node-gyp/bin"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_desktop_database_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_desktop_database_update
|
||||
}
|
||||
|
||||
# Helpers
|
||||
# -------
|
||||
|
||||
# Return the installation suffix appropriate for the slot.
|
||||
get_install_suffix() {
|
||||
local c=(${SLOT//\// })
|
||||
local slot=${c[0]}
|
||||
local suffix
|
||||
|
||||
if [[ "${slot}" == "0" ]]; then
|
||||
suffix=""
|
||||
else
|
||||
suffix="-${slot}"
|
||||
fi
|
||||
|
||||
echo -n "${suffix}"
|
||||
}
|
||||
|
||||
# Return the upstream app name appropriate for $PV.
|
||||
get_atom_appname() {
|
||||
if [[ "${PV}" == *beta* ]]; then
|
||||
echo -n "atom-beta"
|
||||
else
|
||||
echo -n "atom"
|
||||
fi
|
||||
}
|
||||
|
||||
# Return the app installation path inside the upstream archive.
|
||||
get_atom_rpmdir() {
|
||||
echo -n "usr/share/$(get_atom_appname)"
|
||||
}
|
||||
|
||||
# Return the installation target directory.
|
||||
get_install_dir() {
|
||||
echo -n "/usr/$(get_libdir)/atom$(get_install_suffix)"
|
||||
}
|
||||
|
||||
# Return the Electron installation directory.
|
||||
get_electron_dir() {
|
||||
echo -n "${EROOT%/}/usr/$(get_libdir)/electron-${ELECTRON_SLOT}"
|
||||
}
|
||||
|
||||
# Return the directory containing appropriate Node headers
|
||||
# for the required version of Electron.
|
||||
get_electron_nodedir() {
|
||||
echo -n "${EROOT%/}/usr/include/electron-${ELECTRON_SLOT}/node/"
|
||||
}
|
||||
|
||||
# Run JavaScript using Electron's version of Node.
|
||||
enode_electron() {
|
||||
"$(get_electron_dir)"/node $@
|
||||
}
|
||||
|
||||
# Run node-gyp using Electron's version of Node.
|
||||
enodegyp_atom() {
|
||||
local apmpath="$(get_atom_rpmdir)/resources/app/apm"
|
||||
local nodegyp="${BIN_S}/${apmpath}/node_modules/node-gyp/bin/node-gyp.js"
|
||||
|
||||
PATH="$(get_electron_dir):${PATH}" \
|
||||
enode_electron "${nodegyp}" \
|
||||
--nodedir="$(get_electron_nodedir)" $@ || die
|
||||
}
|
||||
|
||||
# Coffee Script wrapper.
|
||||
ecoffeescript() {
|
||||
local cscript="${FILESDIR}/transpile-coffee-script.js"
|
||||
|
||||
# Disable shell glob expansion, as we want the coffee script
|
||||
# transpiler to do that instead.
|
||||
set -f
|
||||
echo "ecoffeescript" $@
|
||||
ATOM_HOME="${T}/.atom" ATOM_SRC_ROOT="${BUILD_DIR}/app" \
|
||||
NODE_PATH="${BUILD_DIR}/app/node_modules" \
|
||||
enode_electron "${cscript}" $@ || die
|
||||
set +f
|
||||
}
|
||||
|
||||
# asar wrapper.
|
||||
easar() {
|
||||
local asar="${WORKDIR}/$(package_dir asar)/node_modules/asar/bin/asar"
|
||||
echo "asar" $@
|
||||
enode_electron "${asar}" $@ || die
|
||||
}
|
||||
|
||||
# Return a $WORKDIR directory for a given package name.
|
||||
package_dir() {
|
||||
local binmod="${1//-/_}"
|
||||
local binmod_v="${binmod^^}_V"
|
||||
echo -n ${1}-${!binmod_v}
|
||||
}
|
||||
|
||||
# Check if there are patches for a given package.
|
||||
_have_patches_for() {
|
||||
local _patches="${1}-*.patch" _find
|
||||
_find=$(find "${FILESDIR}" -maxdepth 1 -name "${_patches}" -print -quit)
|
||||
test -n "$_find"
|
||||
}
|
||||
|
||||
# Tarballs on registry.npmjs.org are wildly inconsistent,
|
||||
# and violate the convention of having ${P} as the top directory name.
|
||||
# This helper detects and fixes that.
|
||||
_unpack() {
|
||||
local a="${1}"
|
||||
local b="${a%.tar.gz}"
|
||||
local p="${b#atomdep-}"
|
||||
local dir="$(tar -tzf "${DISTDIR}/${a}" | head -1 | cut -f1 -d'/')"
|
||||
|
||||
unpack "${a}"
|
||||
|
||||
if [[ "${dir}" != "${p}" ]]; then
|
||||
# Set the correct name for the unpacked directory.
|
||||
mv "${WORKDIR}/${dir}" "${WORKDIR}/${p}" || die
|
||||
fi
|
||||
}
|
||||
|
||||
# Check if the binary node module is actually a valid dependency.
|
||||
# Sometimes the upstream removes a dependency from package.json but
|
||||
# forgets to remove the module from node_modules.
|
||||
_is_valid_binmod() {
|
||||
local mod
|
||||
|
||||
for mod in "${BINMODS[@]}"; do
|
||||
if [[ "${mod}" == "${1}" ]]; then
|
||||
return 0
|
||||
fi
|
||||
done
|
||||
|
||||
return 1
|
||||
}
|
||||
|
||||
# Replace binary node modules with the newly compiled versions thereof.
|
||||
_fix_binmods() {
|
||||
local _dir="${2}"
|
||||
local _prefix="${1}"
|
||||
local path
|
||||
local relpath
|
||||
local modpath
|
||||
local mod
|
||||
local f
|
||||
local d
|
||||
local cruft
|
||||
|
||||
(find "${_prefix}/${_dir}" -name '*.node' -print || die) \
|
||||
| while IFS= read -r path; do
|
||||
f=$(basename "${path}")
|
||||
d=$(dirname "${path}")
|
||||
relpath=${path#${_prefix}}
|
||||
relpath=${relpath##/}
|
||||
relpath=${relpath#W${_dir}}
|
||||
modpath=$(dirname ${relpath})
|
||||
modpath=${modpath%build/Release}
|
||||
mod=$(basename ${modpath})
|
||||
|
||||
_is_valid_binmod "${mod}" || continue
|
||||
|
||||
# must copy here as symlinks will cause the module loading to fail
|
||||
cp -f "${BUILD_DIR}/modules/${mod}/${f}" "${path}" || die
|
||||
cruft=$(find "${d}" -name '*.a' -print)
|
||||
if [[ -n "${cruft}" ]]; then
|
||||
rm ${cruft} || die
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
# Fix script permissions and shebangs to point to the correct version
|
||||
# of Node.
|
||||
_fix_executables() {
|
||||
local _dir="${1}"
|
||||
local _node_sb="#!$(get_electron_dir)"/node
|
||||
|
||||
(find -L "${ED}/${_dir}" -maxdepth 1 -mindepth 1 -type f -print || die) \
|
||||
| while IFS= read -r f; do
|
||||
IFS= read -r shebang < "${f}"
|
||||
|
||||
if [[ ${shebang} == '#!'* ]]; then
|
||||
fperms +x "${f#${ED}}"
|
||||
if [[ "${shebang}" == "#!/usr/bin/env node" || "${shebang}" == "#!/usr/bin/node" ]]; then
|
||||
einfo "Fixing node shebang in ${f#${ED}}"
|
||||
sed --follow-symlinks -i \
|
||||
-e "1s:${shebang}$:${_node_sb}:" "${f}" || die
|
||||
fi
|
||||
fi
|
||||
done || die
|
||||
}
|
@ -0,0 +1,561 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# NOTE: this ebuild has been generated by atom-ebuild-gen.py from the
|
||||
# atom overlay. If you would like to make changes, please consider
|
||||
# modifying the ebuild template and submitting a PR to
|
||||
# https://github.com/elprans/atom-overlay.
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
inherit multiprocessing python-single-r1 rpm xdg-utils
|
||||
|
||||
DESCRIPTION="A hackable text editor for the 21st Century"
|
||||
HOMEPAGE="https://atom.io"
|
||||
MY_PV="${PV//_/-}"
|
||||
|
||||
ELECTRON_V=2.0.9
|
||||
ELECTRON_SLOT=2.0
|
||||
|
||||
ASAR_V=0.14.3
|
||||
# All binary packages depend on this
|
||||
NAN_V=2.11.1
|
||||
|
||||
ATOM__NSFW_V=1.0.18
|
||||
ATOM__WATCHER_V=1.0.8
|
||||
CACHED_RUN_IN_THIS_CONTEXT_V=0.5.0
|
||||
CTAGS_V=3.0.0
|
||||
FS_ADMIN_V=0.1.7
|
||||
GIT_UTILS_V=5.2.1
|
||||
KEYBOARD_LAYOUT_V=2.0.14
|
||||
KEYTAR_V=4.3.0
|
||||
NSLOG_V=3.0.0
|
||||
ONIGURUMA_V=7.0.2
|
||||
PATHWATCHER_V=8.0.1
|
||||
SCROLLBAR_STYLE_V=3.2.0
|
||||
SPELLCHECKER_V=3.5.0
|
||||
SUPERSTRING_V=2.3.4
|
||||
TREE_SITTER_V=0.13.15
|
||||
TREE_SITTER_BASH_V=0.13.6
|
||||
TREE_SITTER_C_V=0.13.7
|
||||
TREE_SITTER_CPP_V=0.13.8
|
||||
TREE_SITTER_CSS_V=0.13.7
|
||||
TREE_SITTER_EMBEDDED_TEMPLATE_V=0.13.0
|
||||
TREE_SITTER_GO_V=0.13.3
|
||||
TREE_SITTER_HTML_V=0.13.5
|
||||
TREE_SITTER_JAVASCRIPT_V=0.13.8
|
||||
TREE_SITTER_PYTHON_V=0.13.4
|
||||
TREE_SITTER_REGEX_V=0.13.1
|
||||
TREE_SITTER_RUBY_V=0.13.11
|
||||
TREE_SITTER_TYPESCRIPT_V=0.13.6
|
||||
|
||||
# The x86_64 arch below is irrelevant, as we will rebuild all binary packages.
|
||||
SRC_URI="
|
||||
https://github.com/${PN}/${PN}/releases/download/v${MY_PV}/atom.x86_64.rpm -> atom-bin-${MY_PV}.rpm
|
||||
https://github.com/${PN}/${PN}/archive/v${MY_PV}.tar.gz -> atom-${MY_PV}.tar.gz
|
||||
https://github.com/elprans/asar/releases/download/v${ASAR_V}-gentoo/asar-build.tar.gz -> asar-${ASAR_V}.tar.gz
|
||||
https://github.com/nodejs/nan/archive/v${NAN_V}.tar.gz -> nodejs-nan-${NAN_V}.tar.gz
|
||||
https://registry.npmjs.org/@atom/nsfw/-/nsfw-1.0.18.tgz -> atomdep-atom--nsfw-${ATOM__NSFW_V}.tar.gz
|
||||
https://registry.npmjs.org/@atom/watcher/-/watcher-1.0.8.tgz -> atomdep-atom--watcher-${ATOM__WATCHER_V}.tar.gz
|
||||
https://registry.npmjs.org/cached-run-in-this-context/-/cached-run-in-this-context-0.5.0.tgz -> atomdep-cached-run-in-this-context-${CACHED_RUN_IN_THIS_CONTEXT_V}.tar.gz
|
||||
https://registry.npmjs.org/ctags/-/ctags-3.0.0.tgz -> atomdep-ctags-${CTAGS_V}.tar.gz
|
||||
https://registry.npmjs.org/fs-admin/-/fs-admin-0.1.7.tgz -> atomdep-fs-admin-${FS_ADMIN_V}.tar.gz
|
||||
https://registry.npmjs.org/git-utils/-/git-utils-5.2.1.tgz -> atomdep-git-utils-${GIT_UTILS_V}.tar.gz
|
||||
https://registry.npmjs.org/keyboard-layout/-/keyboard-layout-2.0.14.tgz -> atomdep-keyboard-layout-${KEYBOARD_LAYOUT_V}.tar.gz
|
||||
https://registry.npmjs.org/keytar/-/keytar-4.3.0.tgz -> atomdep-keytar-${KEYTAR_V}.tar.gz
|
||||
https://registry.npmjs.org/nslog/-/nslog-3.0.0.tgz -> atomdep-nslog-${NSLOG_V}.tar.gz
|
||||
https://registry.npmjs.org/oniguruma/-/oniguruma-7.0.2.tgz -> atomdep-oniguruma-${ONIGURUMA_V}.tar.gz
|
||||
https://registry.npmjs.org/pathwatcher/-/pathwatcher-8.0.1.tgz -> atomdep-pathwatcher-${PATHWATCHER_V}.tar.gz
|
||||
https://registry.npmjs.org/scrollbar-style/-/scrollbar-style-3.2.0.tgz -> atomdep-scrollbar-style-${SCROLLBAR_STYLE_V}.tar.gz
|
||||
https://registry.npmjs.org/spellchecker/-/spellchecker-3.5.0.tgz -> atomdep-spellchecker-${SPELLCHECKER_V}.tar.gz
|
||||
https://registry.npmjs.org/superstring/-/superstring-2.3.4.tgz -> atomdep-superstring-${SUPERSTRING_V}.tar.gz
|
||||
https://registry.npmjs.org/tree-sitter/-/tree-sitter-0.13.15.tgz -> atomdep-tree-sitter-${TREE_SITTER_V}.tar.gz
|
||||
https://registry.npmjs.org/tree-sitter-bash/-/tree-sitter-bash-0.13.6.tgz -> atomdep-tree-sitter-bash-${TREE_SITTER_BASH_V}.tar.gz
|
||||
https://registry.npmjs.org/tree-sitter-c/-/tree-sitter-c-0.13.7.tgz -> atomdep-tree-sitter-c-${TREE_SITTER_C_V}.tar.gz
|
||||
https://registry.npmjs.org/tree-sitter-cpp/-/tree-sitter-cpp-0.13.8.tgz -> atomdep-tree-sitter-cpp-${TREE_SITTER_CPP_V}.tar.gz
|
||||
https://registry.npmjs.org/tree-sitter-css/-/tree-sitter-css-0.13.7.tgz -> atomdep-tree-sitter-css-${TREE_SITTER_CSS_V}.tar.gz
|
||||
https://registry.npmjs.org/tree-sitter-embedded-template/-/tree-sitter-embedded-template-0.13.0.tgz -> atomdep-tree-sitter-embedded-template-${TREE_SITTER_EMBEDDED_TEMPLATE_V}.tar.gz
|
||||
https://registry.npmjs.org/tree-sitter-go/-/tree-sitter-go-0.13.3.tgz -> atomdep-tree-sitter-go-${TREE_SITTER_GO_V}.tar.gz
|
||||
https://registry.npmjs.org/tree-sitter-html/-/tree-sitter-html-0.13.5.tgz -> atomdep-tree-sitter-html-${TREE_SITTER_HTML_V}.tar.gz
|
||||
https://registry.npmjs.org/tree-sitter-javascript/-/tree-sitter-javascript-0.13.8.tgz -> atomdep-tree-sitter-javascript-${TREE_SITTER_JAVASCRIPT_V}.tar.gz
|
||||
https://registry.npmjs.org/tree-sitter-python/-/tree-sitter-python-0.13.4.tgz -> atomdep-tree-sitter-python-${TREE_SITTER_PYTHON_V}.tar.gz
|
||||
https://registry.npmjs.org/tree-sitter-regex/-/tree-sitter-regex-0.13.1.tgz -> atomdep-tree-sitter-regex-${TREE_SITTER_REGEX_V}.tar.gz
|
||||
https://registry.npmjs.org/tree-sitter-ruby/-/tree-sitter-ruby-0.13.11.tgz -> atomdep-tree-sitter-ruby-${TREE_SITTER_RUBY_V}.tar.gz
|
||||
https://registry.npmjs.org/tree-sitter-typescript/-/tree-sitter-typescript-0.13.6.tgz -> atomdep-tree-sitter-typescript-${TREE_SITTER_TYPESCRIPT_V}.tar.gz
|
||||
"
|
||||
|
||||
BINMODS=(
|
||||
atom--nsfw
|
||||
atom--watcher
|
||||
cached-run-in-this-context
|
||||
ctags
|
||||
fs-admin
|
||||
git-utils
|
||||
keyboard-layout
|
||||
keytar
|
||||
nslog
|
||||
oniguruma
|
||||
pathwatcher
|
||||
scrollbar-style
|
||||
spellchecker
|
||||
superstring
|
||||
tree-sitter
|
||||
tree-sitter-bash
|
||||
tree-sitter-c
|
||||
tree-sitter-cpp
|
||||
tree-sitter-css
|
||||
tree-sitter-embedded-template
|
||||
tree-sitter-go
|
||||
tree-sitter-html
|
||||
tree-sitter-javascript
|
||||
tree-sitter-python
|
||||
tree-sitter-regex
|
||||
tree-sitter-ruby
|
||||
tree-sitter-typescript
|
||||
)
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
BDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
>=dev-util/electron-${ELECTRON_V}:${ELECTRON_SLOT}
|
||||
"
|
||||
|
||||
DEPEND="
|
||||
>=app-text/hunspell-1.3.3:=
|
||||
>=dev-libs/libgit2-0.23:=[ssh]
|
||||
>=dev-libs/libpcre2-10.22:=[jit,pcre16]
|
||||
>=dev-libs/oniguruma-6.6.0:=
|
||||
>=dev-util/ctags-5.8
|
||||
>=gnome-base/libgnome-keyring-3.12:=
|
||||
x11-libs/libxkbfile
|
||||
"
|
||||
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
>=dev-util/electron-${ELECTRON_V}:${ELECTRON_SLOT}
|
||||
dev-vcs/git
|
||||
!sys-apps/apmd
|
||||
"
|
||||
|
||||
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||
BIN_S="${WORKDIR}/${PN}-bin-${MY_PV}"
|
||||
BUILD_DIR="${S}/out"
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
local a
|
||||
|
||||
mkdir "${BIN_S}" || die
|
||||
|
||||
for a in ${A} ; do
|
||||
case "${a}" in
|
||||
*.rpm)
|
||||
pushd "${BIN_S}" >/dev/null || die
|
||||
srcrpm_unpack "${a}"
|
||||
popd >/dev/null || die
|
||||
;;
|
||||
|
||||
*.tar|*.tar.gz|*.tar.bz2|*.tar.xz)
|
||||
# Tarballs on registry.npmjs.org are wildly inconsistent,
|
||||
# and violate the convention of having ${P} as the top
|
||||
# directory name, so we strip the first component and
|
||||
# unpack into a correct directory explicitly.
|
||||
local basename=${a%.tar.*}
|
||||
local destdir=${WORKDIR}/${basename#atomdep-}
|
||||
mkdir "${destdir}" || die
|
||||
tar -C "${destdir}" -x -o --strip-components 1 \
|
||||
-f "${DISTDIR}/${a}" || die
|
||||
;;
|
||||
|
||||
*)
|
||||
# Fallback to the default unpacker.
|
||||
unpack "${a}"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local suffix="$(get_install_suffix)"
|
||||
local atom_rpmdir=$(get_atom_rpmdir)
|
||||
local install_dir="${EPREFIX}$(get_install_dir)"
|
||||
local electron_dir="${EPREFIX}$(get_electron_dir)"
|
||||
local electron_path="${electron_dir}/electron"
|
||||
local node_path="${electron_dir}/node"
|
||||
local node_includes="${EPREFIX}$(get_node_includedir)"
|
||||
local binmod
|
||||
local pkgdir
|
||||
|
||||
mkdir "${BUILD_DIR}" || die
|
||||
cp -a "${BIN_S}/${atom_rpmdir}/resources/app" \
|
||||
"${BUILD_DIR}/app" || die
|
||||
|
||||
# Add source files omitted from the upstream binary distribution,
|
||||
# and which we want to include in ours.
|
||||
cp -a "${S}/spec" "${BUILD_DIR}/app" || die
|
||||
|
||||
# Unpack app.asar
|
||||
easar extract "${BIN_S}/${atom_rpmdir}/resources/app.asar" \
|
||||
"${BUILD_DIR}/app"
|
||||
|
||||
cd "${BUILD_DIR}/app" || die
|
||||
|
||||
eapply "${FILESDIR}/apm-python.patch"
|
||||
eapply "${FILESDIR}/atom-unbundle-electron-r3.patch"
|
||||
eapply "${FILESDIR}/atom-python-r1.patch"
|
||||
eapply "${FILESDIR}/atom-apm-path-r2.patch"
|
||||
eapply "${FILESDIR}/atom-fix-app-restart-r2.patch"
|
||||
eapply "${FILESDIR}/atom-marker-layer-r1.patch"
|
||||
eapply "${FILESDIR}/atom-fix-config-watcher-r1.patch"
|
||||
|
||||
sed -i -e "s|path.join(process.resourcesPath, 'LICENSE.md')|'/usr/share/licenses/$(get_atom_appname)/LICENSE.md'|g" \
|
||||
./src/main-process/atom-application.js \
|
||||
|| die
|
||||
|
||||
sed -i -e "s|{{NPM_CONFIG_NODEDIR}}|${node_includes}|g" \
|
||||
-e "s|{{ATOM_PATH}}|${electron_path}|g" \
|
||||
-e "s|{{ATOM_RESOURCE_PATH}}|${install_dir}/app.asar|g" \
|
||||
-e "s|{{ATOM_PREFIX}}|${EPREFIX}|g" \
|
||||
-e "s|^#!/bin/bash|#!${EPREFIX}/bin/bash|g" \
|
||||
./atom.sh \
|
||||
|| die
|
||||
|
||||
local env="export NPM_CONFIG_NODEDIR=${node_includes}\nexport ELECTRON_NO_ASAR=1"
|
||||
sed -i -e \
|
||||
"s|\"\$binDir/\$nodeBin\"|${env}\nexec \"${node_path}\"|g" \
|
||||
apm/bin/apm || die
|
||||
|
||||
sed -i -e \
|
||||
"s|^\([[:space:]]*\)node[[:space:]]\+|\1\"${node_path}\" |g" \
|
||||
apm/node_modules/npm/bin/node-gyp-bin/node-gyp || die
|
||||
|
||||
sed -i -e \
|
||||
"s|atomCommand = 'atom';|atomCommand = '${EPREFIX}/usr/bin/atom${suffix}'|g" \
|
||||
apm/lib/test.js || die
|
||||
|
||||
rm apm/bin/node || die
|
||||
|
||||
sed -i -e "s|/${atom_rpmdir}/atom|${EPREFIX}/usr/bin/atom${suffix}|g" \
|
||||
"${BIN_S}/usr/share/applications/$(get_atom_appname).desktop" || die
|
||||
|
||||
for binmod in "${BINMODS[@]}"; do
|
||||
pkgdir="${WORKDIR}/$(package_dir ${binmod})"
|
||||
cd "${pkgdir}" || die
|
||||
if have_patches_for "${binmod}"; then
|
||||
eapply "${FILESDIR}"/${binmod}-*.patch
|
||||
fi
|
||||
done
|
||||
|
||||
cd "${BUILD_DIR}/app" || die
|
||||
|
||||
# Unbundle bundled libs from modules
|
||||
|
||||
pkgdir="${WORKDIR}/$(package_dir git-utils)"
|
||||
${EPYTHON} "${FILESDIR}/gyp-unbundle.py" \
|
||||
--inplace --unbundle "git;libgit2;git2" \
|
||||
"${pkgdir}/binding.gyp" || die
|
||||
|
||||
pkgdir="${WORKDIR}/$(package_dir oniguruma)"
|
||||
${EPYTHON} "${FILESDIR}/gyp-unbundle.py" \
|
||||
--inplace --unbundle "onig_scanner;oniguruma;onig" \
|
||||
"${pkgdir}/binding.gyp" || die
|
||||
|
||||
pkgdir="${WORKDIR}/$(package_dir spellchecker)"
|
||||
${EPYTHON} "${FILESDIR}/gyp-unbundle.py" \
|
||||
--inplace --unbundle "spellchecker;hunspell;hunspell" \
|
||||
"${pkgdir}/binding.gyp" || die
|
||||
|
||||
pkgdir="${WORKDIR}/$(package_dir superstring)"
|
||||
${EPYTHON} "${FILESDIR}/gyp-unbundle.py" \
|
||||
--inplace --unbundle \
|
||||
"superstring_core;./vendor/pcre/pcre.gyp:pcre;pcre2-16; \
|
||||
-DPCRE2_CODE_UNIT_WIDTH=16" \
|
||||
"${pkgdir}/binding.gyp" || die
|
||||
|
||||
for binmod in "${BINMODS[@]}"; do
|
||||
pkgdir="${WORKDIR}/$(package_dir ${binmod})"
|
||||
mkdir -p "${pkgdir}/node_modules" || die
|
||||
ln -s "${WORKDIR}/nodejs-nan-${NAN_V}" \
|
||||
"${pkgdir}/node_modules/nan" || die
|
||||
done
|
||||
|
||||
sed -i -e "s|{{ATOM_PREFIX}}|${EPREFIX}|g" \
|
||||
"${BUILD_DIR}/app/src/config-schema.js" || die
|
||||
|
||||
sed -i -e "s|{{ATOM_SUFFIX}}|${suffix}|g" \
|
||||
"${BUILD_DIR}/app/src/config-schema.js" || die
|
||||
|
||||
eapply_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local binmod
|
||||
|
||||
for binmod in "${BINMODS[@]}"; do
|
||||
einfo "Configuring ${binmod}..."
|
||||
cd "${WORKDIR}/$(package_dir ${binmod})" || die
|
||||
enodegyp_atom configure
|
||||
done
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local binmod
|
||||
local ctags_d="node_modules/symbols-view/vendor"
|
||||
local jobs=$(makeopts_jobs)
|
||||
local unpacked_paths
|
||||
|
||||
# Transpile any yet untranspiled files.
|
||||
ecoffeescript "${BUILD_DIR}"/app/spec/'*.coffee'
|
||||
|
||||
mkdir -p "${BUILD_DIR}/modules/" || die
|
||||
|
||||
for binmod in "${BINMODS[@]}"; do
|
||||
local binmod_name=${binmod##node-}
|
||||
|
||||
einfo "Building ${binmod}..."
|
||||
cd "${WORKDIR}/$(package_dir ${binmod})" || die
|
||||
enodegyp_atom --verbose --jobs="$(makeopts_jobs)" build
|
||||
mkdir -p "${BUILD_DIR}/modules/${binmod_name}" || die
|
||||
cp build/Release/*.node "${BUILD_DIR}/modules/${binmod_name}" || die
|
||||
done
|
||||
|
||||
# Put compiled binary modules in place
|
||||
fix_binmods "${BUILD_DIR}/app" "apm"
|
||||
fix_binmods "${BUILD_DIR}/app" "node_modules"
|
||||
|
||||
# Remove non-Linux vendored ctags binaries
|
||||
rm "${BUILD_DIR}/app/${ctags_d}/ctags-darwin" \
|
||||
"${BUILD_DIR}/app/${ctags_d}/ctags-win32.exe" || die
|
||||
|
||||
# Remove bundled git
|
||||
rm -r "${BUILD_DIR}/app/node_modules/dugite/git" || die
|
||||
|
||||
# Re-pack app.asar
|
||||
# Keep unpack rules in sync with buildAsarUnpackGlobExpression()
|
||||
# in script/lib/package-application.js
|
||||
unpacked_paths=(
|
||||
"*.node"
|
||||
"ctags-config"
|
||||
"ctags-linux"
|
||||
"**/spec/fixtures/**"
|
||||
"**/node_modules/github/bin/**"
|
||||
"**/node_modules/spellchecker/**"
|
||||
"**/resources/atom.png")
|
||||
|
||||
unpacked_paths=$(IFS=,; echo "${unpacked_paths[*]}")
|
||||
|
||||
cd "${BUILD_DIR}" || die
|
||||
easar pack --unpack="{${unpacked_paths}}" --unpack-dir=apm "app" "app.asar"
|
||||
|
||||
rm -r "${BUILD_DIR}/app.asar.unpacked/apm" || die
|
||||
|
||||
# Replace vendored ctags with a symlink to system ctags
|
||||
rm "${BUILD_DIR}/app.asar.unpacked/${ctags_d}/ctags-linux" || die
|
||||
ln -s "${EPREFIX}/usr/bin/ctags" \
|
||||
"${BUILD_DIR}/app.asar.unpacked/${ctags_d}/ctags-linux" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local install_dir="$(get_install_dir)"
|
||||
local suffix="$(get_install_suffix)"
|
||||
|
||||
insinto "${install_dir}"
|
||||
|
||||
doins "${BUILD_DIR}/app.asar"
|
||||
doins -r "${BUILD_DIR}/app.asar.unpacked"
|
||||
|
||||
insinto "${install_dir}/app"
|
||||
doins -r "${BUILD_DIR}/app/apm"
|
||||
|
||||
insinto "/usr/share/applications/"
|
||||
newins "${BIN_S}/usr/share/applications/$(get_atom_appname).desktop" \
|
||||
"atom${suffix}.desktop"
|
||||
|
||||
insinto "/usr/share/icons/"
|
||||
doins -r "${BIN_S}/usr/share/icons/hicolor"
|
||||
|
||||
exeinto "${install_dir}"
|
||||
newexe "${BUILD_DIR}/app/atom.sh" atom
|
||||
insinto "/usr/share/licenses/${PN}${suffix}"
|
||||
doins "${BIN_S}/$(get_atom_rpmdir)/resources/LICENSE.md"
|
||||
dosym "../..${install_dir}/atom" "/usr/bin/atom${suffix}"
|
||||
dosym "../..${install_dir}/app/apm/bin/apm" "/usr/bin/apm${suffix}"
|
||||
|
||||
fix_executables "${install_dir}/app/apm/bin"
|
||||
fix_executables "${install_dir}/app/apm/node_modules/.bin"
|
||||
fix_executables "${install_dir}/app/apm/node_modules/npm/bin"
|
||||
fix_executables "${install_dir}/app/apm/node_modules/npm/bin/node-gyp-bin"
|
||||
fix_executables "${install_dir}/app/apm/node_modules/node-gyp/bin"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_desktop_database_update
|
||||
xdg_mimeinfo_database_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_desktop_database_update
|
||||
xdg_mimeinfo_database_update
|
||||
}
|
||||
|
||||
# Helpers
|
||||
# -------
|
||||
|
||||
# Return the installation suffix appropriate for the slot.
|
||||
get_install_suffix() {
|
||||
local slot=${SLOT%%/*}
|
||||
local suffix
|
||||
|
||||
if [[ "${slot}" == "0" ]]; then
|
||||
suffix=""
|
||||
else
|
||||
suffix="-${slot}"
|
||||
fi
|
||||
|
||||
echo "${suffix}"
|
||||
}
|
||||
|
||||
# Return the upstream app name appropriate for $PV.
|
||||
get_atom_appname() {
|
||||
if [[ "${PV}" == *beta* ]]; then
|
||||
echo "atom-beta"
|
||||
else
|
||||
echo "atom"
|
||||
fi
|
||||
}
|
||||
|
||||
# Return the app installation path inside the upstream archive.
|
||||
get_atom_rpmdir() {
|
||||
echo "usr/share/$(get_atom_appname)"
|
||||
}
|
||||
|
||||
# Return the installation target directory.
|
||||
get_install_dir() {
|
||||
echo "/usr/$(get_libdir)/atom$(get_install_suffix)"
|
||||
}
|
||||
|
||||
# Return the Electron installation directory.
|
||||
get_electron_dir() {
|
||||
echo "/usr/$(get_libdir)/electron-${ELECTRON_SLOT}"
|
||||
}
|
||||
|
||||
# Return the directory containing appropriate Node headers
|
||||
# for the required version of Electron.
|
||||
get_node_includedir() {
|
||||
echo "/usr/include/electron-${ELECTRON_SLOT}/node/"
|
||||
}
|
||||
|
||||
# Run JavaScript using Electron's version of Node.
|
||||
enode_electron() {
|
||||
"${BROOT}/$(get_electron_dir)"/node "${@}"
|
||||
}
|
||||
|
||||
# Run node-gyp using Electron's version of Node.
|
||||
enodegyp_atom() {
|
||||
local apmpath="$(get_atom_rpmdir)/resources/app/apm"
|
||||
local nodegyp="${BIN_S}/${apmpath}/node_modules/node-gyp/bin/node-gyp.js"
|
||||
|
||||
PATH="${BROOT}/$(get_electron_dir):${PATH}" \
|
||||
enode_electron "${nodegyp}" \
|
||||
--nodedir="${BROOT}/$(get_node_includedir)" "${@}" || die
|
||||
}
|
||||
|
||||
# Coffee Script wrapper.
|
||||
ecoffeescript() {
|
||||
local cscript="${FILESDIR}/transpile-coffee-script.js"
|
||||
|
||||
echo "ecoffeescript" "${@}"
|
||||
echo ATOM_HOME="${T}/.atom" ATOM_SRC_ROOT="${BUILD_DIR}/app" \
|
||||
NODE_PATH="${BUILD_DIR}/app/node_modules" \
|
||||
enode_electron "${cscript}" "${@}" || die
|
||||
ATOM_HOME="${T}/.atom" ATOM_SRC_ROOT="${BUILD_DIR}/app" \
|
||||
NODE_PATH="${BUILD_DIR}/app/node_modules" \
|
||||
enode_electron "${cscript}" "${@}" || die
|
||||
}
|
||||
|
||||
# asar wrapper.
|
||||
easar() {
|
||||
local asar="${WORKDIR}/$(package_dir asar)/node_modules/asar/bin/asar"
|
||||
echo "asar" "${@}"
|
||||
enode_electron "${asar}" "${@}" || die
|
||||
}
|
||||
|
||||
# Return a $WORKDIR directory for a given package name.
|
||||
package_dir() {
|
||||
local binmod="${1//-/_}"
|
||||
local binmod_v="${binmod^^}_V"
|
||||
if [[ -z "${binmod_v}" ]]; then
|
||||
die "${binmod_v} is not set."
|
||||
fi
|
||||
|
||||
echo ${1}-${!binmod_v}
|
||||
}
|
||||
|
||||
# Check if there are patches for a given package.
|
||||
have_patches_for() {
|
||||
local patches="${1}-*.patch"
|
||||
local found
|
||||
found=$(find "${FILESDIR}" -maxdepth 1 -name "${patches}" -print -quit)
|
||||
test -n "${found}"
|
||||
}
|
||||
|
||||
# Replace binary node modules with the newly compiled versions thereof.
|
||||
fix_binmods() {
|
||||
local dir="${2}"
|
||||
local prefix="${1}"
|
||||
local path
|
||||
local relpath
|
||||
local modpath
|
||||
local mod
|
||||
local cruft
|
||||
|
||||
while IFS= read -r -d '' path; do
|
||||
relpath=${path#${prefix}}
|
||||
relpath=${relpath##/}
|
||||
relpath=${relpath#W${dir}}
|
||||
modpath=$(dirname ${relpath})
|
||||
modpath=${modpath%build/Release}
|
||||
mod=$(basename ${modpath})
|
||||
|
||||
# Check if the binary node module is actually a valid dependency.
|
||||
# Sometimes the upstream removes a dependency from package.json but
|
||||
# forgets to remove the module from node_modules.
|
||||
has "${mod}" "${BINMODS[@]}" || continue
|
||||
|
||||
# Must copy here as symlinks will cause the module loading to fail.
|
||||
cp -f "${BUILD_DIR}/modules/${mod}/${path##*/}" "${path}" || die
|
||||
|
||||
# Drop unnecessary static libraries.
|
||||
find "${path%/*}" -name '*.a' -delete || die
|
||||
done < <(find "${prefix}/${dir}" -name '*.node' -print0 || die)
|
||||
}
|
||||
|
||||
# Fix script permissions and shebangs to point to the correct version
|
||||
# of Node.
|
||||
fix_executables() {
|
||||
local dir="${1}"
|
||||
local node_sb="#!${EPREFIX}$(get_electron_dir)"/node
|
||||
|
||||
while IFS= read -r -d '' f; do
|
||||
IFS= read -r shebang < "${f}"
|
||||
|
||||
if [[ ${shebang} == '#!'* ]]; then
|
||||
fperms +x "${f#${ED}}"
|
||||
if [[ "${shebang}" == "#!/usr/bin/env node" || \
|
||||
"${shebang}" == "#!/usr/bin/node" ]]; then
|
||||
einfo "Fixing node shebang in ${f#${ED}}"
|
||||
sed --follow-symlinks -i \
|
||||
-e "1s:${shebang}$:${node_sb}:" "${f}" || die
|
||||
fi
|
||||
fi
|
||||
done < <(find -L "${ED}${dir}" -maxdepth 1 -mindepth 1 -type f -print0 || die)
|
||||
}
|
@ -1,12 +0,0 @@
|
||||
diff --git a/atom-application.js.orig b/atom-application.js
|
||||
index 92d985f..9a120e6 100644
|
||||
--- a/src/main-process/atom-application.js
|
||||
+++ b/src/main-process/atom-application.js
|
||||
@@ -1178,6 +1178,7 @@
|
||||
AtomApplication.prototype.restart = function() {
|
||||
var args;
|
||||
args = [];
|
||||
+ args.push("--app=" + this.resourcePath);
|
||||
if (this.safeMode) {
|
||||
args.push("--safe");
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
From bf4c1ab651a82eb369ffa3dc4b20246d043d797a Mon Sep 17 00:00:00 2001
|
||||
From: Elvis Pranskevichus <elvis@magic.io>
|
||||
Date: Wed, 28 Mar 2018 12:02:53 -0400
|
||||
Subject: [PATCH] Fix app restart
|
||||
|
||||
---
|
||||
src/main-process/atom-application.js | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/main-process/atom-application.js b/src/main-process/atom-application.js
|
||||
index 10b791761..d16a68fba 100644
|
||||
--- a/src/main-process/atom-application.js
|
||||
+++ b/src/main-process/atom-application.js
|
||||
@@ -1344,6 +1344,7 @@ class AtomApplication extends EventEmitter {
|
||||
|
||||
restart () {
|
||||
const args = []
|
||||
+ args.push("--app=" + this.resourcePath);
|
||||
if (this.safeMode) args.push('--safe')
|
||||
if (this.logFile != null) args.push(`--log-file=${this.logFile}`)
|
||||
if (this.socketPath != null) args.push(`--socket-path=${this.socketPath}`)
|
||||
--
|
||||
2.16.1
|
||||
|
@ -0,0 +1,41 @@
|
||||
From 5f1f840372611b8f42d8fd3be7b680f90958f015 Mon Sep 17 00:00:00 2001
|
||||
From: Elvis Pranskevichus <elvis@magic.io>
|
||||
Date: Wed, 28 Mar 2018 18:52:58 -0400
|
||||
Subject: [PATCH] Unbreak config watcher in the main process
|
||||
|
||||
---
|
||||
src/path-watcher.js | 14 ++++++++++++--
|
||||
1 file changed, 12 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/path-watcher.js b/src/path-watcher.js
|
||||
index 6693489ef..f3ddc6fe4 100644
|
||||
--- a/src/path-watcher.js
|
||||
+++ b/src/path-watcher.js
|
||||
@@ -544,12 +544,22 @@ class PathWatcherManager {
|
||||
// Private: Access the currently active manager instance, creating one if necessary.
|
||||
static active () {
|
||||
if (!this.activeManager) {
|
||||
- this.activeManager = new PathWatcherManager(atom.config.get('core.fileSystemWatcher'))
|
||||
- this.sub = atom.config.onDidChange('core.fileSystemWatcher', ({newValue}) => { this.transitionTo(newValue) })
|
||||
+ let config = this.getConfig()
|
||||
+ this.activeManager = new PathWatcherManager(config.get('core.fileSystemWatcher'))
|
||||
+ this.sub = config.onDidChange('core.fileSystemWatcher', ({newValue}) => { this.transitionTo(newValue) })
|
||||
}
|
||||
return this.activeManager
|
||||
}
|
||||
|
||||
+ // Private: get config instance for the current application
|
||||
+ static getConfig() {
|
||||
+ if (typeof(global.atom) != 'undefined') {
|
||||
+ return global.atom.config
|
||||
+ } else {
|
||||
+ return global.atomApplication.config
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
// Private: Replace the active {PathWatcherManager} with a new one that creates [NativeWatchers]{NativeWatcher}
|
||||
// based on the value of `setting`.
|
||||
static async transitionTo (setting) {
|
||||
--
|
||||
2.17.0
|
||||
|
@ -1,11 +0,0 @@
|
||||
--- a/src/main-process/atom-application.js
|
||||
+++ b/src/main-process/atom-application.js
|
||||
@@ -406,7 +406,7 @@
|
||||
this.openPathOnEvent('application:open-your-keymap', 'atom://.atom/keymap');
|
||||
this.openPathOnEvent('application:open-your-snippets', 'atom://.atom/snippets');
|
||||
this.openPathOnEvent('application:open-your-stylesheet', 'atom://.atom/stylesheet');
|
||||
- this.openPathOnEvent('application:open-license', path.join(process.resourcesPath, 'LICENSE.md'));
|
||||
+ this.openPathOnEvent('application:open-license', '/usr/share/licenses/atom/LICENSE.md');
|
||||
this.disposable.add(ipcHelpers.on(app, 'before-quit', (function(_this) {
|
||||
return function(event) {
|
||||
if (!_this.quitting) {
|
@ -0,0 +1,25 @@
|
||||
From fae3881a3fa5bf58c696c5bd9c74c62a2113cb12 Mon Sep 17 00:00:00 2001
|
||||
From: Elvis Pranskevichus <elvis@magic.io>
|
||||
Date: Sat, 29 Sep 2018 16:12:39 -0400
|
||||
Subject: [PATCH] Use Python 2
|
||||
|
||||
---
|
||||
atom.sh | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/atom.sh b/atom.sh
|
||||
index 0ad3f5b23..62fe682fe 100755
|
||||
--- a/atom.sh
|
||||
+++ b/atom.sh
|
||||
@@ -62,6 +62,8 @@ if [ $REDIRECT_STDERR ]; then
|
||||
exec 2> /dev/null
|
||||
fi
|
||||
|
||||
+export PYTHON=python2
|
||||
+
|
||||
ATOM_HOME="${ATOM_HOME:-$HOME/.atom}"
|
||||
mkdir -p "$ATOM_HOME"
|
||||
|
||||
--
|
||||
2.16.4
|
||||
|
@ -1,10 +0,0 @@
|
||||
--- a/atom.sh
|
||||
+++ b/atom.sh
|
||||
@@ -92,6 +92,7 @@
|
||||
fi
|
||||
|
||||
ATOM_HOME="${ATOM_HOME:-$HOME/.atom}"
|
||||
+ export PYTHON=python2
|
||||
mkdir -p "$ATOM_HOME"
|
||||
|
||||
: ${TMPDIR:=/tmp}
|
Binary file not shown.
@ -1,6 +1,6 @@
|
||||
DIST xen-4.10.1-upstream-patches-2.tar.xz 117588 BLAKE2B ddcd58964117652b50f3524d89089e2e9b14a8399fb5bd2db5d12827035ab94cedbfd5d65134d8953e4062a50e0e8a9b320e9c34008db8fd364456f47fd9cd26 SHA512 49ee8497af3753f3d611bf12c65fb7a79abb018862f1af096e9dde3ddfe8780bb95fc3da338c8d5f16a5d6d233d606d4cf8025a3d0e2897bf2668a1d5b27b198
|
||||
DIST xen-4.10.1.tar.gz 24674240 BLAKE2B f9a7e0c637db865ab32ad6b6185ab96022903aff65a18e194286a3fc372d4a45f6682cd636b7ac5b4fa0125e54ed51f8876a411d498cf75791718fd088c4a6d2 SHA512 236c02bee69e33644703ed26d323d4c491a91fc05bd0ee0990a7368579f7c82f5bb4510845bf80348fd923024d7d60d521f593dfd0365d971dc592f8ef10fbea
|
||||
DIST xen-4.10.2-upstream-patches-0.tar.xz 3884 BLAKE2B 4584fbe849e80c638db07f49a19cc26fe79606b76eef96258a02b198e4a198053785e76dd82a666e1b719641f5ca675aa7d35d97a8237ccc2d22485b790ebec9 SHA512 83bb37e241efdcb5641cb5423d09c1f04d3eb5cd89c72b74934d7712705735f9cfa00b3a2291947693409f966554660abd33f07b08cc94a4a0df8ce8b359996a
|
||||
DIST xen-4.10.2-upstream-patches-1.tar.xz 31768 BLAKE2B 9205e5fa011426ae3eeaa19694d14ca233805be1e60326d53ec319de1fa28e3b30e7949d7d694ccc8f0e5ea77df580bb6cf22652ae1fd023fdc49b2d37dbce0a SHA512 38c2286d8c1e39d42c266c76d97b5321ca5fb931ebe33ff01c5210fdda4d64ccb39eb6463e756c5178ab7d1c8433a56668abf1dabf4b5b5e85823817d927cd33
|
||||
DIST xen-4.10.2.tar.gz 24697204 BLAKE2B b331d3ad8d7842446f7d2da5dd31560f636aa1408dd3cc8798dff35b868ef5a609d17e97ef4355e1e5aa825a5abc74103796f9a8015037f0a564ffcebd825722 SHA512 2e301b4d6eb106fcb52203bc1208c8fd1fc7bb5d795166c0f86e4085227050301f7daa6f21db440c47bc2ca2c7f87d9b96753cfdf3fa724e0416b5679b84c163
|
||||
DIST xen-4.11.0-upstream-patches-1.tar.xz 56664 BLAKE2B 27579f4e628bb0d3fdd59f7e133e9134d4ca175842dfdae3a3f765b133254239ae3bca94d75dd655735b5bcbd67f9b8d444dd227028642e6e459e57ed8a20341 SHA512 e90b8e7fa9433e93b1620a776833a6d3578babebe5d73dcaae11186f473945a2270046932ab314a9c6049d3b460a655456f487a5b59730fe88a4f08d482c47a1
|
||||
DIST xen-4.11.0-upstream-patches-2.tar.xz 83788 BLAKE2B 3f612492827a1408a3ba058c64b8b9562f7415d19f15241257b7b6754aed472e37538bfed2a017c6664b276f43a1e9c5f87b60454b2eaa0613c84edeb035a28d SHA512 cddc270f2fddbf75f33b45496f5db4586b5463d65fa3604e9df48c116231f088551213c2a021f2b0ad329f7290b36bfdd577cda506c359311c65e897cdf50bd1
|
||||
DIST xen-4.11.0.tar.gz 25131533 BLAKE2B 892639b8bcd9b9956104e4d5137ffd88e17f92d965fa967b4af8d74a4fddcc21c6971c53026e0fb5ce833ab2c25c68f827abcac0b7b1dcebc21dca645c465573 SHA512 33d431c194f10d5ee767558404a1f80a66b3df019012b0bbd587fcbc9524e1bba7ea04269020ce891fe9d211d2f81c63bf78abedcdbe1595aee26251c803a50a
|
||||
|
@ -1,22 +1,21 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit eutils flag-o-matic mount-boot multilib python-any-r1 toolchain-funcs
|
||||
inherit flag-o-matic mount-boot multilib python-any-r1 toolchain-funcs
|
||||
|
||||
MY_PV=${PV/_/-}
|
||||
MY_P=${PN}-${MY_PV}
|
||||
|
||||
if [[ $PV == *9999 ]]; then
|
||||
inherit git-r3
|
||||
KEYWORDS=""
|
||||
EGIT_REPO_URI="git://xenbits.xen.org/xen.git"
|
||||
SRC_URI=""
|
||||
else
|
||||
KEYWORDS="~amd64 ~arm -x86"
|
||||
KEYWORDS="amd64 ~arm -x86"
|
||||
UPSTREAM_VER=1
|
||||
SECURITY_VER=
|
||||
GENTOO_VER=
|
Binary file not shown.
@ -1,4 +1 @@
|
||||
DIST libewf-20130416.tar.gz 1968288 BLAKE2B a61cd2239bfc12b1107bf3c6f68106027a1b08ca644dd8d8ca9dda331f902d1ba2e74dc516a3ed1dbf90f2926c7f654496bf6dd103d5c3f615bab653c8616fd0 SHA512 e84e920dfe6e5a313bc165b1796ab9681c5b42fdefc7120b4f1c0f4e42b220d8192e03df2707051cf16f4cc991facdfdbd39042dcfb645ac7a27b549e02bd96e
|
||||
DIST libewf-20140608-libuna-remove-inline.patch 34909 BLAKE2B e0b4fdcdf3e791992f32bd5251d3a5e6c8d193fe33508620e040ae11c83cf0c308ffd9cce31b548be03e6ec3c0a0623eb25a1731d402296908923d2c6643bbc0 SHA512 01b82d1ebe921a3b572ba061886bddc76d57c6e13f7997ca139baf790d3be7a8e855a50a05915788a7afb85afd46f9cd638c279ba57f7c36398dadd94bc32fc7
|
||||
DIST libewf-20140608.tar.gz 2129518 BLAKE2B aaa8e95f243e887494c5a50c1706864b4613e5731aa49ec2d2510b81984be9df70eeb18c1d5c56f97894536d55a16c2496eae8c662f6ab54e29c142f460fb188 SHA512 f77f01e3452027bff71e644708744e0774e1e397c70e2ebd687983730f03ffb01b26fec782bec79971e149caac5029484f3d9073c3a8042df951bfc542fe2436
|
||||
DIST libewf-experimental-20171104.tar.gz 2243405 BLAKE2B 86e69eba5313dadbfe2cc63639e96cf964b5d72e3c98299c0262547b2d900b7a8a4a5938435bdafac3890ee05ea0079ef68809086234ff486c985d557d2c4897 SHA512 610174971b8e09385f1f51c02e7be36e7a18d21f8b22ddeb7ba7d5c20e7df97591a70de3523b2d63bed8deb5a2a170a14e825f6a80aeb0937553ecae5925ee0b
|
||||
|
@ -1,33 +0,0 @@
|
||||
--- a/tests/test_read_write.sh
|
||||
+++ b/tests/test_read_write.sh
|
||||
@@ -25,7 +25,7 @@ EXIT_FAILURE=1;
|
||||
EXIT_IGNORE=77;
|
||||
|
||||
INPUT="input";
|
||||
-TMP="tmp";
|
||||
+TMP=$(mktemp -ut);
|
||||
|
||||
LS="ls";
|
||||
TR="tr";
|
||||
--- a/tests/test_read_write_delta.sh
|
||||
+++ b/tests/test_read_write_delta.sh
|
||||
@@ -25,7 +25,7 @@ EXIT_FAILURE=1;
|
||||
EXIT_IGNORE=77;
|
||||
|
||||
INPUT="input";
|
||||
-TMP="tmp";
|
||||
+TMP=$(mktemp -ut);
|
||||
|
||||
AWK="awk";
|
||||
CUT="cut";
|
||||
--- a/tests/test_write.sh
|
||||
+++ b/tests/test_write.sh
|
||||
@@ -24,7 +24,7 @@ EXIT_SUCCESS=0;
|
||||
EXIT_FAILURE=1;
|
||||
EXIT_IGNORE=77;
|
||||
|
||||
-TMP="tmp";
|
||||
+TMP=$(mktemp -ut);
|
||||
|
||||
CUT="cut";
|
||||
|
@ -1,53 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit autotools-utils
|
||||
|
||||
DESCRIPTION="Implementation of the EWF (SMART and EnCase) image format"
|
||||
HOMEPAGE="https://github.com/libyal/libewf"
|
||||
SRC_URI="https://libewf.googlecode.com/files/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/2"
|
||||
KEYWORDS="amd64 hppa ppc x86"
|
||||
# upstream bug #2597171, pyewf has implicit declarations
|
||||
#IUSE="debug python rawio unicode"
|
||||
IUSE="debug ewf +fuse rawio +ssl static-libs +uuid unicode zlib"
|
||||
|
||||
DEPEND="
|
||||
sys-libs/zlib
|
||||
fuse? ( sys-fs/fuse:= )
|
||||
uuid? ( sys-apps/util-linux )
|
||||
ssl? ( dev-libs/openssl:0= )
|
||||
zlib? ( sys-libs/zlib )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
AUTOTOOLS_IN_SOURCE_BUILD=1
|
||||
|
||||
DOCS=( AUTHORS ChangeLog NEWS README documents/header.txt documents/header2.txt )
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
$(use_enable debug debug-output)
|
||||
$(use_enable debug verbose-output)
|
||||
$(use_enable ewf v1-api)
|
||||
$(use_enable rawio low-level-functions)
|
||||
$(use_enable unicode wide-character-type)
|
||||
$(use_with zlib)
|
||||
# autodetects bzip2 but does not use
|
||||
--without-bzip2
|
||||
#if we don't force disable this then it fails to build against new libbfio
|
||||
--without-libbfio
|
||||
$(use_with ssl openssl)
|
||||
$(use_with uuid libuuid)
|
||||
$(use_with fuse libfuse)
|
||||
)
|
||||
autotools-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
autotools-utils_src_install
|
||||
doman manuals/*.1 manuals/*.3
|
||||
}
|
@ -1,58 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
AUTOTOOLS_AUTORECONF=1
|
||||
AUTOTOOLS_IN_SOURCE_BUILD=1
|
||||
inherit eutils autotools-utils
|
||||
|
||||
DESCRIPTION="Implementation of the EWF (SMART and EnCase) image format"
|
||||
HOMEPAGE="https://github.com/libyal/libewf"
|
||||
SRC_URI="https://googledrive.com/host/0B3fBvzttpiiSMTdoaVExWWNsRjg/${P}.tar.gz
|
||||
https://dev.gentoo.org/~gokturk/distfiles/app-forensics/libewf/libewf-20140608-libuna-remove-inline.patch"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/2"
|
||||
KEYWORDS="~amd64 ~hppa ~ppc ~x86"
|
||||
# upstream bug #2597171, pyewf has implicit declarations
|
||||
#IUSE="debug python unicode"
|
||||
IUSE="bfio debug ewf +fuse +ssl static-libs +uuid unicode zlib"
|
||||
|
||||
DEPEND="
|
||||
sys-libs/zlib
|
||||
bfio? ( =app-forensics/libbfio-0.0.20120425_alpha )
|
||||
fuse? ( sys-fs/fuse:= )
|
||||
uuid? ( sys-apps/util-linux )
|
||||
ssl? ( dev-libs/openssl:0= )
|
||||
zlib? ( sys-libs/zlib )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${DISTDIR}"/${P}-libuna-remove-inline.patch
|
||||
"${FILESDIR}"/${PN}-20140608-fix-tmpdir-in-tests.patch
|
||||
)
|
||||
|
||||
DOCS=( AUTHORS ChangeLog NEWS README documents/header.txt documents/header2.txt )
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
$(use_enable debug debug-output)
|
||||
$(use_enable debug verbose-output)
|
||||
$(use_enable ewf v1-api)
|
||||
$(use_enable unicode wide-character-type)
|
||||
$(use_with zlib)
|
||||
# autodetects bzip2 but does not use
|
||||
--without-bzip2
|
||||
$(use_with bfio libbfio)
|
||||
$(use_with ssl openssl)
|
||||
$(use_with uuid libuuid)
|
||||
$(use_with fuse libfuse)
|
||||
)
|
||||
autotools-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
autotools-utils_src_install
|
||||
doman manuals/*.1 manuals/*.3
|
||||
}
|
Binary file not shown.
@ -1,5 +1,5 @@
|
||||
DIST elasticsearch-5.6.12.tar.gz 33861038 BLAKE2B 548513d568ffad6373f15671934cce84217d59b8a036847685ad055681f816d3a75fb6ba2c60c7965402e791d6f5b1a11fe8918bca9f4a60fb8e9d43809da0a2 SHA512 bc2436ff34bca652f6a6462920921dce3b085300787e02191c0673d7b3789c0cf81681108573f0ec4dc945e91a2e6ae19898d1b606ca35694bfde6d9cd5762cd
|
||||
DIST elasticsearch-5.6.13.tar.gz 33894848 BLAKE2B d6b486154c4b4df155e443adee7d07200822f4a14f9cc50753e5b4621630c3b5de7b6b3d3ad7745b898f5a24c02aaddbec05aaf0f5d38fbda8acd78eed433939 SHA512 dbda463f0fba0b921ac65ca8743f53cb21410001cb6113aeaa2bfe3e22fbdac9f9010a3bdd2df5b8bc6c7cd59513d9fbac8b408d22d2b885ff5dadbb463b7981
|
||||
DIST elasticsearch-6.3.2.tar.gz 91452574 BLAKE2B c422990fabad70e6e77e8f59f6fb9e9bf5a84eb7e6b8b67dfd91f53e474b1b501b3a1d5ea8f54f0793631504f194a116e816eb3558782b67c8dadecbc2711ee5 SHA512 954cd1e16a5f2e0b0efaeb7e6b19c708d1588d30814a31defb09037c3b90f78c5e9dbd1ca9af9c700d517145a4279bacc1d8ce7cc6894fbe7bf71eec9ed3110d
|
||||
DIST elasticsearch-6.4.1.tar.gz 97924081 BLAKE2B 179433ebe9fca80517057a0379d67545bfd42af741ca64fc2e5b307f9071634d20f297c46d43cfbcfa8dcc45f269c5db32b70656bd4c3035a47aacae861875a2 SHA512 a023a6db5554dee6f10718dfa297aa06a735c7857542c2db80fa5c2b86ff4bf405bb8167578c5b60741ad05ed96a64b54bc71d128a0ff955468b0449588b053c
|
||||
DIST elasticsearch-6.4.3.tar.gz 97872736 BLAKE2B e8c5db4f7238afccce4cf1ca0eced7b7e97891455cd28583eafd7ba028ba3cbc3596cedb2dc4267e677b3c7bbd459b8144284eca358f8c0e34a9a0b8a33426a8 SHA512 2f48720fd1644b1d0f103ca93bd19632c2a12bd3c94434ddf58bc692cb0b23631222f8d23cc0d0e85e271e11099fe0fc8aedf402906b76845ad680eb592f8987
|
||||
DIST elasticsearch-oss-6.3.2.tar.gz 29418577 BLAKE2B 152640dc01a10f44ba43f87f68361cc0dd5e1cf54d0ff92377f3acd1a12a247f002ffe2d003cc53760e891278249c10b1d6d4eb978b0bb1c1ebf8879a2cfcb9a SHA512 3c51a860414f7e55900b1d9a350bdbc3e673c8445e316454c2480315b4b9fc08df58090c6281cecc3ae63d12d78d6bd58e228b3371aa325db799ce18758a21f4
|
||||
DIST elasticsearch-oss-6.4.1.tar.gz 33725674 BLAKE2B e24809eab213aa34499dcfb1e9a9a2b37d85346d4647282de51c95b17f0ae693f9b48e1649658d700ed8e3d547fd22b5f2276c3b4a2b78aa6c129b8bd1eb096b SHA512 5036adbb091dff95416f4f4b24f615475d7c8c058fcda733ec49a9867b7dafcb90c430f486c667cdc30958280814e609c3f0bc49c20bdb06c0a22d01504a3873
|
||||
DIST elasticsearch-oss-6.4.3.tar.gz 33727639 BLAKE2B b4f4821af7a2447a6a16158c32bf676ebbfd8598fde8af558dd19d6e365df66be17d0984e3acb9380a0d5e0cff486b85f6edf96312bd3bb3fc5ae52c270306f3 SHA512 b1147baa95119a8a96779125351358b4c62f2a546b65a9750c11d1d1b9270f06db6da8ff1d9ad11efade1eaea8487087e2d8839b0edfc5da6d9b54da6c6df4e7
|
||||
|
Binary file not shown.
@ -1,5 +1,4 @@
|
||||
DIST eix-0.32.9.tar.xz 599072 BLAKE2B 40fd86520e5c98e4a7cf6710fcd16ce685cc14fbafa417f6694134702b61b83d8d47cfc908c5621d77ba827f7449c985de7dc16650358a8ccad2ab4b48644e38 SHA512 1a7c3d5f371150f5990fe1f1c4cadb0e3ee0a5810011702904aabd58ca250c10f820d6c64e7182096e0b7e2aa001cf573c5f2e83499ceb350cc59b599ec2ca5b
|
||||
DIST eix-0.33.0.tar.xz 610600 BLAKE2B 484d70c3efcceebf54f2a2e0af69b701716d6c6c45aa867a8cc372b135db29bb1bf23cf0efa6d3d2a19224255113229fa30cdd40ab4d64f226eafa73991daa96 SHA512 6fd4ca253ee908eb192ee35c4228bea0fa8a04030070b35489bddc639053c2e3f6a2faf32f539ffd2c7d9da0c664ff5f29ac0d732d9a47b6c9976a65dd402de2
|
||||
DIST eix-0.33.2.tar.xz 614192 BLAKE2B dcbbdb9b9ccf6f780d89c791c34cc588700720b7f015fb0db7ea86dd78a383892266b0e96c49282fdea58e78293c69e8acc153cea631443c35d3ee29dd4c016f SHA512 28ca4cc57e5c7ef81feb37fa90d598e681e192c442c7446c93a442908d2a9744340f7a93c71135ec3083fb85c48a65638c8929b6e1e632464132f4320225d637
|
||||
DIST eix-0.33.5.tar.xz 626628 BLAKE2B 2bb102279084f6bb6871bb4bbe55100708866337501c6043508ee13bdb92064c3a4a41d067b9d4c03af1a5ffbece53d9c66cf89639adf0c555a9511cae3d702f SHA512 7a71a411d4428ee491b9aee0f414e038a08f2195db58466db9b96f0d80edca7eaa153e63534c832c71e1b488e21fbd869a96bd10a21e06a93ce7eba1f808b684
|
||||
DIST eix-0.33.6.tar.xz 625512 BLAKE2B 3f27e3cfa00dc4979bbebbd3b31dfa29e7dcd527fdf7b3ca3fdc6a4ce45a64d7f07fe20ea4a526533aa506c2d9e7fcbbf7b5e83ad6a2d4bbacd1ce75b6cde4ae SHA512 3f04f06533d4e7a0acd5b6e85d1194c8f9b013595ebe75c3dda06cce42e7721a57393aed17e9dd6437780b48378691d84b6e595999ce4321ad114b239313c7cf
|
||||
|
@ -1,109 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit autotools bash-completion-r1 flag-o-matic tmpfiles
|
||||
|
||||
DESCRIPTION="Search and query ebuilds"
|
||||
HOMEPAGE="https://github.com/vaeth/eix/"
|
||||
SRC_URI="https://github.com/vaeth/eix/releases/download/v${PV}/${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="debug doc nls sqlite"
|
||||
|
||||
BOTHDEPEND="nls? ( virtual/libintl )
|
||||
sqlite? ( >=dev-db/sqlite-3:= )"
|
||||
RDEPEND="${BOTHDEPEND}
|
||||
>=app-shells/push-2.0-r1
|
||||
>=app-shells/quoter-3.0_p2-r1"
|
||||
DEPEND="${BOTHDEPEND}
|
||||
app-arch/xz-utils
|
||||
nls? ( sys-devel/gettext )"
|
||||
|
||||
pkg_setup() {
|
||||
# remove stale cache file to prevent collisions
|
||||
local old_cache=${EROOT%/}/var/cache/${PN}
|
||||
if [[ -f ${old_cache} ]]; then
|
||||
rm "${old_cache}" || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -i -e "s:/:${EPREFIX}/:" tmpfiles.d/eix.conf || die
|
||||
|
||||
sed -e "/eixf_source=/s:push.sh:cat \"${EROOT}usr/share/push/push.sh\":" \
|
||||
-e "/eixf_source=/s:quoter_pipe.sh:cat \"${EROOT}usr/share/quoter/quoter_pipe.sh\":" \
|
||||
-i src/eix-functions.sh.in || die
|
||||
sed -e "s:'\$(bindir)/eix-functions.sh':cat \\\\\"${EROOT}usr/share/eix/eix-functions\\\\\":" \
|
||||
-i src/Makefile.am || die
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=(
|
||||
$(use_enable debug paranoic-asserts)
|
||||
$(use_enable nls)
|
||||
$(use_with doc extra-doc)
|
||||
$(use_with sqlite)
|
||||
|
||||
# default configuration
|
||||
$(use_with prefix always-accept-keywords)
|
||||
--with-dep-default
|
||||
--with-required-use-default
|
||||
|
||||
# paths
|
||||
--with-portage-rootpath="${ROOTPATH}"
|
||||
--with-eprefix-default="${EPREFIX}"
|
||||
|
||||
# build a single executable with symlinks
|
||||
--disable-separate-binaries
|
||||
--disable-separate-tools
|
||||
|
||||
# used purely to control/disrespect *FLAGS
|
||||
--disable-debugging
|
||||
--disable-new_dialect
|
||||
--disable-optimization
|
||||
--disable-strong-optimization
|
||||
--disable-security
|
||||
--disable-nopie-security
|
||||
--disable-strong-security
|
||||
)
|
||||
|
||||
# https://github.com/vaeth/eix/issues/35
|
||||
append-cxxflags -std=c++11
|
||||
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
dobashcomp bash/eix
|
||||
dotmpfiles tmpfiles.d/eix.conf
|
||||
|
||||
rm -r "${ED%/}"/usr/bin/eix-functions.sh || die
|
||||
|
||||
keepdir /var/cache/eix
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if ! use prefix; then
|
||||
# note: if this is done in src_install(), portage:portage
|
||||
# ownership may be reset to root
|
||||
tmpfiles_process eix.conf
|
||||
fi
|
||||
|
||||
local obs=${EROOT%/}/var/cache/eix.previous
|
||||
if [[ -f ${obs} ]]; then
|
||||
ewarn "Found obsolete ${obs}, please remove it"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
if [[ ! -n ${REPLACED_BY_VERSION} ]]; then
|
||||
rm -rf "${EROOT%/}/var/cache/${PN}" || die
|
||||
fi
|
||||
}
|
Binary file not shown.
@ -1,95 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit eutils multilib flag-o-matic
|
||||
|
||||
DESCRIPTION="E-Book Reader. Supports many e-book formats"
|
||||
HOMEPAGE="http://www.fbreader.org/"
|
||||
SRC_URI="http://www.fbreader.org/files/desktop/${PN}-sources-${PV}.tgz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~arm ~ppc x86"
|
||||
IUSE="debug"
|
||||
|
||||
RDEPEND="
|
||||
app-arch/bzip2
|
||||
dev-libs/expat
|
||||
dev-libs/liblinebreak
|
||||
dev-libs/fribidi
|
||||
dev-db/sqlite
|
||||
net-misc/curl
|
||||
sys-libs/zlib
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtwidgets:5
|
||||
dev-qt/qtnetwork:5[ssl]
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
# Still use linebreak instead of new unibreak
|
||||
sed -e "s:-lunibreak:-llinebreak:" \
|
||||
-i makefiles/config.mk zlibrary/text/Makefile || die "fixing libunibreak failed"
|
||||
|
||||
# Let portage decide about the compiler
|
||||
sed -e "/^CC = /d" \
|
||||
-i makefiles/arch/desktop.mk || die "removing CC line failed"
|
||||
|
||||
# let portage strip the binary
|
||||
sed -e '/@strip/d' \
|
||||
-i fbreader/desktop/Makefile || die
|
||||
|
||||
# Respect *FLAGS
|
||||
sed -e "s/^CFLAGS = -pipe/CFLAGS +=/" \
|
||||
-i makefiles/arch/desktop.mk || die "CFLAGS sed failed"
|
||||
sed -e "/^ CFLAGS +=/ d" \
|
||||
-i makefiles/config.mk || die "CFLAGS sed failed"
|
||||
sed -e "/^ LDFLAGS += -s$/ d" \
|
||||
-i makefiles/config.mk || die "sed failed"
|
||||
sed -e "/^LDFLAGS =$/ d" \
|
||||
-i makefiles/arch/desktop.mk || die "sed failed"
|
||||
|
||||
echo "TARGET_ARCH = desktop" > makefiles/target.mk
|
||||
echo "LIBDIR = /usr/$(get_libdir)" >> makefiles/target.mk
|
||||
|
||||
echo "UI_TYPE = qt4" >> makefiles/target.mk
|
||||
sed -e 's:MOC = moc-qt4:MOC = /usr/bin/moc:' \
|
||||
-i makefiles/arch/desktop.mk || die "updating desktop.mk failed"
|
||||
|
||||
if use debug; then
|
||||
echo "TARGET_STATUS = debug" >> makefiles/target.mk
|
||||
else
|
||||
echo "TARGET_STATUS = release" >> makefiles/target.mk
|
||||
fi
|
||||
|
||||
# bug #452636
|
||||
eapply "${FILESDIR}"/${P}.patch
|
||||
# bug #515698
|
||||
eapply "${FILESDIR}"/${P}-qreal-cast.patch
|
||||
# bug #516794
|
||||
eapply "${FILESDIR}"/${P}-mimetypes.patch
|
||||
# bug #437262
|
||||
eapply "${FILESDIR}"/${P}-ld-bfd.patch
|
||||
# bug #592588
|
||||
eapply -p0 "${FILESDIR}"/${P}-gcc6.patch
|
||||
|
||||
eapply "${FILESDIR}"/${P}-qt5.patch
|
||||
append-cflags -std=c++11
|
||||
|
||||
eapply_user
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# bug #484516
|
||||
emake -j1
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
dosym FBReader /usr/bin/fbreader
|
||||
}
|
@ -1,91 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit eutils multilib flag-o-matic
|
||||
|
||||
DESCRIPTION="E-Book Reader. Supports many e-book formats"
|
||||
HOMEPAGE="http://www.fbreader.org/"
|
||||
SRC_URI="http://www.fbreader.org/files/desktop/${PN}-sources-${PV}.tgz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~ppc ~x86"
|
||||
IUSE="debug"
|
||||
|
||||
RDEPEND="
|
||||
app-arch/bzip2
|
||||
dev-libs/expat
|
||||
dev-libs/libunibreak
|
||||
dev-libs/fribidi
|
||||
dev-db/sqlite
|
||||
net-misc/curl
|
||||
sys-libs/zlib
|
||||
dev-qt/qtcore:5
|
||||
dev-qt/qtgui:5
|
||||
dev-qt/qtwidgets:5
|
||||
dev-qt/qtnetwork:5[ssl]
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
# Let portage decide about the compiler
|
||||
sed -e "/^CC = /d" \
|
||||
-i makefiles/arch/desktop.mk || die "removing CC line failed"
|
||||
|
||||
# let portage strip the binary
|
||||
sed -e '/@strip/d' \
|
||||
-i fbreader/desktop/Makefile || die
|
||||
|
||||
# Respect *FLAGS
|
||||
sed -e "s/^CFLAGS = -pipe/CFLAGS +=/" \
|
||||
-i makefiles/arch/desktop.mk || die "CFLAGS sed failed"
|
||||
sed -e "/^ CFLAGS +=/ d" \
|
||||
-i makefiles/config.mk || die "CFLAGS sed failed"
|
||||
sed -e "/^ LDFLAGS += -s$/ d" \
|
||||
-i makefiles/config.mk || die "sed failed"
|
||||
sed -e "/^LDFLAGS =$/ d" \
|
||||
-i makefiles/arch/desktop.mk || die "sed failed"
|
||||
|
||||
echo "TARGET_ARCH = desktop" > makefiles/target.mk
|
||||
echo "LIBDIR = /usr/$(get_libdir)" >> makefiles/target.mk
|
||||
|
||||
echo "UI_TYPE = qt4" >> makefiles/target.mk
|
||||
sed -e 's:MOC = moc-qt4:MOC = /usr/bin/moc:' \
|
||||
-i makefiles/arch/desktop.mk || die "updating desktop.mk failed"
|
||||
|
||||
if use debug; then
|
||||
echo "TARGET_STATUS = debug" >> makefiles/target.mk
|
||||
else
|
||||
echo "TARGET_STATUS = release" >> makefiles/target.mk
|
||||
fi
|
||||
|
||||
# bug #452636
|
||||
eapply "${FILESDIR}"/${P}.patch
|
||||
# bug #515698
|
||||
eapply "${FILESDIR}"/${P}-qreal-cast.patch
|
||||
# bug #516794
|
||||
eapply "${FILESDIR}"/${P}-mimetypes.patch
|
||||
# bug #437262
|
||||
eapply "${FILESDIR}"/${P}-ld-bfd.patch
|
||||
# bug #592588
|
||||
eapply -p0 "${FILESDIR}"/${P}-gcc6.patch
|
||||
|
||||
eapply "${FILESDIR}"/${P}-qt5.patch
|
||||
append-cflags -std=c++11
|
||||
|
||||
eapply_user
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# bug #484516
|
||||
emake -j1
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
dosym FBReader /usr/bin/fbreader
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
--- fbreader/src/formats/doc/OleStorage.cpp 2012-11-30 13:41:25.000000000 +0100
|
||||
+++ fbreader/src/formats/doc/OleStorage.cpp-new 2016-08-31 17:23:18.232536401 +0200
|
||||
@@ -59,7 +59,7 @@
|
||||
clear();
|
||||
return false;
|
||||
}
|
||||
- static const char OLE_SIGN[] = {0xD0, 0xCF, 0x11, 0xE0, 0xA1, 0xB1, 0x1A, 0xE1, 0};
|
||||
+ static const char OLE_SIGN[] = {(char)0xD0, (char)0xCF, (char)0x11, (char)0xE0, (char)0xA1, (char)0xB1, (char)0x1A, (char)0xE1, 0};
|
||||
if (std::strncmp(oleBuf, OLE_SIGN, 8) != 0) {
|
||||
clear();
|
||||
return false;
|
@ -1,10 +0,0 @@
|
||||
diff -r -U2 fbreader-0.99.4.orig/fbreader/Makefile fbreader-0.99.4/fbreader/Makefile
|
||||
--- fbreader-0.99.4.orig/fbreader/Makefile 2012-11-30 19:41:25.000000000 +0700
|
||||
+++ fbreader-0.99.4/fbreader/Makefile 2016-08-31 19:06:35.011708982 +0700
|
||||
@@ -23,5 +23,5 @@
|
||||
done;
|
||||
@echo -n 'Linking $(TARGET) ...'
|
||||
- @$(LD) $(LDFLAGS) -o $(TARGET) `find src -name *.o` $(TEXT_LIBS) $(CORE_LIBS) $(ZLUI_LIB) -lsqlite3
|
||||
+ @$(LD) -fuse-ld=bfd $(LDFLAGS) -o $(TARGET) `find src -name *.o` $(TEXT_LIBS) $(CORE_LIBS) $(ZLUI_LIB) -lsqlite3
|
||||
@echo ' OK'
|
||||
|
@ -1,6 +0,0 @@
|
||||
diff -r -U1 fbreader-0.99.4.orig/fbreader/desktop/desktop fbreader-0.99.4/fbreader/desktop/desktop
|
||||
--- fbreader-0.99.4.orig/fbreader/desktop/desktop 2012-11-30 19:41:25.000000000 +0700
|
||||
+++ fbreader-0.99.4/fbreader/desktop/desktop 2014-07-10 20:56:33.527638562 +0700
|
||||
@@ -23 +23,2 @@
|
||||
Categories=Office;Viewer;Literature;
|
||||
+MimeType=application/epub+zip;application/rtf;application/x-fictionbook+xml;application/x-zip-compressed-fb2;application/x-mobipocket-ebook;application/xhtml+xml;text/html;text/plain;
|
@ -1,13 +0,0 @@
|
||||
diff -r -U1 fbreader-0.99.4.orig/zlibrary/ui/src/qt4/tree/QtWaitingSpinner.cpp fbreader-0.99.4/zlibrary/ui/src/qt4/tree/QtWaitingSpinner.cpp
|
||||
--- fbreader-0.99.4.orig/zlibrary/ui/src/qt4/tree/QtWaitingSpinner.cpp 2012-11-30 19:41:25.000000000 +0700
|
||||
+++ fbreader-0.99.4/zlibrary/ui/src/qt4/tree/QtWaitingSpinner.cpp 2014-07-10 19:18:17.002886537 +0700
|
||||
@@ -88,3 +88,3 @@
|
||||
void QtWaitingSpinner::setRoundness(qreal roundness) {
|
||||
- myRoundness = std::max(0.0, std::min(100.0, roundness));
|
||||
+ myRoundness = std::max(static_cast<qreal>(0.0), std::min(static_cast<qreal>(100.0), roundness));
|
||||
}
|
||||
@@ -150,3 +150,3 @@
|
||||
qreal resultAlpha = color.alphaF() - gradation * distance;
|
||||
- resultAlpha = std::min(1.0, std::max(0.0, resultAlpha)); //if alpha is out of bound, force it to bounds
|
||||
+ resultAlpha = std::min(static_cast<qreal>(1.0), std::max(static_cast<qreal>(0.0), resultAlpha)); //if alpha is out of bound, force it to bounds
|
||||
color.setAlphaF(resultAlpha);
|
@ -1,573 +0,0 @@
|
||||
diff --git a/makefiles/arch/desktop.mk b/makefiles/arch/desktop.mk
|
||||
index 4267113..3b46102 100644
|
||||
--- a/makefiles/arch/desktop.mk
|
||||
+++ b/makefiles/arch/desktop.mk
|
||||
@@ -12,29 +12,11 @@ AR = ar rsu
|
||||
LD = g++
|
||||
|
||||
CFLAGS += -fno-exceptions -Wall -Wno-ctor-dtor-privacy -W -DLIBICONV_PLUG
|
||||
-EXTERNAL_INCLUDE = $(shell pkg-config --cflags fribidi)
|
||||
+EXTERNAL_INCLUDE = $(shell pkg-config --cflags fribidi)
|
||||
|
||||
-ifeq "$(UI_TYPE)" "qt"
|
||||
- MOC = moc-qt3
|
||||
- QTINCLUDE = -I /usr/include/qt3
|
||||
-else
|
||||
- MOC = $(shell pkg-config QtCore --variable=moc_location)
|
||||
- QTINCLUDE = -I $(shell pkg-config --cflags QtCore)
|
||||
-endif
|
||||
-
|
||||
-GTKINCLUDE = $(shell pkg-config --cflags gtk+-2.0 libpng xft)
|
||||
-
|
||||
-ifeq "$(UI_TYPE)" "qt"
|
||||
- UILIBS = -lqt-mt
|
||||
-endif
|
||||
-
|
||||
-ifeq "$(UI_TYPE)" "qt4"
|
||||
- UILIBS = $(shell pkg-config --libs QtCore QtGui QtNetwork)
|
||||
-endif
|
||||
-
|
||||
-ifeq "$(UI_TYPE)" "gtk"
|
||||
- UILIBS = $(shell pkg-config --libs gtk+-2.0 gio-2.0) -lpng -ljpeg
|
||||
-endif
|
||||
+MOC = /usr/lib/qt5/bin/moc
|
||||
+QTINCLUDE = $(shell pkg-config --cflags Qt5Gui Qt5Widgets Qt5Network)
|
||||
+UILIBS = $(shell pkg-config --libs Qt5Gui Qt5Widgets Qt5Network)
|
||||
|
||||
RM = rm -rvf
|
||||
RM_QUIET = rm -rf
|
||||
diff --git a/zlibrary/ui/src/qt4/network/ZLQtNetworkManager.cpp b/zlibrary/ui/src/qt4/network/ZLQtNetworkManager.cpp
|
||||
index 47067d3..119a5ee 100644
|
||||
--- a/zlibrary/ui/src/qt4/network/ZLQtNetworkManager.cpp
|
||||
+++ b/zlibrary/ui/src/qt4/network/ZLQtNetworkManager.cpp
|
||||
@@ -24,7 +24,9 @@
|
||||
#include <QtCore/QDir>
|
||||
#include <QtCore/QList>
|
||||
#include <QtCore/QTimer>
|
||||
+#include <QtCore/QUrlQuery>
|
||||
|
||||
+#include <QtNetwork/QNetworkCookie>
|
||||
#include <QtNetwork/QNetworkRequest>
|
||||
#include <QtNetwork/QNetworkReply>
|
||||
#include <QtNetwork/QNetworkProxy>
|
||||
@@ -149,12 +151,12 @@ void ZLQtNetworkManager::prepareReply(ZLQtNetworkReplyScope &scope, QNetworkRequ
|
||||
QNetworkReply *reply = NULL;
|
||||
if (!scope.request->postParameters().empty()) {
|
||||
QByteArray data;
|
||||
- QUrl tmp;
|
||||
+ QUrlQuery tmp;
|
||||
typedef std::pair<std::string, std::string> string_pair;
|
||||
foreach (const string_pair &pair, scope.request->postParameters()) {
|
||||
tmp.addQueryItem(QString::fromStdString(pair.first), QString::fromStdString(pair.second));
|
||||
}
|
||||
- data = tmp.encodedQuery();
|
||||
+ data = tmp.query(QUrl::FullyEncoded).toUtf8(); //encodedQuery();
|
||||
reply = const_cast<QNetworkAccessManager&>(myManager).post(networkRequest, data);
|
||||
} else {
|
||||
reply = const_cast<QNetworkAccessManager&>(myManager).get(networkRequest);
|
||||
diff --git a/zlibrary/ui/src/qt4/tree/ZLQtItemsListWidget.cpp b/zlibrary/ui/src/qt4/tree/ZLQtItemsListWidget.cpp
|
||||
index a3e5b35..ab41684 100644
|
||||
--- a/zlibrary/ui/src/qt4/tree/ZLQtItemsListWidget.cpp
|
||||
+++ b/zlibrary/ui/src/qt4/tree/ZLQtItemsListWidget.cpp
|
||||
@@ -17,14 +17,14 @@
|
||||
* 02110-1301, USA.
|
||||
*/
|
||||
|
||||
-#include <QtGui/QVBoxLayout>
|
||||
-#include <QtGui/QHBoxLayout>
|
||||
#include <QtGui/QPixmap>
|
||||
#include <QtGui/QPalette>
|
||||
#include <QtGui/QPainter>
|
||||
#include <QtGui/QPaintEvent>
|
||||
-#include <QtGui/QScrollBar>
|
||||
#include <QtCore/QTimer>
|
||||
+#include <QtWidgets/QVBoxLayout>
|
||||
+#include <QtWidgets/QHBoxLayout>
|
||||
+#include <QtWidgets/QScrollBar>
|
||||
|
||||
#include <QtCore/QDebug>
|
||||
|
||||
diff --git a/zlibrary/ui/src/qt4/tree/ZLQtPreviewWidget.cpp b/zlibrary/ui/src/qt4/tree/ZLQtPreviewWidget.cpp
|
||||
index 472f05f..b9809c8 100644
|
||||
--- a/zlibrary/ui/src/qt4/tree/ZLQtPreviewWidget.cpp
|
||||
+++ b/zlibrary/ui/src/qt4/tree/ZLQtPreviewWidget.cpp
|
||||
@@ -17,10 +17,10 @@
|
||||
* 02110-1301, USA.
|
||||
*/
|
||||
|
||||
-#include <QtGui/QVBoxLayout>
|
||||
-#include <QtGui/QHBoxLayout>
|
||||
-#include <QtGui/QScrollBar>
|
||||
-#include <QtGui/QGraphicsDropShadowEffect>
|
||||
+#include <QtWidgets/QVBoxLayout>
|
||||
+#include <QtWidgets/QHBoxLayout>
|
||||
+#include <QtWidgets/QScrollBar>
|
||||
+#include <QtWidgets/QGraphicsDropShadowEffect>
|
||||
|
||||
#include <QtCore/QDebug>
|
||||
|
||||
diff --git a/zlibrary/ui/src/qt4/tree/ZLQtSearchField.cpp b/zlibrary/ui/src/qt4/tree/ZLQtSearchField.cpp
|
||||
index 1cddaf9..2b65cc1 100644
|
||||
--- a/zlibrary/ui/src/qt4/tree/ZLQtSearchField.cpp
|
||||
+++ b/zlibrary/ui/src/qt4/tree/ZLQtSearchField.cpp
|
||||
@@ -18,9 +18,9 @@
|
||||
*/
|
||||
|
||||
#include <QtCore/QDebug>
|
||||
-#include <QtGui/QStyle>
|
||||
-#include <QtGui/QCompleter>
|
||||
-#include <QtGui/QStringListModel>
|
||||
+#include <QtCore/QStringListModel>
|
||||
+#include <QtWidgets/QStyle>
|
||||
+#include <QtWidgets/QCompleter>
|
||||
|
||||
#include <ZLibrary.h>
|
||||
#include <ZLFile.h>
|
||||
diff --git a/zlibrary/ui/src/qt4/dialogs/ZLQtTreeDialog.cpp b/zlibrary/ui/src/qt4/dialogs/ZLQtTreeDialog.cpp
|
||||
index 6de2c72..d942d47 100644
|
||||
--- a/zlibrary/ui/src/qt4/dialogs/ZLQtTreeDialog.cpp
|
||||
+++ b/zlibrary/ui/src/qt4/dialogs/ZLQtTreeDialog.cpp
|
||||
@@ -19,12 +19,12 @@
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
-#include <QtGui/QSplitter>
|
||||
-#include <QtGui/QVBoxLayout>
|
||||
-#include <QtGui/QHBoxLayout>
|
||||
-#include <QtGui/QScrollBar>
|
||||
#include <QtGui/QResizeEvent>
|
||||
#include <QtCore/QDebug>
|
||||
+#include <QtWidgets/QSplitter>
|
||||
+#include <QtWidgets/QVBoxLayout>
|
||||
+#include <QtWidgets/QHBoxLayout>
|
||||
+#include <QtWidgets/QScrollBar>
|
||||
|
||||
#include <ZLFile.h>
|
||||
#include <ZLibrary.h>
|
||||
diff --git a/zlibrary/ui/src/qt4/tree/ZLQtItemsListWidget.h b/zlibrary/ui/src/qt4/tree/ZLQtItemsListWidget.h
|
||||
index 4f09cfc..51f1545 100644
|
||||
--- a/zlibrary/ui/src/qt4/tree/ZLQtItemsListWidget.h
|
||||
+++ b/zlibrary/ui/src/qt4/tree/ZLQtItemsListWidget.h
|
||||
@@ -20,12 +20,12 @@
|
||||
#ifndef __ZLQTITEMSLISTWIDGET_H__
|
||||
#define __ZLQTITEMSLISTWIDGET_H__
|
||||
|
||||
-#include <QtGui/QWidget>
|
||||
-#include <QtGui/QFrame>
|
||||
-#include <QtGui/QPushButton>
|
||||
-#include <QtGui/QLabel>
|
||||
-#include <QtGui/QVBoxLayout>
|
||||
-#include <QtGui/QScrollArea>
|
||||
+#include <QtWidgets/QWidget>
|
||||
+#include <QtWidgets/QFrame>
|
||||
+#include <QtWidgets/QPushButton>
|
||||
+#include <QtWidgets/QLabel>
|
||||
+#include <QtWidgets/QVBoxLayout>
|
||||
+#include <QtWidgets/QScrollArea>
|
||||
|
||||
#include <ZLTreeTitledNode.h>
|
||||
|
||||
diff --git a/zlibrary/ui/src/qt4/application/LineEditParameter.cpp b/zlibrary/ui/src/qt4/application/LineEditParameter.cpp
|
||||
index dfcbc0b..bd2689e 100644
|
||||
--- a/zlibrary/ui/src/qt4/application/LineEditParameter.cpp
|
||||
+++ b/zlibrary/ui/src/qt4/application/LineEditParameter.cpp
|
||||
@@ -17,9 +17,9 @@
|
||||
* 02110-1301, USA.
|
||||
*/
|
||||
|
||||
-#include <QtGui/QBoxLayout>
|
||||
-#include <QtGui/QLineEdit>
|
||||
-#include <QtGui/QToolBar>
|
||||
+#include <QtWidgets/QBoxLayout>
|
||||
+#include <QtWidgets/QLineEdit>
|
||||
+#include <QtWidgets/QToolBar>
|
||||
#include <QtGui/QKeyEvent>
|
||||
|
||||
#include "ZLQtApplicationWindow.h"
|
||||
diff --git a/zlibrary/ui/src/qt4/application/ZLQtApplicationWindow.cpp b/zlibrary/ui/src/qt4/application/ZLQtApplicationWindow.cpp
|
||||
index 6241514..e0b143b 100644
|
||||
--- a/zlibrary/ui/src/qt4/application/ZLQtApplicationWindow.cpp
|
||||
+++ b/zlibrary/ui/src/qt4/application/ZLQtApplicationWindow.cpp
|
||||
@@ -17,17 +17,17 @@
|
||||
* 02110-1301, USA.
|
||||
*/
|
||||
|
||||
-#include <QtGui/QApplication>
|
||||
+#include <QtWidgets/QApplication>
|
||||
#include <QtGui/QPixmap>
|
||||
#include <QtGui/QImage>
|
||||
#include <QtGui/QIcon>
|
||||
-#include <QtGui/QToolBar>
|
||||
-#include <QtGui/QMenuBar>
|
||||
-#include <QtGui/QMenu>
|
||||
-#include <QtGui/QToolButton>
|
||||
-#include <QtGui/QLayout>
|
||||
+#include <QtWidgets/QToolBar>
|
||||
+#include <QtWidgets/QMenuBar>
|
||||
+#include <QtWidgets/QMenu>
|
||||
+#include <QtWidgets/QToolButton>
|
||||
+#include <QtWidgets/QLayout>
|
||||
#include <QtGui/QWheelEvent>
|
||||
-#include <QtGui/QDockWidget>
|
||||
+#include <QtWidgets/QDockWidget>
|
||||
#include <QtCore/QObjectList>
|
||||
|
||||
#include <ZLibrary.h>
|
||||
diff --git a/zlibrary/ui/src/qt4/application/ZLQtApplicationWindow.h b/zlibrary/ui/src/qt4/application/ZLQtApplicationWindow.h
|
||||
index 3b4fd3a..42ff2c8 100644
|
||||
--- a/zlibrary/ui/src/qt4/application/ZLQtApplicationWindow.h
|
||||
+++ b/zlibrary/ui/src/qt4/application/ZLQtApplicationWindow.h
|
||||
@@ -22,8 +22,8 @@
|
||||
|
||||
#include <map>
|
||||
|
||||
-#include <QtGui/QMainWindow>
|
||||
-#include <QtGui/QAction>
|
||||
+#include <QtWidgets/QMainWindow>
|
||||
+#include <QtWidgets/QAction>
|
||||
#include <QtGui/QCursor>
|
||||
|
||||
class QDockWidget;
|
||||
diff --git a/zlibrary/ui/src/qt4/dialogs/ZLQtDialog.cpp b/zlibrary/ui/src/qt4/dialogs/ZLQtDialog.cpp
|
||||
index 24eb897..c17e86c 100644
|
||||
--- a/zlibrary/ui/src/qt4/dialogs/ZLQtDialog.cpp
|
||||
+++ b/zlibrary/ui/src/qt4/dialogs/ZLQtDialog.cpp
|
||||
@@ -17,8 +17,8 @@
|
||||
* 02110-1301, USA.
|
||||
*/
|
||||
|
||||
-#include <QtGui/QApplication>
|
||||
-#include <QtGui/QPushButton>
|
||||
+#include <QtWidgets/QApplication>
|
||||
+#include <QtWidgets/QPushButton>
|
||||
|
||||
#include <ZLDialogManager.h>
|
||||
|
||||
diff --git a/zlibrary/ui/src/qt4/dialogs/ZLQtDialog.h b/zlibrary/ui/src/qt4/dialogs/ZLQtDialog.h
|
||||
index 068039d..811cec8 100644
|
||||
--- a/zlibrary/ui/src/qt4/dialogs/ZLQtDialog.h
|
||||
+++ b/zlibrary/ui/src/qt4/dialogs/ZLQtDialog.h
|
||||
@@ -20,8 +20,8 @@
|
||||
#ifndef __ZLQTDIALOG_H__
|
||||
#define __ZLQTDIALOG_H__
|
||||
|
||||
-#include <QtGui/QDialog>
|
||||
-#include <QtGui/QLayout>
|
||||
+#include <QtWidgets/QDialog>
|
||||
+#include <QtWidgets/QLayout>
|
||||
|
||||
#include <ZLDialog.h>
|
||||
|
||||
diff --git a/zlibrary/ui/src/qt4/dialogs/ZLQtDialogContent.cpp b/zlibrary/ui/src/qt4/dialogs/ZLQtDialogContent.cpp
|
||||
index e8ff422..352c350 100644
|
||||
--- a/zlibrary/ui/src/qt4/dialogs/ZLQtDialogContent.cpp
|
||||
+++ b/zlibrary/ui/src/qt4/dialogs/ZLQtDialogContent.cpp
|
||||
@@ -17,10 +17,10 @@
|
||||
* 02110-1301, USA.
|
||||
*/
|
||||
|
||||
-#include <QtGui/QApplication>
|
||||
-#include <QtGui/QDesktopWidget>
|
||||
-#include <QtGui/QWidget>
|
||||
-#include <QtGui/QLayout>
|
||||
+#include <QtWidgets/QApplication>
|
||||
+#include <QtWidgets/QDesktopWidget>
|
||||
+#include <QtWidgets/QWidget>
|
||||
+#include <QtWidgets/QLayout>
|
||||
|
||||
#include "ZLQtDialogContent.h"
|
||||
#include "ZLQtOptionView.h"
|
||||
diff --git a/zlibrary/ui/src/qt4/dialogs/ZLQtDialogManager.cpp b/zlibrary/ui/src/qt4/dialogs/ZLQtDialogManager.cpp
|
||||
index d5eb4d4..2fc769b 100644
|
||||
--- a/zlibrary/ui/src/qt4/dialogs/ZLQtDialogManager.cpp
|
||||
+++ b/zlibrary/ui/src/qt4/dialogs/ZLQtDialogManager.cpp
|
||||
@@ -17,11 +17,11 @@
|
||||
* 02110-1301, USA.
|
||||
*/
|
||||
|
||||
-#include <QtGui/QApplication>
|
||||
-#include <QtGui/QMessageBox>
|
||||
-#include <QtGui/QFileDialog>
|
||||
+#include <QtWidgets/QApplication>
|
||||
+#include <QtWidgets/QMessageBox>
|
||||
+#include <QtWidgets/QFileDialog>
|
||||
#include <QtGui/QClipboard>
|
||||
-#include <QtGui/QDesktopWidget>
|
||||
+#include <QtWidgets/QDesktopWidget>
|
||||
|
||||
#include "ZLQtDialogManager.h"
|
||||
#include "ZLQtDialog.h"
|
||||
diff --git a/zlibrary/ui/src/qt4/dialogs/ZLQtOpenFileDialog.cpp b/zlibrary/ui/src/qt4/dialogs/ZLQtOpenFileDialog.cpp
|
||||
index ec9e73c..a50a40d 100644
|
||||
--- a/zlibrary/ui/src/qt4/dialogs/ZLQtOpenFileDialog.cpp
|
||||
+++ b/zlibrary/ui/src/qt4/dialogs/ZLQtOpenFileDialog.cpp
|
||||
@@ -17,7 +17,7 @@
|
||||
* 02110-1301, USA.
|
||||
*/
|
||||
|
||||
-#include <QtGui/QFileDialog>
|
||||
+#include <QtWidgets/QFileDialog>
|
||||
|
||||
#include "ZLQtOpenFileDialog.h"
|
||||
|
||||
diff --git a/zlibrary/ui/src/qt4/dialogs/ZLQtOptionView.cpp b/zlibrary/ui/src/qt4/dialogs/ZLQtOptionView.cpp
|
||||
index 48a1b8f..90d50fb 100644
|
||||
--- a/zlibrary/ui/src/qt4/dialogs/ZLQtOptionView.cpp
|
||||
+++ b/zlibrary/ui/src/qt4/dialogs/ZLQtOptionView.cpp
|
||||
@@ -19,16 +19,16 @@
|
||||
|
||||
#include <cctype>
|
||||
|
||||
-#include <QtGui/QCheckBox>
|
||||
-#include <QtGui/QComboBox>
|
||||
-#include <QtGui/QLabel>
|
||||
-#include <QtGui/QGroupBox>
|
||||
-#include <QtGui/QRadioButton>
|
||||
-#include <QtGui/QPushButton>
|
||||
-#include <QtGui/QSpinBox>
|
||||
-#include <QtGui/QLineEdit>
|
||||
-#include <QtGui/QSlider>
|
||||
-#include <QtGui/QLayout>
|
||||
+#include <QtWidgets/QCheckBox>
|
||||
+#include <QtWidgets/QComboBox>
|
||||
+#include <QtWidgets/QLabel>
|
||||
+#include <QtWidgets/QGroupBox>
|
||||
+#include <QtWidgets/QRadioButton>
|
||||
+#include <QtWidgets/QPushButton>
|
||||
+#include <QtWidgets/QSpinBox>
|
||||
+#include <QtWidgets/QLineEdit>
|
||||
+#include <QtWidgets/QSlider>
|
||||
+#include <QtWidgets/QLayout>
|
||||
|
||||
#include <ZLStringUtil.h>
|
||||
#include <ZLDialogManager.h>
|
||||
diff --git a/zlibrary/ui/src/qt4/dialogs/ZLQtOptionsDialog.cpp b/zlibrary/ui/src/qt4/dialogs/ZLQtOptionsDialog.cpp
|
||||
index f6c36fb..7fe855a 100644
|
||||
--- a/zlibrary/ui/src/qt4/dialogs/ZLQtOptionsDialog.cpp
|
||||
+++ b/zlibrary/ui/src/qt4/dialogs/ZLQtOptionsDialog.cpp
|
||||
@@ -17,11 +17,11 @@
|
||||
* 02110-1301, USA.
|
||||
*/
|
||||
|
||||
-#include <QtGui/QApplication>
|
||||
-#include <QtGui/QDesktopWidget>
|
||||
-#include <QtGui/QLayout>
|
||||
-#include <QtGui/QPushButton>
|
||||
-#include <QtGui/QButtonGroup>
|
||||
+#include <QtWidgets/QApplication>
|
||||
+#include <QtWidgets/QDesktopWidget>
|
||||
+#include <QtWidgets/QLayout>
|
||||
+#include <QtWidgets/QPushButton>
|
||||
+#include <QtWidgets/QButtonGroup>
|
||||
#include <QtGui/QResizeEvent>
|
||||
|
||||
#include <ZLDialogManager.h>
|
||||
diff --git a/zlibrary/ui/src/qt4/dialogs/ZLQtOptionsDialog.h b/zlibrary/ui/src/qt4/dialogs/ZLQtOptionsDialog.h
|
||||
index e38b62a..ad26fba 100644
|
||||
--- a/zlibrary/ui/src/qt4/dialogs/ZLQtOptionsDialog.h
|
||||
+++ b/zlibrary/ui/src/qt4/dialogs/ZLQtOptionsDialog.h
|
||||
@@ -20,9 +20,9 @@
|
||||
#ifndef __ZLQTOPTIONSDIALOG_H__
|
||||
#define __ZLQTOPTIONSDIALOG_H__
|
||||
|
||||
-#include <QtGui/QWidget>
|
||||
-#include <QtGui/QTabWidget>
|
||||
-#include <QtGui/QDialog>
|
||||
+#include <QtWidgets/QWidget>
|
||||
+#include <QtWidgets/QTabWidget>
|
||||
+#include <QtWidgets/QDialog>
|
||||
|
||||
#include "../../../../core/src/desktop/dialogs/ZLDesktopOptionsDialog.h"
|
||||
|
||||
diff --git a/zlibrary/ui/src/qt4/dialogs/ZLQtProgressDialog.cpp b/zlibrary/ui/src/qt4/dialogs/ZLQtProgressDialog.cpp
|
||||
index 98e469e..5a1d574 100644
|
||||
--- a/zlibrary/ui/src/qt4/dialogs/ZLQtProgressDialog.cpp
|
||||
+++ b/zlibrary/ui/src/qt4/dialogs/ZLQtProgressDialog.cpp
|
||||
@@ -19,11 +19,11 @@
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
-#include <QtGui/QApplication>
|
||||
-#include <QtGui/QDesktopWidget>
|
||||
-#include <QtGui/QWidget>
|
||||
-#include <QtGui/QLabel>
|
||||
-#include <QtGui/QLayout>
|
||||
+#include <QtWidgets/QApplication>
|
||||
+#include <QtWidgets/QDesktopWidget>
|
||||
+#include <QtWidgets/QWidget>
|
||||
+#include <QtWidgets/QLabel>
|
||||
+#include <QtWidgets/QLayout>
|
||||
#include <QtCore/QThreadPool>
|
||||
|
||||
#include "../dialogs/ZLQtDialogManager.h"
|
||||
diff --git a/zlibrary/ui/src/qt4/dialogs/ZLQtProgressDialog.h b/zlibrary/ui/src/qt4/dialogs/ZLQtProgressDialog.h
|
||||
index df6c73b..837bce5 100644
|
||||
--- a/zlibrary/ui/src/qt4/dialogs/ZLQtProgressDialog.h
|
||||
+++ b/zlibrary/ui/src/qt4/dialogs/ZLQtProgressDialog.h
|
||||
@@ -22,11 +22,11 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
-#include <QtGui/QWidget>
|
||||
+#include <QtWidgets/QWidget>
|
||||
#include <QtGui/QCursor>
|
||||
-#include <QtGui/QDialog>
|
||||
-#include <QtGui/QProgressBar>
|
||||
-#include <QtGui/QLabel>
|
||||
+#include <QtWidgets/QDialog>
|
||||
+#include <QtWidgets/QProgressBar>
|
||||
+#include <QtWidgets/QLabel>
|
||||
#include <QtCore/QRunnable>
|
||||
|
||||
#include <ZLProgressDialog.h>
|
||||
diff --git a/zlibrary/ui/src/qt4/dialogs/ZLQtTreeDialog.h b/zlibrary/ui/src/qt4/dialogs/ZLQtTreeDialog.h
|
||||
index 9cf7c47..03f1223 100644
|
||||
--- a/zlibrary/ui/src/qt4/dialogs/ZLQtTreeDialog.h
|
||||
+++ b/zlibrary/ui/src/qt4/dialogs/ZLQtTreeDialog.h
|
||||
@@ -24,12 +24,12 @@
|
||||
#include <QtCore/QSet>
|
||||
#include <QtCore/QMap>
|
||||
|
||||
-#include <QtGui/QDialog>
|
||||
-#include <QtGui/QScrollArea>
|
||||
-#include <QtGui/QPushButton>
|
||||
-#include <QtGui/QLabel>
|
||||
-#include <QtGui/QLineEdit>
|
||||
-#include <QtGui/QWidget>
|
||||
+#include <QtWidgets/QDialog>
|
||||
+#include <QtWidgets/QScrollArea>
|
||||
+#include <QtWidgets/QPushButton>
|
||||
+#include <QtWidgets/QLabel>
|
||||
+#include <QtWidgets/QLineEdit>
|
||||
+#include <QtWidgets/QWidget>
|
||||
|
||||
#include <ZLTreeDialog.h>
|
||||
|
||||
diff --git a/zlibrary/ui/src/qt4/library/ZLQApplication.h b/zlibrary/ui/src/qt4/library/ZLQApplication.h
|
||||
index c08c536..a714fa9 100644
|
||||
--- a/zlibrary/ui/src/qt4/library/ZLQApplication.h
|
||||
+++ b/zlibrary/ui/src/qt4/library/ZLQApplication.h
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifndef __ZLQAPPLICATION_H__
|
||||
#define __ZLQAPPLICATION_H__
|
||||
|
||||
-#include <QtGui/QApplication>
|
||||
+#include <QtWidgets/QApplication>
|
||||
|
||||
class ZLQApplication : public QApplication {
|
||||
|
||||
diff --git a/zlibrary/ui/src/qt4/library/ZLibrary.cpp b/zlibrary/ui/src/qt4/library/ZLibrary.cpp
|
||||
index 9648e95..a544031 100644
|
||||
--- a/zlibrary/ui/src/qt4/library/ZLibrary.cpp
|
||||
+++ b/zlibrary/ui/src/qt4/library/ZLibrary.cpp
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
#include <QtCore/QTextCodec>
|
||||
#include <QtCore/QFile>
|
||||
-#include <QtGui/QApplication>
|
||||
+#include <QtWidgets/QApplication>
|
||||
#include <QtGui/QFileOpenEvent>
|
||||
|
||||
#include <ZLApplication.h>
|
||||
@@ -72,7 +72,7 @@ bool ZLQApplication::event(QEvent *e) {
|
||||
void ZLQtLibraryImplementation::init(int &argc, char **&argv) {
|
||||
new ZLQApplication(argc, argv);
|
||||
|
||||
- QTextCodec::setCodecForCStrings(QTextCodec::codecForName("utf-8"));
|
||||
+ QTextCodec::setCodecForLocale(QTextCodec::codecForName("utf-8"));
|
||||
|
||||
ZLibrary::parseArguments(argc, argv);
|
||||
|
||||
diff --git a/zlibrary/ui/src/qt4/tree/QtWaitingSpinner.h b/zlibrary/ui/src/qt4/tree/QtWaitingSpinner.h
|
||||
index cdaef01..a259c65 100644
|
||||
--- a/zlibrary/ui/src/qt4/tree/QtWaitingSpinner.h
|
||||
+++ b/zlibrary/ui/src/qt4/tree/QtWaitingSpinner.h
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
#include <QtCore/QTimer>
|
||||
|
||||
-#include <QtGui/QWidget>
|
||||
+#include <QtWidgets/QWidget>
|
||||
#include <QtGui/QColor>
|
||||
|
||||
class QtWaitingSpinner : public QWidget {
|
||||
diff --git a/zlibrary/ui/src/qt4/tree/ZLQtPreviewWidget.h b/zlibrary/ui/src/qt4/tree/ZLQtPreviewWidget.h
|
||||
index 1b8ebcc..6f3b4e3 100644
|
||||
--- a/zlibrary/ui/src/qt4/tree/ZLQtPreviewWidget.h
|
||||
+++ b/zlibrary/ui/src/qt4/tree/ZLQtPreviewWidget.h
|
||||
@@ -20,11 +20,11 @@
|
||||
#ifndef __ZLQTPREVIEWWIDGET_H__
|
||||
#define __ZLQTPREVIEWWIDGET_H__
|
||||
|
||||
-#include <QtGui/QWidget>
|
||||
-#include <QtGui/QPushButton>
|
||||
-#include <QtGui/QLabel>
|
||||
-#include <QtGui/QScrollArea>
|
||||
-#include <QtGui/QVBoxLayout>
|
||||
+#include <QtWidgets/QWidget>
|
||||
+#include <QtWidgets/QPushButton>
|
||||
+#include <QtWidgets/QLabel>
|
||||
+#include <QtWidgets/QScrollArea>
|
||||
+#include <QtWidgets/QVBoxLayout>
|
||||
#include <QtCore/QSet>
|
||||
|
||||
#include <ZLTreePageNode.h>
|
||||
diff --git a/zlibrary/ui/src/qt4/tree/ZLQtSearchField.h b/zlibrary/ui/src/qt4/tree/ZLQtSearchField.h
|
||||
index f6e174c..c360965 100644
|
||||
--- a/zlibrary/ui/src/qt4/tree/ZLQtSearchField.h
|
||||
+++ b/zlibrary/ui/src/qt4/tree/ZLQtSearchField.h
|
||||
@@ -21,8 +21,8 @@
|
||||
#define __ZLQTSEARCHFIELD_H__
|
||||
|
||||
#include <QtCore/QSet>
|
||||
-#include <QtGui/QLabel>
|
||||
-#include <QtGui/QLineEdit>
|
||||
+#include <QtWidgets/QLabel>
|
||||
+#include <QtWidgets/QLineEdit>
|
||||
|
||||
#include "QtWaitingSpinner.h"
|
||||
#include "ZLQtItemsListWidget.h"
|
||||
diff --git a/zlibrary/ui/src/qt4/view/ZLQtViewWidget.cpp b/zlibrary/ui/src/qt4/view/ZLQtViewWidget.cpp
|
||||
index 4f5d196..615050c 100644
|
||||
--- a/zlibrary/ui/src/qt4/view/ZLQtViewWidget.cpp
|
||||
+++ b/zlibrary/ui/src/qt4/view/ZLQtViewWidget.cpp
|
||||
@@ -19,8 +19,8 @@
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
-#include <QtGui/QLayout>
|
||||
-#include <QtGui/QScrollBar>
|
||||
+#include <QtWidgets/QLayout>
|
||||
+#include <QtWidgets/QScrollBar>
|
||||
#include <QtGui/QPainter>
|
||||
#include <QtGui/QPixmap>
|
||||
#include <QtGui/QMouseEvent>
|
||||
@@ -185,11 +185,11 @@ void ZLQtViewWidget::repaint() {
|
||||
|
||||
void ZLQtViewWidget::setScrollbarEnabled(ZLView::Direction direction, bool enabled) {
|
||||
if (direction == ZLView::VERTICAL) {
|
||||
- myRightScrollBar->setShown(enabled && myShowScrollBarAtRight);
|
||||
- myLeftScrollBar->setShown(enabled && !myShowScrollBarAtRight);
|
||||
+ myRightScrollBar->setVisible(enabled && myShowScrollBarAtRight);
|
||||
+ myLeftScrollBar->setVisible(enabled && !myShowScrollBarAtRight);
|
||||
} else {
|
||||
- myBottomScrollBar->setShown(enabled && myShowScrollBarAtBottom);
|
||||
- myTopScrollBar->setShown(enabled && !myShowScrollBarAtBottom);
|
||||
+ myBottomScrollBar->setVisible(enabled && myShowScrollBarAtBottom);
|
||||
+ myTopScrollBar->setVisible(enabled && !myShowScrollBarAtBottom);
|
||||
}
|
||||
}
|
||||
|
||||
diff --git a/zlibrary/ui/src/qt4/view/ZLQtViewWidget.h b/zlibrary/ui/src/qt4/view/ZLQtViewWidget.h
|
||||
index 6fabf00..ccec1e3 100644
|
||||
--- a/zlibrary/ui/src/qt4/view/ZLQtViewWidget.h
|
||||
+++ b/zlibrary/ui/src/qt4/view/ZLQtViewWidget.h
|
||||
@@ -20,7 +20,7 @@
|
||||
#ifndef __ZLQTVIEWWIDGET_H__
|
||||
#define __ZLQTVIEWWIDGET_H__
|
||||
|
||||
-#include <QtGui/QWidget>
|
||||
+#include <QtWidgets/QWidget>
|
||||
|
||||
#include "../../../../core/src/view/ZLViewWidget.h"
|
||||
#include <ZLApplication.h>
|
@ -1,8 +0,0 @@
|
||||
diff -r -U2 fbreader-0.99.4.orig/zlibrary/ui/src/qt4/filesystem/ZLQtFSManager.cpp fbreader-0.99.4/zlibrary/ui/src/qt4/filesystem/ZLQtFSManager.cpp
|
||||
--- fbreader-0.99.4.orig/zlibrary/ui/src/qt4/filesystem/ZLQtFSManager.cpp 2012-11-30 19:41:25.000000000 +0700
|
||||
+++ fbreader-0.99.4/zlibrary/ui/src/qt4/filesystem/ZLQtFSManager.cpp 2013-02-21 13:30:31.000000000 +0700
|
||||
@@ -49,3 +49,4 @@
|
||||
path = replacement + path.substr(1);
|
||||
}
|
||||
+ ZLUnixFSManager::normalizeRealPath(path);
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
From cc99b8d3491ce0cd30ba56decc33d811478bab0c Mon Sep 17 00:00:00 2001
|
||||
From: Sebastian Ramacher <sebastian@ramacher.at>
|
||||
Date: Tue, 30 Oct 2018 00:39:19 +0100
|
||||
Subject: [PATCH] Search for m instead of libm (fixes #757)
|
||||
|
||||
Thanks to Franz Trischberger for the fix.
|
||||
---
|
||||
meson.build | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/meson.build b/meson.build
|
||||
index f54f104..afe9ae8 100644
|
||||
--- a/meson.build
|
||||
+++ b/meson.build
|
||||
@@ -36,7 +36,7 @@ dbusinterfacesdir = join_paths(datadir, 'dbus-1', 'interfaces')
|
||||
plugindir = join_paths(get_option('libdir'), 'zathura')
|
||||
|
||||
# required dependencies
|
||||
-libm = cc.find_library('libm', required: false)
|
||||
+libm = cc.find_library('m', required: false)
|
||||
girara = dependency('girara-gtk3', version: '>=0.2.9')
|
||||
glib = dependency('glib-2.0', version: '>=2.50')
|
||||
gio = dependency('gio-unix-2.0', required: host_machine.system() != 'windows')
|
||||
--
|
||||
2.18.0
|
||||
|
@ -1,69 +1,64 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
EAPI=6
|
||||
|
||||
inherit eutils multilib toolchain-funcs virtualx xdg-utils
|
||||
inherit gnome2-utils meson virtualx xdg-utils
|
||||
|
||||
DESCRIPTION="A highly customizable and functional document viewer"
|
||||
HOMEPAGE="http://pwmt.org/projects/zathura/"
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://git.pwmt.org/pwmt/zathura.git"
|
||||
EGIT_REPO_URI="https://git.pwmt.org/pwmt/${PN}.git"
|
||||
EGIT_BRANCH="develop"
|
||||
else
|
||||
SRC_URI="https://pwmt.org/projects/zathura/download/${P}.tar.xz"
|
||||
KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
|
||||
SRC_URI="http://pwmt.org/projects/${PN}/download/${P}.tar.gz"
|
||||
fi
|
||||
|
||||
DESCRIPTION="A highly customizable and functional document viewer"
|
||||
HOMEPAGE="http://pwmt.org/projects/zathura/"
|
||||
|
||||
LICENSE="ZLIB"
|
||||
SLOT="0"
|
||||
IUSE="+magic sqlite synctex test"
|
||||
IUSE="+magic seccomp sqlite synctex test"
|
||||
|
||||
RDEPEND="dev-libs/appstream
|
||||
>=dev-libs/girara-0.3.1
|
||||
>=dev-libs/glib-2.50:2
|
||||
dev-util/desktop-file-utils
|
||||
dev-python/sphinx
|
||||
x11-libs/cairo
|
||||
>=x11-libs/gtk+-3.22:3
|
||||
magic? ( sys-apps/file )
|
||||
seccomp? ( sys-libs/libseccomp )
|
||||
sqlite? ( >=dev-db/sqlite-3.5.9:3 )
|
||||
synctex? ( app-text/texlive-core )"
|
||||
|
||||
RDEPEND=">=dev-libs/girara-0.2.7:=
|
||||
>=dev-libs/glib-2.32:2=
|
||||
x11-libs/cairo:=
|
||||
>=x11-libs/gtk+-3.6:3
|
||||
magic? ( sys-apps/file:= )
|
||||
sqlite? ( dev-db/sqlite:3= )
|
||||
synctex? ( >=app-text/texlive-core-2015 )"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/gettext
|
||||
virtual/pkgconfig
|
||||
test? ( dev-libs/check )"
|
||||
|
||||
src_configure() {
|
||||
myzathuraconf=(
|
||||
WITH_MAGIC=$(usex magic 1 0)
|
||||
WITH_SQLITE=$(usex sqlite 1 0)
|
||||
WITH_SYNCTEX=$(usex synctex 1 0)
|
||||
PREFIX="${EPREFIX}"/usr
|
||||
LIBDIR='${PREFIX}'/$(get_libdir)
|
||||
CC="$(tc-getCC)"
|
||||
SFLAGS=''
|
||||
VERBOSE=1
|
||||
DESTDIR="${D}"
|
||||
)
|
||||
}
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
src_compile() {
|
||||
emake "${myzathuraconf[@]}"
|
||||
src_configure() {
|
||||
local emesonargs=(
|
||||
--libdir=/usr/$(get_libdir)
|
||||
-Denable-magic=$(usex magic true false)
|
||||
-Denable-seccomp=$(usex seccomp true false)
|
||||
-Denable-sqlite=$(usex sqlite true false)
|
||||
-Denable-synctex=$(usex synctex true false)
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
Xemake "${myzathuraconf[@]}" test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake "${myzathuraconf[@]}" install
|
||||
dodoc AUTHORS
|
||||
virtx meson_src_test
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_icon_cache_update
|
||||
xdg_desktop_database_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_icon_cache_update
|
||||
xdg_desktop_database_update
|
||||
}
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,4 +1,4 @@
|
||||
DIST mongodb-src-r3.4.10.tar.gz 39959937 BLAKE2B f14f081525f694b939bc21f8cb6364c2a37573c0e1867322dd2062dc167b112751579c3e2d76730b3ff07b0c6bbfd36666bbea99162b7c10eef62d92eb1b0850 SHA512 6293dde40a8433477ba3b1cf77abbdb32b28ce58279cc616b488647c8ab71b5ab3eab2146058c4a74b9e00f0938f1415020e2f26ea01f2b29dd78a1a38d58c3a
|
||||
DIST mongodb-src-r3.4.16.tar.gz 40093657 BLAKE2B 7123444dbdd0b2ad3adfb3391e0177d33c1b6c6a4ea83027821c564faad047a736e52926bc15c58bef59c18282436e913fd3bc9963705e030da01356f83ea367 SHA512 e22eb1fe2a832fed8305200614988c5ecfd619cee44fe2263bffa151732c0e26584084e64065dbc65152be6e5c1767a538193770359bea92f3703c72239075db
|
||||
DIST mongodb-src-r3.6.8.tar.gz 40428295 BLAKE2B cc02f73cfb49fb38ccabaad5a02610ce73fc41895ce944e48669e254bcbc70c8872a1bd7f8e04371fae4fcd9af2466fd8550367dd1d1da5cee50b86fc5023bf2 SHA512 c981f3269be3bafb59aa89d36c39a801fd7007b60db6c09b4616a559aaf8e50b34cabbdac2b59f23552c0a5112913fba468f7e2ed9a5f4daa3702dcffdf34999
|
||||
DIST mongodb-src-r4.0.3.tar.gz 49435646 BLAKE2B 1663823d48ec6d93b30b4d68a09bab164291530fd4966fcdd07ffbaceaf25d9fc5c7480d0d794fdd374fa3a2d11f19d87556cf0c47198a13f9d8fb5ccf7f0343 SHA512 c77a01d8d16322514f42030c46a0aa9cedb90f186375222eeb31648060265006b5e929bdde6ca8e7ecd71018f7c19f5bade463d98db0f053d586ffc8adc99550
|
||||
DIST mongodb-src-r4.0.4.tar.gz 49462543 BLAKE2B a1193ebc6ed818d4e5f27bff1792b6c6c193ff063cae36f2f7adcf63a3b780658d221691c58f42e494ec514d78c81d093067ea7dce8c7158a28846434f493821 SHA512 7e434c8ac715793d7b0015116af72cde766bae953cdc38653a2746ef4a76898dec58f8ee607d9357b87fa11e5a1f0248ae739473ded2d3dcca2b2801434b07e2
|
||||
|
@ -1,194 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
SCONS_MIN_VERSION="2.3.0"
|
||||
CHECKREQS_DISK_BUILD="2400M"
|
||||
CHECKREQS_DISK_USR="512M"
|
||||
CHECKREQS_MEMORY="1024M"
|
||||
|
||||
inherit eutils flag-o-matic multilib multiprocessing pax-utils python-any-r1 scons-utils systemd toolchain-funcs user versionator check-reqs
|
||||
|
||||
MY_P=${PN}-src-r${PV/_rc/-rc}
|
||||
|
||||
DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
|
||||
HOMEPAGE="http://www.mongodb.org"
|
||||
SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="AGPL-3 Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64"
|
||||
IUSE="debug kerberos libressl mms-agent ssl test +tools"
|
||||
|
||||
RDEPEND=">=app-arch/snappy-1.1.3
|
||||
>=dev-cpp/yaml-cpp-0.5.3
|
||||
>=dev-libs/boost-1.60:=[threads(+)]
|
||||
>=dev-libs/libpcre-8.41[cxx]
|
||||
dev-libs/snowball-stemmer
|
||||
net-libs/libpcap
|
||||
>=sys-libs/zlib-1.2.8:=
|
||||
mms-agent? ( app-admin/mms-agent )
|
||||
ssl? (
|
||||
!libressl? ( >=dev-libs/openssl-1.0.1g:0= )
|
||||
libressl? ( dev-libs/libressl:0= )
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
=dev-lang/python-2*
|
||||
<dev-util/scons-3
|
||||
>=sys-devel/gcc-5.3.0:*
|
||||
sys-libs/ncurses
|
||||
sys-libs/readline
|
||||
debug? ( dev-util/valgrind )
|
||||
kerberos? ( dev-libs/cyrus-sasl[kerberos] )
|
||||
test? (
|
||||
dev-python/pymongo
|
||||
dev-python/pyyaml
|
||||
)"
|
||||
PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-3.2.10-boost-1.62.patch"
|
||||
"${FILESDIR}/${PN}-3.4.0-fix-scons.patch"
|
||||
"${FILESDIR}/${PN}-3.4.6-sysmacros-include.patch"
|
||||
"${FILESDIR}/${PN}-3.4.7-no-boost-check.patch"
|
||||
)
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
pkg_pretend() {
|
||||
if [[ ${REPLACING_VERSIONS} < 3.0 ]]; then
|
||||
ewarn "To upgrade from a version earlier than the 3.0-series, you must"
|
||||
ewarn "successively upgrade major releases until you have upgraded"
|
||||
ewarn "to 3.2-series. Then upgrade to 3.4 series."
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup mongodb
|
||||
enewuser mongodb -1 -1 /var/lib/${PN} mongodb
|
||||
|
||||
# Maintainer notes
|
||||
#
|
||||
# --use-system-tcmalloc is strongly NOT recommended:
|
||||
# https://www.mongodb.org/about/contributors/tutorial/build-mongodb-from-source/
|
||||
|
||||
scons_opts=(
|
||||
CC="$(tc-getCC)"
|
||||
CXX="$(tc-getCXX)"
|
||||
|
||||
--disable-warnings-as-errors
|
||||
--use-system-boost
|
||||
--use-system-pcre
|
||||
--use-system-snappy
|
||||
--use-system-stemmer
|
||||
--use-system-yaml
|
||||
--use-system-zlib
|
||||
)
|
||||
|
||||
if use debug; then
|
||||
scons_opts+=( --dbg=on )
|
||||
fi
|
||||
|
||||
if use prefix; then
|
||||
scons_opts+=(
|
||||
--cpppath="${EPREFIX}/usr/include"
|
||||
--libpath="${EPREFIX}/usr/$(get_libdir)"
|
||||
)
|
||||
fi
|
||||
|
||||
if use kerberos; then
|
||||
scons_opts+=( --use-sasl-client )
|
||||
fi
|
||||
|
||||
if use ssl; then
|
||||
scons_opts+=( --ssl )
|
||||
fi
|
||||
|
||||
python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# respect mongoDB upstream's basic recommendations
|
||||
# see bug #536688 and #526114
|
||||
if ! use debug; then
|
||||
filter-flags '-m*'
|
||||
filter-flags '-O?'
|
||||
fi
|
||||
escons "${scons_opts[@]}" core tools
|
||||
}
|
||||
|
||||
src_install() {
|
||||
escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr
|
||||
|
||||
local x
|
||||
for x in /var/{lib,log}/${PN}; do
|
||||
keepdir "${x}"
|
||||
fowners mongodb:mongodb "${x}"
|
||||
fperms 0750 "${x}"
|
||||
done
|
||||
|
||||
doman debian/mongo*.1
|
||||
dodoc README docs/building.md
|
||||
|
||||
newinitd "${FILESDIR}/${PN}.initd-r3" ${PN}
|
||||
newconfd "${FILESDIR}/${PN}.confd-r3" ${PN}
|
||||
newinitd "${FILESDIR}/${PN/db/s}.initd-r3" ${PN/db/s}
|
||||
newconfd "${FILESDIR}/${PN/db/s}.confd-r3" ${PN/db/s}
|
||||
|
||||
insinto /etc
|
||||
newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf
|
||||
newins "${FILESDIR}/${PN/db/s}.conf-r2" ${PN/db/s}.conf
|
||||
|
||||
systemd_dounit "${FILESDIR}/${PN}.service"
|
||||
|
||||
insinto /etc/logrotate.d/
|
||||
newins "${FILESDIR}/${PN}.logrotate" ${PN}
|
||||
|
||||
# see bug #526114
|
||||
pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos}
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# wrt bug #461466
|
||||
if [[ "$(get_libdir)" == "lib64" ]]; then
|
||||
rmdir "${ED}"/usr/lib/ &>/dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
# FEATURES="test -usersandbox" emerge dev-db/mongodb
|
||||
src_test() {
|
||||
# this one test fails
|
||||
rm jstests/core/jsHeapLimit.js || die
|
||||
|
||||
"${EPYTHON}" ./buildscripts/resmoke.py --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local v
|
||||
for v in ${REPLACING_VERSIONS}; do
|
||||
if ! version_is_at_least 3.0 ${v}; then
|
||||
ewarn "!! IMPORTANT !!"
|
||||
ewarn " "
|
||||
ewarn "${PN} configuration files have changed !"
|
||||
ewarn " "
|
||||
ewarn "Make sure you migrate from /etc/conf.d/${PN} to the new YAML standard in /etc/${PN}.conf"
|
||||
ewarn " http://docs.mongodb.org/manual/reference/configuration-options/"
|
||||
ewarn " "
|
||||
ewarn "Make sure you also follow the upgrading process :"
|
||||
ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/"
|
||||
ewarn " "
|
||||
ewarn "MongoDB 3.0 introduces the WiredTiger storage engine."
|
||||
ewarn "WiredTiger is incompatible with MMAPv1 and you need to dump/reload your data if you want to use it."
|
||||
ewarn "Once you have your data dumped, you need to set storage.engine: wiredTiger in /etc/${PN}.conf"
|
||||
ewarn " http://docs.mongodb.org/master/release-notes/3.0-upgrade/#change-storage-engine-to-wiredtiger"
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
ewarn "Make sure to read the release notes and follow the upgrade process:"
|
||||
ewarn " https://docs.mongodb.org/manual/release-notes/3.4/"
|
||||
ewarn " https://docs.mongodb.com/manual/release-notes/3.4/#upgrade-procedures"
|
||||
}
|
@ -0,0 +1,163 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
SCONS_MIN_VERSION="2.5.0"
|
||||
CHECKREQS_DISK_BUILD="2400M"
|
||||
CHECKREQS_DISK_USR="512M"
|
||||
CHECKREQS_MEMORY="1024M"
|
||||
|
||||
inherit check-reqs eapi7-ver flag-o-matic multiprocessing pax-utils python-single-r1 scons-utils systemd toolchain-funcs user
|
||||
|
||||
MY_P=${PN}-src-r${PV/_rc/-rc}
|
||||
|
||||
DESCRIPTION="A high-performance, open source, schema-free document-oriented database"
|
||||
HOMEPAGE="https://www.mongodb.com"
|
||||
SRC_URI="https://fastdl.mongodb.org/src/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0 SSPL"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="debug kerberos libressl mms-agent ssl test +tools"
|
||||
|
||||
RDEPEND=">=app-arch/snappy-1.1.3
|
||||
>=dev-cpp/yaml-cpp-0.5.3:=
|
||||
>=dev-libs/boost-1.60:=[threads(+)]
|
||||
>=dev-libs/libpcre-8.41[cxx]
|
||||
dev-libs/snowball-stemmer
|
||||
net-libs/libpcap
|
||||
>=sys-libs/zlib-1.2.11:=
|
||||
kerberos? ( dev-libs/cyrus-sasl[kerberos] )
|
||||
mms-agent? ( app-admin/mms-agent )
|
||||
ssl? (
|
||||
!libressl? ( >=dev-libs/openssl-1.0.1g:0= )
|
||||
libressl? ( dev-libs/libressl:0= )
|
||||
)"
|
||||
DEPEND="${RDEPEND}
|
||||
${PYTHON_DEPS}
|
||||
dev-python/cheetah[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
virtual/python-typing[${PYTHON_USEDEP}]
|
||||
sys-libs/ncurses:0=
|
||||
sys-libs/readline:0=
|
||||
debug? ( dev-util/valgrind )
|
||||
test? (
|
||||
dev-python/pymongo[${PYTHON_USEDEP}]
|
||||
)"
|
||||
PDEPEND="tools? ( >=app-admin/mongo-tools-${PV} )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-3.4.7-no-boost-check.patch"
|
||||
"${FILESDIR}/${PN}-3.6.1-fix-scons.patch"
|
||||
"${FILESDIR}/${PN}-4.0.0-no-compass.patch"
|
||||
)
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
pkg_pretend() {
|
||||
if [[ -n ${REPLACING_VERSIONS} ]]; then
|
||||
if ver_test "$REPLACING_VERSIONS" -lt 3.6; then
|
||||
ewarn "To upgrade from a version earlier than the 3.6-series, you must"
|
||||
ewarn "successively upgrade major releases until you have upgraded"
|
||||
ewarn "to 3.6-series. Then upgrade to 4.0 series."
|
||||
else
|
||||
ewarn "Be sure to set featureCompatibilityVersion to 3.6 before upgrading."
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup mongodb
|
||||
enewuser mongodb -1 -1 /var/lib/${PN} mongodb
|
||||
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# remove bundled libs
|
||||
rm -r src/third_party/{boost-*,pcre-*,scons-*,snappy-*,yaml-cpp-*,zlib-*} || die
|
||||
|
||||
# remove compass
|
||||
rm -r src/mongo/installer/compass || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source
|
||||
# --use-system-icu fails tests
|
||||
# --use-system-tcmalloc is strongly NOT recommended:
|
||||
scons_opts=(
|
||||
CC="$(tc-getCC)"
|
||||
CXX="$(tc-getCXX)"
|
||||
|
||||
--disable-warnings-as-errors
|
||||
--use-system-boost
|
||||
--use-system-pcre
|
||||
--use-system-snappy
|
||||
--use-system-stemmer
|
||||
--use-system-yaml
|
||||
--use-system-zlib
|
||||
)
|
||||
|
||||
use debug && scons_opts+=( --dbg=on )
|
||||
use kerberos && scons_opts+=( --use-sasl-client )
|
||||
use ssl && scons_opts+=( --ssl )
|
||||
|
||||
# respect mongoDB upstream's basic recommendations
|
||||
# see bug #536688 and #526114
|
||||
if ! use debug; then
|
||||
filter-flags '-m*'
|
||||
filter-flags '-O?'
|
||||
fi
|
||||
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
escons "${scons_opts[@]}" core tools
|
||||
}
|
||||
|
||||
# FEATURES="test -usersandbox" emerge dev-db/mongodb
|
||||
src_test() {
|
||||
"${EPYTHON}" ./buildscripts/resmoke.py --dbpathPrefix=test --suites core --jobs=$(makeopts_jobs) || die "Tests failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
escons "${scons_opts[@]}" --nostrip install --prefix="${ED}"/usr
|
||||
|
||||
doman debian/mongo*.1
|
||||
dodoc README docs/building.md
|
||||
|
||||
newinitd "${FILESDIR}/${PN}.initd-r3" ${PN}
|
||||
newconfd "${FILESDIR}/${PN}.confd-r3" ${PN}
|
||||
newinitd "${FILESDIR}/mongos.initd-r3" mongos
|
||||
newconfd "${FILESDIR}/mongos.confd-r3" mongos
|
||||
|
||||
insinto /etc
|
||||
newins "${FILESDIR}/${PN}.conf-r3" ${PN}.conf
|
||||
newins "${FILESDIR}/mongos.conf-r2" mongos.conf
|
||||
|
||||
systemd_dounit "${FILESDIR}/${PN}.service"
|
||||
|
||||
insinto /etc/logrotate.d/
|
||||
newins "${FILESDIR}/${PN}.logrotate" ${PN}
|
||||
|
||||
# see bug #526114
|
||||
pax-mark emr "${ED}"/usr/bin/{mongo,mongod,mongos}
|
||||
|
||||
local x
|
||||
for x in /var/{lib,log}/${PN}; do
|
||||
diropts -m0750 -o mongodb -g mongodb
|
||||
keepdir "${x}"
|
||||
done
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ewarn "Make sure to read the release notes and follow the upgrade process:"
|
||||
ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/"
|
||||
ewarn " https://docs.mongodb.com/manual/release-notes/$(ver_cut 1-2)/#upgrade-procedures"
|
||||
}
|
Binary file not shown.
@ -1,7 +1,3 @@
|
||||
DIST u-boot-2016.03.tar.bz2 11076762 BLAKE2B c36922c8400c8cb11b02ec3f3dfa2a06fabaac143149c7b46c73e0b4c4b09aeecc792736bcc66d5cecbdd51d2ae0454f65d677b24ad698dd9e3d28374c048d1d SHA512 d3a8d5f334a1a1a33756d9ac33d14eca689cafe1ada478e61b51dcbff1781266d4f0ea121e25d0232b292475721c04be63e5a153715b91a14dfc82656a54de6f
|
||||
DIST u-boot-2016.07.tar.bz2 11506848 BLAKE2B c35a294b9a5171609bf4ff199ddcb58e000417ffcc04f53c35fe4934c9b29872af477260889fbef614feb3933739155d78ece47c0f7bded4f6a0186329ca25a1 SHA512 fa76dbd7e654ff9e4b3166162be6c0a77ecf2eb2a952b4865df3c818ebcdca7e2bb75e5ba19bf0346000c3d185888552193bb74510b115426cfe444b78efd3ef
|
||||
DIST u-boot-2016.09.01.tar.bz2 11783287 BLAKE2B e378f42de04de6dcbd10d9b841c00a23056f9aca9a2633d101f5bf33d2c92b1aa2a52afa69eda858611d89b9811264aa1ae770acecea6fb6fab8d4e5bd8c2790 SHA512 aa503acb1ce4f64a936fbc1292e80c54fe334fcfb1a0da412a755f9a56a24993178ad1a5b8a51f777388d8ce5a62b0626bb5fead503f9b118f7d9f3f1a7c07b7
|
||||
DIST u-boot-2016.11.tar.bz2 12019669 BLAKE2B 3a6e4e2daf7ddb790d8a21647d9b0d4190b569fe40ae60340c8a8547f90700d7e9c380a30ccd2d48c004912fd5841a80138de1a8de15c7ec0b4ecab19011e506 SHA512 d393b2aa4114a6de7f990efe370891376c934a1cfac9530c3bc44f988e7f2c9f0ec26653e3275c72a0a1c2f4b44fcd0afe8394c9ae3ca93fee1c689d870c063d
|
||||
DIST u-boot-2017.05.tar.bz2 11938152 BLAKE2B 7e94284ecca4cb1314b43e222d1c944f74c5a98d9958da41adb574e5354145cad9cd6506d3dc866f7e63c1866d00db8c37e9f1d92a2299f2f8beedbc80cc30a1 SHA512 be270f9242a72b05463092a022bbabd54996762de1ff23bf7575124ac02e62f49572a4e2f6f571a5019047d40027e56e35593b5cc373c4a5a39b100c3377ba93
|
||||
DIST u-boot-2017.09.tar.bz2 11434323 BLAKE2B 9dbadeccb5c4432e997a5da76091aec714e2fad6922a80173e96b1ff930e69df510f6e090b073c8b2c3aeb4872f5e9b40ec879398e0c839df09f5edd1e52e951 SHA512 dff6e793f135e7d6cb9d85d6ef8e4aa7ed5c1e20eece4f434e8c0a6039eb75c3f2cb7bc550121b1f5a5709e943c7cc5d6d8590e05a47a6b0d0d8f05185fe7ec6
|
||||
DIST u-boot-2018.05.tar.bz2 12469276 BLAKE2B b09189d9bf8554c21630d42024d64894270c02e3efa8046bc2bef0efd68b9e0a02c3290228ffb71a4bab524d46111e32adb492c3ce9a3ef1be32287a3bbdb36a SHA512 218f71282c9d027b0faf210ce2d4d713779e0c61ea4a23f03d5dec0ca8836a3c26b46c5e258d583834f5b5a2f4663f98729ca4b0101a60f85457eb892f8370d2
|
||||
|
@ -1,43 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
MY_P="u-boot-${PV/_/-}"
|
||||
DESCRIPTION="utilities for working with Das U-Boot"
|
||||
HOMEPAGE="http://www.denx.de/wiki/U-Boot/WebHome"
|
||||
SRC_URI="ftp://ftp.denx.de/pub/u-boot/${MY_P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_compile() {
|
||||
# Unset a few KBUILD variables. Bug #540476
|
||||
unset KBUILD_OUTPUT KBUILD_SRC
|
||||
emake defconfig
|
||||
emake \
|
||||
HOSTSTRIP=: \
|
||||
STRIP=: \
|
||||
HOSTCC="$(tc-getCC)" \
|
||||
HOSTCFLAGS="${CFLAGS} ${CPPFLAGS}"' $(HOSTCPPFLAGS)' \
|
||||
HOSTLDFLAGS="${LDFLAGS}" \
|
||||
CONFIG_ENV_OVERWRITE=y \
|
||||
tools-all
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd tools || die
|
||||
dobin bmp_logo gen_eth_addr img2srec mkimage
|
||||
dobin easylogo/easylogo
|
||||
dobin env/fw_printenv
|
||||
dosym fw_printenv /usr/bin/fw_setenv
|
||||
insinto /etc
|
||||
doins env/fw_env.config
|
||||
doman "${S}"/doc/mkimage.1
|
||||
}
|
@ -1,43 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
MY_P="u-boot-${PV/_/-}"
|
||||
DESCRIPTION="utilities for working with Das U-Boot"
|
||||
HOMEPAGE="http://www.denx.de/wiki/U-Boot/WebHome"
|
||||
SRC_URI="ftp://ftp.denx.de/pub/u-boot/${MY_P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_compile() {
|
||||
# Unset a few KBUILD variables. Bug #540476
|
||||
unset KBUILD_OUTPUT KBUILD_SRC
|
||||
emake defconfig
|
||||
emake \
|
||||
HOSTSTRIP=: \
|
||||
STRIP=: \
|
||||
HOSTCC="$(tc-getCC)" \
|
||||
HOSTCFLAGS="${CFLAGS} ${CPPFLAGS}"' $(HOSTCPPFLAGS)' \
|
||||
HOSTLDFLAGS="${LDFLAGS}" \
|
||||
CONFIG_ENV_OVERWRITE=y \
|
||||
tools-all
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd tools || die
|
||||
dobin bmp_logo dumpimage fdtgrep gen_eth_addr img2srec mkenvimage mkimage
|
||||
dobin easylogo/easylogo
|
||||
dobin env/fw_printenv
|
||||
dosym fw_printenv /usr/bin/fw_setenv
|
||||
insinto /etc
|
||||
doins env/fw_env.config
|
||||
doman "${S}"/doc/mkimage.1
|
||||
}
|
@ -1,43 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
MY_P="u-boot-${PV/_/-}"
|
||||
DESCRIPTION="utilities for working with Das U-Boot"
|
||||
HOMEPAGE="http://www.denx.de/wiki/U-Boot/WebHome"
|
||||
SRC_URI="ftp://ftp.denx.de/pub/u-boot/${MY_P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_compile() {
|
||||
# Unset a few KBUILD variables. Bug #540476
|
||||
unset KBUILD_OUTPUT KBUILD_SRC
|
||||
emake defconfig
|
||||
emake \
|
||||
HOSTSTRIP=: \
|
||||
STRIP=: \
|
||||
HOSTCC="$(tc-getCC)" \
|
||||
HOSTCFLAGS="${CFLAGS} ${CPPFLAGS}"' $(HOSTCPPFLAGS)' \
|
||||
HOSTLDFLAGS="${LDFLAGS}" \
|
||||
CONFIG_ENV_OVERWRITE=y \
|
||||
tools-all
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd tools || die
|
||||
dobin bmp_logo gen_eth_addr img2srec mkimage
|
||||
dobin easylogo/easylogo
|
||||
dobin env/fw_printenv
|
||||
dosym fw_printenv /usr/bin/fw_setenv
|
||||
insinto /etc
|
||||
doins env/fw_env.config
|
||||
doman "${S}"/doc/mkimage.1
|
||||
}
|
@ -1,43 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
MY_P="u-boot-${PV/_/-}"
|
||||
DESCRIPTION="utilities for working with Das U-Boot"
|
||||
HOMEPAGE="http://www.denx.de/wiki/U-Boot/WebHome"
|
||||
SRC_URI="ftp://ftp.denx.de/pub/u-boot/${MY_P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_compile() {
|
||||
# Unset a few KBUILD variables. Bug #540476
|
||||
unset KBUILD_OUTPUT KBUILD_SRC
|
||||
emake defconfig
|
||||
emake \
|
||||
HOSTSTRIP=: \
|
||||
STRIP=: \
|
||||
HOSTCC="$(tc-getCC)" \
|
||||
HOSTCFLAGS="${CFLAGS} ${CPPFLAGS}"' $(HOSTCPPFLAGS)' \
|
||||
HOSTLDFLAGS="${LDFLAGS}" \
|
||||
CONFIG_ENV_OVERWRITE=y \
|
||||
tools-all
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd tools || die
|
||||
dobin bmp_logo dumpimage fdtgrep gen_eth_addr img2srec mkenvimage mkimage
|
||||
dobin easylogo/easylogo
|
||||
dobin env/fw_printenv
|
||||
dosym fw_printenv /usr/bin/fw_setenv
|
||||
insinto /etc
|
||||
doins env/fw_env.config
|
||||
doman "${S}"/doc/mkimage.1
|
||||
}
|
@ -1,43 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
MY_P="u-boot-${PV/_/-}"
|
||||
DESCRIPTION="utilities for working with Das U-Boot"
|
||||
HOMEPAGE="http://www.denx.de/wiki/U-Boot/WebHome"
|
||||
SRC_URI="ftp://ftp.denx.de/pub/u-boot/${MY_P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
src_compile() {
|
||||
# Unset a few KBUILD variables. Bug #540476
|
||||
unset KBUILD_OUTPUT KBUILD_SRC
|
||||
emake defconfig
|
||||
emake \
|
||||
HOSTSTRIP=: \
|
||||
STRIP=: \
|
||||
HOSTCC="$(tc-getCC)" \
|
||||
HOSTCFLAGS="${CFLAGS} ${CPPFLAGS}"' $(HOSTCPPFLAGS)' \
|
||||
HOSTLDFLAGS="${LDFLAGS}" \
|
||||
CONFIG_ENV_OVERWRITE=y \
|
||||
tools-all
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd tools || die
|
||||
dobin bmp_logo dumpimage fdtgrep gen_eth_addr img2srec mkenvimage mkimage
|
||||
dobin easylogo/easylogo
|
||||
dobin env/fw_printenv
|
||||
dosym fw_printenv /usr/bin/fw_setenv
|
||||
insinto /etc
|
||||
doins env/fw_env.config
|
||||
doman "${S}"/doc/mkimage.1
|
||||
}
|
Binary file not shown.
@ -1,2 +1 @@
|
||||
DIST tiled-1.1.6.tar.gz 16051699 BLAKE2B 61e33682cbd0d3045c12b20fc852ec8ae81103fc1d9818a7e17222615676dd2d3889033d6d6ba536e63e069a44aaeebeaaffb96b94a2cbcb8f1793553a466703 SHA512 d1083a938bbbd87897c5897fe79d424706e719a4319680ed907be481773daea656fc5b3230ba6b674e5ea044e22ee0044df2a07a7c91c56f9521e32b86847830
|
||||
DIST tiled-1.2.0.tar.gz 17007687 BLAKE2B 6bb5a34a19868574801a69015f6a05b299dd5b34df865cacf5d2a747a62ae731b80778fe49a432c5487cbfa3d30186dc80011cc8882cb86ac347fb35a7421cbc SHA512 9c0c151348a90344b355e9bc8a7c9d38e2203d48474e8cf496e2c08cc75f764042e4355db2827f0e3518a1c03bfbcc79be7ba643c44c50430c7ecec09fbb8563
|
||||
|
@ -1,63 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
inherit gnome2-utils multilib python-single-r1 qmake-utils xdg
|
||||
|
||||
DESCRIPTION="A general purpose tile map editor"
|
||||
HOMEPAGE="https://www.mapeditor.org/"
|
||||
SRC_URI="https://github.com/bjorn/tiled/archive/v${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD BSD-2 GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64"
|
||||
IUSE="examples python"
|
||||
|
||||
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-qt/qtcore-5.7:5
|
||||
>=dev-qt/qtgui-5.7:5
|
||||
>=dev-qt/qtnetwork-5.7:5
|
||||
>=dev-qt/qtwidgets-5.7:5
|
||||
sys-libs/zlib
|
||||
python? ( ${PYTHON_DEPS} )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-qt/linguist-tools:5
|
||||
"
|
||||
|
||||
DOCS=( AUTHORS COPYING NEWS.md README.md )
|
||||
|
||||
pkg_setup() {
|
||||
use python && python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
eqmake5 LIBDIR="/usr/$(get_libdir)" PREFIX="/usr" DISABLE_PYTHON_PLUGIN="$(usex !python)"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake INSTALL_ROOT="${D}" install
|
||||
|
||||
einstalldocs
|
||||
|
||||
if use examples ; then
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
dodoc -r examples
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
gnome2_icon_cache_update
|
||||
xdg_desktop_database_update
|
||||
xdg_mimeinfo_database_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
gnome2_icon_cache_update
|
||||
xdg_desktop_database_update
|
||||
xdg_mimeinfo_database_update
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue