parent
d7c8226c98
commit
dc66d1519e
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,8 +1,18 @@
|
|||||||
DIST BookForAppliDev-4.10.03.pdf 3428164 BLAKE2B e553618bc666983a906827f5b8d5795b800c1baba47435fb830ae441f06e525d8db63aff20546210292215834da67c6a113e79f83ff61fbe2fb77b91383ae5e8 SHA512 20572135306945724f28a8f00088d9f4e5c6e1dfa012666152a6ec78856adbab019a0aa1dfb03034cf2686d8244b8dab7553c9bc12847c55364e7b80928a5e50
|
DIST BookFAQ-4.10.5_p2.pdf 183943 BLAKE2B a66e170d52d2b06e20d0521d45ae5e0fb2113db8b4fadcc17706328430a44dff0406eb781c95cd14cf84baea877f05dc8bf7276bd5d9bdeca03c4edee04ef65a SHA512 2273ef07e42a86fee916bca385f9fe1f850d263b343629392991c3bc34da8fb5c2e5490707f34dcdb2d138487ec15e2f01254dde545a49a98fa491618d66234a
|
||||||
|
DIST BookFAQ-4.10.6.pdf 183227 BLAKE2B 50065fea13a2f5fed0e0de52b316968da05ebaf7fc8704fd9860b07ac83af9423ff2937a5b134a987b32dfec108b86548e4b0e0bcaddb1608850f336dc38ba7b SHA512 99a80740dd996d0a5f6ad198d82b9cbf991dac13096f4220530a9e87103791b65a43c887797efb261e2e461a0a89e652f18665095a661e68d1bbd763d8385d6d
|
||||||
DIST BookForAppliDev-4.10.05.pdf 3724808 BLAKE2B 7e50455cd3c49d1cf9bc2d60626af208f09000b20213d22d57c96c6d109f82f3a2e05fb55b798d5676cf092da74f1a8a6c52eb081ce7badbb8cb41118b4181d8 SHA512 32a4c1e5b93a79696e579d09d5c9c1e2123bf3f7fc99b2b96a0feb6c6b141d47d3241b24dabcb7725a2966d8d293765c7b8a03ba866021c4474ecb67f7719873
|
DIST BookForAppliDev-4.10.05.pdf 3724808 BLAKE2B 7e50455cd3c49d1cf9bc2d60626af208f09000b20213d22d57c96c6d109f82f3a2e05fb55b798d5676cf092da74f1a8a6c52eb081ce7badbb8cb41118b4181d8 SHA512 32a4c1e5b93a79696e579d09d5c9c1e2123bf3f7fc99b2b96a0feb6c6b141d47d3241b24dabcb7725a2966d8d293765c7b8a03ba866021c4474ecb67f7719873
|
||||||
DIST BookForToolDev-4.10.03.pdf 6805988 BLAKE2B 4bb091131c35bf7814d297d011e6ebb90bd2cd265b97d4ace406c9ec773f5c2a784b0b9a7e6bde16d43aee600c648e1ec7c71f8dba4984d69dc9ceb75ff58490 SHA512 46fea826f018f1e5e32534d8b27d7ec4c99e264d4d75c36fe0cb855efc081801467f4747ef30dfb0bf8ff62c54f5e172f2eb8c0dd4e56918b46166ed9ca39c77
|
DIST BookForApplicationDevelopers-4.10.5_p2.pdf 3724808 BLAKE2B 7e50455cd3c49d1cf9bc2d60626af208f09000b20213d22d57c96c6d109f82f3a2e05fb55b798d5676cf092da74f1a8a6c52eb081ce7badbb8cb41118b4181d8 SHA512 32a4c1e5b93a79696e579d09d5c9c1e2123bf3f7fc99b2b96a0feb6c6b141d47d3241b24dabcb7725a2966d8d293765c7b8a03ba866021c4474ecb67f7719873
|
||||||
|
DIST BookForApplicationDevelopers-4.10.6.pdf 3731281 BLAKE2B 40a7ba97dbde79bbdfcf800922bad6e8678818fcb49d175a1f8514dff1c893036fddc9f5a04710961a9612fa7d5ce9e422e5bf12d025f665cc60c29af4094b23 SHA512 1b78eb945bd8819daa0d218d069e9a799736ce8e8added481038e4c61619f533491b5d1119791e0adefb5c5bf0eedcc36435b23120ea3276977c459d20e1ee3c
|
||||||
DIST BookForToolDev-4.10.05.pdf 7380134 BLAKE2B c75ea70339eaf3a57b6baf2070eaff3ce0d91668f8201b380442b1bee00da5de22694a9a35996b1b2ced17a17f07a8498a95c2364711dfe994ac81352dbb7fd3 SHA512 7c716248ee3e72ca7159fd7913fdd8f3fa2428dc3d2b4c2082e324c93405d4d666a55eed30df22e058a0c68c25abd72c7bf24d1fc781e63a20708f43101c1973
|
DIST BookForToolDev-4.10.05.pdf 7380134 BLAKE2B c75ea70339eaf3a57b6baf2070eaff3ce0d91668f8201b380442b1bee00da5de22694a9a35996b1b2ced17a17f07a8498a95c2364711dfe994ac81352dbb7fd3 SHA512 7c716248ee3e72ca7159fd7913fdd8f3fa2428dc3d2b4c2082e324c93405d4d666a55eed30df22e058a0c68c25abd72c7bf24d1fc781e63a20708f43101c1973
|
||||||
DIST BookInstalGuide-4.10.03.pdf 977915 BLAKE2B 7a7605d7b469ce68e25ffd409918d83cfe98c1fca0b324227be449a6e2b8073bb364572becd93acce0aa0ed2f038ec2fd0c07b8f268a87e047e9e6b9ccf50630 SHA512 2bdd26e2933b4efb09e99fde420bbfcc66e664893fa44bdb6ac3df6d21efeb92511ad68ce84489b18f7d3bbb4204c3e2a4066c198c49163ed4f18ade14d3345f
|
DIST BookForToolkitDevelopers-4.10.5_p2.pdf 7380134 BLAKE2B c75ea70339eaf3a57b6baf2070eaff3ce0d91668f8201b380442b1bee00da5de22694a9a35996b1b2ced17a17f07a8498a95c2364711dfe994ac81352dbb7fd3 SHA512 7c716248ee3e72ca7159fd7913fdd8f3fa2428dc3d2b4c2082e324c93405d4d666a55eed30df22e058a0c68c25abd72c7bf24d1fc781e63a20708f43101c1973
|
||||||
|
DIST BookForToolkitDevelopers-4.10.6.pdf 7331646 BLAKE2B f5ef48bf09284e1207dbfd9513c096dba0595dd357caf45f52aa164206fb0c24935844b3b45f95d606339756c0a9bd558965b78de7cb62abc5bfd74a2b01bfbd SHA512 e108577c2d3dba45422fd5523b2a6fc222457e0cae76e34ebb2d1f4692b4ff9714a8a9f1ae95307aaae528b86373a844821a4a073733185ee56a3df94ce6e24a
|
||||||
DIST BookInstalGuide-4.10.05.pdf 329532 BLAKE2B e367ae17b11105a5324899e6fc1e4117c4586e4d617cf3aa8c97ebe2820ee9ee339a30f96174b41b14344d30dde6a84ca9639901facec5e85526349cf3623328 SHA512 cf60fcb34f245605ffea364c30cccd69e756e53801c23c51e01daa1f02da5fbda319210e4bf9154786b423248d3a579abd403f0c2ff9911ae9d3b7d91d314d26
|
DIST BookInstalGuide-4.10.05.pdf 329532 BLAKE2B e367ae17b11105a5324899e6fc1e4117c4586e4d617cf3aa8c97ebe2820ee9ee339a30f96174b41b14344d30dde6a84ca9639901facec5e85526349cf3623328 SHA512 cf60fcb34f245605ffea364c30cccd69e756e53801c23c51e01daa1f02da5fbda319210e4bf9154786b423248d3a579abd403f0c2ff9911ae9d3b7d91d314d26
|
||||||
DIST PhysicsReferenceManual-4.10.03.pdf 4721187 BLAKE2B 81a15732a2448300bae69fc531d3923f7749da311212c6e1128d156330787c0c79fa6ba16bf8f9545a995a281bb2c137e6b2712cb25a1aa15321273062061f1e SHA512 d55f119abf572c11ea62346c04e1277e3f85bf737619e48bd70eba34f69480156450e222a32274268b0849aece5d6f483cad21aef7746da13b946148f2c340c2
|
DIST Geant4InstallationGuide-4.10.5_p2.pdf 329532 BLAKE2B e367ae17b11105a5324899e6fc1e4117c4586e4d617cf3aa8c97ebe2820ee9ee339a30f96174b41b14344d30dde6a84ca9639901facec5e85526349cf3623328 SHA512 cf60fcb34f245605ffea364c30cccd69e756e53801c23c51e01daa1f02da5fbda319210e4bf9154786b423248d3a579abd403f0c2ff9911ae9d3b7d91d314d26
|
||||||
|
DIST Geant4InstallationGuide-4.10.6.pdf 327501 BLAKE2B 9379ce8243dcdc08f764f7217b86d1dd414c649cfc163702a16e883774be9ea2242b8f326672be0088dd180de727c95539227d8d17002f0bf79e74ecf5a5955c SHA512 3c480f493d093d22c6cf4378ddcebd7d192684a4202597fe04640e695cecc7ec36fb403311eae8a59fd88a5136d5734fadf03174b3391cdc06744a7b91834caa
|
||||||
|
DIST IntroductionToGeant4-4.10.5_p2.pdf 143798 BLAKE2B fa8d4e3899ca6dc7d0db0cd6cca0ed765ec6dc4b3ef96f9d0145b602ef38ed63fd888ac06047356432616f367fe8c8df9c71f48637d7bcce7defe8a8744ab2e0 SHA512 9249d2d5555093e71b5b1fdd199477cb246d574692a8f02338c762c71aa1f9a143840cbc9539d6f45cba492b3977ccc11cc6a632cf50b7e42aa693d6efaf921a
|
||||||
|
DIST IntroductionToGeant4-4.10.6.pdf 142963 BLAKE2B 69b3594fbe888c4d00cf41f27a20a4127df970d4b58da68ab921245b7a888f3d3e439c6bc2fd2b32b7720aef6e867159ea1dcc22a66f4fb91c78c7a8c60ff255 SHA512 ef04dfc8ef49f05d3eaeb625fa61d74c6b59dd1b3504d63ddf6a0c80dd547ca03f5ce0cd28fdd7e9f1638bb91ce7dbea059cc5ae26ed776d78767cddf8b237be
|
||||||
|
DIST PhysicsListGuide-4.10.5_p2.pdf 345493 BLAKE2B d2eb008b0e3ee754e0339eda24649e99c41a01e7f2ce41a44fd518d7a17c1d15b484c803a14692c28ebd4c162aa6463548f38088c4549dc1657b912c856d37a9 SHA512 fe94a355f49b61fcfd12948bbdad834f284f0086151cb8d097efebd4dd34c4cd84641f9b77d440e9d658d1fb0d00d4e512d452ae99c298a197df6ea5e468b678
|
||||||
|
DIST PhysicsListGuide-4.10.6.pdf 343740 BLAKE2B f53d7e06692af87aeee32a43406ff8388bc491e3cdfb37c41106e6d0848433ab3ab8c12da2160dc4a89593998f40d3447a026e1b294e989c902352f01e941d68 SHA512 58ffc1ed365f14cd03dce76ce98a6ef54d52bb4b4fa5d6906e64cbb8e81045e2ed980815760d5a25b95883c01ec081bfc8a21def2b43f9b61964cb50a79b5bfd
|
||||||
DIST PhysicsReferenceManual-4.10.05.pdf 19527078 BLAKE2B 1ac3dde2f9d039ac5f7bdffe4027e4117a9db71e4916f9dddedf6fde0390e33cf1a99f4f0d11708ed2dc2a3fb25cab3d15935d0f83a6a69c58ebf65dc53beb9e SHA512 cf1a5abb91d2c24502f3a37d4413d99c0555239c5e777505f8c8f17b81d90c2236766252ec563422d9b551787098e267a0b1595fd34588dfe0fd04945681881f
|
DIST PhysicsReferenceManual-4.10.05.pdf 19527078 BLAKE2B 1ac3dde2f9d039ac5f7bdffe4027e4117a9db71e4916f9dddedf6fde0390e33cf1a99f4f0d11708ed2dc2a3fb25cab3d15935d0f83a6a69c58ebf65dc53beb9e SHA512 cf1a5abb91d2c24502f3a37d4413d99c0555239c5e777505f8c8f17b81d90c2236766252ec563422d9b551787098e267a0b1595fd34588dfe0fd04945681881f
|
||||||
|
DIST PhysicsReferenceManual-4.10.5_p2.pdf 19527078 BLAKE2B 1ac3dde2f9d039ac5f7bdffe4027e4117a9db71e4916f9dddedf6fde0390e33cf1a99f4f0d11708ed2dc2a3fb25cab3d15935d0f83a6a69c58ebf65dc53beb9e SHA512 cf1a5abb91d2c24502f3a37d4413d99c0555239c5e777505f8c8f17b81d90c2236766252ec563422d9b551787098e267a0b1595fd34588dfe0fd04945681881f
|
||||||
|
DIST PhysicsReferenceManual-4.10.6.pdf 19489188 BLAKE2B 4323a460a62a9cb7a1bf575489ab02f15bb96dfe017a19d71e15f6d3a06ed8355246c2d5f362601ca5dff9cfad1e0032a85cc8aac88e150dca36308925016efe SHA512 7e42749e578809e89ed589498e18e15fa2a62cac61668e628c77af093a85454d79a5738f4ca034c73a2fb7c67afb9a563e9ffc16a20d85fdbab9f57b6bda4d55
|
||||||
|
@ -1,28 +0,0 @@
|
|||||||
# Copyright 1999-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
DESCRIPTION="User documentation for Geant4 physics simulation toolkit"
|
|
||||||
HOMEPAGE="https://geant4.web.cern.ch/geant4/support/userdocuments.shtml"
|
|
||||||
SRC_DOC="http://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides"
|
|
||||||
SRC_URI="
|
|
||||||
${SRC_DOC}/InstallationGuide/fo/BookInstalGuide.pdf -> BookInstalGuide-${PV}.pdf
|
|
||||||
${SRC_DOC}/ForApplicationDeveloper/fo/BookForAppliDev.pdf -> BookForAppliDev-${PV}.pdf
|
|
||||||
${SRC_DOC}/ForToolkitDeveloper/fo/BookForToolDev.pdf -> BookForToolDev-${PV}.pdf
|
|
||||||
${SRC_DOC}/PhysicsReferenceManual/fo/PhysicsReferenceManual.pdf -> PhysicsReferenceManual-${PV}.pdf
|
|
||||||
"
|
|
||||||
|
|
||||||
LICENSE="geant4"
|
|
||||||
SLOT="4"
|
|
||||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
S="${DISTDIR}"
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
local d
|
|
||||||
for d in *pdf; do newdoc ${d} ${d/-${PV}}; done
|
|
||||||
echo GEANT_DOC_DIR="${EPREFIX}/usr/share/doc/${PF}" >> 99geant-doc || die
|
|
||||||
doenvd 99geant-doc
|
|
||||||
}
|
|
@ -0,0 +1,42 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
# Note: documentation patch releases are not the same as Geant4 patch releases
|
||||||
|
|
||||||
|
MY_PV=V$(ver_cut 2-3)-$(ver_cut 5).0
|
||||||
|
|
||||||
|
DESCRIPTION="User documentation for Geant4 physics simulation toolkit"
|
||||||
|
HOMEPAGE="https://geant4.web.cern.ch/support/user_documentation"
|
||||||
|
SRC_DOC="https://geant4-userdoc.web.cern.ch/geant4-userdoc/UsersGuides"
|
||||||
|
SRC_URI="
|
||||||
|
${SRC_DOC}/FAQ/BackupVersions/${MY_PV}/fo/BookFAQ.pdf
|
||||||
|
-> BookFAQ-${PV}.pdf
|
||||||
|
${SRC_DOC}/ForApplicationDeveloper/BackupVersions/${MY_PV}/fo/BookForApplicationDevelopers.pdf
|
||||||
|
-> BookForApplicationDevelopers-${PV}.pdf
|
||||||
|
${SRC_DOC}/ForToolkitDeveloper/BackupVersions/${MY_PV}/fo/BookForToolkitDevelopers.pdf
|
||||||
|
-> BookForToolkitDevelopers-${PV}.pdf
|
||||||
|
${SRC_DOC}/InstallationGuide/BackupVersions/${MY_PV}/fo/Geant4InstallationGuide.pdf
|
||||||
|
-> Geant4InstallationGuide-${PV}.pdf
|
||||||
|
${SRC_DOC}/IntroductionToGeant4/BackupVersions/${MY_PV}/fo/IntroductionToGeant4.pdf
|
||||||
|
-> IntroductionToGeant4-${PV}.pdf
|
||||||
|
${SRC_DOC}/PhysicsListGuide/BackupVersions/${MY_PV}/fo/PhysicsListGuide.pdf
|
||||||
|
-> PhysicsListGuide-${PV}.pdf
|
||||||
|
${SRC_DOC}/PhysicsReferenceManual/BackupVersions/${MY_PV}/fo/PhysicsReferenceManual.pdf
|
||||||
|
-> PhysicsReferenceManual-${PV}.pdf
|
||||||
|
"
|
||||||
|
|
||||||
|
LICENSE="geant4"
|
||||||
|
SLOT="4"
|
||||||
|
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
S="${DISTDIR}"
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
local doc
|
||||||
|
for doc in *.pdf; do
|
||||||
|
newdoc ${doc} ${doc/-${PV}};
|
||||||
|
done
|
||||||
|
}
|
@ -0,0 +1,40 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
MY_PV=V$(ver_cut 2-3)
|
||||||
|
|
||||||
|
DESCRIPTION="User documentation for Geant4 physics simulation toolkit"
|
||||||
|
HOMEPAGE="https://geant4.web.cern.ch/support/user_documentation"
|
||||||
|
SRC_DOC="https://geant4-userdoc.web.cern.ch/geant4-userdoc/UsersGuides"
|
||||||
|
SRC_URI="
|
||||||
|
${SRC_DOC}/FAQ/BackupVersions/${MY_PV}/fo/BookFAQ.pdf
|
||||||
|
-> BookFAQ-${PV}.pdf
|
||||||
|
${SRC_DOC}/ForApplicationDeveloper/BackupVersions/${MY_PV}/fo/BookForAppliDev.pdf
|
||||||
|
-> BookForApplicationDevelopers-${PV}.pdf
|
||||||
|
${SRC_DOC}/ForToolkitDeveloper/BackupVersions/${MY_PV}/fo/BookForToolDev.pdf
|
||||||
|
-> BookForToolkitDevelopers-${PV}.pdf
|
||||||
|
${SRC_DOC}/InstallationGuide/BackupVersions/${MY_PV}/fo/BookInstalGuide.pdf
|
||||||
|
-> Geant4InstallationGuide-${PV}.pdf
|
||||||
|
${SRC_DOC}/IntroductionToGeant4/BackupVersions/${MY_PV}/fo/BookIntroToGeant4.pdf
|
||||||
|
-> IntroductionToGeant4-${PV}.pdf
|
||||||
|
${SRC_DOC}/PhysicsListGuide/BackupVersions/${MY_PV}/fo/PhysicsListGuide.pdf
|
||||||
|
-> PhysicsListGuide-${PV}.pdf
|
||||||
|
${SRC_DOC}/PhysicsReferenceManual/BackupVersions/${MY_PV}/fo/PhysicsReferenceManual.pdf
|
||||||
|
-> PhysicsReferenceManual-${PV}.pdf
|
||||||
|
"
|
||||||
|
|
||||||
|
LICENSE="geant4"
|
||||||
|
SLOT="4"
|
||||||
|
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
S="${DISTDIR}"
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
local doc
|
||||||
|
for doc in *.pdf; do
|
||||||
|
newdoc ${doc} ${doc/-${PV}};
|
||||||
|
done
|
||||||
|
}
|
Binary file not shown.
@ -1,2 +1,3 @@
|
|||||||
DIST qhexedit2-0.8.4.tar.gz 340766 BLAKE2B af24031fdd9f8d677f7e8ab8fd69667852dd971db30f5406b9aaaa08bf7f2dc692c87e99c141f355adc82c8226b5b29f53ce07ba63656d866f8688cb2cbc67f2 SHA512 8ed831d75c8ec1897dfd7ef497423908b26b0f56e6577928ed035654e52b437f64edd61cfcc1de6eaf5d1f29f9dc97da84d2edd7f427e3c09c9d75d7bc6504ff
|
DIST qhexedit2-0.8.4.tar.gz 340766 BLAKE2B af24031fdd9f8d677f7e8ab8fd69667852dd971db30f5406b9aaaa08bf7f2dc692c87e99c141f355adc82c8226b5b29f53ce07ba63656d866f8688cb2cbc67f2 SHA512 8ed831d75c8ec1897dfd7ef497423908b26b0f56e6577928ed035654e52b437f64edd61cfcc1de6eaf5d1f29f9dc97da84d2edd7f427e3c09c9d75d7bc6504ff
|
||||||
DIST qhexedit2-0.8.4_p20170719.tar.gz 342037 BLAKE2B 667a7c3e93ed3422f21da53b6811fca53b210cfaf2603cf2a61e377e68f295b5024a9fa73d444c1e50af274bdbc6faa62bc2ab4aad176a8b3a6d7540117c5a30 SHA512 3c412b9bbe4f84f6f445b6ad530fc51dc5422a0a5bb6184edc7df92595aa5215c345e2b16effae8de758b299c5f7f7d44cf54dd65a180941c30790194679baa8
|
DIST qhexedit2-0.8.4_p20170719.tar.gz 342037 BLAKE2B 667a7c3e93ed3422f21da53b6811fca53b210cfaf2603cf2a61e377e68f295b5024a9fa73d444c1e50af274bdbc6faa62bc2ab4aad176a8b3a6d7540117c5a30 SHA512 3c412b9bbe4f84f6f445b6ad530fc51dc5422a0a5bb6184edc7df92595aa5215c345e2b16effae8de758b299c5f7f7d44cf54dd65a180941c30790194679baa8
|
||||||
|
DIST qhexedit2-0.8.6_p20190316.tar.gz 355512 BLAKE2B a7edc8d05a7788f3a3f2202762ca3dc436cafbde1b1216ff1bb342055600a2e9d53c27fe324380331b8182904545c698106129238065cd2416d244fdfa176446 SHA512 4ef288c8a220c308d38c41fee83fe962e213cdfa448445ef73c3d2fe1952b68f2096732e78d2aa0a87eddd3cf2f47bed3e77807e12d2b7616c1447b3bf1b0e7d
|
||||||
|
@ -0,0 +1,85 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{6,7} )
|
||||||
|
|
||||||
|
DISTUTILS_OPTIONAL=1
|
||||||
|
|
||||||
|
inherit distutils-r1 qmake-utils
|
||||||
|
|
||||||
|
EGIT_COMMIT="ba5af8616b3a6c916e718914225a483267c01356"
|
||||||
|
DESCRIPTION="Hex editor library, Qt application written in C++ with Python bindings"
|
||||||
|
HOMEPAGE="https://github.com/lancos/qhexedit2/"
|
||||||
|
SRC_URI="https://github.com/lancos/${PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="doc +gui python"
|
||||||
|
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/${PN}-0.8.4-setup.py.patch"
|
||||||
|
)
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
dev-qt/qtcore:5
|
||||||
|
dev-qt/qtgui:5
|
||||||
|
dev-qt/qtwidgets:5
|
||||||
|
python? (
|
||||||
|
dev-python/PyQt5[gui,widgets,${PYTHON_USEDEP}]
|
||||||
|
dev-python/sip[${PYTHON_USEDEP}]
|
||||||
|
${PYTHON_DEPS}
|
||||||
|
)
|
||||||
|
"
|
||||||
|
DEPEND="${RDEPEND}"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
sed -i -e '/^unix:DESTDIR/ d' -e "\$atarget.path = /usr/$(get_libdir)" \
|
||||||
|
-e "\$aINSTALLS += target" src/qhexedit.pro \
|
||||||
|
|| die "src/qhexedit.pro: sed failed"
|
||||||
|
use python && distutils-r1_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
eqmake5 src/qhexedit.pro
|
||||||
|
if use gui; then
|
||||||
|
cd example || die "can't cd example"
|
||||||
|
eqmake5 qhexedit.pro
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
default
|
||||||
|
use python && distutils-r1_src_compile
|
||||||
|
use gui && emake -C example
|
||||||
|
}
|
||||||
|
|
||||||
|
python_compile() {
|
||||||
|
use python && distutils-r1_python_compile build_ext --library-dirs="${S}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
cd test || die "can't cd test"
|
||||||
|
mkdir logs || die "can't create logs dir"
|
||||||
|
eqmake5 chunks.pro
|
||||||
|
emake
|
||||||
|
./chunks || die "test run failed"
|
||||||
|
grep -q "^NOK" logs/Summary.log && die "test failed"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
emake INSTALL_ROOT="${D}" install
|
||||||
|
doheader src/*.h
|
||||||
|
use python && distutils-r1_src_install
|
||||||
|
use gui && dobin example/qhexedit
|
||||||
|
if use doc; then
|
||||||
|
dodoc -r doc/html
|
||||||
|
dodoc doc/release.txt
|
||||||
|
fi
|
||||||
|
}
|
Binary file not shown.
@ -0,0 +1,175 @@
|
|||||||
|
From 3d442dbf936d197aa11ca0a71663c2bc61696151 Mon Sep 17 00:00:00 2001
|
||||||
|
From: fujiwarat <takao.fujiwara1@gmail.com>
|
||||||
|
Date: Fri, 13 Sep 2019 15:59:03 +0900
|
||||||
|
Subject: [PATCH] bus: Implement GDBusAuthObserver callback
|
||||||
|
|
||||||
|
ibus uses a GDBusServer with G_DBUS_SERVER_FLAGS_AUTHENTICATION_ALLOW_ANONYMOUS,
|
||||||
|
and doesn't set a GDBusAuthObserver, which allows anyone who can connect
|
||||||
|
to its AF_UNIX socket to authenticate and be authorized to send method calls.
|
||||||
|
It also seems to use an abstract AF_UNIX socket, which does not have
|
||||||
|
filesystem permissions, so the practical effect might be that a local
|
||||||
|
attacker can connect to another user's ibus service and make arbitrary
|
||||||
|
method calls.
|
||||||
|
|
||||||
|
BUGS=rhbz#1717958
|
||||||
|
---
|
||||||
|
bus/server.c | 89 ++++++++++++++++++++++++++++++++++++++++++----------
|
||||||
|
1 file changed, 73 insertions(+), 16 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/bus/server.c b/bus/server.c
|
||||||
|
index 3a626230..2439de14 100644
|
||||||
|
--- a/bus/server.c
|
||||||
|
+++ b/bus/server.c
|
||||||
|
@@ -2,7 +2,8 @@
|
||||||
|
/* vim:set et sts=4: */
|
||||||
|
/* bus - The Input Bus
|
||||||
|
* Copyright (C) 2008-2010 Peng Huang <shawn.p.huang@gmail.com>
|
||||||
|
- * Copyright (C) 2008-2010 Red Hat, Inc.
|
||||||
|
+ * Copyright (C) 2011-2019 Takao Fujiwara <takao.fujiwara1@gmail.com>
|
||||||
|
+ * Copyright (C) 2008-2019 Red Hat, Inc.
|
||||||
|
*
|
||||||
|
* This library is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
|
@@ -69,17 +70,64 @@ _restart_server (void)
|
||||||
|
exit (-1);
|
||||||
|
}
|
||||||
|
|
||||||
|
+/**
|
||||||
|
+ * bus_allow_mechanism_cb:
|
||||||
|
+ * @observer: A #GDBusAuthObserver.
|
||||||
|
+ * @mechanism: The name of the mechanism.
|
||||||
|
+ * @user_data: always %NULL.
|
||||||
|
+ *
|
||||||
|
+ * Check if @mechanism can be used to authenticate the other peer.
|
||||||
|
+ * Returns: %TRUE if the peer's mechanism is allowed.
|
||||||
|
+ */
|
||||||
|
+static gboolean
|
||||||
|
+bus_allow_mechanism_cb (GDBusAuthObserver *observer,
|
||||||
|
+ const gchar *mechanism,
|
||||||
|
+ G_GNUC_UNUSED gpointer user_data)
|
||||||
|
+{
|
||||||
|
+ if (g_strcmp0 (mechanism, "EXTERNAL") == 0)
|
||||||
|
+ return TRUE;
|
||||||
|
+ return FALSE;
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
+/**
|
||||||
|
+ * bus_authorize_authenticated_peer_cb:
|
||||||
|
+ * @observer: A #GDBusAuthObserver.
|
||||||
|
+ * @stream: A #GIOStream.
|
||||||
|
+ * @credentials: A #GCredentials.
|
||||||
|
+ * @user_data: always %NULL.
|
||||||
|
+ *
|
||||||
|
+ * Check if a peer who has already authenticated should be authorized.
|
||||||
|
+ * Returns: %TRUE if the peer's credential is authorized.
|
||||||
|
+ */
|
||||||
|
+static gboolean
|
||||||
|
+bus_authorize_authenticated_peer_cb (GDBusAuthObserver *observer,
|
||||||
|
+ GIOStream *stream,
|
||||||
|
+ GCredentials *credentials,
|
||||||
|
+ G_GNUC_UNUSED gpointer user_data)
|
||||||
|
+{
|
||||||
|
+ gboolean authorized = FALSE;
|
||||||
|
+ if (credentials) {
|
||||||
|
+ GCredentials *own_credentials = g_credentials_new ();
|
||||||
|
+ if (g_credentials_is_same_user (credentials, own_credentials, NULL))
|
||||||
|
+ authorized = TRUE;
|
||||||
|
+ g_object_unref (own_credentials);
|
||||||
|
+ }
|
||||||
|
+ return authorized;
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
/**
|
||||||
|
* bus_new_connection_cb:
|
||||||
|
- * @user_data: always NULL.
|
||||||
|
- * @returns: TRUE when the function can handle the connection.
|
||||||
|
+ * @observer: A #GDBusAuthObserver.
|
||||||
|
+ * @dbus_connection: A #GDBusconnection.
|
||||||
|
+ * @user_data: always %NULL.
|
||||||
|
*
|
||||||
|
* Handle incoming connections.
|
||||||
|
+ * Returns: %TRUE when the function can handle the connection.
|
||||||
|
*/
|
||||||
|
static gboolean
|
||||||
|
-bus_new_connection_cb (GDBusServer *server,
|
||||||
|
- GDBusConnection *dbus_connection,
|
||||||
|
- gpointer user_data)
|
||||||
|
+bus_new_connection_cb (GDBusServer *server,
|
||||||
|
+ GDBusConnection *dbus_connection,
|
||||||
|
+ G_GNUC_UNUSED gpointer user_data)
|
||||||
|
{
|
||||||
|
BusConnection *connection = bus_connection_new (dbus_connection);
|
||||||
|
bus_dbus_impl_new_connection (dbus, connection);
|
||||||
|
@@ -94,9 +142,9 @@ bus_new_connection_cb (GDBusServer *server,
|
||||||
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
-_server_connect_start_portal_cb (GObject *source_object,
|
||||||
|
- GAsyncResult *res,
|
||||||
|
- gpointer user_data)
|
||||||
|
+_server_connect_start_portal_cb (GObject *source_object,
|
||||||
|
+ GAsyncResult *res,
|
||||||
|
+ G_GNUC_UNUSED gpointer user_data)
|
||||||
|
{
|
||||||
|
GVariant *result;
|
||||||
|
GError *error = NULL;
|
||||||
|
@@ -113,9 +161,9 @@ _server_connect_start_portal_cb (GObject *source_object,
|
||||||
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
-bus_acquired_handler (GDBusConnection *connection,
|
||||||
|
- const gchar *name,
|
||||||
|
- gpointer user_data)
|
||||||
|
+bus_acquired_handler (GDBusConnection *connection,
|
||||||
|
+ const gchar *name,
|
||||||
|
+ G_GNUC_UNUSED gpointer user_data)
|
||||||
|
{
|
||||||
|
g_dbus_connection_call (connection,
|
||||||
|
IBUS_SERVICE_PORTAL,
|
||||||
|
@@ -136,14 +184,17 @@ void
|
||||||
|
bus_server_init (void)
|
||||||
|
{
|
||||||
|
GError *error = NULL;
|
||||||
|
+ GDBusServerFlags flags = G_DBUS_SERVER_FLAGS_NONE;
|
||||||
|
+ gchar *guid;
|
||||||
|
+ GDBusAuthObserver *observer;
|
||||||
|
|
||||||
|
dbus = bus_dbus_impl_get_default ();
|
||||||
|
ibus = bus_ibus_impl_get_default ();
|
||||||
|
bus_dbus_impl_register_object (dbus, (IBusService *)ibus);
|
||||||
|
|
||||||
|
/* init server */
|
||||||
|
- GDBusServerFlags flags = G_DBUS_SERVER_FLAGS_AUTHENTICATION_ALLOW_ANONYMOUS;
|
||||||
|
- gchar *guid = g_dbus_generate_guid ();
|
||||||
|
+ guid = g_dbus_generate_guid ();
|
||||||
|
+ observer = g_dbus_auth_observer_new ();
|
||||||
|
if (!g_str_has_prefix (g_address, "unix:tmpdir=") &&
|
||||||
|
!g_str_has_prefix (g_address, "unix:path=")) {
|
||||||
|
g_error ("Your socket address does not have the format unix:tmpdir=$DIR "
|
||||||
|
@@ -152,7 +203,7 @@ bus_server_init (void)
|
||||||
|
server = g_dbus_server_new_sync (
|
||||||
|
g_address, /* the place where the socket file lives, e.g. /tmp, abstract namespace, etc. */
|
||||||
|
flags, guid,
|
||||||
|
- NULL /* observer */,
|
||||||
|
+ observer,
|
||||||
|
NULL /* cancellable */,
|
||||||
|
&error);
|
||||||
|
if (server == NULL) {
|
||||||
|
@@ -162,7 +213,13 @@ bus_server_init (void)
|
||||||
|
}
|
||||||
|
g_free (guid);
|
||||||
|
|
||||||
|
- g_signal_connect (server, "new-connection", G_CALLBACK (bus_new_connection_cb), NULL);
|
||||||
|
+ g_signal_connect (observer, "allow-mechanism",
|
||||||
|
+ G_CALLBACK (bus_allow_mechanism_cb), NULL);
|
||||||
|
+ g_signal_connect (observer, "authorize-authenticated-peer",
|
||||||
|
+ G_CALLBACK (bus_authorize_authenticated_peer_cb), NULL);
|
||||||
|
+ g_object_unref (observer);
|
||||||
|
+ g_signal_connect (server, "new-connection",
|
||||||
|
+ G_CALLBACK (bus_new_connection_cb), NULL);
|
||||||
|
|
||||||
|
g_dbus_server_start (server);
|
||||||
|
|
||||||
|
--
|
||||||
|
2.24.0
|
||||||
|
|
Binary file not shown.
@ -0,0 +1,91 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit rpm
|
||||||
|
|
||||||
|
BASE_PV=$(ver_cut 1-3)
|
||||||
|
MY_PV="${PV/_alpha/.alpha}"
|
||||||
|
MY_PV="${MY_PV/_beta/.beta}"
|
||||||
|
[[ ${PV} == *alpha* || ${PV} == *beta* ]] && PN_DEV="Dev"
|
||||||
|
|
||||||
|
DESCRIPTION="Translations for the Libreoffice suite"
|
||||||
|
HOMEPAGE="https://www.libreoffice.org"
|
||||||
|
BASE_SRC_URI_TESTING="https://download.documentfoundation.org/${PN/-l10n/}/testing/${BASE_PV}/rpm"
|
||||||
|
BASE_SRC_URI_STABLE="https://download.documentfoundation.org/${PN/-l10n/}/stable/${BASE_PV}/rpm"
|
||||||
|
|
||||||
|
LICENSE="|| ( LGPL-3 MPL-1.1 )"
|
||||||
|
SLOT="0"
|
||||||
|
# KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
IUSE="offlinehelp"
|
||||||
|
|
||||||
|
#
|
||||||
|
# when changing the language lists, please be careful to preserve the spaces (bug 491728)
|
||||||
|
#
|
||||||
|
# "en:en-US" for mapping from Gentoo "en" to upstream "en-US" etc.
|
||||||
|
LANGUAGES_HELP=" am ast bg bn-IN bn bo bs ca-valencia ca cs da de dz el en-GB en:en-US en-ZA eo es et eu fi fr gl gu he hi hr hu id is it ja ka km ko mk nb ne nl nn om pl pt-BR pt ru si sk sl sq sv tg tr ug uk vi zh-CN zh-TW "
|
||||||
|
LANGUAGES="${LANGUAGES_HELP}af ar as be br brx cy dgo fa ga gd gug kk kmr-Latn kn kok ks lb lo lt lv mai ml mn mni mr my nr nso oc or pa:pa-IN ro rw sa:sa-IN sat sd sid sr-Latn sr ss st sw-TZ ta te th tn ts tt uz ve xh zu "
|
||||||
|
|
||||||
|
for lang in ${LANGUAGES_HELP}; do
|
||||||
|
helppack="offlinehelp? ( ${BASE_SRC_URI_STABLE}/x86_64/LibreOffice${PN_DEV}_${BASE_PV}_Linux_x86-64_rpm_helppack_${lang#*:}.tar.gz -> LibreOffice_${MY_PV}_Linux_x86-64_rpm_helppack_${lang#*:}.tar.gz ${BASE_SRC_URI_TESTING}/x86_64/LibreOffice${PN_DEV}_${MY_PV}_Linux_x86-64_rpm_helppack_${lang#*:}.tar.gz -> LibreOffice_${MY_PV}_Linux_x86-64_rpm_helppack_${lang#*:}.tar.gz )"
|
||||||
|
SRC_URI+=" l10n_${lang%:*}? ( ${helppack} )"
|
||||||
|
done
|
||||||
|
for lang in ${LANGUAGES}; do
|
||||||
|
if [[ ${lang%:*} != en ]]; then
|
||||||
|
langpack="${BASE_SRC_URI_STABLE}/x86_64/LibreOffice${PN_DEV}_${BASE_PV}_Linux_x86-64_rpm_langpack_${lang#*:}.tar.gz -> LibreOffice_${MY_PV}_Linux_x86-64_rpm_langpack_${lang#*:}.tar.gz ${BASE_SRC_URI_TESTING}/x86_64/LibreOffice${PN_DEV}_${MY_PV}_Linux_x86-64_rpm_langpack_${lang#*:}.tar.gz -> LibreOffice_${MY_PV}_Linux_x86-64_rpm_langpack_${lang#*:}.tar.gz"
|
||||||
|
SRC_URI+=" l10n_${lang%:*}? ( ${langpack} )"
|
||||||
|
fi
|
||||||
|
IUSE+=" l10n_${lang%:*}"
|
||||||
|
done
|
||||||
|
unset lang helppack langpack
|
||||||
|
|
||||||
|
RDEPEND+="app-text/hunspell"
|
||||||
|
|
||||||
|
RESTRICT="strip"
|
||||||
|
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
local lang dir rpmdir
|
||||||
|
|
||||||
|
# First remove dictionaries, we want to use system ones.
|
||||||
|
find "${S}" -name *dict*.rpm -delete || die "Failed to remove dictionaries"
|
||||||
|
|
||||||
|
for lang in ${LANGUAGES}; do
|
||||||
|
# break away if not enabled
|
||||||
|
use l10n_${lang%:*} || continue
|
||||||
|
|
||||||
|
dir=${lang#*:}
|
||||||
|
|
||||||
|
# for english we provide just helppack, as translation is always there
|
||||||
|
if [[ ${lang%:*} != en ]]; then
|
||||||
|
rpmdir="LibreOffice_${MY_PV}_Linux_x86-64_rpm_langpack_${dir}/RPMS/"
|
||||||
|
[[ -d ${rpmdir} ]] || die "Missing directory: ${rpmdir}"
|
||||||
|
rpm_unpack ./${rpmdir}/*.rpm
|
||||||
|
fi
|
||||||
|
if [[ "${LANGUAGES_HELP}" =~ " ${lang} " ]] && use offlinehelp; then
|
||||||
|
rpmdir="LibreOffice_${MY_PV}_Linux_x86-64_rpm_helppack_${dir}/RPMS/"
|
||||||
|
[[ -d ${rpmdir} ]] || die "Missing directory: ${rpmdir}"
|
||||||
|
rpm_unpack ./${rpmdir}/*.rpm
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() { :; }
|
||||||
|
src_compile() { :; }
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
local dir="${S}"/opt/${PN/-l10n/}$(ver_cut 1-2)/
|
||||||
|
# Condition required for people who do not install anything e.g. no l10n
|
||||||
|
# or just english with no offlinehelp.
|
||||||
|
if [[ -d "${dir}" ]] ; then
|
||||||
|
insinto /usr/$(get_libdir)/${PN/-l10n/}/
|
||||||
|
doins -r "${dir}"/*
|
||||||
|
fi
|
||||||
|
# remove extensions that are in l10n for some weird reason
|
||||||
|
rm -rf "${ED}"/usr/$(get_libdir)/${PN/-l10n/}/share/extensions/ || \
|
||||||
|
die "Failed to remove extensions"
|
||||||
|
}
|
@ -0,0 +1,545 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{6,7,8} )
|
||||||
|
PYTHON_REQ_USE="threads(+),xml"
|
||||||
|
|
||||||
|
MY_PV="${PV/_alpha/.alpha}"
|
||||||
|
MY_PV="${MY_PV/_beta/.beta}"
|
||||||
|
# experimental ; release ; old
|
||||||
|
# Usually the tarballs are moved a lot so this should make everyone happy.
|
||||||
|
DEV_URI="
|
||||||
|
https://dev-builds.libreoffice.org/pre-releases/src
|
||||||
|
https://download.documentfoundation.org/libreoffice/src/${MY_PV:0:5}/
|
||||||
|
https://downloadarchive.documentfoundation.org/libreoffice/old/${MY_PV}/src
|
||||||
|
"
|
||||||
|
ADDONS_URI="https://dev-www.libreoffice.org/src/"
|
||||||
|
|
||||||
|
BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
|
||||||
|
# PATCHSET="${P}-patchset-01.tar.xz"
|
||||||
|
|
||||||
|
[[ ${MY_PV} == *9999* ]] && inherit git-r3
|
||||||
|
inherit autotools bash-completion-r1 check-reqs flag-o-matic java-pkg-opt-2 multiprocessing python-single-r1 qmake-utils toolchain-funcs xdg-utils
|
||||||
|
|
||||||
|
DESCRIPTION="A full office productivity suite"
|
||||||
|
HOMEPAGE="https://www.libreoffice.org"
|
||||||
|
SRC_URI="branding? ( https://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
|
||||||
|
[[ -n ${PATCHSET} ]] && SRC_URI+=" https://dev.gentoo.org/~asturm/distfiles/${PATCHSET}"
|
||||||
|
|
||||||
|
# Split modules following git/tarballs; Core MUST be first!
|
||||||
|
# Help is used for the image generator
|
||||||
|
# Only release has the tarballs
|
||||||
|
if [[ ${MY_PV} != *9999* ]]; then
|
||||||
|
for i in ${DEV_URI}; do
|
||||||
|
SRC_URI+=" ${i}/${PN}-${MY_PV}.tar.xz"
|
||||||
|
SRC_URI+=" ${i}/${PN}-help-${MY_PV}.tar.xz"
|
||||||
|
done
|
||||||
|
unset i
|
||||||
|
fi
|
||||||
|
unset DEV_URI
|
||||||
|
|
||||||
|
# Really required addons
|
||||||
|
# These are bundles that can't be removed for now due to huge patchsets.
|
||||||
|
# If you want them gone, patches are welcome.
|
||||||
|
ADDONS_SRC=(
|
||||||
|
"java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
|
||||||
|
# no release for 8 years, should we package it?
|
||||||
|
"libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )"
|
||||||
|
# Does not build with 1.6 rhino at all
|
||||||
|
"libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )"
|
||||||
|
# requirement of rhino
|
||||||
|
"libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )"
|
||||||
|
# not packageable
|
||||||
|
"odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )"
|
||||||
|
# QR code generating library for >=libreoffice-6.4
|
||||||
|
"https://dev-www.libreoffice.org/src/QR-Code-generator-1.4.0.tar.gz"
|
||||||
|
)
|
||||||
|
SRC_URI+=" ${ADDONS_SRC[*]}"
|
||||||
|
|
||||||
|
unset ADDONS_URI
|
||||||
|
unset ADDONS_SRC
|
||||||
|
|
||||||
|
# Extensions that need extra work:
|
||||||
|
LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher"
|
||||||
|
|
||||||
|
IUSE="accessibility bluetooth +branding coinmp +cups dbus debug eds firebird
|
||||||
|
googledrive gstreamer +gtk kde ldap +mariadb odk pdfimport postgres test
|
||||||
|
$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})"
|
||||||
|
|
||||||
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}
|
||||||
|
bluetooth? ( dbus )
|
||||||
|
libreoffice_extensions_nlpsolver? ( java )
|
||||||
|
libreoffice_extensions_scripting-beanshell? ( java )
|
||||||
|
libreoffice_extensions_scripting-javascript? ( java )
|
||||||
|
libreoffice_extensions_wiki-publisher? ( java )
|
||||||
|
"
|
||||||
|
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
LICENSE="|| ( LGPL-3 MPL-1.1 )"
|
||||||
|
SLOT="0"
|
||||||
|
|
||||||
|
# [[ ${MY_PV} == *9999* ]] || \
|
||||||
|
# KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
dev-util/intltool
|
||||||
|
sys-devel/bison
|
||||||
|
sys-devel/flex
|
||||||
|
sys-devel/gettext
|
||||||
|
virtual/pkgconfig
|
||||||
|
odk? ( >=app-doc/doxygen-1.8.4 )
|
||||||
|
"
|
||||||
|
COMMON_DEPEND="${PYTHON_DEPS}
|
||||||
|
app-arch/unzip
|
||||||
|
app-arch/zip
|
||||||
|
app-crypt/gpgme[cxx]
|
||||||
|
app-text/hunspell:=
|
||||||
|
>=app-text/libabw-0.1.0
|
||||||
|
>=app-text/libebook-0.1
|
||||||
|
app-text/libepubgen
|
||||||
|
>=app-text/libetonyek-0.1
|
||||||
|
app-text/libexttextcat
|
||||||
|
app-text/liblangtag
|
||||||
|
>=app-text/libmspub-0.1.0
|
||||||
|
>=app-text/libmwaw-0.3.1
|
||||||
|
app-text/libnumbertext
|
||||||
|
>=app-text/libodfgen-0.1.0
|
||||||
|
app-text/libqxp
|
||||||
|
app-text/libstaroffice
|
||||||
|
app-text/libwpd:0.10[tools]
|
||||||
|
app-text/libwpg:0.3
|
||||||
|
>=app-text/libwps-0.4
|
||||||
|
app-text/mythes
|
||||||
|
>=dev-cpp/clucene-2.3.3.4-r2
|
||||||
|
>=dev-cpp/libcmis-0.5.2
|
||||||
|
dev-db/unixODBC
|
||||||
|
dev-lang/perl
|
||||||
|
dev-libs/boost:=[nls]
|
||||||
|
dev-libs/expat
|
||||||
|
dev-libs/hyphen
|
||||||
|
dev-libs/icu:=
|
||||||
|
dev-libs/libassuan
|
||||||
|
dev-libs/libgpg-error
|
||||||
|
>=dev-libs/liborcus-0.15.0
|
||||||
|
dev-libs/librevenge
|
||||||
|
dev-libs/libxml2
|
||||||
|
dev-libs/libxslt
|
||||||
|
dev-libs/nspr
|
||||||
|
dev-libs/nss
|
||||||
|
>=dev-libs/redland-1.0.16
|
||||||
|
>=dev-libs/xmlsec-1.2.28[nss]
|
||||||
|
media-gfx/fontforge
|
||||||
|
media-gfx/graphite2
|
||||||
|
media-libs/fontconfig
|
||||||
|
media-libs/freetype:2
|
||||||
|
>=media-libs/harfbuzz-0.9.42:=[graphite,icu]
|
||||||
|
media-libs/lcms:2
|
||||||
|
>=media-libs/libcdr-0.1.0
|
||||||
|
>=media-libs/libepoxy-1.3.1[X]
|
||||||
|
>=media-libs/libfreehand-0.1.0
|
||||||
|
media-libs/libpagemaker
|
||||||
|
>=media-libs/libpng-1.4:0=
|
||||||
|
>=media-libs/libvisio-0.1.0
|
||||||
|
media-libs/libzmf
|
||||||
|
net-libs/neon
|
||||||
|
net-misc/curl
|
||||||
|
sci-mathematics/lpsolve
|
||||||
|
sys-libs/zlib
|
||||||
|
virtual/glu
|
||||||
|
virtual/jpeg:0
|
||||||
|
virtual/opengl
|
||||||
|
x11-libs/cairo[X]
|
||||||
|
x11-libs/libXinerama
|
||||||
|
x11-libs/libXrandr
|
||||||
|
x11-libs/libXrender
|
||||||
|
accessibility? (
|
||||||
|
$(python_gen_cond_dep 'dev-python/lxml[${PYTHON_MULTI_USEDEP}]')
|
||||||
|
)
|
||||||
|
bluetooth? (
|
||||||
|
dev-libs/glib:2
|
||||||
|
net-wireless/bluez
|
||||||
|
)
|
||||||
|
coinmp? ( sci-libs/coinor-mp )
|
||||||
|
cups? ( net-print/cups )
|
||||||
|
dbus? ( sys-apps/dbus )
|
||||||
|
eds? (
|
||||||
|
dev-libs/glib:2
|
||||||
|
gnome-base/dconf
|
||||||
|
gnome-extra/evolution-data-server
|
||||||
|
)
|
||||||
|
firebird? ( >=dev-db/firebird-3.0.2.32703.0-r1[server] )
|
||||||
|
gstreamer? (
|
||||||
|
media-libs/gstreamer:1.0
|
||||||
|
media-libs/gst-plugins-base:1.0
|
||||||
|
)
|
||||||
|
gtk? (
|
||||||
|
dev-libs/glib:2
|
||||||
|
dev-libs/gobject-introspection
|
||||||
|
gnome-base/dconf
|
||||||
|
media-libs/mesa[egl]
|
||||||
|
x11-libs/gtk+:3
|
||||||
|
x11-libs/pango
|
||||||
|
)
|
||||||
|
kde? (
|
||||||
|
dev-qt/qtcore:5
|
||||||
|
dev-qt/qtgui:5
|
||||||
|
dev-qt/qtwidgets:5
|
||||||
|
dev-qt/qtx11extras:5
|
||||||
|
kde-frameworks/kconfig:5
|
||||||
|
kde-frameworks/kcoreaddons:5
|
||||||
|
kde-frameworks/ki18n:5
|
||||||
|
kde-frameworks/kio:5
|
||||||
|
kde-frameworks/kwindowsystem:5
|
||||||
|
)
|
||||||
|
ldap? ( net-nds/openldap )
|
||||||
|
libreoffice_extensions_scripting-beanshell? ( dev-java/bsh )
|
||||||
|
libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
|
||||||
|
mariadb? ( dev-db/mariadb-connector-c )
|
||||||
|
!mariadb? ( dev-db/mysql-connector-c )
|
||||||
|
pdfimport? ( app-text/poppler:=[cxx] )
|
||||||
|
postgres? ( >=dev-db/postgresql-9.0:*[kerberos] )
|
||||||
|
"
|
||||||
|
# FIXME: cppunit should be moved to test conditional
|
||||||
|
# after everything upstream is under gbuild
|
||||||
|
# as dmake execute tests right away
|
||||||
|
# tests apparently also need google-carlito-fonts (not packaged)
|
||||||
|
DEPEND="${COMMON_DEPEND}
|
||||||
|
>=dev-libs/libatomic_ops-7.2d
|
||||||
|
dev-perl/Archive-Zip
|
||||||
|
>=dev-util/cppunit-1.14.0
|
||||||
|
>=dev-util/gperf-3.1
|
||||||
|
>=dev-util/mdds-1.5.0:1=
|
||||||
|
media-libs/glm
|
||||||
|
sys-devel/ucpp
|
||||||
|
x11-base/xorg-proto
|
||||||
|
x11-libs/libXt
|
||||||
|
x11-libs/libXtst
|
||||||
|
java? (
|
||||||
|
dev-java/ant-core
|
||||||
|
>=virtual/jdk-1.8
|
||||||
|
)
|
||||||
|
test? (
|
||||||
|
app-crypt/gnupg
|
||||||
|
dev-util/cppunit
|
||||||
|
media-fonts/dejavu
|
||||||
|
media-fonts/liberation-fonts
|
||||||
|
)
|
||||||
|
"
|
||||||
|
RDEPEND="${COMMON_DEPEND}
|
||||||
|
!app-office/libreoffice-bin
|
||||||
|
!app-office/libreoffice-bin-debug
|
||||||
|
!app-office/openoffice
|
||||||
|
media-fonts/liberation-fonts
|
||||||
|
|| ( x11-misc/xdg-utils kde-plasma/kde-cli-tools )
|
||||||
|
java? ( >=virtual/jre-1.8 )
|
||||||
|
kde? ( kde-frameworks/breeze-icons:* )
|
||||||
|
"
|
||||||
|
if [[ ${MY_PV} != *9999* ]] && [[ ${PV} != *_* ]]; then
|
||||||
|
PDEPEND="=app-office/libreoffice-l10n-$(ver_cut 1-2)*"
|
||||||
|
else
|
||||||
|
# Translations are not reliable on live ebuilds
|
||||||
|
# rather force people to use english only.
|
||||||
|
PDEPEND="!app-office/libreoffice-l10n"
|
||||||
|
fi
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
# "${WORKDIR}"/${PATCHSET/.tar.xz/}
|
||||||
|
|
||||||
|
# not upstreamable stuff
|
||||||
|
"${FILESDIR}/${PN}-5.4-system-pyuno.patch"
|
||||||
|
"${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch"
|
||||||
|
"${FILESDIR}/${PN}-6.1-nomancompress.patch"
|
||||||
|
)
|
||||||
|
|
||||||
|
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||||
|
|
||||||
|
_check_reqs() {
|
||||||
|
CHECKREQS_MEMORY="512M"
|
||||||
|
if is-flagq "-g*" && ! is-flagq "-g*0" ; then
|
||||||
|
CHECKREQS_DISK_BUILD="22G"
|
||||||
|
else
|
||||||
|
CHECKREQS_DISK_BUILD="6G"
|
||||||
|
fi
|
||||||
|
check-reqs_$1
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_pretend() {
|
||||||
|
if ! use java && ! use firebird; then
|
||||||
|
ewarn "If you plan to use Base application you must enable either firebird or java."
|
||||||
|
fi
|
||||||
|
|
||||||
|
use java || ewarn "Without java, several wizards are not going to be available."
|
||||||
|
|
||||||
|
[[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_pretend
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
java-pkg-opt-2_pkg_setup
|
||||||
|
python-single-r1_pkg_setup
|
||||||
|
xdg_environment_reset
|
||||||
|
|
||||||
|
[[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_setup
|
||||||
|
}
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
default
|
||||||
|
|
||||||
|
if [[ ${MY_PV} = *9999* ]]; then
|
||||||
|
local base_uri branch mypv
|
||||||
|
base_uri="https://anongit.freedesktop.org/git"
|
||||||
|
branch="master"
|
||||||
|
mypv=${MY_PV/.9999}
|
||||||
|
[[ ${mypv} != ${MY_PV} ]] && branch="${PN}-${mypv/./-}"
|
||||||
|
git-r3_fetch "${base_uri}/${PN}/core" "refs/heads/${branch}"
|
||||||
|
git-r3_checkout "${base_uri}/${PN}/core"
|
||||||
|
LOCOREGIT_VERSION=${EGIT_VERSION}
|
||||||
|
|
||||||
|
git-r3_fetch "${base_uri}/${PN}/help" "refs/heads/master"
|
||||||
|
git-r3_checkout "${base_uri}/${PN}/help" "helpcontent2" # doesn't match on help
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
# sandbox violations on many systems, we don't need it. Bug #646406
|
||||||
|
sed -i \
|
||||||
|
-e "/KF5_CONFIG/s/kf5-config/no/" \
|
||||||
|
configure.ac || die "Failed to disable kf5-config"
|
||||||
|
|
||||||
|
AT_M4DIR="m4" eautoreconf
|
||||||
|
# hack in the autogen.sh
|
||||||
|
touch autogen.lastrun
|
||||||
|
|
||||||
|
# system pyuno mess
|
||||||
|
sed -i \
|
||||||
|
-e "s:%eprefix%:${EPREFIX}:g" \
|
||||||
|
-e "s:%libdir%:$(get_libdir):g" \
|
||||||
|
pyuno/source/module/uno.py \
|
||||||
|
pyuno/source/officehelper.py || die
|
||||||
|
# sed in the tests
|
||||||
|
sed -i \
|
||||||
|
-e "s#all : build unitcheck#all : build#g" \
|
||||||
|
solenv/gbuild/Module.mk || die
|
||||||
|
sed -i \
|
||||||
|
-e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \
|
||||||
|
-e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \
|
||||||
|
Makefile.in || die
|
||||||
|
|
||||||
|
sed -i \
|
||||||
|
-e "s,/usr/share/bash-completion/completions,$(get_bashcompdir)," \
|
||||||
|
-e "s,\$INSTALLDIRNAME.sh,${PN}," \
|
||||||
|
bin/distro-install-desktop-integration || die
|
||||||
|
|
||||||
|
if use branding; then
|
||||||
|
# hack...
|
||||||
|
mv -v "${WORKDIR}/branding-intro.png" "icon-themes/colibre/brand/intro.png" || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Don't list pdfimport support in desktop when built with none, bug # 605464
|
||||||
|
if ! use pdfimport; then
|
||||||
|
sed -i \
|
||||||
|
-e ":MimeType: s:application/pdf;::" \
|
||||||
|
-e ":Keywords: s:pdf;::" \
|
||||||
|
sysui/desktop/menus/draw.desktop || die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
# Set up Google API keys, see https://www.chromium.org/developers/how-tos/api-keys
|
||||||
|
# Note: these are for Gentoo use ONLY. For your own distribution, please get
|
||||||
|
# your own set of keys. Feel free to contact chromium@gentoo.org for more info.
|
||||||
|
local google_default_client_id="329227923882.apps.googleusercontent.com"
|
||||||
|
local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu"
|
||||||
|
|
||||||
|
# optimization flags
|
||||||
|
export GMAKE_OPTIONS="${MAKEOPTS}"
|
||||||
|
# System python enablement:
|
||||||
|
export PYTHON_CFLAGS=$(python_get_CFLAGS)
|
||||||
|
export PYTHON_LIBS=$(python_get_LIBS)
|
||||||
|
|
||||||
|
if use kde; then
|
||||||
|
export QT_SELECT=5 # bug 639620 needs proper fix though
|
||||||
|
export QT5DIR="$(qt5_get_bindir)/../"
|
||||||
|
export MOC5="$(qt5_get_bindir)/moc"
|
||||||
|
fi
|
||||||
|
|
||||||
|
local gentoo_buildid="Gentoo official package"
|
||||||
|
if [[ -n ${LOCOREGIT_VERSION} ]]; then
|
||||||
|
gentoo_buildid+=" (from git: ${LOCOREGIT_VERSION})"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# system headers/libs/...: enforce using system packages
|
||||||
|
# --disable-breakpad: requires not-yet-in-tree dev-utils/breakpad
|
||||||
|
# --enable-cairo: ensure that cairo is always required
|
||||||
|
# --enable-*-link: link to the library rather than just dlopen on runtime
|
||||||
|
# --enable-release-build: build the libreoffice as release
|
||||||
|
# --disable-fetch-external: prevent dowloading during compile phase
|
||||||
|
# --enable-extension-integration: enable any extension integration support
|
||||||
|
# --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
|
||||||
|
# --disable-report-builder: too much java packages pulled in without pkgs
|
||||||
|
# --without-system-sane: just sane.h header that is used for scan in writer,
|
||||||
|
# not linked or anything else, worthless to depend on
|
||||||
|
# --disable-pdfium: not yet packaged
|
||||||
|
# --without-system-qrencode: has no real build system and LO is the only user
|
||||||
|
local myeconfargs=(
|
||||||
|
--with-system-dicts
|
||||||
|
--with-system-epoxy
|
||||||
|
--with-system-headers
|
||||||
|
--with-system-jars
|
||||||
|
--with-system-libs
|
||||||
|
--enable-build-opensymbol
|
||||||
|
--enable-cairo-canvas
|
||||||
|
--enable-largefile
|
||||||
|
--enable-mergelibs
|
||||||
|
--enable-neon
|
||||||
|
--enable-python=system
|
||||||
|
--enable-randr
|
||||||
|
--enable-release-build
|
||||||
|
--disable-breakpad
|
||||||
|
--disable-bundle-mariadb
|
||||||
|
--disable-ccache
|
||||||
|
--disable-epm
|
||||||
|
--disable-fetch-external
|
||||||
|
--disable-gtk3-kde5
|
||||||
|
--disable-online-update
|
||||||
|
--disable-openssl
|
||||||
|
--disable-pdfium
|
||||||
|
--disable-report-builder
|
||||||
|
--disable-vlc
|
||||||
|
--with-build-version="${gentoo_buildid}"
|
||||||
|
--enable-extension-integration
|
||||||
|
--with-external-dict-dir="${EPREFIX}/usr/share/myspell"
|
||||||
|
--with-external-hyph-dir="${EPREFIX}/usr/share/myspell"
|
||||||
|
--with-external-thes-dir="${EPREFIX}/usr/share/myspell"
|
||||||
|
--with-external-tar="${DISTDIR}"
|
||||||
|
--with-lang=""
|
||||||
|
--with-parallelism=$(makeopts_jobs)
|
||||||
|
--with-system-ucpp
|
||||||
|
--with-tls=nss
|
||||||
|
--with-vendor="Gentoo Foundation"
|
||||||
|
--with-x
|
||||||
|
--without-fonts
|
||||||
|
--without-myspell-dicts
|
||||||
|
--with-help="html"
|
||||||
|
--without-helppack-integration
|
||||||
|
--with-system-gpgmepp
|
||||||
|
--without-system-sane
|
||||||
|
--without-system-qrcodegen
|
||||||
|
$(use_enable bluetooth sdremote-bluetooth)
|
||||||
|
$(use_enable coinmp)
|
||||||
|
$(use_enable cups)
|
||||||
|
$(use_enable dbus)
|
||||||
|
$(use_enable debug)
|
||||||
|
$(use_enable eds evolution2)
|
||||||
|
$(use_enable firebird firebird-sdbc)
|
||||||
|
$(use_enable gstreamer gstreamer-1-0)
|
||||||
|
$(use_enable gtk gtk3)
|
||||||
|
$(use_enable kde kf5)
|
||||||
|
$(use_enable kde qt5)
|
||||||
|
$(use_enable ldap)
|
||||||
|
$(use_enable odk)
|
||||||
|
$(use_enable pdfimport)
|
||||||
|
$(use_enable postgres postgresql-sdbc)
|
||||||
|
$(use_with accessibility lxml)
|
||||||
|
$(use_with coinmp system-coinmp)
|
||||||
|
$(use_with googledrive gdrive-client-id ${google_default_client_id})
|
||||||
|
$(use_with googledrive gdrive-client-secret ${google_default_client_secret})
|
||||||
|
$(use_with java)
|
||||||
|
$(use_with odk doxygen)
|
||||||
|
)
|
||||||
|
|
||||||
|
if use eds || use gtk; then
|
||||||
|
myeconfargs+=( --enable-dconf --enable-gio )
|
||||||
|
else
|
||||||
|
myeconfargs+=( --disable-dconf --disable-gio )
|
||||||
|
fi
|
||||||
|
|
||||||
|
# libreoffice extensions handling
|
||||||
|
for lo_xt in ${LO_EXTS}; do
|
||||||
|
if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
|
||||||
|
myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt}) )
|
||||||
|
else
|
||||||
|
myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt}) )
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if use java; then
|
||||||
|
# hsqldb: system one is too new
|
||||||
|
myeconfargs+=(
|
||||||
|
--without-junit
|
||||||
|
--without-system-hsqldb
|
||||||
|
--with-ant-home="${ANT_HOME}"
|
||||||
|
--with-jdk-home=$(java-config --jdk-home 2>/dev/null)
|
||||||
|
--with-jvm-path="${EPREFIX}/usr/lib/"
|
||||||
|
)
|
||||||
|
|
||||||
|
use libreoffice_extensions_scripting-beanshell && \
|
||||||
|
myeconfargs+=( --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) )
|
||||||
|
|
||||||
|
use libreoffice_extensions_scripting-javascript && \
|
||||||
|
myeconfargs+=( --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar) )
|
||||||
|
fi
|
||||||
|
|
||||||
|
is-flagq "-flto*" && myeconfargs+=( --enable-lto )
|
||||||
|
|
||||||
|
MARIADBCONFIG="$(type -p $(usex mariadb mariadb mysql)_config)" \
|
||||||
|
econf "${myeconfargs[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
# more and more LO stuff tries to use OpenGL, including tests during build
|
||||||
|
# bug 501508, bug 540624, bug 545974 and probably more
|
||||||
|
addpredict /dev/dri
|
||||||
|
addpredict /dev/ati
|
||||||
|
addpredict /dev/nvidiactl
|
||||||
|
|
||||||
|
local target
|
||||||
|
use test && target="build" || target="build-nocheck"
|
||||||
|
|
||||||
|
# this is not a proper make script
|
||||||
|
make ${target} || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
make unitcheck || die
|
||||||
|
make slowcheck || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
# This is not Makefile so no buildserver
|
||||||
|
emake DESTDIR="${D}" distro-pack-install -o build -o check
|
||||||
|
|
||||||
|
# bug 593514
|
||||||
|
if use gtk; then
|
||||||
|
dosym libreoffice/program/liblibreofficekitgtk.so \
|
||||||
|
/usr/$(get_libdir)/liblibreofficekitgtk.so
|
||||||
|
fi
|
||||||
|
|
||||||
|
# bash completion aliases
|
||||||
|
bashcomp_alias \
|
||||||
|
libreoffice \
|
||||||
|
unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice
|
||||||
|
|
||||||
|
if use branding; then
|
||||||
|
insinto /usr/$(get_libdir)/${PN}/program
|
||||||
|
newins "${WORKDIR}/branding-sofficerc" sofficerc
|
||||||
|
dodir /etc/env.d
|
||||||
|
echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"/etc/env.d/99${PN} || die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
xdg_icon_cache_update
|
||||||
|
xdg_desktop_database_update
|
||||||
|
xdg_mimeinfo_database_update
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
xdg_icon_cache_update
|
||||||
|
xdg_desktop_database_update
|
||||||
|
xdg_mimeinfo_database_update
|
||||||
|
}
|
@ -0,0 +1,545 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{6,7,8} )
|
||||||
|
PYTHON_REQ_USE="threads(+),xml"
|
||||||
|
|
||||||
|
MY_PV="${PV/_alpha/.alpha}"
|
||||||
|
MY_PV="${MY_PV/_beta/.beta}"
|
||||||
|
# experimental ; release ; old
|
||||||
|
# Usually the tarballs are moved a lot so this should make everyone happy.
|
||||||
|
DEV_URI="
|
||||||
|
https://dev-builds.libreoffice.org/pre-releases/src
|
||||||
|
https://download.documentfoundation.org/libreoffice/src/${MY_PV:0:5}/
|
||||||
|
https://downloadarchive.documentfoundation.org/libreoffice/old/${MY_PV}/src
|
||||||
|
"
|
||||||
|
ADDONS_URI="https://dev-www.libreoffice.org/src/"
|
||||||
|
|
||||||
|
BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
|
||||||
|
# PATCHSET="${P}-patchset-01.tar.xz"
|
||||||
|
|
||||||
|
[[ ${MY_PV} == *9999* ]] && inherit git-r3
|
||||||
|
inherit autotools bash-completion-r1 check-reqs flag-o-matic java-pkg-opt-2 multiprocessing python-single-r1 qmake-utils toolchain-funcs xdg-utils
|
||||||
|
|
||||||
|
DESCRIPTION="A full office productivity suite"
|
||||||
|
HOMEPAGE="https://www.libreoffice.org"
|
||||||
|
SRC_URI="branding? ( https://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
|
||||||
|
[[ -n ${PATCHSET} ]] && SRC_URI+=" https://dev.gentoo.org/~asturm/distfiles/${PATCHSET}"
|
||||||
|
|
||||||
|
# Split modules following git/tarballs; Core MUST be first!
|
||||||
|
# Help is used for the image generator
|
||||||
|
# Only release has the tarballs
|
||||||
|
if [[ ${MY_PV} != *9999* ]]; then
|
||||||
|
for i in ${DEV_URI}; do
|
||||||
|
SRC_URI+=" ${i}/${PN}-${MY_PV}.tar.xz"
|
||||||
|
SRC_URI+=" ${i}/${PN}-help-${MY_PV}.tar.xz"
|
||||||
|
done
|
||||||
|
unset i
|
||||||
|
fi
|
||||||
|
unset DEV_URI
|
||||||
|
|
||||||
|
# Really required addons
|
||||||
|
# These are bundles that can't be removed for now due to huge patchsets.
|
||||||
|
# If you want them gone, patches are welcome.
|
||||||
|
ADDONS_SRC=(
|
||||||
|
"java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
|
||||||
|
# no release for 8 years, should we package it?
|
||||||
|
"libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )"
|
||||||
|
# Does not build with 1.6 rhino at all
|
||||||
|
"libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )"
|
||||||
|
# requirement of rhino
|
||||||
|
"libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )"
|
||||||
|
# not packageable
|
||||||
|
"odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )"
|
||||||
|
# QR code generating library for >=libreoffice-6.4
|
||||||
|
"https://dev-www.libreoffice.org/src/QR-Code-generator-1.4.0.tar.gz"
|
||||||
|
)
|
||||||
|
SRC_URI+=" ${ADDONS_SRC[*]}"
|
||||||
|
|
||||||
|
unset ADDONS_URI
|
||||||
|
unset ADDONS_SRC
|
||||||
|
|
||||||
|
# Extensions that need extra work:
|
||||||
|
LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher"
|
||||||
|
|
||||||
|
IUSE="accessibility bluetooth +branding coinmp +cups dbus debug eds firebird
|
||||||
|
googledrive gstreamer +gtk kde ldap +mariadb odk pdfimport postgres test
|
||||||
|
$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})"
|
||||||
|
|
||||||
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}
|
||||||
|
bluetooth? ( dbus )
|
||||||
|
libreoffice_extensions_nlpsolver? ( java )
|
||||||
|
libreoffice_extensions_scripting-beanshell? ( java )
|
||||||
|
libreoffice_extensions_scripting-javascript? ( java )
|
||||||
|
libreoffice_extensions_wiki-publisher? ( java )
|
||||||
|
"
|
||||||
|
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
LICENSE="|| ( LGPL-3 MPL-1.1 )"
|
||||||
|
SLOT="0"
|
||||||
|
|
||||||
|
[[ ${MY_PV} == *9999* ]] || \
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
dev-util/intltool
|
||||||
|
sys-devel/bison
|
||||||
|
sys-devel/flex
|
||||||
|
sys-devel/gettext
|
||||||
|
virtual/pkgconfig
|
||||||
|
odk? ( >=app-doc/doxygen-1.8.4 )
|
||||||
|
"
|
||||||
|
COMMON_DEPEND="${PYTHON_DEPS}
|
||||||
|
app-arch/unzip
|
||||||
|
app-arch/zip
|
||||||
|
app-crypt/gpgme[cxx]
|
||||||
|
app-text/hunspell:=
|
||||||
|
>=app-text/libabw-0.1.0
|
||||||
|
>=app-text/libebook-0.1
|
||||||
|
app-text/libepubgen
|
||||||
|
>=app-text/libetonyek-0.1
|
||||||
|
app-text/libexttextcat
|
||||||
|
app-text/liblangtag
|
||||||
|
>=app-text/libmspub-0.1.0
|
||||||
|
>=app-text/libmwaw-0.3.1
|
||||||
|
app-text/libnumbertext
|
||||||
|
>=app-text/libodfgen-0.1.0
|
||||||
|
app-text/libqxp
|
||||||
|
app-text/libstaroffice
|
||||||
|
app-text/libwpd:0.10[tools]
|
||||||
|
app-text/libwpg:0.3
|
||||||
|
>=app-text/libwps-0.4
|
||||||
|
app-text/mythes
|
||||||
|
>=dev-cpp/clucene-2.3.3.4-r2
|
||||||
|
>=dev-cpp/libcmis-0.5.2
|
||||||
|
dev-db/unixODBC
|
||||||
|
dev-lang/perl
|
||||||
|
dev-libs/boost:=[nls]
|
||||||
|
dev-libs/expat
|
||||||
|
dev-libs/hyphen
|
||||||
|
dev-libs/icu:=
|
||||||
|
dev-libs/libassuan
|
||||||
|
dev-libs/libgpg-error
|
||||||
|
>=dev-libs/liborcus-0.15.0
|
||||||
|
dev-libs/librevenge
|
||||||
|
dev-libs/libxml2
|
||||||
|
dev-libs/libxslt
|
||||||
|
dev-libs/nspr
|
||||||
|
dev-libs/nss
|
||||||
|
>=dev-libs/redland-1.0.16
|
||||||
|
>=dev-libs/xmlsec-1.2.28[nss]
|
||||||
|
media-gfx/fontforge
|
||||||
|
media-gfx/graphite2
|
||||||
|
media-libs/fontconfig
|
||||||
|
media-libs/freetype:2
|
||||||
|
>=media-libs/harfbuzz-0.9.42:=[graphite,icu]
|
||||||
|
media-libs/lcms:2
|
||||||
|
>=media-libs/libcdr-0.1.0
|
||||||
|
>=media-libs/libepoxy-1.3.1[X]
|
||||||
|
>=media-libs/libfreehand-0.1.0
|
||||||
|
media-libs/libpagemaker
|
||||||
|
>=media-libs/libpng-1.4:0=
|
||||||
|
>=media-libs/libvisio-0.1.0
|
||||||
|
media-libs/libzmf
|
||||||
|
net-libs/neon
|
||||||
|
net-misc/curl
|
||||||
|
sci-mathematics/lpsolve
|
||||||
|
sys-libs/zlib
|
||||||
|
virtual/glu
|
||||||
|
virtual/jpeg:0
|
||||||
|
virtual/opengl
|
||||||
|
x11-libs/cairo[X]
|
||||||
|
x11-libs/libXinerama
|
||||||
|
x11-libs/libXrandr
|
||||||
|
x11-libs/libXrender
|
||||||
|
accessibility? (
|
||||||
|
$(python_gen_cond_dep 'dev-python/lxml[${PYTHON_MULTI_USEDEP}]')
|
||||||
|
)
|
||||||
|
bluetooth? (
|
||||||
|
dev-libs/glib:2
|
||||||
|
net-wireless/bluez
|
||||||
|
)
|
||||||
|
coinmp? ( sci-libs/coinor-mp )
|
||||||
|
cups? ( net-print/cups )
|
||||||
|
dbus? ( sys-apps/dbus )
|
||||||
|
eds? (
|
||||||
|
dev-libs/glib:2
|
||||||
|
gnome-base/dconf
|
||||||
|
gnome-extra/evolution-data-server
|
||||||
|
)
|
||||||
|
firebird? ( >=dev-db/firebird-3.0.2.32703.0-r1[server] )
|
||||||
|
gstreamer? (
|
||||||
|
media-libs/gstreamer:1.0
|
||||||
|
media-libs/gst-plugins-base:1.0
|
||||||
|
)
|
||||||
|
gtk? (
|
||||||
|
dev-libs/glib:2
|
||||||
|
dev-libs/gobject-introspection
|
||||||
|
gnome-base/dconf
|
||||||
|
media-libs/mesa[egl]
|
||||||
|
x11-libs/gtk+:3
|
||||||
|
x11-libs/pango
|
||||||
|
)
|
||||||
|
kde? (
|
||||||
|
dev-qt/qtcore:5
|
||||||
|
dev-qt/qtgui:5
|
||||||
|
dev-qt/qtwidgets:5
|
||||||
|
dev-qt/qtx11extras:5
|
||||||
|
kde-frameworks/kconfig:5
|
||||||
|
kde-frameworks/kcoreaddons:5
|
||||||
|
kde-frameworks/ki18n:5
|
||||||
|
kde-frameworks/kio:5
|
||||||
|
kde-frameworks/kwindowsystem:5
|
||||||
|
)
|
||||||
|
ldap? ( net-nds/openldap )
|
||||||
|
libreoffice_extensions_scripting-beanshell? ( dev-java/bsh )
|
||||||
|
libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
|
||||||
|
mariadb? ( dev-db/mariadb-connector-c )
|
||||||
|
!mariadb? ( dev-db/mysql-connector-c )
|
||||||
|
pdfimport? ( app-text/poppler:=[cxx] )
|
||||||
|
postgres? ( >=dev-db/postgresql-9.0:*[kerberos] )
|
||||||
|
"
|
||||||
|
# FIXME: cppunit should be moved to test conditional
|
||||||
|
# after everything upstream is under gbuild
|
||||||
|
# as dmake execute tests right away
|
||||||
|
# tests apparently also need google-carlito-fonts (not packaged)
|
||||||
|
DEPEND="${COMMON_DEPEND}
|
||||||
|
>=dev-libs/libatomic_ops-7.2d
|
||||||
|
dev-perl/Archive-Zip
|
||||||
|
>=dev-util/cppunit-1.14.0
|
||||||
|
>=dev-util/gperf-3.1
|
||||||
|
>=dev-util/mdds-1.5.0:1=
|
||||||
|
media-libs/glm
|
||||||
|
sys-devel/ucpp
|
||||||
|
x11-base/xorg-proto
|
||||||
|
x11-libs/libXt
|
||||||
|
x11-libs/libXtst
|
||||||
|
java? (
|
||||||
|
dev-java/ant-core
|
||||||
|
>=virtual/jdk-1.8
|
||||||
|
)
|
||||||
|
test? (
|
||||||
|
app-crypt/gnupg
|
||||||
|
dev-util/cppunit
|
||||||
|
media-fonts/dejavu
|
||||||
|
media-fonts/liberation-fonts
|
||||||
|
)
|
||||||
|
"
|
||||||
|
RDEPEND="${COMMON_DEPEND}
|
||||||
|
!app-office/libreoffice-bin
|
||||||
|
!app-office/libreoffice-bin-debug
|
||||||
|
!app-office/openoffice
|
||||||
|
media-fonts/liberation-fonts
|
||||||
|
|| ( x11-misc/xdg-utils kde-plasma/kde-cli-tools )
|
||||||
|
java? ( >=virtual/jre-1.8 )
|
||||||
|
kde? ( kde-frameworks/breeze-icons:* )
|
||||||
|
"
|
||||||
|
if [[ ${MY_PV} != *9999* ]] && [[ ${PV} != *_* ]]; then
|
||||||
|
PDEPEND="=app-office/libreoffice-l10n-$(ver_cut 1-2)*"
|
||||||
|
else
|
||||||
|
# Translations are not reliable on live ebuilds
|
||||||
|
# rather force people to use english only.
|
||||||
|
PDEPEND="!app-office/libreoffice-l10n"
|
||||||
|
fi
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
# "${WORKDIR}"/${PATCHSET/.tar.xz/}
|
||||||
|
|
||||||
|
# not upstreamable stuff
|
||||||
|
"${FILESDIR}/${PN}-5.4-system-pyuno.patch"
|
||||||
|
"${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch"
|
||||||
|
"${FILESDIR}/${PN}-6.1-nomancompress.patch"
|
||||||
|
)
|
||||||
|
|
||||||
|
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||||
|
|
||||||
|
_check_reqs() {
|
||||||
|
CHECKREQS_MEMORY="512M"
|
||||||
|
if is-flagq "-g*" && ! is-flagq "-g*0" ; then
|
||||||
|
CHECKREQS_DISK_BUILD="22G"
|
||||||
|
else
|
||||||
|
CHECKREQS_DISK_BUILD="6G"
|
||||||
|
fi
|
||||||
|
check-reqs_$1
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_pretend() {
|
||||||
|
if ! use java && ! use firebird; then
|
||||||
|
ewarn "If you plan to use Base application you must enable either firebird or java."
|
||||||
|
fi
|
||||||
|
|
||||||
|
use java || ewarn "Without java, several wizards are not going to be available."
|
||||||
|
|
||||||
|
[[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_pretend
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
java-pkg-opt-2_pkg_setup
|
||||||
|
python-single-r1_pkg_setup
|
||||||
|
xdg_environment_reset
|
||||||
|
|
||||||
|
[[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_setup
|
||||||
|
}
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
default
|
||||||
|
|
||||||
|
if [[ ${MY_PV} = *9999* ]]; then
|
||||||
|
local base_uri branch mypv
|
||||||
|
base_uri="https://anongit.freedesktop.org/git"
|
||||||
|
branch="master"
|
||||||
|
mypv=${MY_PV/.9999}
|
||||||
|
[[ ${mypv} != ${MY_PV} ]] && branch="${PN}-${mypv/./-}"
|
||||||
|
git-r3_fetch "${base_uri}/${PN}/core" "refs/heads/${branch}"
|
||||||
|
git-r3_checkout "${base_uri}/${PN}/core"
|
||||||
|
LOCOREGIT_VERSION=${EGIT_VERSION}
|
||||||
|
|
||||||
|
git-r3_fetch "${base_uri}/${PN}/help" "refs/heads/master"
|
||||||
|
git-r3_checkout "${base_uri}/${PN}/help" "helpcontent2" # doesn't match on help
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
# sandbox violations on many systems, we don't need it. Bug #646406
|
||||||
|
sed -i \
|
||||||
|
-e "/KF5_CONFIG/s/kf5-config/no/" \
|
||||||
|
configure.ac || die "Failed to disable kf5-config"
|
||||||
|
|
||||||
|
AT_M4DIR="m4" eautoreconf
|
||||||
|
# hack in the autogen.sh
|
||||||
|
touch autogen.lastrun
|
||||||
|
|
||||||
|
# system pyuno mess
|
||||||
|
sed -i \
|
||||||
|
-e "s:%eprefix%:${EPREFIX}:g" \
|
||||||
|
-e "s:%libdir%:$(get_libdir):g" \
|
||||||
|
pyuno/source/module/uno.py \
|
||||||
|
pyuno/source/officehelper.py || die
|
||||||
|
# sed in the tests
|
||||||
|
sed -i \
|
||||||
|
-e "s#all : build unitcheck#all : build#g" \
|
||||||
|
solenv/gbuild/Module.mk || die
|
||||||
|
sed -i \
|
||||||
|
-e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \
|
||||||
|
-e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \
|
||||||
|
Makefile.in || die
|
||||||
|
|
||||||
|
sed -i \
|
||||||
|
-e "s,/usr/share/bash-completion/completions,$(get_bashcompdir)," \
|
||||||
|
-e "s,\$INSTALLDIRNAME.sh,${PN}," \
|
||||||
|
bin/distro-install-desktop-integration || die
|
||||||
|
|
||||||
|
if use branding; then
|
||||||
|
# hack...
|
||||||
|
mv -v "${WORKDIR}/branding-intro.png" "icon-themes/colibre/brand/intro.png" || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Don't list pdfimport support in desktop when built with none, bug # 605464
|
||||||
|
if ! use pdfimport; then
|
||||||
|
sed -i \
|
||||||
|
-e ":MimeType: s:application/pdf;::" \
|
||||||
|
-e ":Keywords: s:pdf;::" \
|
||||||
|
sysui/desktop/menus/draw.desktop || die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
# Set up Google API keys, see https://www.chromium.org/developers/how-tos/api-keys
|
||||||
|
# Note: these are for Gentoo use ONLY. For your own distribution, please get
|
||||||
|
# your own set of keys. Feel free to contact chromium@gentoo.org for more info.
|
||||||
|
local google_default_client_id="329227923882.apps.googleusercontent.com"
|
||||||
|
local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu"
|
||||||
|
|
||||||
|
# optimization flags
|
||||||
|
export GMAKE_OPTIONS="${MAKEOPTS}"
|
||||||
|
# System python enablement:
|
||||||
|
export PYTHON_CFLAGS=$(python_get_CFLAGS)
|
||||||
|
export PYTHON_LIBS=$(python_get_LIBS)
|
||||||
|
|
||||||
|
if use kde; then
|
||||||
|
export QT_SELECT=5 # bug 639620 needs proper fix though
|
||||||
|
export QT5DIR="$(qt5_get_bindir)/../"
|
||||||
|
export MOC5="$(qt5_get_bindir)/moc"
|
||||||
|
fi
|
||||||
|
|
||||||
|
local gentoo_buildid="Gentoo official package"
|
||||||
|
if [[ -n ${LOCOREGIT_VERSION} ]]; then
|
||||||
|
gentoo_buildid+=" (from git: ${LOCOREGIT_VERSION})"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# system headers/libs/...: enforce using system packages
|
||||||
|
# --disable-breakpad: requires not-yet-in-tree dev-utils/breakpad
|
||||||
|
# --enable-cairo: ensure that cairo is always required
|
||||||
|
# --enable-*-link: link to the library rather than just dlopen on runtime
|
||||||
|
# --enable-release-build: build the libreoffice as release
|
||||||
|
# --disable-fetch-external: prevent dowloading during compile phase
|
||||||
|
# --enable-extension-integration: enable any extension integration support
|
||||||
|
# --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
|
||||||
|
# --disable-report-builder: too much java packages pulled in without pkgs
|
||||||
|
# --without-system-sane: just sane.h header that is used for scan in writer,
|
||||||
|
# not linked or anything else, worthless to depend on
|
||||||
|
# --disable-pdfium: not yet packaged
|
||||||
|
# --without-system-qrencode: has no real build system and LO is the only user
|
||||||
|
local myeconfargs=(
|
||||||
|
--with-system-dicts
|
||||||
|
--with-system-epoxy
|
||||||
|
--with-system-headers
|
||||||
|
--with-system-jars
|
||||||
|
--with-system-libs
|
||||||
|
--enable-build-opensymbol
|
||||||
|
--enable-cairo-canvas
|
||||||
|
--enable-largefile
|
||||||
|
--enable-mergelibs
|
||||||
|
--enable-neon
|
||||||
|
--enable-python=system
|
||||||
|
--enable-randr
|
||||||
|
--enable-release-build
|
||||||
|
--disable-breakpad
|
||||||
|
--disable-bundle-mariadb
|
||||||
|
--disable-ccache
|
||||||
|
--disable-epm
|
||||||
|
--disable-fetch-external
|
||||||
|
--disable-gtk3-kde5
|
||||||
|
--disable-online-update
|
||||||
|
--disable-openssl
|
||||||
|
--disable-pdfium
|
||||||
|
--disable-report-builder
|
||||||
|
--disable-vlc
|
||||||
|
--with-build-version="${gentoo_buildid}"
|
||||||
|
--enable-extension-integration
|
||||||
|
--with-external-dict-dir="${EPREFIX}/usr/share/myspell"
|
||||||
|
--with-external-hyph-dir="${EPREFIX}/usr/share/myspell"
|
||||||
|
--with-external-thes-dir="${EPREFIX}/usr/share/myspell"
|
||||||
|
--with-external-tar="${DISTDIR}"
|
||||||
|
--with-lang=""
|
||||||
|
--with-parallelism=$(makeopts_jobs)
|
||||||
|
--with-system-ucpp
|
||||||
|
--with-tls=nss
|
||||||
|
--with-vendor="Gentoo Foundation"
|
||||||
|
--with-x
|
||||||
|
--without-fonts
|
||||||
|
--without-myspell-dicts
|
||||||
|
--with-help="html"
|
||||||
|
--without-helppack-integration
|
||||||
|
--with-system-gpgmepp
|
||||||
|
--without-system-sane
|
||||||
|
--without-system-qrcodegen
|
||||||
|
$(use_enable bluetooth sdremote-bluetooth)
|
||||||
|
$(use_enable coinmp)
|
||||||
|
$(use_enable cups)
|
||||||
|
$(use_enable dbus)
|
||||||
|
$(use_enable debug)
|
||||||
|
$(use_enable eds evolution2)
|
||||||
|
$(use_enable firebird firebird-sdbc)
|
||||||
|
$(use_enable gstreamer gstreamer-1-0)
|
||||||
|
$(use_enable gtk gtk3)
|
||||||
|
$(use_enable kde kf5)
|
||||||
|
$(use_enable kde qt5)
|
||||||
|
$(use_enable ldap)
|
||||||
|
$(use_enable odk)
|
||||||
|
$(use_enable pdfimport)
|
||||||
|
$(use_enable postgres postgresql-sdbc)
|
||||||
|
$(use_with accessibility lxml)
|
||||||
|
$(use_with coinmp system-coinmp)
|
||||||
|
$(use_with googledrive gdrive-client-id ${google_default_client_id})
|
||||||
|
$(use_with googledrive gdrive-client-secret ${google_default_client_secret})
|
||||||
|
$(use_with java)
|
||||||
|
$(use_with odk doxygen)
|
||||||
|
)
|
||||||
|
|
||||||
|
if use eds || use gtk; then
|
||||||
|
myeconfargs+=( --enable-dconf --enable-gio )
|
||||||
|
else
|
||||||
|
myeconfargs+=( --disable-dconf --disable-gio )
|
||||||
|
fi
|
||||||
|
|
||||||
|
# libreoffice extensions handling
|
||||||
|
for lo_xt in ${LO_EXTS}; do
|
||||||
|
if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
|
||||||
|
myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt}) )
|
||||||
|
else
|
||||||
|
myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt}) )
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if use java; then
|
||||||
|
# hsqldb: system one is too new
|
||||||
|
myeconfargs+=(
|
||||||
|
--without-junit
|
||||||
|
--without-system-hsqldb
|
||||||
|
--with-ant-home="${ANT_HOME}"
|
||||||
|
--with-jdk-home=$(java-config --jdk-home 2>/dev/null)
|
||||||
|
--with-jvm-path="${EPREFIX}/usr/lib/"
|
||||||
|
)
|
||||||
|
|
||||||
|
use libreoffice_extensions_scripting-beanshell && \
|
||||||
|
myeconfargs+=( --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) )
|
||||||
|
|
||||||
|
use libreoffice_extensions_scripting-javascript && \
|
||||||
|
myeconfargs+=( --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar) )
|
||||||
|
fi
|
||||||
|
|
||||||
|
is-flagq "-flto*" && myeconfargs+=( --enable-lto )
|
||||||
|
|
||||||
|
MARIADBCONFIG="$(type -p $(usex mariadb mariadb mysql)_config)" \
|
||||||
|
econf "${myeconfargs[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
# more and more LO stuff tries to use OpenGL, including tests during build
|
||||||
|
# bug 501508, bug 540624, bug 545974 and probably more
|
||||||
|
addpredict /dev/dri
|
||||||
|
addpredict /dev/ati
|
||||||
|
addpredict /dev/nvidiactl
|
||||||
|
|
||||||
|
local target
|
||||||
|
use test && target="build" || target="build-nocheck"
|
||||||
|
|
||||||
|
# this is not a proper make script
|
||||||
|
make ${target} || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
make unitcheck || die
|
||||||
|
make slowcheck || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
# This is not Makefile so no buildserver
|
||||||
|
emake DESTDIR="${D}" distro-pack-install -o build -o check
|
||||||
|
|
||||||
|
# bug 593514
|
||||||
|
if use gtk; then
|
||||||
|
dosym libreoffice/program/liblibreofficekitgtk.so \
|
||||||
|
/usr/$(get_libdir)/liblibreofficekitgtk.so
|
||||||
|
fi
|
||||||
|
|
||||||
|
# bash completion aliases
|
||||||
|
bashcomp_alias \
|
||||||
|
libreoffice \
|
||||||
|
unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice
|
||||||
|
|
||||||
|
if use branding; then
|
||||||
|
insinto /usr/$(get_libdir)/${PN}/program
|
||||||
|
newins "${WORKDIR}/branding-sofficerc" sofficerc
|
||||||
|
dodir /etc/env.d
|
||||||
|
echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"/etc/env.d/99${PN} || die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
xdg_icon_cache_update
|
||||||
|
xdg_desktop_database_update
|
||||||
|
xdg_mimeinfo_database_update
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
xdg_icon_cache_update
|
||||||
|
xdg_desktop_database_update
|
||||||
|
xdg_mimeinfo_database_update
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,64 @@
|
|||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
if [[ ${PV} == *9999 ]]; then
|
||||||
|
EGIT_REPO_URI="https://anongit.freedesktop.org/git/libreoffice/libetonyek.git"
|
||||||
|
inherit autotools git-r3
|
||||||
|
else
|
||||||
|
SRC_URI="https://dev-www.libreoffice.org/src/libetonyek/${P}.tar.xz"
|
||||||
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
|
||||||
|
fi
|
||||||
|
DESCRIPTION="Library parsing Apple Keynote presentations"
|
||||||
|
HOMEPAGE="https://wiki.documentfoundation.org/DLP/Libraries/libetonyek"
|
||||||
|
|
||||||
|
LICENSE="|| ( GPL-2+ LGPL-2.1 MPL-1.1 )"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="doc static-libs test"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
virtual/pkgconfig
|
||||||
|
doc? ( app-doc/doxygen )
|
||||||
|
"
|
||||||
|
RDEPEND="
|
||||||
|
app-text/liblangtag
|
||||||
|
dev-libs/librevenge
|
||||||
|
dev-libs/libxml2
|
||||||
|
>=dev-util/mdds-1.4.3:1=
|
||||||
|
sys-libs/zlib
|
||||||
|
"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
dev-libs/boost
|
||||||
|
media-libs/glm
|
||||||
|
sys-devel/libtool
|
||||||
|
test? ( dev-util/cppunit )
|
||||||
|
"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
[[ -d m4 ]] || mkdir "m4"
|
||||||
|
[[ ${PV} == *9999 ]] && eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local myeconfargs=(
|
||||||
|
--disable-werror
|
||||||
|
$(use_with doc docs)
|
||||||
|
$(use_enable static-libs static)
|
||||||
|
$(use_enable test tests)
|
||||||
|
)
|
||||||
|
if has_version ">=dev-util/mdds-1.5"; then
|
||||||
|
myeconfargs+=( --with-mdds=1.5 )
|
||||||
|
else
|
||||||
|
myeconfargs+=( --with-mdds=1.4 )
|
||||||
|
fi
|
||||||
|
|
||||||
|
econf "${myeconfargs[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
default
|
||||||
|
find "${D}" -name '*.la' -type f -delete || die
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
@ -1,6 +1,6 @@
|
|||||||
DIST boost_1_59_0.tar.gz 83709983 BLAKE2B 8c6676fa05fa401a6ecb3b890d95aceb4421ec48dd0eab38ce8d170c618e177c82dc67a165938f6be1a01daab24ce41888f5442dbc19ad3dd41368a01a6f89e4 SHA512 05fdbe5637543defdbc630b921515425885593d16db14534ed7b9aa60925ade8fb598d50cb894aed6dae688e789047216daa1bf03fa1aeb6b531060d9dae52ae
|
DIST boost_1_59_0.tar.gz 83709983 BLAKE2B 8c6676fa05fa401a6ecb3b890d95aceb4421ec48dd0eab38ce8d170c618e177c82dc67a165938f6be1a01daab24ce41888f5442dbc19ad3dd41368a01a6f89e4 SHA512 05fdbe5637543defdbc630b921515425885593d16db14534ed7b9aa60925ade8fb598d50cb894aed6dae688e789047216daa1bf03fa1aeb6b531060d9dae52ae
|
||||||
DIST boost_1_70_0.tar.bz2 97887058 BLAKE2B dc7a974c6dc2662b767dbd87cb832cd1749c24fb745779d1059b73f19f7e52b33b645adfe72b0296c5e098e5cdb3b9f5eddd382374f33fbcd2ad5739287b2206 SHA512 7f2ea9636baf0210e8ed1d21ee798efb6ce23c0710ff8228b285e2214f82193bcd2d912fd435929c554289a59101c7be2e27ce798f93833f307976f0dd070b49
|
DIST boost_1_70_0.tar.bz2 97887058 BLAKE2B dc7a974c6dc2662b767dbd87cb832cd1749c24fb745779d1059b73f19f7e52b33b645adfe72b0296c5e098e5cdb3b9f5eddd382374f33fbcd2ad5739287b2206 SHA512 7f2ea9636baf0210e8ed1d21ee798efb6ce23c0710ff8228b285e2214f82193bcd2d912fd435929c554289a59101c7be2e27ce798f93833f307976f0dd070b49
|
||||||
DIST mysql-extras-20190822-1908Z.tar.bz2 338830 BLAKE2B bc197f8e541206548d8982814e82e028d699ba9c41aec8d5191bcc46581f7880ed2741dbe2206fde44a5e8d8d54bbcf40efbd0709b357636c4c8fdb2ccc3a7bb SHA512 be469e55f7e9966638600d6836a44258c74e5600240fafe2d79eaeebe7d1695b043678184b5d18ee9946f28154bc2529586a7f860b510180a30c82454ed575c8
|
DIST mysql-extras-20190822-1908Z.tar.bz2 338830 BLAKE2B bc197f8e541206548d8982814e82e028d699ba9c41aec8d5191bcc46581f7880ed2741dbe2206fde44a5e8d8d54bbcf40efbd0709b357636c4c8fdb2ccc3a7bb SHA512 be469e55f7e9966638600d6836a44258c74e5600240fafe2d79eaeebe7d1695b043678184b5d18ee9946f28154bc2529586a7f860b510180a30c82454ed575c8
|
||||||
DIST mysql-extras-20200125-1945Z.tar.bz2 344906 BLAKE2B 0e87875efbc221ded43d6f080dc7dce4277b676b538950120c94b962e51d054093286486e5d83ea3e38e1b2d0b12cf81873df50e1cebbe4cff33b54297e6a17a SHA512 5fcc5d372998db2b8aef32661ff71290791c20c1195a6210ca79c0fda12008906e665f9dc878d3df5a38a95e23ff05b910daa861002c17a1b6de71ef0520bee1
|
DIST mysql-extras-20200317-0103Z.tar.bz2 344905 BLAKE2B c4c8bb2acea16663ab32cf291d0a2d52af04448a507ad3a6dc22dfdef4d6ba427582d66e5923d05cd51565286f85c8df5ccabef9a67a4a500574d21e1f708f27 SHA512 d1d34817faf0a1271f906213eea9081c204d745b14f96166f17d5c60a29ec58c05926e7216f135b6e9d5df2ceab373f10fc4e6a652514d99ba34a336571dce1f
|
||||||
DIST percona-server-5.7.27-30.tar.gz 84672298 BLAKE2B 8431d231f602b704195868110e8eb73adb3db7c761906c15eff182e54634ef091a3ffa0d4f3498a93dbfbf65cd5cdd12102871abaaaa0f32378ba3068d083b2b SHA512 d62c66de3128df87dce52292ad1671e01fe2c923e668ef0faf9cb663c11c9cd0b976345aea1de6ea2bc458d0e1066b42c022849e422121d96cea082ed12c8f4b
|
DIST percona-server-5.7.27-30.tar.gz 84672298 BLAKE2B 8431d231f602b704195868110e8eb73adb3db7c761906c15eff182e54634ef091a3ffa0d4f3498a93dbfbf65cd5cdd12102871abaaaa0f32378ba3068d083b2b SHA512 d62c66de3128df87dce52292ad1671e01fe2c923e668ef0faf9cb663c11c9cd0b976345aea1de6ea2bc458d0e1066b42c022849e422121d96cea082ed12c8f4b
|
||||||
DIST percona-server-8.0.18-9.tar.gz 256867152 BLAKE2B 34c7b7b320f973313ecd95e658999a17748fc70ff46b1dc58144df02c17b7870cf33d68a555ee8aaaecb66c5b1003e6023154f7100a6f413514e89d495330dd2 SHA512 ce537a160b48e7c3dc35b15a293c39142a5b633111b5c9c5f9c1150476f0faa5e9cf81b34c9ca85286463455e3ae3fce7a200d253d880e3b67b3c71eefdbdcd4
|
DIST percona-server-8.0.18-9.tar.gz 256867152 BLAKE2B 34c7b7b320f973313ecd95e658999a17748fc70ff46b1dc58144df02c17b7870cf33d68a555ee8aaaecb66c5b1003e6023154f7100a6f413514e89d495330dd2 SHA512 ce537a160b48e7c3dc35b15a293c39142a5b633111b5c9c5f9c1150476f0faa5e9cf81b34c9ca85286463455e3ae3fce7a200d253d880e3b67b3c71eefdbdcd4
|
||||||
|
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue