parent
b6e4e73023
commit
e818c56aa7
@ -1,23 +1,23 @@
|
|||||||
-----BEGIN PGP SIGNED MESSAGE-----
|
-----BEGIN PGP SIGNED MESSAGE-----
|
||||||
Hash: SHA512
|
Hash: SHA512
|
||||||
|
|
||||||
MANIFEST Manifest.files.gz 29270 BLAKE2B 9912b406bc0b501b59124acd5058b43b1385a0d9033c7a895953569424b90b3d9efd87f594cb89178c01572dcaace8b67e2c2a8af54117585f00e96cad3ef750 SHA512 0d8347ab039c416d64043fb62148ed2e9eea38a9dada785a90f821a2b0c8388780be8bac6a9839452aa324f653a36a1684a2ebda5342ed98c1631d1c1990f98d
|
MANIFEST Manifest.files.gz 29255 BLAKE2B caf7c81e690a6bfe2ec3df1ece71d4050f5b8e8c19744c61bd4c92893de8431def7ca6040b40cf7129cf8b4311c7472952fa226af76ab9b5d9f33a435f3042f0 SHA512 eb68a0dd0eef50fd8a50575f9f8f49d7fcc3131f62b9a8b1de851b60995d0236fb2d7c11b7c8b1ab0f8a8b74a851860d4d0fb9575b994a4ab150f6222df4f819
|
||||||
TIMESTAMP 2021-05-09T10:08:54Z
|
TIMESTAMP 2021-05-10T07:38:55Z
|
||||||
-----BEGIN PGP SIGNATURE-----
|
-----BEGIN PGP SIGNATURE-----
|
||||||
|
|
||||||
iQKTBAEBCgB9FiEE4dartjv8+0ugL98c7FkO6skYklAFAmCXtLZfFIAAAAAALgAo
|
iQKTBAEBCgB9FiEE4dartjv8+0ugL98c7FkO6skYklAFAmCY4w9fFIAAAAAALgAo
|
||||||
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEUx
|
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEUx
|
||||||
RDZBQkI2M0JGQ0ZCNEJBMDJGREYxQ0VDNTkwRUVBQzkxODkyNTAACgkQ7FkO6skY
|
RDZBQkI2M0JGQ0ZCNEJBMDJGREYxQ0VDNTkwRUVBQzkxODkyNTAACgkQ7FkO6skY
|
||||||
klCQihAAp4IGDwg0xZPQfA71/Zd16cluUwFvgjJ5k3gW5LKHP/oZTnHGsA+8OkWE
|
klBNww//YGBXyTDWMObeqpdGp+6eceyQ7ilyhs156/psMhF0FMy1fK0KyYVrmmxV
|
||||||
RYtdXYf7TVC/qhkTVnicHL6PEAzu0vpHfvb1PWX3z4uXwWgBUjzt0ybfFxxrdPSk
|
b8Dx4L/IJ2QdLQVb6gm2qUtGgOju2oOcb16cSj4y8TazQLQc3mQgbkvhLEtOvWTl
|
||||||
XJjYQAvay43y4XqIrNt1fqJJS5rL8Kr3eLjZDXXSwX+cCHthddvIhdjn8JlLM1zK
|
CsCPvy1vlQ5S12KnwXhgBOhLhmQ/igfsZb2CtVLSCdbmJzao8mtYcbQPzQcjxnzs
|
||||||
Sngj/jwWKojDHQzzGwoDs8jrMxN9UlA2lkjmU8/aYSQb73UAoGT+azbZZvi48YBZ
|
gaZJL1KK9QQ9N3Pfr3+c/8qXNFZnBx123rZDS4QqRMVJGk+S8SytPaJHZVMcdOds
|
||||||
8L4o5gwjgvDdF9D1cjge4AiYxxYjbwRsx9/dIsS9MhjNwxnkSlFtIuTmiMxsCsuo
|
j8amluYBJWTvR8wpBfelJWlWIc4ZN3v2ZKZR68JolLNXIbjuTG28e946uRQcAidA
|
||||||
RQ01kWgRHN97J21hjjBKEtw0La8Lqd3aa/ws1+xb/O90BFmDv04oDHZalggNPa/T
|
CKEPDnEfVHZLAaxQYnACyq44u5AHzHC5iD4gkXnIjtw8riI9Oz2Wc6vldlJuARKl
|
||||||
ywts1AXQvUIq8gggbHd8FH/Nk7LqOPMjhnnfL1wxivA62tAOqXuTh8qemMMdt2gv
|
wAVzrajjiLa7RI6zsTlZxtFG3Idjjm+Bb+JX6sPzFVsq8ozFSo/8bKMHcKXGVNEO
|
||||||
qY4wb5xKOH5zR4gxUykjz3F7QuEDGQxvdNYdcGL12VSLjz4fva93/3V8YgwLBxWl
|
OFNxy9WYBE266aWPtQu27npx60cOBqe94EuWLujLud2lWp0MHKTzGo8mK9lbdAqr
|
||||||
YYTBTcXXp8S1AvtyXvXsVuRqTp5qGUdNWfbQgH8O9KmnSIBFxQR1u6HYUxvgjnAI
|
g9U0PjeDdbSsfrtXjrhRI0GIZYChmsed+nyiTnnpmXtsDnuiS6ud1nwTN8ztxiRl
|
||||||
V8OjscugbnzYqJXsVxz7hLJts5qFnL23SoKd6DNELVQU5ad2s423rAMaKatr/oiH
|
68wSIgcqrRVo/hodom2gaFKygXKqFyqaOi5iSLn8KgrNNLwt2ekvU+J2TY8f8Yv4
|
||||||
9lzK7cfnH4y3gIIyy3jPkrbUGelDUK3+5WKtwKtVmEDUsJUjYTc=
|
CnZOPpfEO20NUyGm0fstNx/1wvVWwCVXhk4hBN+s6tNJv2INItE=
|
||||||
=iLFC
|
=3e44
|
||||||
-----END PGP SIGNATURE-----
|
-----END PGP SIGNATURE-----
|
||||||
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,2 @@
|
|||||||
|
EBUILD mogile-0.ebuild 180 BLAKE2B 437a74e6323fc20b2e356a00c63ed6d28528871efd86ac2a68413110299c4c969a08a414050a350735b753dc177d729a9470a20239b50f5afe1e004d3908dc38 SHA512 a5f8a330a8fd2bbbc9fde1c5aa80c7e6f5c62074607a0a2fa7b4222039e7c49f9c428e5829f1a9218c327610f9cd696ef52cfa569a0e1960113a72b5811e37ad
|
||||||
|
MISC metadata.xml 295 BLAKE2B 0055ed26a479f50fcee9d571fabe09579e03f49198c4ff68eaf384ecfbb4eebd06f17afbe1e5d5c84b6d8f17387ea5a68baf1e77044a96d46a93784fbb0a1769 SHA512 77c48a34b1d5fb39cdc7b1689385c80f3aa425669ec6854190c2318b5aa563ec2270326761b539ed6544758fab40dd0c93b7f9cb2e4b2e14661a06022ec7310a
|
@ -1,8 +1,10 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
<pkgmetadata>
|
<pkgmetadata>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email>robbat2@gentoo.org</email>
|
||||||
|
</maintainer>
|
||||||
<maintainer type="project">
|
<maintainer type="project">
|
||||||
<email>games@gentoo.org</email>
|
<email>perl@gentoo.org</email>
|
||||||
<name>Gentoo Games Project</name>
|
|
||||||
</maintainer>
|
</maintainer>
|
||||||
</pkgmetadata>
|
</pkgmetadata>
|
@ -0,0 +1,9 @@
|
|||||||
|
# Copyright 2020-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit acct-group
|
||||||
|
|
||||||
|
DESCRIPTION="MogileFS group"
|
||||||
|
ACCT_GROUP_ID=231
|
Binary file not shown.
@ -0,0 +1,2 @@
|
|||||||
|
EBUILD mogile-0.ebuild 248 BLAKE2B 005e3c1ba7f949fe13237176655bb5f7a9a39cae5e9d5f28ce6c905eb59af0ca0e02e3f8c628df7e035166b06771d0dfe3020df5c042d2e2829643c82c06c90c SHA512 f5847b5e4527d3288e7c59760eebab26927f85fd2668e6b8a6438170f5752bfc0a4fd8a83edbca1d7cb0cede2a307322e22bc6a2fb0ae7c0a77ecd3e0f85ff57
|
||||||
|
MISC metadata.xml 295 BLAKE2B 0055ed26a479f50fcee9d571fabe09579e03f49198c4ff68eaf384ecfbb4eebd06f17afbe1e5d5c84b6d8f17387ea5a68baf1e77044a96d46a93784fbb0a1769 SHA512 77c48a34b1d5fb39cdc7b1689385c80f3aa425669ec6854190c2318b5aa563ec2270326761b539ed6544758fab40dd0c93b7f9cb2e4b2e14661a06022ec7310a
|
@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email>robbat2@gentoo.org</email>
|
||||||
|
</maintainer>
|
||||||
|
<maintainer type="project">
|
||||||
|
<email>perl@gentoo.org</email>
|
||||||
|
</maintainer>
|
||||||
|
</pkgmetadata>
|
@ -0,0 +1,13 @@
|
|||||||
|
# Copyright 2020-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit acct-user
|
||||||
|
|
||||||
|
DESCRIPTION="MogileFS user"
|
||||||
|
ACCT_USER_ID=460
|
||||||
|
ACCT_USER_ENFORCE_ID=1
|
||||||
|
ACCT_USER_GROUPS=( mogile )
|
||||||
|
|
||||||
|
acct-user_add_deps
|
Binary file not shown.
@ -1,9 +1,6 @@
|
|||||||
AUX speech-tools-2.1-gcc7.patch 612 BLAKE2B ded8216c1e7c49821fd1bd738f1c0d508afbd07115d98d3149d31eb402611c1dbe70c07d4885e82beef94bfdfe8a9261722eaf7ea43f3704cee27eb5055f7488 SHA512 6d4c9c43821f571b5fa8f476f740ee276b9a05dcb8a39cfc32f5b3a87548acf051a1abf75f3be5a8563b03c5302b9208ce894a5065899b0f43ba9d2ffe7a65db
|
|
||||||
AUX speech-tools-2.1-underlinking.patch 565 BLAKE2B 1be43841d09fe456874323a02d63253dae37dfe6f6969f7d9941c8a39d0ad9127e8fd1b87f5b6e59fcc505f2c9e2bc988b4f572ccbb01418d11ca0fda88b262d SHA512 4091b64da995f2f859f8debd7c6b7c20bf3a788c91d8aa7651f3c6f89445c9fc60b60923a3056de678ec17faee41839917131b9a3176e53c0afc11e24fe92e47
|
AUX speech-tools-2.1-underlinking.patch 565 BLAKE2B 1be43841d09fe456874323a02d63253dae37dfe6f6969f7d9941c8a39d0ad9127e8fd1b87f5b6e59fcc505f2c9e2bc988b4f572ccbb01418d11ca0fda88b262d SHA512 4091b64da995f2f859f8debd7c6b7c20bf3a788c91d8aa7651f3c6f89445c9fc60b60923a3056de678ec17faee41839917131b9a3176e53c0afc11e24fe92e47
|
||||||
AUX speech-tools-2.5.0-fno-common.patch 1003 BLAKE2B 6b4dcdf205f2e986e659efda4d52c447b0183cc59146ec892b86d360f16fccab0a85667743c6e0f31a07f20983cce604d3202756c16eae4eff2eb88b1079407c SHA512 ae34fadda5f92dfade923af07222c1ed35b8b39bafc7604a86cebd7196888b2cf9a41fe2686e5210a556309a9c2e71076d22e3f56f1ccec0aca3d4a7bd18f3c1
|
AUX speech-tools-2.5.0-fno-common.patch 1003 BLAKE2B 6b4dcdf205f2e986e659efda4d52c447b0183cc59146ec892b86d360f16fccab0a85667743c6e0f31a07f20983cce604d3202756c16eae4eff2eb88b1079407c SHA512 ae34fadda5f92dfade923af07222c1ed35b8b39bafc7604a86cebd7196888b2cf9a41fe2686e5210a556309a9c2e71076d22e3f56f1ccec0aca3d4a7bd18f3c1
|
||||||
DIST speech_tools-2.1-r3-patches.tar.gz 6876 BLAKE2B 84ddc30de90459f913cc32d4338097feb35dc08c48cbda7fc47a78ee0384668828d7166a5ebb1264272a6c326afd4ff2efdf1d793bb8f33937c09d2c7cd9a2b5 SHA512 db4d656a77e3fcfc43447c11b160cf9b45f0c4ec10f2697e4357f0ec86ea56e2841f1b887493a781406975003f5d8065ffbb75eeebb79fcd9873055b52c248e3
|
DIST speech_tools-2.1-r3-patches.tar.gz 6876 BLAKE2B 84ddc30de90459f913cc32d4338097feb35dc08c48cbda7fc47a78ee0384668828d7166a5ebb1264272a6c326afd4ff2efdf1d793bb8f33937c09d2c7cd9a2b5 SHA512 db4d656a77e3fcfc43447c11b160cf9b45f0c4ec10f2697e4357f0ec86ea56e2841f1b887493a781406975003f5d8065ffbb75eeebb79fcd9873055b52c248e3
|
||||||
DIST speech_tools-2.1-release.tar.gz 1681999 BLAKE2B 572e7877e195c098dd2df03cda86fe58b7a55379cd01adcc22faf5e12b8c004e8c006b852cfe88c5c20df4a0e54e357b445050cdb63088edd55714a98e3eda90 SHA512 6ef9a7dd01ede152c4dafd0b2037312d62a79d875813d74ea048899a52eee505b93ffbabef9b6c0a1d15aeadb5508fd18a2f392e85276847fe071173aec5db96
|
|
||||||
DIST speech_tools-2.5.0-release.tar.gz 1328624 BLAKE2B 445dd5a5e39c02352a850fd92de5b3852ae382a4bd013dccb3fdd46b0b22ce0bd10d089f9e860ae3d3e73a489b20b7c8b78335e57a49e40ae01b0f4997d55315 SHA512 013540a5252efb57633f442143a51bc87aac719dfb46c8f47e750322d19dac9b504f55125462a2ee74a6b0bd2661a63a1fc73a8c3c6d2886e38b136a80447fd7
|
DIST speech_tools-2.5.0-release.tar.gz 1328624 BLAKE2B 445dd5a5e39c02352a850fd92de5b3852ae382a4bd013dccb3fdd46b0b22ce0bd10d089f9e860ae3d3e73a489b20b7c8b78335e57a49e40ae01b0f4997d55315 SHA512 013540a5252efb57633f442143a51bc87aac719dfb46c8f47e750322d19dac9b504f55125462a2ee74a6b0bd2661a63a1fc73a8c3c6d2886e38b136a80447fd7
|
||||||
EBUILD speech-tools-2.1-r4.ebuild 3055 BLAKE2B 91ff2e524213950a0775e7db6933feef960594fd80847cf08849dcff0b71a1be89a74b0fe20c9944422d48abace3f8aa83e9a1bd150c7f36399521049a26dcd1 SHA512 4a89616b573de9bdbfad9bd952d29675edc9c1fca30b1a2870359bf7bea5e7e244a1cb4f1d9553c9d023c4589b5ccb5285d7847fe63cc2daeb6a9b32940baa96
|
EBUILD speech-tools-2.5.0.ebuild 3772 BLAKE2B b7a494b2a9cf6e356271c8db84c52394657f9747f9eb84780928ffd5e5476ad66e839ffec8385dbd6a0f58a2a759f05a69bbe10e62ac4ddb10727189517c2ec0 SHA512 d6a809b62fbaaaf3b38e608c0274b516340d14c10f2092a2eb1d5ab7b0a450cfe9e7cf60786bd94ec0598545d024a41b7300e58f7fde78880d8be0f01591595c
|
||||||
EBUILD speech-tools-2.5.0.ebuild 3774 BLAKE2B 05ba61033b3cc1d62be2b19aa05890a7ff250b899e53df39a5a260b2a2264eeb96e779bd7e31a064836d70adb324b6296edce564b8aa90942b12c06df0ba7c28 SHA512 2f7608d4d48f54d499f0cfed95bf08d48ca40d01a9950090fa9f0c635d7c996a3bf1e8327c80bf5e8fe4f7322ae59cda815ac9b922824cb25f7d53bda72b192c
|
|
||||||
MISC metadata.xml 482 BLAKE2B 2638ba066698967011156e0333f367bed8b4a6ffcf765afe64d976724264db09fa2dfb8c6a10f35e3bc298d0b1e9604f8081a74d130a7afbf4ddd019dfffab8b SHA512 1752986ddb186ab10d069dce7ee81c7d0077673a06682e15f4e66a5a87cb29ba4e126a2a627f5f43e388a1d180e243d5362cceae943b1f90b35f54c19de1d2ee
|
MISC metadata.xml 482 BLAKE2B 2638ba066698967011156e0333f367bed8b4a6ffcf765afe64d976724264db09fa2dfb8c6a10f35e3bc298d0b1e9604f8081a74d130a7afbf4ddd019dfffab8b SHA512 1752986ddb186ab10d069dce7ee81c7d0077673a06682e15f4e66a5a87cb29ba4e126a2a627f5f43e388a1d180e243d5362cceae943b1f90b35f54c19de1d2ee
|
||||||
|
@ -1,20 +0,0 @@
|
|||||||
--- a/siod/siod.cc
|
|
||||||
+++ b/siod/siod.cc
|
|
||||||
@@ -459,7 +459,7 @@ char **siod_variable_generator(char *text,int length)
|
|
||||||
matches = walloc(char *,siod_llength(lmatches)+1);
|
|
||||||
for (l=lmatches,i=0; l; l=cdr(l),i++)
|
|
||||||
matches[i] = wstrdup(PNAME(car(l)));
|
|
||||||
- matches[i] = '\0';
|
|
||||||
+ *matches[i] = '\0';
|
|
||||||
|
|
||||||
return matches;
|
|
||||||
}
|
|
||||||
@@ -498,7 +498,7 @@ char **siod_command_generator (char *text,int length)
|
|
||||||
matches = walloc(char *,siod_llength(lmatches)+1);
|
|
||||||
for (l=lmatches,i=0; l; l=cdr(l),i++)
|
|
||||||
matches[i] = wstrdup(PNAME(car(l)));
|
|
||||||
- matches[i] = '\0';
|
|
||||||
+ *matches[i] = '\0';
|
|
||||||
|
|
||||||
return matches;
|
|
||||||
}
|
|
@ -1,120 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
inherit eutils epatch flag-o-matic multilib toolchain-funcs
|
|
||||||
|
|
||||||
MY_P=${P/speech-/speech_}
|
|
||||||
PATCHSET="r3"
|
|
||||||
|
|
||||||
DESCRIPTION="Speech tools for Festival Text to Speech engine"
|
|
||||||
HOMEPAGE="http://www.cstr.ed.ac.uk/projects/speech_tools/"
|
|
||||||
SRC_URI="http://www.festvox.org/packed/festival/${PV}/${MY_P}-release.tar.gz
|
|
||||||
https://dev.gentoo.org/~neurogeek/${PN}/${MY_P}-${PATCHSET}-patches.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="FESTIVAL HPND BSD rc regexp-UofT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ppc ppc64 sparc x86"
|
|
||||||
IUSE="nas X"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
nas? ( media-libs/nas )
|
|
||||||
X? ( x11-libs/libX11
|
|
||||||
x11-libs/libXt )
|
|
||||||
>=media-libs/alsa-lib-1.0.20-r1
|
|
||||||
!<app-accessibility/festival-1.96_beta
|
|
||||||
!sys-power/powerman
|
|
||||||
>=sys-libs/ncurses-5.6-r2:0=
|
|
||||||
"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
virtual/pkgconfig
|
|
||||||
"
|
|
||||||
|
|
||||||
S="${WORKDIR}/speech_tools"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
EPATCH_SUFFIX="patch"
|
|
||||||
epatch
|
|
||||||
|
|
||||||
sed -i -e 's,{{HORRIBLELIBARCHKLUDGE}},"/usr/$(get_libdir)",' \
|
|
||||||
main/siod_main.cc || die
|
|
||||||
|
|
||||||
#WRT bug #309983
|
|
||||||
sed -i -e "s:\(GCC_SYSTEM_OPTIONS =\).*:\1:" \
|
|
||||||
"${S}"/config/systems/sparc_SunOS5.mak || die
|
|
||||||
|
|
||||||
# Fix underlinking, bug #493204
|
|
||||||
epatch "${FILESDIR}"/${PN}-2.1-underlinking.patch
|
|
||||||
|
|
||||||
# Fix gcc7 build failure, bug #634224
|
|
||||||
epatch "${FILESDIR}"/${PN}-2.1-gcc7.patch
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local CONFIG=config/config.in
|
|
||||||
sed -i -e 's/@COMPILERTYPE@/gcc42/' ${CONFIG} || die
|
|
||||||
if use nas; then
|
|
||||||
sed -i -e "s/#.*\(INCLUDE_MODULES += NAS_AUDIO\)/\1/" \
|
|
||||||
${CONFIG} || die
|
|
||||||
fi
|
|
||||||
if ! use X; then
|
|
||||||
sed -i -e "s/-lX11 -lXt//" config/modules/esd_audio.mak || die
|
|
||||||
fi
|
|
||||||
econf
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
emake -j1 CC="$(tc-getCC)" CXX="$(tc-getCXX)" CXX_OTHER_FLAGS="${CXXFLAGS}" CC_OTHER_FLAGS="${CFLAGS}" \
|
|
||||||
LDFLAGS="${LDFLAGS}"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dolib.so lib/libest*.so*
|
|
||||||
|
|
||||||
dodoc "${S}"/README
|
|
||||||
dodoc "${S}"/lib/cstrutt.dtd
|
|
||||||
|
|
||||||
insinto /usr/share/doc/${PF}
|
|
||||||
doins -r lib/example_data
|
|
||||||
|
|
||||||
insinto /usr/share/speech-tools
|
|
||||||
doins -r config base_class
|
|
||||||
|
|
||||||
insinto /usr/share/speech-tools/lib
|
|
||||||
doins -r lib/siod
|
|
||||||
|
|
||||||
cd include || die
|
|
||||||
insinto /usr/include/speech-tools
|
|
||||||
doins -r *
|
|
||||||
dosym ../../include/speech-tools /usr/share/speech-tools/include
|
|
||||||
|
|
||||||
cd ../bin || die
|
|
||||||
for file in *; do
|
|
||||||
[ "${file}" = "Makefile" ] && continue
|
|
||||||
dobin ${file}
|
|
||||||
dstfile="${D}/usr/bin/${file}"
|
|
||||||
sed -i -e "s:${S}/testsuite/data:/usr/share/speech-tools/testsuite:g" \
|
|
||||||
${dstfile} || die
|
|
||||||
sed -i -e "s:${S}/bin:/usr/$(get_libdir)/speech-tools:g" \
|
|
||||||
${dstfile} || die
|
|
||||||
sed -i -e "s:${S}/main:/usr/$(get_libdir)/speech-tools:g" \
|
|
||||||
${dstfile} || die
|
|
||||||
|
|
||||||
# This just changes LD_LIBRARY_PATH
|
|
||||||
sed -i -e "s:${S}/lib:/usr/$(get_libdir):g" ${dstfile} || die
|
|
||||||
done
|
|
||||||
|
|
||||||
cd "${S}" || die
|
|
||||||
exeinto /usr/$(get_libdir)/speech-tools
|
|
||||||
for file in `find main -perm /111 -type f`; do
|
|
||||||
doexe ${file}
|
|
||||||
done
|
|
||||||
|
|
||||||
#Remove /usr/bin/resynth as it is broken. See bug #253556
|
|
||||||
rm "${D}/usr/bin/resynth" || die
|
|
||||||
|
|
||||||
# Remove bcat (only useful for testing on windows, see bug #418301).
|
|
||||||
rm "${D}/usr/bin/bcat" || die
|
|
||||||
rm "${D}/usr/$(get_libdir)/speech-tools/bcat" || die
|
|
||||||
}
|
|
Binary file not shown.
@ -1,3 +1,3 @@
|
|||||||
DIST gnome-abrt-1.3.6.tar.gz 112255 BLAKE2B d0e87ef5543e84c246f9e98aac8f92984af9e8220357359ffa76f91e00bb35ccb9b60a00c8e0b00d3464ecfc9ddffaeb61fb15b57480066d957a2af44b49c3be SHA512 7bd15c9956d2e4bafce7d1ef73e930f679119fe8ccebda8a27171a5b3b1dfa90255c572e3a0c70606fe389d50079870399b89f61f683896d4ca6380a7d3f7cc2
|
DIST gnome-abrt-1.3.6.tar.gz 112255 BLAKE2B d0e87ef5543e84c246f9e98aac8f92984af9e8220357359ffa76f91e00bb35ccb9b60a00c8e0b00d3464ecfc9ddffaeb61fb15b57480066d957a2af44b49c3be SHA512 7bd15c9956d2e4bafce7d1ef73e930f679119fe8ccebda8a27171a5b3b1dfa90255c572e3a0c70606fe389d50079870399b89f61f683896d4ca6380a7d3f7cc2
|
||||||
EBUILD gnome-abrt-1.3.6.ebuild 1158 BLAKE2B cad8b6ffd29eee5d8383512f316688cb6890e5d74c91413c7d44c076704e2422e5e7564e518f13577b48eb62a5b32c9f01df1c3fc3fc59e1d09ed729c6507aed SHA512 d035095657ef1449c146e87ef7b56836f180b2a4ecd33352343858a9d4cfa56fe91cec0254edc033d79998a4c78c37adadbc5930a76605cb92ebc6b7efbe199c
|
EBUILD gnome-abrt-1.3.6.ebuild 1161 BLAKE2B 2a8a3a444f592bed4ed15a2f2503814f4017d36de6dc9be0f16a9eb15f02507e86fc3727f654e1c7062321ee5b0695e6cd6b431ca9abfc47f608f902e24568b7 SHA512 ebf07063571c949d8ab39bd16dc742424e2239f856f9141ce29bc7ac94ee7552ecba8c7b7f467d6426be608091ef7a8fd0647ea243eeeb825d3aa76eb7fd42ea
|
||||||
MISC metadata.xml 333 BLAKE2B 1207865e26d4788f381ecb07b1c2d83cfa845ff4e3ccd6476d7c319ae14fcbce62ac5a0c868f60eba27a7451b577a33427b44ea2784bd63e5670f7d0971a47de SHA512 242ba1baed89b8710643a23de1ae61848cb3565696e11b1347696cdc16f14616827582031c7e94a2bf7614051af0f9f388cf4d5596373e50abf52ad393ba8c73
|
MISC metadata.xml 333 BLAKE2B 1207865e26d4788f381ecb07b1c2d83cfa845ff4e3ccd6476d7c319ae14fcbce62ac5a0c868f60eba27a7451b577a33427b44ea2784bd63e5670f7d0971a47de SHA512 242ba1baed89b8710643a23de1ae61848cb3565696e11b1347696cdc16f14616827582031c7e94a2bf7614051af0f9f388cf4d5596373e50abf52ad393ba8c73
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
AUX socklog-2.1.0-headers.patch 925 BLAKE2B f1f283e27a1e4e260e5c9313304090a9b62d8f0f4854be19e1fcfcb8af764346c650cb28e610779020ff7183d16d32a0e61745addcdcec52031057398b8d3d94 SHA512 d522a421a592813992646d9d2679b26c7c70a87645e06705ba212b26decd6f7dd969b4a35f54732b0b383783956c1b9ab2fc3cd402f6f5ff1a941ef1863c1419
|
AUX socklog-2.1.0-headers.patch 925 BLAKE2B f1f283e27a1e4e260e5c9313304090a9b62d8f0f4854be19e1fcfcb8af764346c650cb28e610779020ff7183d16d32a0e61745addcdcec52031057398b8d3d94 SHA512 d522a421a592813992646d9d2679b26c7c70a87645e06705ba212b26decd6f7dd969b4a35f54732b0b383783956c1b9ab2fc3cd402f6f5ff1a941ef1863c1419
|
||||||
|
AUX socklog-2.1.0-respect-ar-ranlib.patch 372 BLAKE2B 44d1c60100a6cc1a044cc7ab440ecb4d66f9bae8d0dae18a1e0e7b60848736439e9acf56dec6644e612ae7515749ca5b74b44a3dd86bdb33e12ff0dc50c41141 SHA512 862178c36bb87367436b59851bea30351c15cbef8c2a4d26b8a3d9cbb522eee3a4589add0b476d53f07869d0c7b833b6255727eda7430e02c9a37a7160167986
|
||||||
DIST socklog-2.1.0.tar.gz 56942 BLAKE2B 4f88044bb075dc8e503956f0ddf50fd4e748bf090e62acd34701e716d1dd34a639590b319b4377de06d3b0305d865652abd303210745e355ae67f5dff41cb895 SHA512 920ce5e661a6a3d970fa77ee3c228d48699ea03530be2b43b7517458b25e31a0a7f352ece2d076c715b6d34dbb26b424b48eb0f55b9bcd0355b74d3e34c77ac7
|
DIST socklog-2.1.0.tar.gz 56942 BLAKE2B 4f88044bb075dc8e503956f0ddf50fd4e748bf090e62acd34701e716d1dd34a639590b319b4377de06d3b0305d865652abd303210745e355ae67f5dff41cb895 SHA512 920ce5e661a6a3d970fa77ee3c228d48699ea03530be2b43b7517458b25e31a0a7f352ece2d076c715b6d34dbb26b424b48eb0f55b9bcd0355b74d3e34c77ac7
|
||||||
EBUILD socklog-2.1.0.ebuild 887 BLAKE2B aedc1324c4e6f4d668d209bfaeb06f78cf9fe1559b94ca9a00a7455444a9ca40b0726b906496d33ad007dcb5580bba8b251997bf3a321c46bff1d97c829b6f27 SHA512 eea0c954eaaf06931a9e237f2997abc2748e37f52b9afa2362b13b3ec282c1432261c3838c22741b0902dc524667e10a39c63497b30cf29406cae3407405980b
|
EBUILD socklog-2.1.0.ebuild 968 BLAKE2B 746e36953d4a23ab2c1611c047ced05d503a2e7af12b7720d8b4bfa688ddc5e28ad078a791295b59db8f3dc7a210fff3bc4b3050a8f0bd2ce72863ff5bb88fe3 SHA512 d3a71cb40d570ffe4c992a2fd17716d2e658483447f5d17d5fe7234bb1163314a47377aeab023aa8a77ec8dfbd4bf570df30ce642ae27bf7cc2d193b8e165692
|
||||||
MISC metadata.xml 253 BLAKE2B 295e9d6d93aaa12af413972e1590c67087801cc09c9aa6b59d4606c0f4106d1dacf2baa9858559083b4c6d91beeef218d0729e8593a33788958da6d2897e8ce2 SHA512 54a9069aeb4165d2dff3d473c8001bc51613aac9dff3f7f5e9971a9891a737a31511ffa11cbd523febe581ac1d9de2bdf2f40410f0c4239138f2ccca3ef15555
|
MISC metadata.xml 253 BLAKE2B 295e9d6d93aaa12af413972e1590c67087801cc09c9aa6b59d4606c0f4106d1dacf2baa9858559083b4c6d91beeef218d0729e8593a33788958da6d2897e8ce2 SHA512 54a9069aeb4165d2dff3d473c8001bc51613aac9dff3f7f5e9971a9891a737a31511ffa11cbd523febe581ac1d9de2bdf2f40410f0c4239138f2ccca3ef15555
|
||||||
|
@ -0,0 +1,18 @@
|
|||||||
|
--- a/print-ar.sh
|
||||||
|
+++ b/print-ar.sh
|
||||||
|
@@ -1,7 +1,7 @@
|
||||||
|
cat warn-auto.sh
|
||||||
|
echo 'main="$1"; shift'
|
||||||
|
echo 'rm -f "$main"'
|
||||||
|
-echo 'ar cr "$main" ${1+"$@"}'
|
||||||
|
+echo '${AR} cr "$main" ${1+"$@"}'
|
||||||
|
case "`cat systype`" in
|
||||||
|
sunos-5.*) ;;
|
||||||
|
unix_sv*) ;;
|
||||||
|
@@ -10,5 +10,5 @@
|
||||||
|
dgux-*) ;;
|
||||||
|
hp-ux-*) ;;
|
||||||
|
sco*) ;;
|
||||||
|
- *) echo 'ranlib "$main"' ;;
|
||||||
|
+ *) echo '${RANLIB} "$main"' ;;
|
||||||
|
esac
|
Binary file not shown.
@ -1,3 +1,4 @@
|
|||||||
|
AUX kfoldersync-3.4.1-kwindowsystem-5.82.patch 795 BLAKE2B 3d570880a72687e2add10742c2fb95683736c2dbe912e88f2ca1dca5520b78a9a1aa5cda7922df04723110b0a779513eff1e979aa933402a3ee5266e51583562 SHA512 a95ae41a7dfd46d6f3c864e73a2403ee07e8e321759b0d1034c4d62324bced9801d462e2b43a7d4f444bde776580f40731b07f023bdedf9364651bc036be8e63
|
||||||
DIST kfoldersync-3.4.1.tar.xz 49308 BLAKE2B b2d928d7b4111d69f9fdf28efcddb72da715b6bc143d94cc6d37fd8e5888f5ebd70d11e57a1cdce046ced7f55b6ba4a3da9d64947928d60ddb560b593af9a996 SHA512 b51c005942f0627f8ab3428e860c5f336df0282fd3dc184cac6897755a740ca873241e63828b1af7704b373e0a92de1a4bd9dbe8db3b7a35fbbafc2a509603d0
|
DIST kfoldersync-3.4.1.tar.xz 49308 BLAKE2B b2d928d7b4111d69f9fdf28efcddb72da715b6bc143d94cc6d37fd8e5888f5ebd70d11e57a1cdce046ced7f55b6ba4a3da9d64947928d60ddb560b593af9a996 SHA512 b51c005942f0627f8ab3428e860c5f336df0282fd3dc184cac6897755a740ca873241e63828b1af7704b373e0a92de1a4bd9dbe8db3b7a35fbbafc2a509603d0
|
||||||
EBUILD kfoldersync-3.4.1.ebuild 962 BLAKE2B 3beb77087a0ff57f27aa0287cdc5adbafa7fb221fd6950516708276d98b8a8a6ce48bb72fc3de862fdc6355d910f1f303f006557ddb811b5bd8e5bbcfc901f5c SHA512 229d62df5c4f0357d834523ff63b52f966d6d2c65e1a052a1fdf96b21e5febe26122936f2cf5acd608ff4ee390be8965dacf59fd451f4535e6c6fd9abdfbbfd7
|
EBUILD kfoldersync-3.4.1.ebuild 1038 BLAKE2B d6a69e9680c7dff233d46148b83bfaf3173eb9224d22ca75d20b22ca9cf31c9226a779322a9b430eb1788fd24a69c107b8c8cbb1608b0cfb643700bf06ab4859 SHA512 ea7415f6d04de1b27f27ec14adaaf6d3decad37cdd9912f5667dce5fe8d9015236e36cfb87bb917ed7b286c0910b3f0658a6b6a9dcdcbb7cec2ab44080e52405
|
||||||
MISC metadata.xml 521 BLAKE2B c1b348ed6b4d0ec451a6da0508000c2f67a56f41e7c85c80535fdcd87e7fcc16b91efa957052e82f4cde5e44a5147410b0c5a7b22a51a09a893d6eb887682de2 SHA512 23ce04633c404da4e581a1931230ccff3069093280a0e049b2612f881005296c358f4c01d8ab9fcc344a176d143b9dbd87b5218204a7eace67fc2ea55f8b7d61
|
MISC metadata.xml 521 BLAKE2B c1b348ed6b4d0ec451a6da0508000c2f67a56f41e7c85c80535fdcd87e7fcc16b91efa957052e82f4cde5e44a5147410b0c5a7b22a51a09a893d6eb887682de2 SHA512 23ce04633c404da4e581a1931230ccff3069093280a0e049b2612f881005296c358f4c01d8ab9fcc344a176d143b9dbd87b5218204a7eace67fc2ea55f8b7d61
|
||||||
|
@ -0,0 +1,11 @@
|
|||||||
|
--- a/src/kfoldersync.cxx 2017-01-24 10:27:17.000000000 +0100
|
||||||
|
+++ b/src/kfoldersync.cxx 2021-05-08 23:52:28.891166974 +0200
|
||||||
|
@@ -173,7 +173,7 @@
|
||||||
|
{
|
||||||
|
// Connect to dbus (keep it without parent to avoid potential SIGABRT)
|
||||||
|
static const KDBusService dbus_service(KDBusService::Unique);
|
||||||
|
- connect(&dbus_service, &KDBusService::activateRequested, this, [&]{KStartupInfo::setNewStartupId(this, KStartupInfo::startupId()); KWindowSystem::forceActiveWindow(winId());}, Qt::DirectConnection);
|
||||||
|
+ connect(&dbus_service, &KDBusService::activateRequested, this, [&]{KStartupInfo::setNewStartupId(this->window()->windowHandle(), KStartupInfo::startupId()); KWindowSystem::forceActiveWindow(winId());}, Qt::DirectConnection);
|
||||||
|
|
||||||
|
// Setup toolbar
|
||||||
|
QMenu * const app_menu = new QMenu(this);
|
Binary file not shown.
@ -1,5 +1,5 @@
|
|||||||
AUX brasero-3.12.2-tracker3.patch 8745 BLAKE2B a3ca65c2354bc87f7d9c9bd4ec2dce06f7a97208193a48674ffb60ace244528e9f45e25b15c768af9cf5b002db549d058433eb069ad13cee2d1a2e76afee9b69 SHA512 0595dda2259c8a1a4b005ac6d8886a1b9333102df61a24cbaf61895160395374abcb2391e487b6e98eaa441fcc3164187c451edb6ddc0c19cb1b7d12658aff1b
|
AUX brasero-3.12.2-tracker3.patch 8745 BLAKE2B a3ca65c2354bc87f7d9c9bd4ec2dce06f7a97208193a48674ffb60ace244528e9f45e25b15c768af9cf5b002db549d058433eb069ad13cee2d1a2e76afee9b69 SHA512 0595dda2259c8a1a4b005ac6d8886a1b9333102df61a24cbaf61895160395374abcb2391e487b6e98eaa441fcc3164187c451edb6ddc0c19cb1b7d12658aff1b
|
||||||
DIST brasero-3.12.2.tar.xz 3742120 BLAKE2B 42cc60d3f4e26e948321c34f2514172aeac5a1b2624e6b23f27cc9725efd5cf0844a54175161b4c94601bbd5c4a6f18ccdd62353e862eddaab17e0d164f4694c SHA512 14886e772123f179f79d3172b59e21ced990fd8834cd27e8717eb635a75163c44c1d5084818b53da559a0c2ef25e7c0da4a3a7d3781e2ea74b59cfe98987384f
|
DIST brasero-3.12.2.tar.xz 3742120 BLAKE2B 42cc60d3f4e26e948321c34f2514172aeac5a1b2624e6b23f27cc9725efd5cf0844a54175161b4c94601bbd5c4a6f18ccdd62353e862eddaab17e0d164f4694c SHA512 14886e772123f179f79d3172b59e21ced990fd8834cd27e8717eb635a75163c44c1d5084818b53da559a0c2ef25e7c0da4a3a7d3781e2ea74b59cfe98987384f
|
||||||
EBUILD brasero-3.12.2-r2.ebuild 2092 BLAKE2B 1c0dbb77b9eb0119c82e7617966053f0e9970c356b7e395eab70c9081c94f2e7f4b0d6f44188aa804ee0371b9cec4eb5008685f3fb72162b8654cbccde71ce55 SHA512 dfe209442fbf441d96c252cdb4a81bc76fb41144c07f307aa49fe271593dd90f77ac0abe81521f448692342e9cc16eaf8e30554e640460aa80cc1f44385ad16d
|
EBUILD brasero-3.12.2-r2.ebuild 2092 BLAKE2B 1c0dbb77b9eb0119c82e7617966053f0e9970c356b7e395eab70c9081c94f2e7f4b0d6f44188aa804ee0371b9cec4eb5008685f3fb72162b8654cbccde71ce55 SHA512 dfe209442fbf441d96c252cdb4a81bc76fb41144c07f307aa49fe271593dd90f77ac0abe81521f448692342e9cc16eaf8e30554e640460aa80cc1f44385ad16d
|
||||||
EBUILD brasero-3.12.2-r3.ebuild 2164 BLAKE2B fe1ec87a46cb98f9076de2a741f9ced7baaf055dccbc3da30959f470a9598bd41e37531596970b91e1274db987e8858316cf5ea49722211dc6b7ed9090f649a0 SHA512 af9449847b0e724983e188cab93b396114d3a842005b6ac497e8d8f61320c28f2d4fe414d1040ba26ece8f9fbd0f7f103b1303f6d5ffea0622be35b679387835
|
EBUILD brasero-3.12.2-r3.ebuild 2081 BLAKE2B 46a30a1de3e7a2c79a8d9bca5518a3b3e207bb186c85bffe4d6b4e0ae8c7bc6f0d50d9d386aec8f8d4470ffe3f3be255d1e98f2e9863bfa1f4ab8ec38570192b SHA512 bcd90407bbf8a95300a2a1fc8cfd9ffe9416ccaf7421f457c8166aa1cf6bf72ed232c7c63a72ca7cb376838f1a09a31335a4d2823dbb39b2d484171dfbe283ea
|
||||||
MISC metadata.xml 746 BLAKE2B cc74b666873593a356e42643f62e16a4919441f08ce9645e367ce5f52b6b3c3d0a2bd1a5bc64b49348239b04c7543a66993926d216a7ada19f2129417106e1dd SHA512 9824ae80fa067cedf46aa47f83d481b18704b94af6258657eb099bde328abae196b8f86ce7e92a800fea6b657b5a774afc37888fb92b560fda1403d8adf06c7d
|
MISC metadata.xml 746 BLAKE2B cc74b666873593a356e42643f62e16a4919441f08ce9645e367ce5f52b6b3c3d0a2bd1a5bc64b49348239b04c7543a66993926d216a7ada19f2129417106e1dd SHA512 9824ae80fa067cedf46aa47f83d481b18704b94af6258657eb099bde328abae196b8f86ce7e92a800fea6b657b5a774afc37888fb92b560fda1403d8adf06c7d
|
||||||
|
Binary file not shown.
Binary file not shown.
@ -1,3 +1,3 @@
|
|||||||
DIST vile-9.8t.tgz 2352119 BLAKE2B fc1c75eba09e8be99945ba0d178fd150576d8108f906afb20dba265adaee9e5bea4869415d3ebceabf0b6b56c147add79e9c7e4fe34d7f4744930c3728e4a4a4 SHA512 4be4e37c7231395cae9236796073c2c3e428f1945283785a931c5d4cce94e0f970efa6634b0f9053679a00f4b4577704ea38ded2129e444b26ee9935a1c3d229
|
DIST vile-9.8t.tgz 2352119 BLAKE2B fc1c75eba09e8be99945ba0d178fd150576d8108f906afb20dba265adaee9e5bea4869415d3ebceabf0b6b56c147add79e9c7e4fe34d7f4744930c3728e4a4a4 SHA512 4be4e37c7231395cae9236796073c2c3e428f1945283785a931c5d4cce94e0f970efa6634b0f9053679a00f4b4577704ea38ded2129e444b26ee9935a1c3d229
|
||||||
EBUILD vile-9.8t.ebuild 921 BLAKE2B 673d5ff4ccdabf5a4f4bdd3d31bb23dc84fb80af53b35b7c8b8a5d9564104874975a48ab3867ab01898e069f21cfb946d2906cbd9baee400abee37dcba3c4d2e SHA512 51e426b58461b8abb10bc6615cb88822f9d512697ed67778f2f336b78686abbcee2cdd4c0a76632a7f0b5e41ee8e371dfdc4c0c02d0c4c4ae78171d98a32ead5
|
EBUILD vile-9.8t.ebuild 921 BLAKE2B 673d5ff4ccdabf5a4f4bdd3d31bb23dc84fb80af53b35b7c8b8a5d9564104874975a48ab3867ab01898e069f21cfb946d2906cbd9baee400abee37dcba3c4d2e SHA512 51e426b58461b8abb10bc6615cb88822f9d512697ed67778f2f336b78686abbcee2cdd4c0a76632a7f0b5e41ee8e371dfdc4c0c02d0c4c4ae78171d98a32ead5
|
||||||
MISC metadata.xml 249 BLAKE2B 7ae6eac3ca23edbcbaa6aee682bb4aec155e3166f169eef8e4400e59fa56113ecc3593680d55cc57f08a4a718963dd3d0bb804bd1e8771ed60a4bebaae9db281 SHA512 4051dd059d975d2e1799125f7defbf5a62a168241d8b83d83710592efd60808800951c4fd6da1294044d7e7ec6b757b8d50593fd076696f826dec761e99645c7
|
MISC metadata.xml 346 BLAKE2B aa1d8324ae0a63097138e7e87ed1c43fd6cf76eab1a2e33645f788691f9b96595e6edfb40a5560ac5e5ec4ca36d0dd972a444ebf9c3cf800344d7137d7d526f8 SHA512 5e073e0fa1ed8d705cbb1cf8f750c61a46692dc6914d6ebb8fc3281d8bd4d206fe17b544bcb3e05033296de8a4a4f34189deef26800521a22d04be275089e084
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
DIST vile-9.8t.tgz 2352119 BLAKE2B fc1c75eba09e8be99945ba0d178fd150576d8108f906afb20dba265adaee9e5bea4869415d3ebceabf0b6b56c147add79e9c7e4fe34d7f4744930c3728e4a4a4 SHA512 4be4e37c7231395cae9236796073c2c3e428f1945283785a931c5d4cce94e0f970efa6634b0f9053679a00f4b4577704ea38ded2129e444b26ee9935a1c3d229
|
DIST vile-9.8t.tgz 2352119 BLAKE2B fc1c75eba09e8be99945ba0d178fd150576d8108f906afb20dba265adaee9e5bea4869415d3ebceabf0b6b56c147add79e9c7e4fe34d7f4744930c3728e4a4a4 SHA512 4be4e37c7231395cae9236796073c2c3e428f1945283785a931c5d4cce94e0f970efa6634b0f9053679a00f4b4577704ea38ded2129e444b26ee9935a1c3d229
|
||||||
EBUILD xvile-9.8t.ebuild 862 BLAKE2B a4e91bf79dac14018df1d79004375a608eb98afb407acacea681ae9887af065688aabb82cb6b4a7bcae3d2d3bfa59a70a5a707504be8a4e5f5a0acf7b783baf5 SHA512 7bd7b12aba51c326a76155d411d652b2f397c11032cdf1f45365516b41e260f7997f1a7e3fd7574181f54fd57770ba2381277f3732e821136551294c1b5af666
|
EBUILD xvile-9.8t.ebuild 862 BLAKE2B a4e91bf79dac14018df1d79004375a608eb98afb407acacea681ae9887af065688aabb82cb6b4a7bcae3d2d3bfa59a70a5a707504be8a4e5f5a0acf7b783baf5 SHA512 7bd7b12aba51c326a76155d411d652b2f397c11032cdf1f45365516b41e260f7997f1a7e3fd7574181f54fd57770ba2381277f3732e821136551294c1b5af666
|
||||||
MISC metadata.xml 245 BLAKE2B d4f5ef381d0a479a17bfde792cd6828e5fa0ecdd26732c1a13c97fcae2f22396b879fb430aaea7680920d5ba897f78cfbb6e50bb2f65165613a5a0ba1f7dc609 SHA512 6d6d35ccbb839c939bc663cecb55e2178f5fd4e455ee3088b8847416d558dd3e7969f4c78bc445ff29503d6906fec12d302d7249e9adc8cb708d0790e681e5a2
|
MISC metadata.xml 346 BLAKE2B aa1d8324ae0a63097138e7e87ed1c43fd6cf76eab1a2e33645f788691f9b96595e6edfb40a5560ac5e5ec4ca36d0dd972a444ebf9c3cf800344d7137d7d526f8 SHA512 5e073e0fa1ed8d705cbb1cf8f750c61a46692dc6914d6ebb8fc3281d8bd4d206fe17b544bcb3e05033296de8a4a4f34189deef26800521a22d04be275089e084
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
<pkgmetadata>
|
<pkgmetadata>
|
||||||
<maintainer type="project">
|
<maintainer type="project">
|
||||||
<email>vim@gentoo.org</email>
|
<email>vim@gentoo.org</email>
|
||||||
<name>Gentoo Vim Project</name>
|
<name>Gentoo Vim Project</name>
|
||||||
</maintainer>
|
</maintainer>
|
||||||
|
<upstream>
|
||||||
|
<changelog>https://invisible-island.net/vile/CHANGES.html</changelog>
|
||||||
|
</upstream>
|
||||||
</pkgmetadata>
|
</pkgmetadata>
|
||||||
|
Binary file not shown.
@ -0,0 +1,93 @@
|
|||||||
|
From 91ad9b94bcd964adfbaa8d84d8f39304d39835d0 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Christian Brauner <christian.brauner@ubuntu.com>
|
||||||
|
Date: Thu, 6 May 2021 18:16:45 +0200
|
||||||
|
Subject: [PATCH] conf: handle kernels with CAP_SETFCAP
|
||||||
|
|
||||||
|
LXC is being very clever and sometimes maps the caller's uid into the
|
||||||
|
child userns. This means that the caller can technically write fscaps
|
||||||
|
that are valid in the ancestor userns (which can be a security issue in
|
||||||
|
some scenarios) so newer kernels require CAP_SETFCAP to do this. Until
|
||||||
|
newuidmap/newgidmap are updated to account for this simply write the
|
||||||
|
mapping directly in this case.
|
||||||
|
|
||||||
|
Cc: stable-4.0
|
||||||
|
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
|
||||||
|
---
|
||||||
|
src/lxc/conf.c | 25 ++++++++++++++++++++-----
|
||||||
|
1 file changed, 20 insertions(+), 5 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/lxc/conf.c b/src/lxc/conf.c
|
||||||
|
index 72e21b5300..f388946970 100644
|
||||||
|
--- a/src/lxc/conf.c
|
||||||
|
+++ b/src/lxc/conf.c
|
||||||
|
@@ -2978,6 +2978,9 @@ static int lxc_map_ids_exec_wrapper(void *args)
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
+static struct id_map *find_mapped_hostid_entry(const struct lxc_list *idmap,
|
||||||
|
+ unsigned id, enum idtype idtype);
|
||||||
|
+
|
||||||
|
int lxc_map_ids(struct lxc_list *idmap, pid_t pid)
|
||||||
|
{
|
||||||
|
int fill, left;
|
||||||
|
@@ -2991,12 +2994,22 @@ int lxc_map_ids(struct lxc_list *idmap, pid_t pid)
|
||||||
|
char mapbuf[STRLITERALLEN("new@idmap") + STRLITERALLEN(" ") +
|
||||||
|
INTTYPE_TO_STRLEN(pid_t) + STRLITERALLEN(" ") +
|
||||||
|
LXC_IDMAPLEN] = {0};
|
||||||
|
- bool had_entry = false, use_shadow = false;
|
||||||
|
+ bool had_entry = false, maps_host_root = false, use_shadow = false;
|
||||||
|
int hostuid, hostgid;
|
||||||
|
|
||||||
|
hostuid = geteuid();
|
||||||
|
hostgid = getegid();
|
||||||
|
|
||||||
|
+ /*
|
||||||
|
+ * Check whether caller wants to map host root.
|
||||||
|
+ * Due to a security fix newer kernels require CAP_SETFCAP when mapping
|
||||||
|
+ * host root into the child userns as you would be able to write fscaps
|
||||||
|
+ * that would be valid in the ancestor userns. Mapping host root should
|
||||||
|
+ * rarely be the case but LXC is being clever in a bunch of cases.
|
||||||
|
+ */
|
||||||
|
+ if (find_mapped_hostid_entry(idmap, 0, ID_TYPE_UID))
|
||||||
|
+ maps_host_root = true;
|
||||||
|
+
|
||||||
|
/* If new{g,u}idmap exists, that is, if shadow is handing out subuid
|
||||||
|
* ranges, then insist that root also reserve ranges in subuid. This
|
||||||
|
* will protected it by preventing another user from being handed the
|
||||||
|
@@ -3014,7 +3027,9 @@ int lxc_map_ids(struct lxc_list *idmap, pid_t pid)
|
||||||
|
else if (!gidmap)
|
||||||
|
WARN("newgidmap is lacking necessary privileges");
|
||||||
|
|
||||||
|
- if (uidmap > 0 && gidmap > 0) {
|
||||||
|
+ if (maps_host_root) {
|
||||||
|
+ INFO("Caller maps host root. Writing mapping directly");
|
||||||
|
+ } else if (uidmap > 0 && gidmap > 0) {
|
||||||
|
DEBUG("Functional newuidmap and newgidmap binary found");
|
||||||
|
use_shadow = true;
|
||||||
|
} else {
|
||||||
|
@@ -4229,14 +4244,14 @@ static struct id_map *mapped_nsid_add(const struct lxc_conf *conf, unsigned id,
|
||||||
|
return retmap;
|
||||||
|
}
|
||||||
|
|
||||||
|
-static struct id_map *find_mapped_hostid_entry(const struct lxc_conf *conf,
|
||||||
|
+static struct id_map *find_mapped_hostid_entry(const struct lxc_list *idmap,
|
||||||
|
unsigned id, enum idtype idtype)
|
||||||
|
{
|
||||||
|
struct id_map *map;
|
||||||
|
struct lxc_list *it;
|
||||||
|
struct id_map *retmap = NULL;
|
||||||
|
|
||||||
|
- lxc_list_for_each (it, &conf->id_map) {
|
||||||
|
+ lxc_list_for_each (it, idmap) {
|
||||||
|
map = it->elem;
|
||||||
|
if (map->idtype != idtype)
|
||||||
|
continue;
|
||||||
|
@@ -4265,7 +4280,7 @@ static struct id_map *mapped_hostid_add(const struct lxc_conf *conf, uid_t id,
|
||||||
|
return NULL;
|
||||||
|
|
||||||
|
/* Reuse existing mapping. */
|
||||||
|
- tmp = find_mapped_hostid_entry(conf, id, type);
|
||||||
|
+ tmp = find_mapped_hostid_entry(&conf->id_map, id, type);
|
||||||
|
if (tmp) {
|
||||||
|
memcpy(entry, tmp, sizeof(*entry));
|
||||||
|
} else {
|
@ -1,5 +1,3 @@
|
|||||||
DIST xcpc-0.35.0.tar.gz 1058202 BLAKE2B f5002fcc69a078cd05c05a981522edd15900295136419157f997effd81a89f7452cec335bbdba0be3b303bdc8f8537d4aac255ee7cf4e9ec53cc1143413ad1c1 SHA512 667db6db33f2cab85647960edb5b1c200037bfc464527a60eca85c31549360226893853a38d98e657bde111a28aca47d9741b16b13284759b66cb6213da27458
|
DIST xcpc-0.37.0.tar.gz 1094259 BLAKE2B 670de05f53d05d375c9cb252e672f8fa9027419302b521b88dc1904ec99571fa95b390bfdc5eea3eb2355730c02a955c10cbc2f29d7e4c52506173e8f5d6c540 SHA512 8579711595ac5234c1c8a6e9d0279950c97966a2a8919d4f0ba404c5bd5609f299ab0b5131d6973f5decfc12bff184facf3009522bef568a108b5cfb7e74be11
|
||||||
DIST xcpc-0.36.0.tar.gz 1092363 BLAKE2B 4f799aefa417f6e2c04c0c3760c4d15b10b863f528e5051cfe90ea5a8ccb4c3f83fb592bbf510a351c02dc42a2a2a42f9fcb33b65a5e2dd997feeb5ea22f5342 SHA512 0cf6e718daf6b7db981aa607036e57eddb2ae18665393b0a691d8fd6978278ca077ae45a205eae93b6107b83d5d219702018f1afcda84ae7b83a7b6d68a68cba
|
EBUILD xcpc-0.37.0.ebuild 586 BLAKE2B 3253621b8950be262fb991c899184eb586874f96e6c4a2189ba4740fad658ad961eca75e01e750ab76c00b67a7c07e00a4065b09dc7c701309c111e2ce1992e3 SHA512 1d108f7a5bb7ef7e2bd2b626b0209f3f61b00366d27ddd24fe056e4dfbdaf482a4f316a59342da680b7c24328b4acfd45bb5a9f352992c95f54cc40e02a970dc
|
||||||
EBUILD xcpc-0.35.0-r1.ebuild 571 BLAKE2B 475b1a073db3c2662f11f065fee8c45a8fa1a94cf482b3ec5fb40e0b90f5ccaa68c395119fc0b61e57cafeaa02dd9147abfe24249b095d4b47a05a3f7829a0e2 SHA512 37097b2d544a373f6824e09b082f65d50fc06b898b91da205df11741f1d9b8ff05940010b8451ba06c919d59c01eb6be7a5480c6bf65b10817e60b149a32292f
|
|
||||||
EBUILD xcpc-0.36.0.ebuild 586 BLAKE2B 3253621b8950be262fb991c899184eb586874f96e6c4a2189ba4740fad658ad961eca75e01e750ab76c00b67a7c07e00a4065b09dc7c701309c111e2ce1992e3 SHA512 1d108f7a5bb7ef7e2bd2b626b0209f3f61b00366d27ddd24fe056e4dfbdaf482a4f316a59342da680b7c24328b4acfd45bb5a9f352992c95f54cc40e02a970dc
|
|
||||||
MISC metadata.xml 241 BLAKE2B 81cba32d3549528c5580b252ea1d827f5b8a72f02da156bef7c434d60d9356140f4f86ca455d6230970659413ef6d40e6ec3648f66ce110816a611ecd608677c SHA512 917345e02375f9f0638188543e2479a7b88616d7e4c732570eb0b5a903fa74d62386a8729000737e9697ef14c0ca73a82d2d0ec4fe39bfa98aa0d7ef796950b9
|
MISC metadata.xml 241 BLAKE2B 81cba32d3549528c5580b252ea1d827f5b8a72f02da156bef7c434d60d9356140f4f86ca455d6230970659413ef6d40e6ec3648f66ce110816a611ecd608677c SHA512 917345e02375f9f0638188543e2479a7b88616d7e4c732570eb0b5a903fa74d62386a8729000737e9697ef14c0ca73a82d2d0ec4fe39bfa98aa0d7ef796950b9
|
||||||
|
@ -1,29 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
inherit xdg
|
|
||||||
|
|
||||||
DESCRIPTION="XCPC is a portable Amstrad CPC 464/664/6128 emulator written in C."
|
|
||||||
HOMEPAGE="http://www.xcpc-emulator.net/doku.php/index"
|
|
||||||
SRC_URI="https://bitbucket.org/ponceto/xcpc/downloads/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64"
|
|
||||||
|
|
||||||
DEPEND="
|
|
||||||
app-arch/bzip2
|
|
||||||
sys-libs/zlib
|
|
||||||
x11-libs/libX11
|
|
||||||
x11-libs/libXext
|
|
||||||
x11-libs/libXt
|
|
||||||
x11-libs/motif"
|
|
||||||
RDEPEND="${DEPEND}"
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
econf \
|
|
||||||
--disable-athena \
|
|
||||||
--enable-motif2
|
|
||||||
}
|
|
Binary file not shown.
@ -1,5 +1,5 @@
|
|||||||
DIST ibus-m17n-1.4.3.tar.gz 489392 BLAKE2B bd37fb1f7160d4306be008e4f27fc5852db54318e6075f0887294f7ce30406ff697f41c5cc56734cffa4605b37f28cb89b3eb04a942e6acf352be50a273bd71f SHA512 8b42bcac8662b4924f54b6fe56427b32603746a3d1b0dfafb6dfec1296ec52847119f94fabb0a276f9de5918414fdf5f7b5aceaaabd8c01632cfd677344598ab
|
|
||||||
DIST ibus-m17n-1.4.4.tar.gz 490328 BLAKE2B e7b5c417d4cc16cea736dfadc504137218397ed1ce6318dc6edc48ec33b13051b43d2f7926a959aafe79025c2af1a35374a7dcb4cb4fee952df85b25b604d07a SHA512 df8be7ceaa2183ffb377e39f52b271f18825a8970f88972d0a43ed1fa2721d36bf564a20f89311541ffe19546441322fc568c4819e42e41bdff45ee137d6de80
|
DIST ibus-m17n-1.4.4.tar.gz 490328 BLAKE2B e7b5c417d4cc16cea736dfadc504137218397ed1ce6318dc6edc48ec33b13051b43d2f7926a959aafe79025c2af1a35374a7dcb4cb4fee952df85b25b604d07a SHA512 df8be7ceaa2183ffb377e39f52b271f18825a8970f88972d0a43ed1fa2721d36bf564a20f89311541ffe19546441322fc568c4819e42e41bdff45ee137d6de80
|
||||||
EBUILD ibus-m17n-1.4.3.ebuild 894 BLAKE2B e546c29fed4e3155af586f96836a8720427d272a3eccd432d92778b765dc7ec3347056168eb1decfa0166ede011225a95c80cefa28d68a11d69b30cda91f0590 SHA512 a7e6fd76f12992613c486857b0dd30471175bf56bc0ee5cc273bb21e999cd59a309e1922b204633dd113e18b220051dfc6bf1b6289e56f168b5302fe77fa2a38
|
DIST ibus-m17n-1.4.5.tar.gz 493250 BLAKE2B a5fd4de169997dea78acf6273a7e44cefbc9ab4499cbee92c30f394ef7267c15fb1af42d45d227bc160150f35195477f9ec3d2534f9764bab4fa86c0fae046eb SHA512 64bed564d59b0992ebc8a931e0845f687c176e5336d7c7fbc1d575433eb276714615f8fee412a532ec2c8870e46d8d6c41636c984b666c92427dadbdc84838b5
|
||||||
EBUILD ibus-m17n-1.4.4.ebuild 896 BLAKE2B a8a7a9cbf44d8325aa3f59c87ab7b2d1407ae9306c089aad54c7368f315be9bf83bc3b712b9e6e2f42b48e428af4af1431a4b51e24bc5861be6061bd06e47451 SHA512 f78da526515464797d8e98ed7af6879d53da7b61131ffd8332a3e7631d6b8f886b3d7aeb4dfc0a954d0603d2a1bb81d69864fe1742b52592644cc9e110aca12d
|
EBUILD ibus-m17n-1.4.4.ebuild 894 BLAKE2B e546c29fed4e3155af586f96836a8720427d272a3eccd432d92778b765dc7ec3347056168eb1decfa0166ede011225a95c80cefa28d68a11d69b30cda91f0590 SHA512 a7e6fd76f12992613c486857b0dd30471175bf56bc0ee5cc273bb21e999cd59a309e1922b204633dd113e18b220051dfc6bf1b6289e56f168b5302fe77fa2a38
|
||||||
|
EBUILD ibus-m17n-1.4.5.ebuild 896 BLAKE2B a8a7a9cbf44d8325aa3f59c87ab7b2d1407ae9306c089aad54c7368f315be9bf83bc3b712b9e6e2f42b48e428af4af1431a4b51e24bc5861be6061bd06e47451 SHA512 f78da526515464797d8e98ed7af6879d53da7b61131ffd8332a3e7631d6b8f886b3d7aeb4dfc0a954d0603d2a1bb81d69864fe1742b52592644cc9e110aca12d
|
||||||
MISC metadata.xml 679 BLAKE2B a374aafbf949a9cb71906396787329ea1cd31775b29bf1675b30c98098e1025ee5e96dcdce2e8324bd6d3bfc05e854f89b1120a2e9410834a4dab767db1336b0 SHA512 c07286ebfb6f8bcf82c4fe6b5d02cf0a49287c7609daa42a356b8bfe7b3c074558d39d987decbffd15b10a33d475630b5f7194ff9941c9762c87dbcbefada953
|
MISC metadata.xml 679 BLAKE2B a374aafbf949a9cb71906396787329ea1cd31775b29bf1675b30c98098e1025ee5e96dcdce2e8324bd6d3bfc05e854f89b1120a2e9410834a4dab767db1336b0 SHA512 c07286ebfb6f8bcf82c4fe6b5d02cf0a49287c7609daa42a356b8bfe7b3c074558d39d987decbffd15b10a33d475630b5f7194ff9941c9762c87dbcbefada953
|
||||||
|
@ -0,0 +1,24 @@
|
|||||||
|
https://github.com/rime/librime/issues/462
|
||||||
|
https://github.com/rime/librime/pull/463
|
||||||
|
https://github.com/rime/librime/commit/57cffcd02ac70148e21ce982be834876b3df87db
|
||||||
|
|
||||||
|
--- /src/rime/gear/script_translator.cc
|
||||||
|
+++ /src/rime/gear/script_translator.cc
|
||||||
|
@@ -8,6 +8,7 @@
|
||||||
|
//
|
||||||
|
#include <algorithm>
|
||||||
|
#include <stack>
|
||||||
|
+#include <cmath>
|
||||||
|
#include <boost/algorithm/string/join.hpp>
|
||||||
|
#include <boost/range/adaptor/reversed.hpp>
|
||||||
|
#include <rime/composition.h>
|
||||||
|
--- /src/rime/gear/table_translator.cc
|
||||||
|
+++ /src/rime/gear/table_translator.cc
|
||||||
|
@@ -6,6 +6,7 @@
|
||||||
|
//
|
||||||
|
#include <boost/algorithm/string.hpp>
|
||||||
|
#include <boost/range/adaptor/reversed.hpp>
|
||||||
|
+#include <cmath>
|
||||||
|
#include <utf8.h>
|
||||||
|
#include <rime/candidate.h>
|
||||||
|
#include <rime/common.h>
|
Binary file not shown.
@ -1,7 +1,6 @@
|
|||||||
AUX mc-4.8.26-file-seccomp.patch 4794 BLAKE2B f6b2ba15b2f7f57aa620fc5745816be434d357f8b4023197691f8827c1e5d6555fa542e0aa3b471036c7d60a3ab5761d261e62d3fc599fd14593c82c4cd238dd SHA512 a65b414dfbb4f934351a87496e012131b1e811cd1fd21a91c167e8db212ee7485f097d3a5a4faed2d904e50e34cb7488a6ffbbcb41bf341167f3837f891e85b5
|
AUX mc-4.8.26-file-seccomp.patch 4794 BLAKE2B f6b2ba15b2f7f57aa620fc5745816be434d357f8b4023197691f8827c1e5d6555fa542e0aa3b471036c7d60a3ab5761d261e62d3fc599fd14593c82c4cd238dd SHA512 a65b414dfbb4f934351a87496e012131b1e811cd1fd21a91c167e8db212ee7485f097d3a5a4faed2d904e50e34cb7488a6ffbbcb41bf341167f3837f891e85b5
|
||||||
AUX mc-4.8.26-shadow-crash.patch 936 BLAKE2B 65bf04b92a193de03457f95b94c7eff7677cedc0886fff4d934bd4e3bf94babf3650d5e56ad54eb73e41791e67089c9a65b6628615b87609035e6b823fd317e6 SHA512 8874e98bc5a9b032ff094d3042c71bf279f42c71840920ac3221011ae991fb199050e60d47ee8a65ef82bc5b64e4c14233fd3909c49de807fabf771a953a6c6a
|
AUX mc-4.8.26-shadow-crash.patch 936 BLAKE2B 65bf04b92a193de03457f95b94c7eff7677cedc0886fff4d934bd4e3bf94babf3650d5e56ad54eb73e41791e67089c9a65b6628615b87609035e6b823fd317e6 SHA512 8874e98bc5a9b032ff094d3042c71bf279f42c71840920ac3221011ae991fb199050e60d47ee8a65ef82bc5b64e4c14233fd3909c49de807fabf771a953a6c6a
|
||||||
DIST mc-4.8.26.tar.xz 2492612 BLAKE2B e13ab99fb7d5a9e2cf1149ad96d763681b0186fbf5c03fc9e349a57a4a6f48b598c9eeed85e4cb94a18c5c5b89d4ee0e21f6d34c8cfd5e21da53551085aa3469 SHA512 f2f06915b775ecc94016fe5d5db9301e953cc89ee0708e79ee96e14a9f53142a467b27061ca57f65b40310fa86d4d13e2f2a29a601f8fefa6216fb10f73007be
|
DIST mc-4.8.26.tar.xz 2492612 BLAKE2B e13ab99fb7d5a9e2cf1149ad96d763681b0186fbf5c03fc9e349a57a4a6f48b598c9eeed85e4cb94a18c5c5b89d4ee0e21f6d34c8cfd5e21da53551085aa3469 SHA512 f2f06915b775ecc94016fe5d5db9301e953cc89ee0708e79ee96e14a9f53142a467b27061ca57f65b40310fa86d4d13e2f2a29a601f8fefa6216fb10f73007be
|
||||||
EBUILD mc-4.8.26-r1.ebuild 2841 BLAKE2B ba0cf54b91292f2184b0e05203d0a407efe28eb13ff378ecd0b881bf46506d43d4a52e1d8d2218f2e864fcfad7167dbdbc0ad19030c3988fac6fd2075eaf238f SHA512 40e67c95d0a0bcf350d25a36edcc00bb850152328794b5a0a03a4243b43a31c82f910e11a10e15ef0eb40bf3f0845454802af223fb20b75fcac24aaad4ebdf17
|
|
||||||
EBUILD mc-4.8.26-r2.ebuild 3289 BLAKE2B 32b33f2266c28eda35403d1e9d50e12a1e4e5d8867390033cad1f87e63f94752e5edab760758a8c816ad58dc32a9f5124f477362f9b25230fcf896b8c1310b5f SHA512 1bc54410a2d5728c70433deddfcadec844d17ca92c33a416ce3b631ae990ca1b62a6855eba57faa3a7ee32e7a92d3a5b7d667b6be3548cc954f222c966e05c77
|
EBUILD mc-4.8.26-r2.ebuild 3289 BLAKE2B 32b33f2266c28eda35403d1e9d50e12a1e4e5d8867390033cad1f87e63f94752e5edab760758a8c816ad58dc32a9f5124f477362f9b25230fcf896b8c1310b5f SHA512 1bc54410a2d5728c70433deddfcadec844d17ca92c33a416ce3b631ae990ca1b62a6855eba57faa3a7ee32e7a92d3a5b7d667b6be3548cc954f222c966e05c77
|
||||||
EBUILD mc-9999.ebuild 3362 BLAKE2B 28f6d8342efa7d7a5220f96037919a29c85bbae55c3379d81bccce6889e346f9589431a54f183d31991c79c000f3d931d75efd1df5fca4b842ab6e2e0ee37970 SHA512 b356eec5b771b2b977e084caf61bdc0448091caa2fd422552339c9ca56afdc7fde364dac504e8667ecce69816687e66c4d0e625f8133d1e080e7862caca96d7a
|
EBUILD mc-9999.ebuild 3362 BLAKE2B 28f6d8342efa7d7a5220f96037919a29c85bbae55c3379d81bccce6889e346f9589431a54f183d31991c79c000f3d931d75efd1df5fca4b842ab6e2e0ee37970 SHA512 b356eec5b771b2b977e084caf61bdc0448091caa2fd422552339c9ca56afdc7fde364dac504e8667ecce69816687e66c4d0e625f8133d1e080e7862caca96d7a
|
||||||
MISC metadata.xml 773 BLAKE2B c7f3bb9bfb49c380a0493eabadcedec215df8696c5d52433aaccdffa0bf5ba3b89c77c291e19ed88c5ac29718e34eece1d3dabbc3ba6c1ec7862970f3900e204 SHA512 c5c0ca5a41a78cf746e14264b291f81ccffaa9c34a4149d27a9293cca8d304cb4844c07979b31218b250c3baeaccef2cba529c2ab43e81dc5552dca34ddbd4da
|
MISC metadata.xml 773 BLAKE2B c7f3bb9bfb49c380a0493eabadcedec215df8696c5d52433aaccdffa0bf5ba3b89c77c291e19ed88c5ac29718e34eece1d3dabbc3ba6c1ec7862970f3900e204 SHA512 c5c0ca5a41a78cf746e14264b291f81ccffaa9c34a4149d27a9293cca8d304cb4844c07979b31218b250c3baeaccef2cba529c2ab43e81dc5552dca34ddbd4da
|
||||||
|
@ -1,108 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
inherit flag-o-matic
|
|
||||||
|
|
||||||
MY_P=${P/_/-}
|
|
||||||
|
|
||||||
DESCRIPTION="GNU Midnight Commander is a text based file manager"
|
|
||||||
HOMEPAGE="https://www.midnight-commander.org"
|
|
||||||
SRC_URI="http://ftp.midnight-commander.org/${MY_P}.tar.xz"
|
|
||||||
|
|
||||||
LICENSE="GPL-3"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x86-solaris"
|
|
||||||
IUSE="+edit gpm nls samba sftp +slang spell test unicode X +xdg"
|
|
||||||
|
|
||||||
REQUIRED_USE="spell? ( edit )"
|
|
||||||
|
|
||||||
RDEPEND=">=dev-libs/glib-2.26.0:2
|
|
||||||
gpm? ( sys-libs/gpm )
|
|
||||||
kernel_linux? ( sys-fs/e2fsprogs )
|
|
||||||
samba? ( net-fs/samba )
|
|
||||||
sftp? ( net-libs/libssh2 )
|
|
||||||
slang? ( >=sys-libs/slang-2 )
|
|
||||||
!slang? ( sys-libs/ncurses:0=[unicode?] )
|
|
||||||
spell? ( app-text/aspell )
|
|
||||||
X? ( x11-libs/libX11
|
|
||||||
x11-libs/libICE
|
|
||||||
x11-libs/libXau
|
|
||||||
x11-libs/libXdmcp
|
|
||||||
x11-libs/libSM )"
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
app-arch/xz-utils
|
|
||||||
virtual/pkgconfig
|
|
||||||
nls? ( sys-devel/gettext )
|
|
||||||
test? ( dev-libs/check )
|
|
||||||
"
|
|
||||||
|
|
||||||
PATCHES=("${FILESDIR}"/${P}-shadow-crash.patch)
|
|
||||||
|
|
||||||
RESTRICT="!test? ( test )"
|
|
||||||
|
|
||||||
S="${WORKDIR}/${MY_P}"
|
|
||||||
|
|
||||||
pkg_pretend() {
|
|
||||||
if use slang && use unicode ; then
|
|
||||||
ewarn "\"unicode\" USE flag only takes effect when the \"slang\" USE flag is disabled."
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
[[ ${CHOST} == *-solaris* ]] && append-ldflags "-lnsl -lsocket"
|
|
||||||
|
|
||||||
local myeconfargs=(
|
|
||||||
--enable-charset
|
|
||||||
--enable-vfs
|
|
||||||
--with-homedir=$(usex xdg 'XDG' '.mc')
|
|
||||||
--with-screen=$(usex slang 'slang' "ncurses$(usex unicode 'w' '')")
|
|
||||||
$(use_enable kernel_linux vfs-undelfs)
|
|
||||||
# Today mclib does not expose any headers and is linked to
|
|
||||||
# single 'mc' binary. Thus there is no advantage of having
|
|
||||||
# a library. Let's avoid shared library altogether
|
|
||||||
# as it also conflicts with sci-libs/mc: bug #685938
|
|
||||||
--disable-mclib
|
|
||||||
$(use_enable nls)
|
|
||||||
$(use_enable samba vfs-smb)
|
|
||||||
$(use_enable sftp vfs-sftp)
|
|
||||||
$(use_enable spell aspell)
|
|
||||||
$(use_enable test tests)
|
|
||||||
$(use_with gpm gpm-mouse)
|
|
||||||
$(use_with X x)
|
|
||||||
$(use_with edit internal-edit)
|
|
||||||
)
|
|
||||||
econf "${myeconfargs[@]}"
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
# CK_FORK=no to avoid using fork() in check library
|
|
||||||
# as mc mocks fork() itself: bug #644462.
|
|
||||||
#
|
|
||||||
# VERBOSE=1 to make test failures contain detailed
|
|
||||||
# information.
|
|
||||||
CK_FORK=no emake check VERBOSE=1
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
emake DESTDIR="${D}" install
|
|
||||||
dodoc AUTHORS README NEWS
|
|
||||||
|
|
||||||
# fix bug #334383
|
|
||||||
if use kernel_linux && [[ ${EUID} == 0 ]] ; then
|
|
||||||
fowners root:tty /usr/libexec/mc/cons.saver
|
|
||||||
fperms g+s /usr/libexec/mc/cons.saver
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use xdg ; then
|
|
||||||
sed 's@MC_XDG_OPEN="xdg-open"@MC_XDG_OPEN="/bin/false"@' \
|
|
||||||
-i "${ED}"/usr/libexec/mc/ext.d/*.sh || die
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
elog "To enable exiting to latest working directory,"
|
|
||||||
elog "put this into your ~/.bashrc:"
|
|
||||||
elog ". ${EPREFIX}/usr/libexec/mc/mc.sh"
|
|
||||||
}
|
|
Binary file not shown.
@ -1,37 +0,0 @@
|
|||||||
# Copyright 2020-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
DISTUTILS_USE_SETUPTOOLS=rdepend
|
|
||||||
PYTHON_COMPAT=( python3_{8..9} )
|
|
||||||
|
|
||||||
inherit distutils-r1
|
|
||||||
|
|
||||||
DESCRIPTION="A New Arch Tester Toolkit -- open-source stable-bot replacement"
|
|
||||||
HOMEPAGE="https://github.com/mgorny/nattka/"
|
|
||||||
SRC_URI="https://github.com/mgorny/nattka/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="BSD-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x64-macos"
|
|
||||||
IUSE="depgraph-order"
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
dev-python/lxml[${PYTHON_USEDEP}]
|
|
||||||
dev-python/requests[${PYTHON_USEDEP}]
|
|
||||||
<dev-util/pkgcheck-0.9[${PYTHON_USEDEP}]
|
|
||||||
dev-vcs/git
|
|
||||||
<sys-apps/pkgcore-0.11.3[${PYTHON_USEDEP}]
|
|
||||||
depgraph-order? (
|
|
||||||
dev-python/networkx[${PYTHON_USEDEP}]
|
|
||||||
)"
|
|
||||||
BDEPEND="
|
|
||||||
test? (
|
|
||||||
dev-python/freezegun[${PYTHON_USEDEP}]
|
|
||||||
dev-python/vcrpy[${PYTHON_USEDEP}]
|
|
||||||
)"
|
|
||||||
|
|
||||||
distutils_enable_sphinx doc --no-autodoc
|
|
||||||
distutils_enable_tests pytest
|
|
@ -1,36 +0,0 @@
|
|||||||
# Copyright 2020-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
DISTUTILS_USE_SETUPTOOLS=rdepend
|
|
||||||
PYTHON_COMPAT=( python3_{8..9} )
|
|
||||||
|
|
||||||
inherit distutils-r1
|
|
||||||
|
|
||||||
DESCRIPTION="A New Arch Tester Toolkit -- open-source stable-bot replacement"
|
|
||||||
HOMEPAGE="https://github.com/mgorny/nattka/"
|
|
||||||
SRC_URI="https://github.com/mgorny/nattka/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="BSD-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 ~s390 sparc x86 ~x64-macos"
|
|
||||||
IUSE="depgraph-order"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
dev-python/lxml[${PYTHON_USEDEP}]
|
|
||||||
dev-python/requests[${PYTHON_USEDEP}]
|
|
||||||
dev-util/pkgcheck[${PYTHON_USEDEP}]
|
|
||||||
dev-vcs/git
|
|
||||||
sys-apps/pkgcore[${PYTHON_USEDEP}]
|
|
||||||
depgraph-order? (
|
|
||||||
dev-python/networkx[${PYTHON_USEDEP}]
|
|
||||||
)"
|
|
||||||
BDEPEND="
|
|
||||||
test? (
|
|
||||||
dev-python/freezegun[${PYTHON_USEDEP}]
|
|
||||||
dev-python/vcrpy[${PYTHON_USEDEP}]
|
|
||||||
)"
|
|
||||||
|
|
||||||
distutils_enable_sphinx doc --no-autodoc
|
|
||||||
distutils_enable_tests pytest
|
|
Binary file not shown.
@ -0,0 +1,104 @@
|
|||||||
|
# Copyright 2019-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit bash-completion-r1 go-module
|
||||||
|
|
||||||
|
DESCRIPTION="A general-purpose command-line fuzzy finder, written in GoLang"
|
||||||
|
HOMEPAGE="https://github.com/junegunn/fzf"
|
||||||
|
|
||||||
|
# For fancy versioning only. Bump on the next release!
|
||||||
|
MY_GIT_REV=6654239
|
||||||
|
|
||||||
|
EGO_SUM=(
|
||||||
|
"github.com/gdamore/encoding v1.0.0"
|
||||||
|
"github.com/gdamore/encoding v1.0.0/go.mod"
|
||||||
|
"github.com/gdamore/tcell v1.4.0"
|
||||||
|
"github.com/gdamore/tcell v1.4.0/go.mod"
|
||||||
|
"github.com/lucasb-eyer/go-colorful v1.0.3/go.mod"
|
||||||
|
"github.com/lucasb-eyer/go-colorful v1.2.0"
|
||||||
|
"github.com/lucasb-eyer/go-colorful v1.2.0/go.mod"
|
||||||
|
"github.com/mattn/go-isatty v0.0.12"
|
||||||
|
"github.com/mattn/go-isatty v0.0.12/go.mod"
|
||||||
|
"github.com/mattn/go-runewidth v0.0.7/go.mod"
|
||||||
|
"github.com/mattn/go-runewidth v0.0.12"
|
||||||
|
"github.com/mattn/go-runewidth v0.0.12/go.mod"
|
||||||
|
"github.com/mattn/go-shellwords v1.0.11"
|
||||||
|
"github.com/mattn/go-shellwords v1.0.11/go.mod"
|
||||||
|
"github.com/rivo/uniseg v0.1.0/go.mod"
|
||||||
|
"github.com/rivo/uniseg v0.2.0"
|
||||||
|
"github.com/rivo/uniseg v0.2.0/go.mod"
|
||||||
|
"github.com/saracen/walker v0.1.2"
|
||||||
|
"github.com/saracen/walker v0.1.2/go.mod"
|
||||||
|
"golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod"
|
||||||
|
"golang.org/x/sync v0.0.0-20210220032951-036812b2e83c"
|
||||||
|
"golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod"
|
||||||
|
"golang.org/x/sys v0.0.0-20190626150813-e07cf5db2756/go.mod"
|
||||||
|
"golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod"
|
||||||
|
"golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod"
|
||||||
|
"golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57"
|
||||||
|
"golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod"
|
||||||
|
"golang.org/x/term v0.0.0-20210317153231-de623e64d2a6"
|
||||||
|
"golang.org/x/term v0.0.0-20210317153231-de623e64d2a6/go.mod"
|
||||||
|
"golang.org/x/text v0.3.0/go.mod"
|
||||||
|
"golang.org/x/text v0.3.6"
|
||||||
|
"golang.org/x/text v0.3.6/go.mod"
|
||||||
|
"golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod"
|
||||||
|
)
|
||||||
|
|
||||||
|
go-module_set_globals
|
||||||
|
|
||||||
|
SRC_URI="
|
||||||
|
https://github.com/junegunn/fzf/archive/${PV}.tar.gz -> ${P}.tar.gz
|
||||||
|
${EGO_SUM_SRC_URI}
|
||||||
|
"
|
||||||
|
|
||||||
|
LICENSE="MIT BSD-with-disclosure"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
emake PREFIX="${EPREFIX}"/usr VERSION=${PV} REVISION=${MY_GIT_REV} bin/${PN}
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dobin bin/${PN}
|
||||||
|
doman man/man1/${PN}.1
|
||||||
|
|
||||||
|
dobin bin/${PN}-tmux
|
||||||
|
doman man/man1/${PN}-tmux.1
|
||||||
|
|
||||||
|
insinto /usr/share/vim/vimfiles/plugin
|
||||||
|
doins plugin/${PN}.vim
|
||||||
|
|
||||||
|
insinto /usr/share/nvim/runtime/plugin
|
||||||
|
doins plugin/${PN}.vim
|
||||||
|
|
||||||
|
newbashcomp shell/completion.bash ${PN}
|
||||||
|
|
||||||
|
insinto /usr/share/zsh/site-functions
|
||||||
|
newins shell/completion.zsh _${PN}
|
||||||
|
|
||||||
|
insinto /usr/share/fzf
|
||||||
|
doins shell/key-bindings.bash
|
||||||
|
doins shell/key-bindings.fish
|
||||||
|
doins shell/key-bindings.zsh
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
if [[ -z ${REPLACING_VERSIONS} ]]; then
|
||||||
|
elog "To add fzf support to your shell, make sure to use the right file"
|
||||||
|
elog "from /usr/share/fzf."
|
||||||
|
elog
|
||||||
|
elog "For bash, add the following line to ~/.bashrc:"
|
||||||
|
elog
|
||||||
|
elog " # source /usr/share/bash-completion/completions/fzf"
|
||||||
|
elog " # source /usr/share/fzf/key-bindings.bash"
|
||||||
|
elog
|
||||||
|
elog "Plugins for Vim and Neovim are installed to respective directories"
|
||||||
|
elog "and will work out of the box."
|
||||||
|
elog
|
||||||
|
elog "For fzf support in tmux see fzf-tmux(1)."
|
||||||
|
fi
|
||||||
|
}
|
Binary file not shown.
@ -1,122 +0,0 @@
|
|||||||
# Copyright 2005-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
inherit cmake toolchain-funcs xdg-utils
|
|
||||||
|
|
||||||
if [[ ${PV} == *9999* ]] ; then
|
|
||||||
inherit git-r3
|
|
||||||
EGIT_REPO_URI="https://anongit.freedesktop.org/git/poppler/poppler.git"
|
|
||||||
SLOT="0/9999"
|
|
||||||
else
|
|
||||||
SRC_URI="https://poppler.freedesktop.org/${P}.tar.xz"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
SLOT="0/108" # CHECK THIS WHEN BUMPING!!! SUBSLOT IS libpoppler.so SOVERSION
|
|
||||||
fi
|
|
||||||
|
|
||||||
DESCRIPTION="PDF rendering library based on the xpdf-3.0 code base"
|
|
||||||
HOMEPAGE="https://poppler.freedesktop.org/"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
IUSE="cairo cjk curl +cxx debug doc +introspection +jpeg +jpeg2k +lcms nss png qt5 tiff +utils"
|
|
||||||
|
|
||||||
# No test data provided
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
BDEPEND="
|
|
||||||
dev-util/glib-utils
|
|
||||||
virtual/pkgconfig
|
|
||||||
"
|
|
||||||
DEPEND="
|
|
||||||
media-libs/fontconfig
|
|
||||||
media-libs/freetype
|
|
||||||
sys-libs/zlib
|
|
||||||
cairo? (
|
|
||||||
dev-libs/glib:2
|
|
||||||
x11-libs/cairo
|
|
||||||
introspection? ( dev-libs/gobject-introspection:= )
|
|
||||||
)
|
|
||||||
curl? ( net-misc/curl )
|
|
||||||
jpeg? ( virtual/jpeg:0 )
|
|
||||||
jpeg2k? ( >=media-libs/openjpeg-2.3.0-r1:2= )
|
|
||||||
lcms? ( media-libs/lcms:2 )
|
|
||||||
nss? ( >=dev-libs/nss-3.19:0 )
|
|
||||||
png? ( media-libs/libpng:0= )
|
|
||||||
qt5? (
|
|
||||||
dev-qt/qtcore:5
|
|
||||||
dev-qt/qtgui:5
|
|
||||||
dev-qt/qtxml:5
|
|
||||||
)
|
|
||||||
tiff? ( media-libs/tiff:0 )
|
|
||||||
"
|
|
||||||
RDEPEND="${DEPEND}
|
|
||||||
cjk? ( app-text/poppler-data )
|
|
||||||
"
|
|
||||||
|
|
||||||
DOCS=( AUTHORS NEWS README.md README-XPDF )
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}/${PN}-20.12.1-qt5-deps.patch"
|
|
||||||
"${FILESDIR}/${PN}-21.04.0-respect-cflags.patch"
|
|
||||||
"${FILESDIR}/${PN}-0.57.0-disable-internal-jpx.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
cmake_src_prepare
|
|
||||||
|
|
||||||
# Clang doesn't grok this flag, the configure nicely tests that, but
|
|
||||||
# cmake just uses it, so remove it if we use clang
|
|
||||||
if [[ ${CC} == clang ]] ; then
|
|
||||||
sed -e 's/-fno-check-new//' -i cmake/modules/PopplerMacros.cmake || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! grep -Fq 'cmake_policy(SET CMP0002 OLD)' CMakeLists.txt ; then
|
|
||||||
sed -e '/^cmake_minimum_required/acmake_policy(SET CMP0002 OLD)' \
|
|
||||||
-i CMakeLists.txt || die
|
|
||||||
else
|
|
||||||
einfo "policy(SET CMP0002 OLD) - workaround can be removed"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
xdg_environment_reset
|
|
||||||
local mycmakeargs=(
|
|
||||||
-DBUILD_GTK_TESTS=OFF
|
|
||||||
-DBUILD_QT5_TESTS=OFF
|
|
||||||
-DBUILD_CPP_TESTS=OFF
|
|
||||||
-DRUN_GPERF_IF_PRESENT=OFF
|
|
||||||
-DENABLE_SPLASH=ON
|
|
||||||
-DENABLE_ZLIB=ON
|
|
||||||
-DENABLE_ZLIB_UNCOMPRESS=OFF
|
|
||||||
-DENABLE_UNSTABLE_API_ABI_HEADERS=ON
|
|
||||||
-DUSE_FLOAT=OFF
|
|
||||||
-DWITH_Cairo=$(usex cairo)
|
|
||||||
-DENABLE_LIBCURL=$(usex curl)
|
|
||||||
-DENABLE_CPP=$(usex cxx)
|
|
||||||
-DWITH_JPEG=$(usex jpeg)
|
|
||||||
-DENABLE_DCTDECODER=$(usex jpeg libjpeg none)
|
|
||||||
-DENABLE_LIBOPENJPEG=$(usex jpeg2k openjpeg2 none)
|
|
||||||
-DENABLE_CMS=$(usex lcms lcms2 none)
|
|
||||||
-DWITH_NSS3=$(usex nss)
|
|
||||||
-DWITH_PNG=$(usex png)
|
|
||||||
$(cmake_use_find_package qt5 Qt5Core)
|
|
||||||
-DWITH_TIFF=$(usex tiff)
|
|
||||||
-DENABLE_UTILS=$(usex utils)
|
|
||||||
-DENABLE_QT6=OFF
|
|
||||||
)
|
|
||||||
use cairo && mycmakeargs+=( -DWITH_GObjectIntrospection=$(usex introspection) )
|
|
||||||
|
|
||||||
cmake_src_configure
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
cmake_src_install
|
|
||||||
|
|
||||||
# live version doesn't provide html documentation
|
|
||||||
if use cairo && use doc && [[ ${PV} != *9999* ]]; then
|
|
||||||
# For now install gtk-doc there
|
|
||||||
insinto /usr/share/gtk-doc/html/poppler
|
|
||||||
doins -r "${S}"/glib/reference/html/*
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,122 +0,0 @@
|
|||||||
# Copyright 2005-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
inherit cmake toolchain-funcs xdg-utils
|
|
||||||
|
|
||||||
if [[ ${PV} == *9999* ]] ; then
|
|
||||||
inherit git-r3
|
|
||||||
EGIT_REPO_URI="https://anongit.freedesktop.org/git/poppler/poppler.git"
|
|
||||||
SLOT="0/9999"
|
|
||||||
else
|
|
||||||
SRC_URI="https://poppler.freedesktop.org/${P}.tar.xz"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
|
||||||
SLOT="0/109" # CHECK THIS WHEN BUMPING!!! SUBSLOT IS libpoppler.so SOVERSION
|
|
||||||
fi
|
|
||||||
|
|
||||||
DESCRIPTION="PDF rendering library based on the xpdf-3.0 code base"
|
|
||||||
HOMEPAGE="https://poppler.freedesktop.org/"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
IUSE="cairo cjk curl +cxx debug doc +introspection +jpeg +jpeg2k +lcms nss png qt5 tiff +utils"
|
|
||||||
|
|
||||||
# No test data provided
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
BDEPEND="
|
|
||||||
dev-util/glib-utils
|
|
||||||
virtual/pkgconfig
|
|
||||||
"
|
|
||||||
DEPEND="
|
|
||||||
media-libs/fontconfig
|
|
||||||
media-libs/freetype
|
|
||||||
sys-libs/zlib
|
|
||||||
cairo? (
|
|
||||||
dev-libs/glib:2
|
|
||||||
x11-libs/cairo
|
|
||||||
introspection? ( dev-libs/gobject-introspection:= )
|
|
||||||
)
|
|
||||||
curl? ( net-misc/curl )
|
|
||||||
jpeg? ( virtual/jpeg:0 )
|
|
||||||
jpeg2k? ( >=media-libs/openjpeg-2.3.0-r1:2= )
|
|
||||||
lcms? ( media-libs/lcms:2 )
|
|
||||||
nss? ( >=dev-libs/nss-3.19:0 )
|
|
||||||
png? ( media-libs/libpng:0= )
|
|
||||||
qt5? (
|
|
||||||
dev-qt/qtcore:5
|
|
||||||
dev-qt/qtgui:5
|
|
||||||
dev-qt/qtxml:5
|
|
||||||
)
|
|
||||||
tiff? ( media-libs/tiff:0 )
|
|
||||||
"
|
|
||||||
RDEPEND="${DEPEND}
|
|
||||||
cjk? ( app-text/poppler-data )
|
|
||||||
"
|
|
||||||
|
|
||||||
DOCS=( AUTHORS NEWS README.md README-XPDF )
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}/${PN}-20.12.1-qt5-deps.patch"
|
|
||||||
"${FILESDIR}/${PN}-21.04.0-respect-cflags.patch"
|
|
||||||
"${FILESDIR}/${PN}-0.57.0-disable-internal-jpx.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
cmake_src_prepare
|
|
||||||
|
|
||||||
# Clang doesn't grok this flag, the configure nicely tests that, but
|
|
||||||
# cmake just uses it, so remove it if we use clang
|
|
||||||
if [[ ${CC} == clang ]] ; then
|
|
||||||
sed -e 's/-fno-check-new//' -i cmake/modules/PopplerMacros.cmake || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! grep -Fq 'cmake_policy(SET CMP0002 OLD)' CMakeLists.txt ; then
|
|
||||||
sed -e '/^cmake_minimum_required/acmake_policy(SET CMP0002 OLD)' \
|
|
||||||
-i CMakeLists.txt || die
|
|
||||||
else
|
|
||||||
einfo "policy(SET CMP0002 OLD) - workaround can be removed"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
xdg_environment_reset
|
|
||||||
local mycmakeargs=(
|
|
||||||
-DBUILD_GTK_TESTS=OFF
|
|
||||||
-DBUILD_QT5_TESTS=OFF
|
|
||||||
-DBUILD_CPP_TESTS=OFF
|
|
||||||
-DRUN_GPERF_IF_PRESENT=OFF
|
|
||||||
-DENABLE_SPLASH=ON
|
|
||||||
-DENABLE_ZLIB=ON
|
|
||||||
-DENABLE_ZLIB_UNCOMPRESS=OFF
|
|
||||||
-DENABLE_UNSTABLE_API_ABI_HEADERS=ON
|
|
||||||
-DUSE_FLOAT=OFF
|
|
||||||
-DWITH_Cairo=$(usex cairo)
|
|
||||||
-DENABLE_LIBCURL=$(usex curl)
|
|
||||||
-DENABLE_CPP=$(usex cxx)
|
|
||||||
-DWITH_JPEG=$(usex jpeg)
|
|
||||||
-DENABLE_DCTDECODER=$(usex jpeg libjpeg none)
|
|
||||||
-DENABLE_LIBOPENJPEG=$(usex jpeg2k openjpeg2 none)
|
|
||||||
-DENABLE_CMS=$(usex lcms lcms2 none)
|
|
||||||
-DWITH_NSS3=$(usex nss)
|
|
||||||
-DWITH_PNG=$(usex png)
|
|
||||||
$(cmake_use_find_package qt5 Qt5Core)
|
|
||||||
-DWITH_TIFF=$(usex tiff)
|
|
||||||
-DENABLE_UTILS=$(usex utils)
|
|
||||||
-DENABLE_QT6=OFF
|
|
||||||
)
|
|
||||||
use cairo && mycmakeargs+=( -DWITH_GObjectIntrospection=$(usex introspection) )
|
|
||||||
|
|
||||||
cmake_src_configure
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
cmake_src_install
|
|
||||||
|
|
||||||
# live version doesn't provide html documentation
|
|
||||||
if use cairo && use doc && [[ ${PV} != *9999* ]]; then
|
|
||||||
# For now install gtk-doc there
|
|
||||||
insinto /usr/share/gtk-doc/html/poppler
|
|
||||||
doins -r "${S}"/glib/reference/html/*
|
|
||||||
fi
|
|
||||||
}
|
|
Binary file not shown.
@ -1,107 +0,0 @@
|
|||||||
# Copyright 1999-2020 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
FORTRAN_NEEDED="test"
|
|
||||||
inherit cmake-utils cuda fortran-2
|
|
||||||
|
|
||||||
DESCRIPTION="C++ template library for linear algebra"
|
|
||||||
HOMEPAGE="http://eigen.tuxfamily.org/"
|
|
||||||
SRC_URI="https://bitbucket.org/eigen/eigen/get/${PV}.tar.bz2 -> ${P}.tar.bz2"
|
|
||||||
|
|
||||||
LICENSE="MPL-2.0"
|
|
||||||
SLOT="3"
|
|
||||||
KEYWORDS="amd64 ~arm arm64 ppc ~ppc64 x86 ~amd64-linux ~x86-linux"
|
|
||||||
IUSE="c++11 cpu_flags_arm_neon cpu_flags_ppc_altivec cpu_flags_ppc_vsx cuda debug doc openmp test" #zvector
|
|
||||||
RESTRICT="!test? ( test )"
|
|
||||||
|
|
||||||
RDEPEND="!dev-cpp/eigen:0"
|
|
||||||
DEPEND="
|
|
||||||
cuda? ( dev-util/nvidia-cuda-toolkit )
|
|
||||||
doc? (
|
|
||||||
app-doc/doxygen[dot]
|
|
||||||
dev-texlive/texlive-bibtexextra
|
|
||||||
dev-texlive/texlive-fontsextra
|
|
||||||
dev-texlive/texlive-fontutils
|
|
||||||
dev-texlive/texlive-latex
|
|
||||||
dev-texlive/texlive-latexextra
|
|
||||||
)
|
|
||||||
test? (
|
|
||||||
dev-libs/gmp:0
|
|
||||||
dev-libs/mpfr:0
|
|
||||||
media-libs/freeglut
|
|
||||||
media-libs/glew
|
|
||||||
sci-libs/adolc[sparse]
|
|
||||||
sci-libs/cholmod
|
|
||||||
sci-libs/fftw:3.0
|
|
||||||
sci-libs/pastix
|
|
||||||
sci-libs/umfpack
|
|
||||||
sci-libs/scotch
|
|
||||||
sci-libs/spqr
|
|
||||||
sci-libs/superlu
|
|
||||||
virtual/opengl
|
|
||||||
virtual/pkgconfig
|
|
||||||
)
|
|
||||||
"
|
|
||||||
# Missing:
|
|
||||||
# METIS-5
|
|
||||||
# GOOGLEHASH
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
default
|
|
||||||
mv ${PN}* ${P} || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
cmake-utils_src_prepare
|
|
||||||
|
|
||||||
sed -e 's:-g2::g' \
|
|
||||||
-i cmake/EigenConfigureTesting.cmake || die
|
|
||||||
|
|
||||||
sed -e "/add_subdirectory(demos/d" \
|
|
||||||
-i CMakeLists.txt || die
|
|
||||||
|
|
||||||
if ! use test; then
|
|
||||||
sed -e "/add_subdirectory(test/d" \
|
|
||||||
-i CMakeLists.txt || die
|
|
||||||
|
|
||||||
sed -e "/add_subdirectory(blas/d" \
|
|
||||||
-e "/add_subdirectory(lapack/d" \
|
|
||||||
-i CMakeLists.txt || die
|
|
||||||
fi
|
|
||||||
sed -e "/Unknown build type/d" \
|
|
||||||
-i CMakeLists.txt || die
|
|
||||||
|
|
||||||
use cuda && cuda_src_prepare
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
cmake-utils_src_compile
|
|
||||||
use doc && cmake-utils_src_compile doc
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
local mycmakeargs=(
|
|
||||||
-DEIGEN_TEST_NOQT=ON
|
|
||||||
-DEIGEN_TEST_ALTIVEC="$(usex cpu_flags_ppc_altivec)"
|
|
||||||
-DEIGEN_TEST_CXX11="$(usex c++11)"
|
|
||||||
-DEIGEN_TEST_CUDA="$(usex cuda)"
|
|
||||||
-DEIGEN_TEST_OPENMP="$(usex openmp)"
|
|
||||||
-DEIGEN_TEST_NEON64="$(usex cpu_flags_arm_neon)"
|
|
||||||
-DEIGEN_TEST_VSX="$(usex cpu_flags_ppc_vsx)"
|
|
||||||
)
|
|
||||||
cmake-utils_src_configure
|
|
||||||
cmake-utils_src_compile blas
|
|
||||||
cmake-utils_src_compile buildtests
|
|
||||||
cmake-utils_src_test
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
use doc && local HTML_DOCS=( "${BUILD_DIR}"/doc/html/. )
|
|
||||||
cmake-utils_src_install
|
|
||||||
|
|
||||||
# Debian installs it and some projects started using it.
|
|
||||||
insinto /usr/share/cmake/Modules/
|
|
||||||
doins "${S}/cmake/FindEigen3.cmake"
|
|
||||||
}
|
|
@ -1,101 +0,0 @@
|
|||||||
# Copyright 1999-2020 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
FORTRAN_NEEDED="test"
|
|
||||||
inherit cmake cuda fortran-2
|
|
||||||
|
|
||||||
DESCRIPTION="C++ template library for linear algebra"
|
|
||||||
HOMEPAGE="http://eigen.tuxfamily.org/index.php?title=Main_Page"
|
|
||||||
SRC_URI="https://gitlab.com/lib${PN}/${PN}/-/archive/${PV}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="MPL-2.0"
|
|
||||||
SLOT="3"
|
|
||||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
|
|
||||||
IUSE="cpu_flags_arm_neon cpu_flags_ppc_altivec cpu_flags_ppc_vsx cuda debug doc openmp test" #zvector
|
|
||||||
|
|
||||||
RESTRICT="!test? ( test )"
|
|
||||||
|
|
||||||
BDEPEND="
|
|
||||||
doc? (
|
|
||||||
app-doc/doxygen[dot]
|
|
||||||
dev-texlive/texlive-bibtexextra
|
|
||||||
dev-texlive/texlive-fontsextra
|
|
||||||
dev-texlive/texlive-fontutils
|
|
||||||
dev-texlive/texlive-latex
|
|
||||||
dev-texlive/texlive-latexextra
|
|
||||||
)
|
|
||||||
test? ( virtual/pkgconfig )
|
|
||||||
"
|
|
||||||
DEPEND="
|
|
||||||
cuda? ( dev-util/nvidia-cuda-toolkit )
|
|
||||||
test? (
|
|
||||||
dev-libs/gmp:0
|
|
||||||
dev-libs/mpfr:0
|
|
||||||
media-libs/freeglut
|
|
||||||
media-libs/glew
|
|
||||||
sci-libs/adolc[sparse]
|
|
||||||
sci-libs/cholmod
|
|
||||||
sci-libs/fftw:3.0
|
|
||||||
sci-libs/pastix
|
|
||||||
sci-libs/scotch
|
|
||||||
sci-libs/spqr
|
|
||||||
sci-libs/superlu
|
|
||||||
sci-libs/umfpack
|
|
||||||
virtual/opengl
|
|
||||||
)
|
|
||||||
"
|
|
||||||
# Missing:
|
|
||||||
# METIS-5
|
|
||||||
# GOOGLEHASH
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}"/${PN}-3.3.7-gentoo-cmake.patch
|
|
||||||
"${FILESDIR}"/${P}-no-error-counting-in-openmp-parallelize_gemm.patch
|
|
||||||
)
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
cmake_src_prepare
|
|
||||||
|
|
||||||
cmake_comment_add_subdirectory demos
|
|
||||||
|
|
||||||
if ! use test; then
|
|
||||||
sed -e "/add_subdirectory(test/s/^/#DONOTCOMPILE /g" \
|
|
||||||
-e "/add_subdirectory(blas/s/^/#DONOTCOMPILE /g" \
|
|
||||||
-e "/add_subdirectory(lapack/s/^/#DONOTCOMPILE /g" \
|
|
||||||
-i CMakeLists.txt || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
use cuda && cuda_src_prepare
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
local mycmakeargs=(
|
|
||||||
-DCMAKEPACKAGE_INSTALL_DIR=$(get_libdir)/cmake/${PN}${SLOT}
|
|
||||||
)
|
|
||||||
use test && mycmakeargs+=(
|
|
||||||
-DEIGEN_TEST_CXX11=ON
|
|
||||||
-DEIGEN_TEST_NOQT=ON
|
|
||||||
-DEIGEN_TEST_ALTIVEC=$(usex cpu_flags_ppc_altivec)
|
|
||||||
-DEIGEN_TEST_CUDA=$(usex cuda)
|
|
||||||
-DEIGEN_TEST_OPENMP=$(usex openmp)
|
|
||||||
-DEIGEN_TEST_NEON64=$(usex cpu_flags_arm_neon)
|
|
||||||
-DEIGEN_TEST_VSX=$(usex cpu_flags_ppc_vsx)
|
|
||||||
)
|
|
||||||
cmake_src_configure
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
cmake_src_compile
|
|
||||||
use doc && cmake_src_compile doc
|
|
||||||
if use test; then
|
|
||||||
cmake_src_compile blas
|
|
||||||
cmake_src_compile buildtests
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
use doc && local HTML_DOCS=( "${BUILD_DIR}"/doc/html/. )
|
|
||||||
cmake_src_install
|
|
||||||
}
|
|
Binary file not shown.
@ -1,975 +0,0 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="6"
|
|
||||||
MY_EXTRAS_VER="20190305-2052Z"
|
|
||||||
SUBSLOT="18"
|
|
||||||
|
|
||||||
JAVA_PKG_OPT_USE="jdbc"
|
|
||||||
|
|
||||||
# Keeping eutils in EAPI=6 for emktemp in pkg_config
|
|
||||||
|
|
||||||
inherit eutils systemd flag-o-matic prefix toolchain-funcs \
|
|
||||||
java-pkg-opt-2 user cmake-utils
|
|
||||||
|
|
||||||
SRC_URI="https://downloads.mariadb.org/interstitial/${P}/source/${P}.tar.gz "
|
|
||||||
|
|
||||||
# Gentoo patches to MySQL
|
|
||||||
if [[ "${MY_EXTRAS_VER}" != "live" && "${MY_EXTRAS_VER}" != "none" ]]; then
|
|
||||||
SRC_URI="${SRC_URI}
|
|
||||||
mirror://gentoo/mysql-extras-${MY_EXTRAS_VER}.tar.bz2
|
|
||||||
https://gitweb.gentoo.org/proj/mysql-extras.git/snapshot/mysql-extras-${MY_EXTRAS_VER}.tar.bz2
|
|
||||||
https://dev.gentoo.org/~grknight/distfiles/mysql-extras-${MY_EXTRAS_VER}.tar.bz2
|
|
||||||
https://dev.gentoo.org/~robbat2/distfiles/mysql-extras-${MY_EXTRAS_VER}.tar.bz2
|
|
||||||
https://dev.gentoo.org/~jmbsvicetto/distfiles/mysql-extras-${MY_EXTRAS_VER}.tar.bz2"
|
|
||||||
fi
|
|
||||||
|
|
||||||
HOMEPAGE="https://mariadb.org/"
|
|
||||||
DESCRIPTION="An enhanced, drop-in replacement for MySQL"
|
|
||||||
LICENSE="GPL-2 LGPL-2.1+"
|
|
||||||
SLOT="10.2/${SUBSLOT:-0}"
|
|
||||||
IUSE="+backup bindist client-libs cracklib debug extraengine galera innodb-lz4
|
|
||||||
innodb-lzo innodb-snappy jdbc jemalloc kerberos latin1 mroonga
|
|
||||||
numa odbc oqgraph pam +perl profiling rocksdb selinux +server sphinx
|
|
||||||
sst-rsync sst-mariabackup sst-xtrabackup static systemd systemtap tcmalloc
|
|
||||||
test tokudb xml yassl"
|
|
||||||
|
|
||||||
RESTRICT="!bindist? ( bindist ) !test? ( test )"
|
|
||||||
|
|
||||||
REQUIRED_USE="jdbc? ( extraengine server !static )
|
|
||||||
server? ( tokudb? ( jemalloc !tcmalloc ) )
|
|
||||||
?? ( tcmalloc jemalloc )
|
|
||||||
static? ( yassl !pam )"
|
|
||||||
|
|
||||||
KEYWORDS="ppc ppc64"
|
|
||||||
|
|
||||||
# Shorten the path because the socket path length must be shorter than 107 chars
|
|
||||||
# and we will run a mysql server during test phase
|
|
||||||
S="${WORKDIR}/mysql"
|
|
||||||
|
|
||||||
if [[ "${MY_EXTRAS_VER}" == "live" ]] ; then
|
|
||||||
inherit git-r3
|
|
||||||
EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/mysql-extras.git"
|
|
||||||
EGIT_CHECKOUT_DIR="${WORKDIR%/}/mysql-extras"
|
|
||||||
EGIT_CLONE_TYPE=shallow
|
|
||||||
MY_PATCH_DIR="${WORKDIR%/}/mysql-extras"
|
|
||||||
else
|
|
||||||
MY_PATCH_DIR="${WORKDIR%/}/mysql-extras-${MY_EXTRAS_VER}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${MY_PATCH_DIR}"/20015_all_mariadb-pkgconfig-location.patch
|
|
||||||
"${MY_PATCH_DIR}"/20018_all_mariadb-10.2.16-without-clientlibs-tools.patch
|
|
||||||
"${MY_PATCH_DIR}"/20024_all_mariadb-10.2.6-mysql_st-regression.patch
|
|
||||||
"${MY_PATCH_DIR}"/20025_all_mariadb-10.2.6-gssapi-detect.patch
|
|
||||||
"${MY_PATCH_DIR}"/20035_all_mariadb-10.2-atomic-detection.patch
|
|
||||||
)
|
|
||||||
|
|
||||||
# Be warned, *DEPEND are version-dependant
|
|
||||||
# These are used for both runtime and compiletime
|
|
||||||
COMMON_DEPEND="
|
|
||||||
kernel_linux? (
|
|
||||||
sys-process/procps:0=
|
|
||||||
dev-libs/libaio:0=
|
|
||||||
)
|
|
||||||
>=sys-apps/sed-4
|
|
||||||
>=sys-apps/texinfo-4.7-r1
|
|
||||||
jemalloc? ( dev-libs/jemalloc:0= )
|
|
||||||
tcmalloc? ( dev-util/google-perftools:0= )
|
|
||||||
systemtap? ( >=dev-util/systemtap-1.3:0= )
|
|
||||||
>=sys-libs/zlib-1.2.3:0=
|
|
||||||
kerberos? ( virtual/krb5 )
|
|
||||||
yassl? ( net-libs/gnutls:0= )
|
|
||||||
!yassl? (
|
|
||||||
>=dev-libs/openssl-1.0.0:0=
|
|
||||||
)
|
|
||||||
sys-libs/ncurses:0=
|
|
||||||
!bindist? (
|
|
||||||
sys-libs/binutils-libs:0=
|
|
||||||
>=sys-libs/readline-4.1:0=
|
|
||||||
)
|
|
||||||
server? (
|
|
||||||
backup? ( app-arch/libarchive:0= )
|
|
||||||
cracklib? ( sys-libs/cracklib:0= )
|
|
||||||
extraengine? (
|
|
||||||
odbc? ( dev-db/unixODBC:0= )
|
|
||||||
xml? ( dev-libs/libxml2:2= )
|
|
||||||
)
|
|
||||||
innodb-lz4? ( app-arch/lz4 )
|
|
||||||
innodb-lzo? ( dev-libs/lzo )
|
|
||||||
innodb-snappy? ( app-arch/snappy )
|
|
||||||
mroonga? ( app-text/groonga-normalizer-mysql >=app-text/groonga-7.0.4 )
|
|
||||||
numa? ( sys-process/numactl )
|
|
||||||
oqgraph? ( >=dev-libs/boost-1.40.0:0= dev-libs/judy:0= )
|
|
||||||
pam? ( sys-libs/pam:0= )
|
|
||||||
systemd? ( sys-apps/systemd:= )
|
|
||||||
tokudb? ( app-arch/snappy )
|
|
||||||
)
|
|
||||||
>=dev-libs/libpcre-8.41-r1:3=
|
|
||||||
"
|
|
||||||
DEPEND="virtual/yacc
|
|
||||||
static? ( sys-libs/ncurses[static-libs] )
|
|
||||||
|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )
|
|
||||||
server? ( extraengine? ( jdbc? ( >=virtual/jdk-1.6 ) ) )
|
|
||||||
${COMMON_DEPEND}"
|
|
||||||
RDEPEND="selinux? ( sec-policy/selinux-mysql )
|
|
||||||
!dev-db/mysql !dev-db/mariadb-galera !dev-db/percona-server !dev-db/mysql-cluster
|
|
||||||
!dev-db/mariadb:0
|
|
||||||
!dev-db/mariadb:5.5
|
|
||||||
!dev-db/mariadb:10.1
|
|
||||||
!dev-db/mariadb:10.3
|
|
||||||
!dev-db/mariadb:10.4
|
|
||||||
!dev-db/mariadb:10.5
|
|
||||||
server? ( !prefix? ( dev-db/mysql-init-scripts ) )
|
|
||||||
!<virtual/mysql-5.6-r11
|
|
||||||
${COMMON_DEPEND}
|
|
||||||
server? ( galera? (
|
|
||||||
sys-apps/iproute2
|
|
||||||
=sys-cluster/galera-25*
|
|
||||||
sst-rsync? ( sys-process/lsof )
|
|
||||||
sst-mariabackup? ( net-misc/socat[ssl] )
|
|
||||||
sst-xtrabackup? ( net-misc/socat[ssl] )
|
|
||||||
) )
|
|
||||||
perl? ( !dev-db/mytop
|
|
||||||
virtual/perl-Getopt-Long
|
|
||||||
dev-perl/TermReadKey
|
|
||||||
virtual/perl-Term-ANSIColor
|
|
||||||
virtual/perl-Time-HiRes )
|
|
||||||
server? ( extraengine? ( jdbc? ( >=virtual/jre-1.6 ) ) )
|
|
||||||
"
|
|
||||||
# For other stuff to bring us in
|
|
||||||
# dev-perl/DBD-mysql is needed by some scripts installed by MySQL
|
|
||||||
# percona-xtrabackup-bin causes a circular dependency if DBD-mysql is not already installed
|
|
||||||
PDEPEND="perl? ( >=dev-perl/DBD-mysql-2.9004 )
|
|
||||||
server? ( ~virtual/mysql-5.6[static=]
|
|
||||||
galera? ( sst-xtrabackup? ( || ( >=dev-db/percona-xtrabackup-bin-2.2.4 dev-db/percona-xtrabackup ) ) ) )"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
if [[ ${MERGE_TYPE} != binary ]] ; then
|
|
||||||
local GCC_MAJOR_SET=$(gcc-major-version)
|
|
||||||
local GCC_MINOR_SET=$(gcc-minor-version)
|
|
||||||
if use tokudb && [[ ${GCC_MAJOR_SET} -lt 4 || \
|
|
||||||
${GCC_MAJOR_SET} -eq 4 && ${GCC_MINOR_SET} -lt 7 ]] ; then
|
|
||||||
eerror "${PN} with tokudb needs to be built with gcc-4.7 or later."
|
|
||||||
eerror "Please use gcc-config to switch to gcc-4.7 or later version."
|
|
||||||
die
|
|
||||||
fi
|
|
||||||
# Bug 565584. InnoDB now requires atomic functions introduced with gcc-4.7 on
|
|
||||||
# non x86{,_64} arches
|
|
||||||
if ! use amd64 && ! use x86 && [[ ${GCC_MAJOR_SET} -lt 4 || \
|
|
||||||
${GCC_MAJOR_SET} -eq 4 && ${GCC_MINOR_SET} -lt 7 ]] ; then
|
|
||||||
eerror "${PN} needs to be built with gcc-4.7 or later."
|
|
||||||
eerror "Please use gcc-config to switch to gcc-4.7 or later version."
|
|
||||||
die
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
java-pkg-opt-2_pkg_setup
|
|
||||||
if has test ${FEATURES} && \
|
|
||||||
use server && ! has userpriv ${FEATURES} ; then
|
|
||||||
eerror "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This should come after all of the die statements
|
|
||||||
enewgroup mysql 60 || die "problem adding 'mysql' group"
|
|
||||||
enewuser mysql 60 -1 /dev/null mysql || die "problem adding 'mysql' user"
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_preinst() {
|
|
||||||
java-pkg-opt-2_pkg_preinst
|
|
||||||
|
|
||||||
# Here we need to see if the implementation switched client libraries
|
|
||||||
# We check if this is a new instance of the package and a client library already exists
|
|
||||||
local SHOW_ABI_MESSAGE libpath
|
|
||||||
if [[ -z ${REPLACING_VERSIONS} && -e "${EROOT}usr/$(get_libdir)/libmysqlclient.so" ]] ; then
|
|
||||||
libpath=$(readlink "${EROOT}usr/$(get_libdir)/libmysqlclient.so")
|
|
||||||
elog "Due to ABI changes when switching between different client libraries,"
|
|
||||||
elog "revdep-rebuild must find and rebuild all packages linking to libmysqlclient."
|
|
||||||
elog "Please run: revdep-rebuild --library ${libpath}"
|
|
||||||
ewarn "Failure to run revdep-rebuild may cause issues with other programs or libraries"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
# Make sure the vars are correctly initialized
|
|
||||||
mysql_init_vars
|
|
||||||
|
|
||||||
# Create log directory securely if it does not exist
|
|
||||||
[[ -d "${ROOT}${MY_LOGDIR}" ]] || install -d -m0750 -o mysql -g mysql "${ROOT}${MY_LOGDIR}"
|
|
||||||
|
|
||||||
if use server ; then
|
|
||||||
if use pam; then
|
|
||||||
einfo
|
|
||||||
elog "This install includes the PAM authentication plugin."
|
|
||||||
elog "To activate and configure the PAM plugin, please read:"
|
|
||||||
elog "https://mariadb.com/kb/en/mariadb/pam-authentication-plugin/"
|
|
||||||
einfo
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -z "${REPLACING_VERSIONS}" ]] ; then
|
|
||||||
einfo
|
|
||||||
elog "You might want to run:"
|
|
||||||
elog "\"emerge --config =${CATEGORY}/${PF}\""
|
|
||||||
elog "if this is a new install."
|
|
||||||
elog
|
|
||||||
elog "If you are switching server implentations, you should run the"
|
|
||||||
elog "mysql_upgrade tool."
|
|
||||||
einfo
|
|
||||||
else
|
|
||||||
einfo
|
|
||||||
elog "If you are upgrading major versions, you should run the"
|
|
||||||
elog "mysql_upgrade tool."
|
|
||||||
einfo
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use galera ; then
|
|
||||||
einfo
|
|
||||||
elog "Be sure to edit the my.cnf file to activate your cluster settings."
|
|
||||||
elog "This should be done after running \"emerge --config =${CATEGORY}/${PF}\""
|
|
||||||
elog "The first time the cluster is activated, you should add"
|
|
||||||
elog "--wsrep-new-cluster to the options in /etc/conf.d/mysql for one node."
|
|
||||||
elog "This option should then be removed for subsequent starts."
|
|
||||||
einfo
|
|
||||||
if use sst-xtrabackup ; then
|
|
||||||
ewarn "As per https://mariadb.com/kb/en/meta/xtrabackup_warning/, XtraBackup"
|
|
||||||
ewarn "as an SST is broken by default beginning with 10.2.19 with the setting"
|
|
||||||
ewarn "innodb_safe_truncate=ON. Please migrate to sst-mariabackup instead."
|
|
||||||
ewarn "sst-xtrabackup is being removed in 10.3 and higher."
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Note about configuration change
|
|
||||||
einfo
|
|
||||||
elog "This version of mariadb reorganizes the configuration from a single my.cnf"
|
|
||||||
elog "to several files in /etc/mysql/${PN}.d."
|
|
||||||
elog "Please backup any changes you made to /etc/mysql/my.cnf"
|
|
||||||
elog "and add them as a new file under /etc/mysql/${PN}.d with a .cnf extension."
|
|
||||||
elog "You may have as many files as needed and they are read alphabetically."
|
|
||||||
elog "Be sure the options have the appropriate section headers, i.e. [mysqld]."
|
|
||||||
einfo
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
unpack ${A}
|
|
||||||
# Grab the patches
|
|
||||||
[[ "${MY_EXTRAS_VER}" == "live" ]] && S="${WORKDIR%/}/mysql-extras" git-r3_src_unpack
|
|
||||||
|
|
||||||
mv -f "${WORKDIR%/}/${P}" "${S}" || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
_disable_plugin() {
|
|
||||||
echo > "${S%/}/plugin/${1}/CMakeLists.txt" || die
|
|
||||||
}
|
|
||||||
_disable_engine() {
|
|
||||||
echo > "${S%/}/storage/${1}/CMakeLists.txt" || die
|
|
||||||
}
|
|
||||||
|
|
||||||
local malloc
|
|
||||||
for malloc in jemalloc tcmalloc ; do
|
|
||||||
if use ${malloc}; then
|
|
||||||
echo "TARGET_LINK_LIBRARIES(mysqld ${malloc})" >> "${S}/sql/CMakeLists.txt"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
# Don't build bundled xz-utils for tokudb
|
|
||||||
echo > "${S}/storage/tokudb/PerconaFT/cmake_modules/TokuThirdParty.cmake" || die
|
|
||||||
sed -i -e 's/ build_lzma//' -e 's/ build_snappy//' "${S}/storage/tokudb/PerconaFT/ft/CMakeLists.txt" || die
|
|
||||||
sed -i -e 's/add_dependencies\(tokuportability_static_conv build_jemalloc\)//' "${S}/storage/tokudb/PerconaFT/portability/CMakeLists.txt" || die
|
|
||||||
|
|
||||||
local plugin
|
|
||||||
local server_plugins=( handler_socket auth_socket feedback metadata_lock_info
|
|
||||||
locale_info qc_info server_audit sql_errlog )
|
|
||||||
local test_plugins=( audit_null auth_examples daemon_example fulltext
|
|
||||||
debug_key_management example_key_management )
|
|
||||||
if ! use server; then # These plugins are for the server
|
|
||||||
for plugin in "${server_plugins[@]}" ; do
|
|
||||||
_disable_plugin "${plugin}"
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use test; then # These plugins are only used during testing
|
|
||||||
for plugin in "${test_plugins[@]}" ; do
|
|
||||||
_disable_plugin "${plugin}"
|
|
||||||
done
|
|
||||||
_disable_engine test_sql_discovery
|
|
||||||
fi
|
|
||||||
|
|
||||||
_disable_engine example
|
|
||||||
|
|
||||||
if ! use oqgraph ; then # avoids extra library checks
|
|
||||||
_disable_engine oqgraph
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use mroonga ; then
|
|
||||||
# Remove the bundled groonga
|
|
||||||
# There is no CMake flag, it simply checks for existance
|
|
||||||
rm -r "${S}"/storage/mroonga/vendor/groonga || die "could not remove packaged groonga"
|
|
||||||
else
|
|
||||||
_disable_engine mroonga
|
|
||||||
fi
|
|
||||||
|
|
||||||
cmake-utils_src_prepare
|
|
||||||
java-pkg-opt-2_src_prepare
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
# bug 508724 mariadb cannot use ld.gold
|
|
||||||
tc-ld-disable-gold
|
|
||||||
# Bug #114895, bug #110149
|
|
||||||
filter-flags "-O" "-O[01]"
|
|
||||||
|
|
||||||
append-cxxflags -felide-constructors
|
|
||||||
|
|
||||||
# bug #283926, with GCC4.4, this is required to get correct behavior.
|
|
||||||
append-flags -fno-strict-aliasing
|
|
||||||
|
|
||||||
CMAKE_BUILD_TYPE="RelWithDebInfo"
|
|
||||||
|
|
||||||
# debug hack wrt #497532
|
|
||||||
mycmakeargs=(
|
|
||||||
-DCMAKE_C_FLAGS_RELWITHDEBINFO="$(usex debug '' '-DNDEBUG')"
|
|
||||||
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO="$(usex debug '' '-DNDEBUG')"
|
|
||||||
-DMYSQL_DATADIR="${EPREFIX}/var/lib/mysql"
|
|
||||||
-DSYSCONFDIR="${EPREFIX}/etc/mysql"
|
|
||||||
-DINSTALL_BINDIR=bin
|
|
||||||
-DINSTALL_DOCDIR=share/doc/${PF}
|
|
||||||
-DINSTALL_DOCREADMEDIR=share/doc/${PF}
|
|
||||||
-DINSTALL_INCLUDEDIR=include/mysql
|
|
||||||
-DINSTALL_INFODIR=share/info
|
|
||||||
-DINSTALL_LIBDIR=$(get_libdir)
|
|
||||||
-DINSTALL_MANDIR=share/man
|
|
||||||
-DINSTALL_MYSQLSHAREDIR=share/mariadb
|
|
||||||
-DINSTALL_PLUGINDIR=$(get_libdir)/mariadb/plugin
|
|
||||||
-DINSTALL_SCRIPTDIR=share/mariadb/scripts
|
|
||||||
-DINSTALL_MYSQLDATADIR="${EPREFIX}/var/lib/mysql"
|
|
||||||
-DINSTALL_SBINDIR=sbin
|
|
||||||
-DINSTALL_SUPPORTFILESDIR="${EPREFIX}/usr/share/mariadb"
|
|
||||||
-DWITH_COMMENT="Gentoo Linux ${PF}"
|
|
||||||
-DWITH_UNIT_TESTS=$(usex test ON OFF)
|
|
||||||
-DWITH_LIBEDIT=0
|
|
||||||
-DWITH_ZLIB=system
|
|
||||||
-DWITHOUT_LIBWRAP=1
|
|
||||||
-DENABLED_LOCAL_INFILE=1
|
|
||||||
-DMYSQL_UNIX_ADDR="${EPREFIX}/var/run/mysqld/mysqld.sock"
|
|
||||||
-DINSTALL_UNIX_ADDRDIR="${EPREFIX}/var/run/mysqld/mysqld.sock"
|
|
||||||
-DWITH_DEFAULT_COMPILER_OPTIONS=0
|
|
||||||
-DWITH_DEFAULT_FEATURE_SET=0
|
|
||||||
-DINSTALL_SYSTEMD_UNITDIR="$(systemd_get_systemunitdir)"
|
|
||||||
# The build forces this to be defined when cross-compiling. We pass it
|
|
||||||
# all the time for simplicity and to make sure it is actually correct.
|
|
||||||
-DSTACK_DIRECTION=$(tc-stack-grows-down && echo -1 || echo 1)
|
|
||||||
-DPKG_CONFIG_EXECUTABLE="${EPREFIX}/usr/bin/$(tc-getPKG_CONFIG)"
|
|
||||||
-DPLUGIN_AUTH_GSSAPI=$(usex kerberos DYNAMIC NO)
|
|
||||||
-DAUTH_GSSAPI_PLUGIN_TYPE=$(usex kerberos DYNAMIC OFF)
|
|
||||||
-DCONC_WITH_EXTERNAL_ZLIB=YES
|
|
||||||
-DWITH_EXTERNAL_ZLIB=YES
|
|
||||||
-DSUFFIX_INSTALL_DIR=""
|
|
||||||
-DWITH_UNITTEST=OFF
|
|
||||||
-DWITHOUT_CLIENTLIBS=YES
|
|
||||||
-DCLIENT_PLUGIN_DIALOG=OFF
|
|
||||||
-DCLIENT_PLUGIN_AUTH_GSSAPI_CLIENT=OFF
|
|
||||||
-DCLIENT_PLUGIN_MYSQL_CLEAR_PASSWORD=STATIC
|
|
||||||
-DCLIENT_PLUGIN_CACHING_SHA2_PASSWORD=OFF
|
|
||||||
)
|
|
||||||
if use test ; then
|
|
||||||
mycmakeargs+=( -DINSTALL_MYSQLTESTDIR=share/mariadb/mysql-test )
|
|
||||||
else
|
|
||||||
mycmakeargs+=( -DINSTALL_MYSQLTESTDIR='' )
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use yassl ; then
|
|
||||||
mycmakeargs+=( -DWITH_SSL=system -DCLIENT_PLUGIN_SHA256_PASSWORD=STATIC )
|
|
||||||
else
|
|
||||||
mycmakeargs+=( -DWITH_SSL=bundled )
|
|
||||||
fi
|
|
||||||
|
|
||||||
# bfd.h is only used starting with 10.1 and can be controlled by NOT_FOR_DISTRIBUTION
|
|
||||||
mycmakeargs+=(
|
|
||||||
-DWITH_READLINE=$(usex bindist 1 0)
|
|
||||||
-DNOT_FOR_DISTRIBUTION=$(usex bindist 0 1)
|
|
||||||
-DENABLE_DTRACE=$(usex systemtap)
|
|
||||||
)
|
|
||||||
|
|
||||||
if use server ; then
|
|
||||||
|
|
||||||
# Federated{,X} must be treated special otherwise they will not be built as plugins
|
|
||||||
if ! use extraengine ; then
|
|
||||||
mycmakeargs+=(
|
|
||||||
-DPLUGIN_FEDERATED=NO
|
|
||||||
-DPLUGIN_FEDERATEDX=NO )
|
|
||||||
fi
|
|
||||||
|
|
||||||
mycmakeargs+=(
|
|
||||||
-DWITH_JEMALLOC=$(usex jemalloc system)
|
|
||||||
-DWITH_PCRE=system
|
|
||||||
-DPLUGIN_OQGRAPH=$(usex oqgraph DYNAMIC NO)
|
|
||||||
-DPLUGIN_SPHINX=$(usex sphinx YES NO)
|
|
||||||
-DPLUGIN_TOKUDB=$(usex tokudb YES NO)
|
|
||||||
-DPLUGIN_AUTH_PAM=$(usex pam YES NO)
|
|
||||||
-DPLUGIN_CRACKLIB_PASSWORD_CHECK=$(usex cracklib YES NO)
|
|
||||||
-DPLUGIN_CASSANDRA=NO
|
|
||||||
-DPLUGIN_SEQUENCE=$(usex extraengine YES NO)
|
|
||||||
-DPLUGIN_SPIDER=$(usex extraengine YES NO)
|
|
||||||
-DPLUGIN_CONNECT=$(usex extraengine YES NO)
|
|
||||||
-DCONNECT_WITH_MYSQL=1
|
|
||||||
-DCONNECT_WITH_LIBXML2=$(usex xml)
|
|
||||||
-DCONNECT_WITH_ODBC=$(usex odbc)
|
|
||||||
-DCONNECT_WITH_JDBC=$(usex jdbc)
|
|
||||||
# Build failure and autodep wrt bug 639144
|
|
||||||
-DCONNECT_WITH_MONGO=OFF
|
|
||||||
-DWITH_WSREP=$(usex galera)
|
|
||||||
-DWITH_INNODB_LZ4=$(usex innodb-lz4 ON OFF)
|
|
||||||
-DWITH_INNODB_LZO=$(usex innodb-lzo ON OFF)
|
|
||||||
-DWITH_INNODB_SNAPPY=$(usex innodb-snappy ON OFF)
|
|
||||||
-DPLUGIN_MROONGA=$(usex mroonga DYNAMIC NO)
|
|
||||||
-DPLUGIN_AUTH_GSSAPI=$(usex kerberos DYNAMIC NO)
|
|
||||||
-DWITH_MARIABACKUP=$(usex backup ON OFF)
|
|
||||||
-DWITH_LIBARCHIVE=$(usex backup ON OFF)
|
|
||||||
-DINSTALL_SQLBENCHDIR=share/mariadb
|
|
||||||
-DPLUGIN_ROCKSDB=$(usex rocksdb DYNAMIC NO)
|
|
||||||
# systemd is only linked to for server notification
|
|
||||||
-DWITH_SYSTEMD=$(usex systemd yes no)
|
|
||||||
-DWITH_NUMA=$(usex numa ON OFF)
|
|
||||||
)
|
|
||||||
|
|
||||||
# Workaround for MDEV-14524
|
|
||||||
use tokudb && mycmakeargs+=( -DTOKUDB_OK=1 )
|
|
||||||
|
|
||||||
if use test ; then
|
|
||||||
# This is needed for the new client lib which tests a real, open server
|
|
||||||
mycmakeargs+=( -DSKIP_TESTS=ON )
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ ( -n ${MYSQL_DEFAULT_CHARSET} ) && ( -n ${MYSQL_DEFAULT_COLLATION} ) ]]; then
|
|
||||||
ewarn "You are using a custom charset of ${MYSQL_DEFAULT_CHARSET}"
|
|
||||||
ewarn "and a collation of ${MYSQL_DEFAULT_COLLATION}."
|
|
||||||
ewarn "You MUST file bugs without these variables set."
|
|
||||||
|
|
||||||
mycmakeargs+=(
|
|
||||||
-DDEFAULT_CHARSET=${MYSQL_DEFAULT_CHARSET}
|
|
||||||
-DDEFAULT_COLLATION=${MYSQL_DEFAULT_COLLATION}
|
|
||||||
)
|
|
||||||
|
|
||||||
elif ! use latin1 ; then
|
|
||||||
mycmakeargs+=(
|
|
||||||
-DDEFAULT_CHARSET=utf8
|
|
||||||
-DDEFAULT_COLLATION=utf8_general_ci
|
|
||||||
)
|
|
||||||
else
|
|
||||||
mycmakeargs+=(
|
|
||||||
-DDEFAULT_CHARSET=latin1
|
|
||||||
-DDEFAULT_COLLATION=latin1_swedish_ci
|
|
||||||
)
|
|
||||||
fi
|
|
||||||
mycmakeargs+=(
|
|
||||||
-DEXTRA_CHARSETS=all
|
|
||||||
-DMYSQL_USER=mysql
|
|
||||||
-DDISABLE_SHARED=$(usex static YES NO)
|
|
||||||
-DWITH_DEBUG=$(usex debug)
|
|
||||||
-DWITH_EMBEDDED_SERVER=OFF
|
|
||||||
-DWITH_PROFILING=$(usex profiling)
|
|
||||||
)
|
|
||||||
|
|
||||||
if use static; then
|
|
||||||
mycmakeargs+=( -DWITH_PIC=1 )
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use jemalloc || use tcmalloc ; then
|
|
||||||
mycmakeargs+=( -DWITH_SAFEMALLOC=OFF )
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Storage engines
|
|
||||||
mycmakeargs+=(
|
|
||||||
-DWITH_ARCHIVE_STORAGE_ENGINE=1
|
|
||||||
-DWITH_BLACKHOLE_STORAGE_ENGINE=1
|
|
||||||
-DWITH_CSV_STORAGE_ENGINE=1
|
|
||||||
-DWITH_HEAP_STORAGE_ENGINE=1
|
|
||||||
-DWITH_INNOBASE_STORAGE_ENGINE=1
|
|
||||||
-DWITH_MYISAMMRG_STORAGE_ENGINE=1
|
|
||||||
-DWITH_MYISAM_STORAGE_ENGINE=1
|
|
||||||
-DWITH_PARTITION_STORAGE_ENGINE=1
|
|
||||||
)
|
|
||||||
|
|
||||||
else
|
|
||||||
mycmakeargs+=(
|
|
||||||
-DWITHOUT_SERVER=1
|
|
||||||
-DWITH_EMBEDDED_SERVER=OFF
|
|
||||||
-DEXTRA_CHARSETS=none
|
|
||||||
-DINSTALL_SQLBENCHDIR=
|
|
||||||
-DWITH_SYSTEMD=no
|
|
||||||
)
|
|
||||||
fi
|
|
||||||
|
|
||||||
cmake-utils_src_configure
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
cmake-utils_src_compile
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
cmake-utils_src_install
|
|
||||||
|
|
||||||
# Remove an unnecessary, private config header which will never match between ABIs and is not meant to be used
|
|
||||||
if [[ -f "${ED}/usr/include/mysql/server/private/config.h" ]] ; then
|
|
||||||
rm "${ED}/usr/include/mysql/server/private/config.h" || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Make sure the vars are correctly initialized
|
|
||||||
mysql_init_vars
|
|
||||||
|
|
||||||
# Convenience links
|
|
||||||
einfo "Making Convenience links for mysqlcheck multi-call binary"
|
|
||||||
dosym "mysqlcheck" "/usr/bin/mysqlanalyze"
|
|
||||||
dosym "mysqlcheck" "/usr/bin/mysqlrepair"
|
|
||||||
dosym "mysqlcheck" "/usr/bin/mysqloptimize"
|
|
||||||
|
|
||||||
# INSTALL_LAYOUT=STANDALONE causes cmake to create a /usr/data dir
|
|
||||||
if [[ -d "${ED}/usr/data" ]] ; then
|
|
||||||
rm -Rf "${ED}/usr/data" || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Unless they explicitly specific USE=test, then do not install the
|
|
||||||
# testsuite. It DOES have a use to be installed, esp. when you want to do a
|
|
||||||
# validation of your database configuration after tuning it.
|
|
||||||
if ! use test ; then
|
|
||||||
rm -rf "${D}/${MY_SHAREDSTATEDIR}/mysql-test"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Configuration stuff
|
|
||||||
einfo "Building default configuration ..."
|
|
||||||
insinto "${MY_SYSCONFDIR#${EPREFIX}}"
|
|
||||||
[[ -f "${S}/scripts/mysqlaccess.conf" ]] && doins "${S}"/scripts/mysqlaccess.conf
|
|
||||||
cp "${FILESDIR}/my.cnf-10.2" "${TMPDIR}/my.cnf" || die
|
|
||||||
eprefixify "${TMPDIR}/my.cnf"
|
|
||||||
doins "${TMPDIR}/my.cnf"
|
|
||||||
insinto "${MY_SYSCONFDIR#${EPREFIX}}/mariadb.d"
|
|
||||||
cp "${FILESDIR}/my.cnf.distro-client" "${TMPDIR}/50-distro-client.cnf" || die
|
|
||||||
eprefixify "${TMPDIR}/50-distro-client.cnf"
|
|
||||||
doins "${TMPDIR}/50-distro-client.cnf"
|
|
||||||
|
|
||||||
if use server ; then
|
|
||||||
mycnf_src="my.cnf.distro-server"
|
|
||||||
sed -e "s!@DATADIR@!${MY_DATADIR}!g" \
|
|
||||||
"${FILESDIR}/${mycnf_src}" \
|
|
||||||
> "${TMPDIR}/my.cnf.ok" || die
|
|
||||||
if use prefix ; then
|
|
||||||
sed -i -r -e '/^user[[:space:]]*=[[:space:]]*mysql$/d' \
|
|
||||||
"${TMPDIR}/my.cnf.ok" || die
|
|
||||||
fi
|
|
||||||
if use latin1 ; then
|
|
||||||
sed -i \
|
|
||||||
-e "/character-set/s|utf8|latin1|g" \
|
|
||||||
"${TMPDIR}/my.cnf.ok" || die
|
|
||||||
fi
|
|
||||||
eprefixify "${TMPDIR}/my.cnf.ok"
|
|
||||||
newins "${TMPDIR}/my.cnf.ok" 50-distro-server.cnf
|
|
||||||
|
|
||||||
einfo "Including support files and sample configurations"
|
|
||||||
docinto "support-files"
|
|
||||||
local script
|
|
||||||
for script in \
|
|
||||||
"${S}"/support-files/magic
|
|
||||||
do
|
|
||||||
[[ -f "$script" ]] && dodoc "${script}"
|
|
||||||
done
|
|
||||||
|
|
||||||
docinto "scripts"
|
|
||||||
for script in "${S}"/scripts/mysql* ; do
|
|
||||||
[[ ( -f "$script" ) && ( "${script%.sh}" == "${script}" ) ]] && dodoc "${script}"
|
|
||||||
done
|
|
||||||
# Manually install supporting files that conflict with other packages
|
|
||||||
# but are needed for galera and initial installation
|
|
||||||
exeinto /usr/libexec/mariadb
|
|
||||||
doexe "${BUILD_DIR}/extra/my_print_defaults" "${BUILD_DIR}/extra/perror"
|
|
||||||
fi
|
|
||||||
|
|
||||||
#Remove mytop if perl is not selected
|
|
||||||
[[ -e "${ED}/usr/bin/mytop" ]] && ! use perl && rm -f "${ED}/usr/bin/mytop"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Official test instructions:
|
|
||||||
# USE='extraengine perl server' \
|
|
||||||
# FEATURES='test userpriv -usersandbox' \
|
|
||||||
# ebuild mariadb-X.X.XX.ebuild \
|
|
||||||
# digest clean package
|
|
||||||
src_test() {
|
|
||||||
|
|
||||||
_disable_test() {
|
|
||||||
local rawtestname reason
|
|
||||||
rawtestname="${1}" ; shift
|
|
||||||
reason="${@}"
|
|
||||||
ewarn "test '${rawtestname}' disabled: '${reason}'"
|
|
||||||
echo ${rawtestname} : ${reason} >> "${T}/disabled.def"
|
|
||||||
}
|
|
||||||
|
|
||||||
local TESTDIR="${BUILD_DIR}/mysql-test"
|
|
||||||
local retstatus_unit
|
|
||||||
local retstatus_tests
|
|
||||||
|
|
||||||
if ! use server ; then
|
|
||||||
einfo "Skipping server tests due to minimal build."
|
|
||||||
return 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Bug #213475 - MySQL _will_ object strenously if your machine is named
|
|
||||||
# localhost. Also causes weird failures.
|
|
||||||
[[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
|
|
||||||
|
|
||||||
if [[ $UID -eq 0 ]]; then
|
|
||||||
die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
|
|
||||||
fi
|
|
||||||
has usersandbox $FEATURES && ewarn "Some tests may fail with FEATURES=usersandbox"
|
|
||||||
|
|
||||||
einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
|
|
||||||
|
|
||||||
# Run CTest (test-units)
|
|
||||||
cmake-utils_src_test
|
|
||||||
retstatus_unit=$?
|
|
||||||
|
|
||||||
# Ensure that parallel runs don't die
|
|
||||||
export MTR_BUILD_THREAD="$((${RANDOM} % 100))"
|
|
||||||
# Enable parallel testing, auto will try to detect number of cores
|
|
||||||
# You may set this by hand.
|
|
||||||
# The default maximum is 8 unless MTR_MAX_PARALLEL is increased
|
|
||||||
export MTR_PARALLEL="${MTR_PARALLEL:-auto}"
|
|
||||||
|
|
||||||
# create directories because mysqladmin might run out of order
|
|
||||||
mkdir -p "${T}"/var-tests{,/log} || die
|
|
||||||
|
|
||||||
# Run mysql tests
|
|
||||||
pushd "${TESTDIR}" > /dev/null || die
|
|
||||||
|
|
||||||
touch "${T}/disabled.def"
|
|
||||||
# These are failing in MariaDB 10.0 for now and are believed to be
|
|
||||||
# false positives:
|
|
||||||
#
|
|
||||||
# main.mysql_client_test, main.mysql_client_test_nonblock
|
|
||||||
# main.mysql_client_test_comp:
|
|
||||||
# segfaults at random under Portage only, suspect resource limits.
|
|
||||||
|
|
||||||
local t
|
|
||||||
for t in plugins.cracklib_password_check plugins.two_password_validations ; do
|
|
||||||
_disable_test "$t" "False positive due to varying policies"
|
|
||||||
done
|
|
||||||
|
|
||||||
for t in main.mysql_client_test main.mysql_client_test_nonblock \
|
|
||||||
main.mysql_client_test_comp rpl.rpl_extra_col_master_myisam ; do
|
|
||||||
_disable_test "$t" "False positives in Gentoo"
|
|
||||||
done
|
|
||||||
|
|
||||||
_disable_test main.plugin_auth "Needs client libraries built"
|
|
||||||
_disable_test main.mysqldump "Test fails past 2018-12-31 due to event expiration"
|
|
||||||
|
|
||||||
# Likely environment issues as only number of clients connected fails
|
|
||||||
_disable_test rpl.rpl_semi_sync_uninstall_plugin \
|
|
||||||
"Fails intermittently on parallel testing"
|
|
||||||
|
|
||||||
# run mysql-test tests
|
|
||||||
perl mysql-test-run.pl --force --vardir="${T}/var-tests" --reorder --skip-test=tokudb --skip-test-list="${T}/disabled.def"
|
|
||||||
retstatus_tests=$?
|
|
||||||
|
|
||||||
popd > /dev/null || die
|
|
||||||
|
|
||||||
# Cleanup is important for these testcases.
|
|
||||||
pkill -9 -f "${S}/ndb" 2>/dev/null
|
|
||||||
pkill -9 -f "${S}/sql" 2>/dev/null
|
|
||||||
|
|
||||||
local failures=""
|
|
||||||
[[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit"
|
|
||||||
[[ $retstatus_tests -eq 0 ]] || failures="${failures} tests"
|
|
||||||
|
|
||||||
[[ -z "$failures" ]] || die "Test failures: $failures"
|
|
||||||
einfo "Tests successfully completed"
|
|
||||||
}
|
|
||||||
|
|
||||||
mysql_init_vars() {
|
|
||||||
MY_SHAREDSTATEDIR=${MY_SHAREDSTATEDIR="${EPREFIX}/usr/share/mariadb"}
|
|
||||||
MY_SYSCONFDIR=${MY_SYSCONFDIR="${EPREFIX}/etc/mysql"}
|
|
||||||
MY_LOCALSTATEDIR=${MY_LOCALSTATEDIR="${EPREFIX}/var/lib/mysql"}
|
|
||||||
MY_LOGDIR=${MY_LOGDIR="${EPREFIX}/var/log/mysql"}
|
|
||||||
|
|
||||||
if [[ -z "${MY_DATADIR}" ]] ; then
|
|
||||||
MY_DATADIR=""
|
|
||||||
if [[ -f "${MY_SYSCONFDIR}/my.cnf" ]] ; then
|
|
||||||
MY_DATADIR=`"my_print_defaults" mysqld 2>/dev/null \
|
|
||||||
| sed -ne '/datadir/s|^--datadir=||p' \
|
|
||||||
| tail -n1`
|
|
||||||
if [[ -z "${MY_DATADIR}" ]] ; then
|
|
||||||
MY_DATADIR=`grep ^datadir "${MY_SYSCONFDIR}/my.cnf" \
|
|
||||||
| sed -e 's/.*=\s*//' \
|
|
||||||
| tail -n1`
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
if [[ -z "${MY_DATADIR}" ]] ; then
|
|
||||||
MY_DATADIR="${MY_LOCALSTATEDIR}"
|
|
||||||
einfo "Using default MY_DATADIR"
|
|
||||||
fi
|
|
||||||
elog "MySQL MY_DATADIR is ${MY_DATADIR}"
|
|
||||||
|
|
||||||
if [[ -z "${PREVIOUS_DATADIR}" ]] ; then
|
|
||||||
if [[ -e "${MY_DATADIR}" ]] ; then
|
|
||||||
# If you get this and you're wondering about it, see bug #207636
|
|
||||||
elog "MySQL datadir found in ${MY_DATADIR}"
|
|
||||||
elog "A new one will not be created."
|
|
||||||
PREVIOUS_DATADIR="yes"
|
|
||||||
else
|
|
||||||
PREVIOUS_DATADIR="no"
|
|
||||||
fi
|
|
||||||
export PREVIOUS_DATADIR
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
if [[ ${EBUILD_PHASE} == "config" ]]; then
|
|
||||||
local new_MY_DATADIR
|
|
||||||
new_MY_DATADIR=`"my_print_defaults" mysqld 2>/dev/null \
|
|
||||||
| sed -ne '/datadir/s|^--datadir=||p' \
|
|
||||||
| tail -n1`
|
|
||||||
|
|
||||||
if [[ ( -n "${new_MY_DATADIR}" ) && ( "${new_MY_DATADIR}" != "${MY_DATADIR}" ) ]]; then
|
|
||||||
ewarn "MySQL MY_DATADIR has changed"
|
|
||||||
ewarn "from ${MY_DATADIR}"
|
|
||||||
ewarn "to ${new_MY_DATADIR}"
|
|
||||||
MY_DATADIR="${new_MY_DATADIR}"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
export MY_SHAREDSTATEDIR MY_SYSCONFDIR
|
|
||||||
export MY_LOCALSTATEDIR MY_LOGDIR
|
|
||||||
export MY_DATADIR
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_config() {
|
|
||||||
_getoptval() {
|
|
||||||
local mypd="${EROOT}"/usr/bin/my_print_defaults
|
|
||||||
local section="$1"
|
|
||||||
local flag="--${2}="
|
|
||||||
local extra_options="${3}"
|
|
||||||
"${mypd}" $extra_options $section | sed -n "/^${flag}/s,${flag},,gp"
|
|
||||||
}
|
|
||||||
local old_MY_DATADIR="${MY_DATADIR}"
|
|
||||||
local old_HOME="${HOME}"
|
|
||||||
# my_print_defaults needs to read stuff in $HOME/.my.cnf
|
|
||||||
export HOME=${EPREFIX}/root
|
|
||||||
|
|
||||||
# Make sure the vars are correctly initialized
|
|
||||||
mysql_init_vars
|
|
||||||
|
|
||||||
[[ -z "${MY_DATADIR}" ]] && die "Sorry, unable to find MY_DATADIR"
|
|
||||||
if [[ ! -x "${EROOT}/usr/sbin/mysqld" ]] ; then
|
|
||||||
die "Minimal builds do NOT include the MySQL server"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ ( -n "${MY_DATADIR}" ) && ( "${MY_DATADIR}" != "${old_MY_DATADIR}" ) ]]; then
|
|
||||||
local MY_DATADIR_s="${ROOT}/${MY_DATADIR}"
|
|
||||||
MY_DATADIR_s="${MY_DATADIR_s%%/}"
|
|
||||||
local old_MY_DATADIR_s="${ROOT}/${old_MY_DATADIR}"
|
|
||||||
old_MY_DATADIR_s="${old_MY_DATADIR_s%%/}"
|
|
||||||
|
|
||||||
if [[ ( -d "${old_MY_DATADIR_s}" ) && ( "${old_MY_DATADIR_s}" != / ) ]]; then
|
|
||||||
if [[ -d "${MY_DATADIR_s}" ]]; then
|
|
||||||
ewarn "Both ${old_MY_DATADIR_s} and ${MY_DATADIR_s} exist"
|
|
||||||
ewarn "Attempting to use ${MY_DATADIR_s} and preserving ${old_MY_DATADIR_s}"
|
|
||||||
else
|
|
||||||
elog "Moving MY_DATADIR from ${old_MY_DATADIR_s} to ${MY_DATADIR_s}"
|
|
||||||
mv --strip-trailing-slashes -T "${old_MY_DATADIR_s}" "${MY_DATADIR_s}" \
|
|
||||||
|| die "Moving MY_DATADIR failed"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
ewarn "Previous MY_DATADIR (${old_MY_DATADIR_s}) does not exist"
|
|
||||||
if [[ -d "${MY_DATADIR_s}" ]]; then
|
|
||||||
ewarn "Attempting to use ${MY_DATADIR_s}"
|
|
||||||
else
|
|
||||||
eerror "New MY_DATADIR (${MY_DATADIR_s}) does not exist"
|
|
||||||
die "Configuration Failed! Please reinstall ${CATEGORY}/${PN}"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
local pwd1="a"
|
|
||||||
local pwd2="b"
|
|
||||||
local maxtry=15
|
|
||||||
|
|
||||||
if [ -z "${MYSQL_ROOT_PASSWORD}" ]; then
|
|
||||||
local tmp_mysqld_password_source=
|
|
||||||
|
|
||||||
for tmp_mysqld_password_source in mysql client; do
|
|
||||||
einfo "Trying to get password for mysql 'root' user from '${tmp_mysqld_password_source}' section ..."
|
|
||||||
MYSQL_ROOT_PASSWORD="$(_getoptval "${tmp_mysqld_password_source}" password)"
|
|
||||||
if [[ -n "${MYSQL_ROOT_PASSWORD}" ]]; then
|
|
||||||
if [[ ${MYSQL_ROOT_PASSWORD} == *$'\n'* ]]; then
|
|
||||||
ewarn "Ignoring password from '${tmp_mysqld_password_source}' section due to newline character (do you have multiple password options set?)!"
|
|
||||||
MYSQL_ROOT_PASSWORD=
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
|
|
||||||
einfo "Found password in '${tmp_mysqld_password_source}' section!"
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
# Sometimes --show is required to display passwords in some implementations of my_print_defaults
|
|
||||||
if [[ "${MYSQL_ROOT_PASSWORD}" == '*****' ]]; then
|
|
||||||
MYSQL_ROOT_PASSWORD="$(_getoptval "${tmp_mysqld_password_source}" password --show)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
unset tmp_mysqld_password_source
|
|
||||||
fi
|
|
||||||
MYSQL_TMPDIR="$(_getoptval mysqld tmpdir | tail -n1)"
|
|
||||||
# These are dir+prefix
|
|
||||||
MYSQL_RELAY_LOG="$(_getoptval mysqld relay-log | tail -n1)"
|
|
||||||
MYSQL_RELAY_LOG=${MYSQL_RELAY_LOG%/*}
|
|
||||||
MYSQL_LOG_BIN="$(_getoptval mysqld log-bin | tail -n1)"
|
|
||||||
MYSQL_LOG_BIN=${MYSQL_LOG_BIN%/*}
|
|
||||||
|
|
||||||
if [[ ! -d "${ROOT}/$MYSQL_TMPDIR" ]]; then
|
|
||||||
einfo "Creating MySQL tmpdir $MYSQL_TMPDIR"
|
|
||||||
install -d -m 770 -o mysql -g mysql "${EROOT}/$MYSQL_TMPDIR"
|
|
||||||
fi
|
|
||||||
if [[ ! -d "${ROOT}/$MYSQL_LOG_BIN" ]]; then
|
|
||||||
einfo "Creating MySQL log-bin directory $MYSQL_LOG_BIN"
|
|
||||||
install -d -m 770 -o mysql -g mysql "${EROOT}/$MYSQL_LOG_BIN"
|
|
||||||
fi
|
|
||||||
if [[ ! -d "${EROOT}/$MYSQL_RELAY_LOG" ]]; then
|
|
||||||
einfo "Creating MySQL relay-log directory $MYSQL_RELAY_LOG"
|
|
||||||
install -d -m 770 -o mysql -g mysql "${EROOT}/$MYSQL_RELAY_LOG"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -d "${ROOT}/${MY_DATADIR}/mysql" ]] ; then
|
|
||||||
ewarn "You have already a MySQL database in place."
|
|
||||||
ewarn "(${ROOT}/${MY_DATADIR}/*)"
|
|
||||||
ewarn "Please rename or delete it if you wish to replace it."
|
|
||||||
die "MySQL database already exists!"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Bug #213475 - MySQL _will_ object strenously if your machine is named
|
|
||||||
# localhost. Also causes weird failures.
|
|
||||||
[[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
|
|
||||||
|
|
||||||
if [ -z "${MYSQL_ROOT_PASSWORD}" ]; then
|
|
||||||
|
|
||||||
einfo "Please provide a password for the mysql 'root' user now"
|
|
||||||
einfo "or through the ${HOME}/.my.cnf file."
|
|
||||||
ewarn "Avoid [\"'\\_%] characters in the password"
|
|
||||||
read -rsp " >" pwd1 ; echo
|
|
||||||
|
|
||||||
einfo "Retype the password"
|
|
||||||
read -rsp " >" pwd2 ; echo
|
|
||||||
|
|
||||||
if [[ "x$pwd1" != "x$pwd2" ]] ; then
|
|
||||||
die "Passwords are not the same"
|
|
||||||
fi
|
|
||||||
MYSQL_ROOT_PASSWORD="${pwd1}"
|
|
||||||
unset pwd1 pwd2
|
|
||||||
fi
|
|
||||||
|
|
||||||
local options
|
|
||||||
local sqltmp="$(emktemp)"
|
|
||||||
|
|
||||||
# Fix bug 446200. Don't reference host my.cnf, needs to come first,
|
|
||||||
# see https://bugs.mysql.com/bug.php?id=31312
|
|
||||||
use prefix && options="${options} '--defaults-file=${MY_SYSCONFDIR}/my.cnf'"
|
|
||||||
|
|
||||||
# Figure out which options we need to disable to do the setup
|
|
||||||
local helpfile="${TMPDIR}/mysqld-help"
|
|
||||||
"${EROOT}/usr/sbin/mysqld" --verbose --help >"${helpfile}" 2>/dev/null
|
|
||||||
for opt in grant-tables host-cache name-resolve networking slave-start \
|
|
||||||
federated ssl log-bin relay-log slow-query-log external-locking \
|
|
||||||
log-slave-updates \
|
|
||||||
; do
|
|
||||||
optexp="--(skip-)?${opt}" optfull="--loose-skip-${opt}"
|
|
||||||
egrep -sq -- "${optexp}" "${helpfile}" && options="${options} ${optfull}"
|
|
||||||
done
|
|
||||||
|
|
||||||
einfo "Creating the mysql database and setting proper permissions on it ..."
|
|
||||||
|
|
||||||
# Now that /var/run is a tmpfs mount point, we need to ensure it exists before using it
|
|
||||||
PID_DIR="${EROOT}/var/run/mysqld"
|
|
||||||
if [[ ! -d "${PID_DIR}" ]]; then
|
|
||||||
install -d -m 755 -o mysql -g mysql "${PID_DIR}" || die "Could not create pid directory"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ ! -d "${MY_DATADIR}" ]]; then
|
|
||||||
install -d -m 750 -o mysql -g mysql "${MY_DATADIR}" || die "Could not create data directory"
|
|
||||||
fi
|
|
||||||
|
|
||||||
pushd "${TMPDIR}" &>/dev/null || die
|
|
||||||
|
|
||||||
# Filling timezones, see
|
|
||||||
# https://dev.mysql.com/doc/mysql/en/time-zone-support.html
|
|
||||||
"${EROOT}/usr/bin/mysql_tzinfo_to_sql" "${EROOT}/usr/share/zoneinfo" > "${sqltmp}" 2>/dev/null
|
|
||||||
|
|
||||||
local cmd=( "${EROOT}usr/share/mariadb/scripts/mysql_install_db" )
|
|
||||||
[[ -f "${cmd}" ]] || cmd=( "${EROOT}usr/bin/mysql_install_db" )
|
|
||||||
cmd+=( "--basedir=${EPREFIX}/usr" ${options} "--datadir=${ROOT}/${MY_DATADIR}" "--tmpdir=${ROOT}/${MYSQL_TMPDIR}" )
|
|
||||||
einfo "Command: ${cmd[*]}"
|
|
||||||
su -s /bin/sh -c "${cmd[*]}" mysql \
|
|
||||||
>"${TMPDIR}"/mysql_install_db.log 2>&1
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
grep -B5 -A999 -i "ERROR" "${TMPDIR}"/mysql_install_db.log 1>&2
|
|
||||||
die "Failed to initialize mysqld. Please review ${EPREFIX}/var/log/mysql/mysqld.err AND ${TMPDIR}/mysql_install_db.log"
|
|
||||||
fi
|
|
||||||
popd &>/dev/null || die
|
|
||||||
[[ -f "${ROOT}/${MY_DATADIR}/mysql/user.frm" ]] \
|
|
||||||
|| die "MySQL databases not installed"
|
|
||||||
|
|
||||||
use prefix || options="${options} --user=mysql"
|
|
||||||
|
|
||||||
local socket="${EROOT}/var/run/mysqld/mysqld${RANDOM}.sock"
|
|
||||||
local pidfile="${EROOT}/var/run/mysqld/mysqld${RANDOM}.pid"
|
|
||||||
local mysqld="${EROOT}/usr/sbin/mysqld \
|
|
||||||
${options} \
|
|
||||||
--log-warnings=0 \
|
|
||||||
--basedir=${EROOT}/usr \
|
|
||||||
--datadir=${ROOT}/${MY_DATADIR} \
|
|
||||||
--max_allowed_packet=8M \
|
|
||||||
--net_buffer_length=16K \
|
|
||||||
--socket=${socket} \
|
|
||||||
--pid-file=${pidfile} \
|
|
||||||
--tmpdir=${ROOT}/${MYSQL_TMPDIR}"
|
|
||||||
#einfo "About to start mysqld: ${mysqld}"
|
|
||||||
ebegin "Starting mysqld"
|
|
||||||
einfo "Command ${mysqld}"
|
|
||||||
${mysqld} &
|
|
||||||
rc=$?
|
|
||||||
while ! [[ -S "${socket}" || "${maxtry}" -lt 1 ]] ; do
|
|
||||||
maxtry=$((${maxtry}-1))
|
|
||||||
echo -n "."
|
|
||||||
sleep 1
|
|
||||||
done
|
|
||||||
eend $rc
|
|
||||||
|
|
||||||
if ! [[ -S "${socket}" ]]; then
|
|
||||||
die "Completely failed to start up mysqld with: ${mysqld}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
ebegin "Setting root password"
|
|
||||||
# Do this from memory, as we don't want clear text passwords in temp files
|
|
||||||
local sql="UPDATE mysql.user SET Password = PASSWORD('${MYSQL_ROOT_PASSWORD}') WHERE USER='root'; FLUSH PRIVILEGES"
|
|
||||||
"${EROOT}/usr/bin/mysql" \
|
|
||||||
"--socket=${socket}" \
|
|
||||||
-hlocalhost \
|
|
||||||
-e "${sql}"
|
|
||||||
eend $?
|
|
||||||
|
|
||||||
if [[ -n "${sqltmp}" ]] ; then
|
|
||||||
ebegin "Loading \"zoneinfo\", this step may require a few seconds"
|
|
||||||
"${EROOT}/usr/bin/mysql" \
|
|
||||||
"--socket=${socket}" \
|
|
||||||
-hlocalhost \
|
|
||||||
-uroot \
|
|
||||||
--password="${MYSQL_ROOT_PASSWORD}" \
|
|
||||||
mysql < "${sqltmp}"
|
|
||||||
rc=$?
|
|
||||||
eend $?
|
|
||||||
[[ $rc -ne 0 ]] && ewarn "Failed to load zoneinfo!"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Stop the server and cleanup
|
|
||||||
einfo "Stopping the server ..."
|
|
||||||
kill $(< "${pidfile}" )
|
|
||||||
rm -f "${sqltmp}"
|
|
||||||
wait %1
|
|
||||||
einfo "Done"
|
|
||||||
}
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,428 @@
|
|||||||
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI="7"
|
||||||
|
|
||||||
|
inherit autotools flag-o-matic multilib-minimal toolchain-funcs
|
||||||
|
|
||||||
|
if [[ "${PV}" != "9999" ]]; then
|
||||||
|
SRC_PV="$(printf "%u%02u%02u%02u" $(ver_rs 1- " "))"
|
||||||
|
DOC_PV="${SRC_PV}"
|
||||||
|
# DOC_PV="$(printf "%u%02u%02u00" $(ver_rs 1-3 " "))"
|
||||||
|
fi
|
||||||
|
|
||||||
|
DESCRIPTION="SQL database engine"
|
||||||
|
HOMEPAGE="https://sqlite.org/"
|
||||||
|
if [[ "${PV}" == "9999" ]]; then
|
||||||
|
SRC_URI=""
|
||||||
|
else
|
||||||
|
SRC_URI="https://sqlite.org/2021/${PN}-src-${SRC_PV}.zip
|
||||||
|
doc? ( https://sqlite.org/2021/${PN}-doc-${DOC_PV}.zip )"
|
||||||
|
fi
|
||||||
|
|
||||||
|
LICENSE="public-domain"
|
||||||
|
SLOT="3"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||||
|
IUSE="debug doc icu +readline secure-delete static-libs tcl test tools"
|
||||||
|
if [[ "${PV}" == "9999" ]]; then
|
||||||
|
PROPERTIES="live"
|
||||||
|
fi
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
if [[ "${PV}" == "9999" ]]; then
|
||||||
|
BDEPEND=">=dev-lang/tcl-8.6:0
|
||||||
|
dev-vcs/fossil"
|
||||||
|
else
|
||||||
|
BDEPEND="app-arch/unzip
|
||||||
|
>=dev-lang/tcl-8.6:0"
|
||||||
|
fi
|
||||||
|
RDEPEND="sys-libs/zlib:0=[${MULTILIB_USEDEP}]
|
||||||
|
icu? ( dev-libs/icu:0=[${MULTILIB_USEDEP}] )
|
||||||
|
readline? ( sys-libs/readline:0=[${MULTILIB_USEDEP}] )
|
||||||
|
tcl? ( dev-lang/tcl:0=[${MULTILIB_USEDEP}] )
|
||||||
|
tools? ( dev-lang/tcl:0= )"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
test? ( >=dev-lang/tcl-8.6:0[${MULTILIB_USEDEP}] )"
|
||||||
|
|
||||||
|
if [[ "${PV}" == "9999" ]]; then
|
||||||
|
S="${WORKDIR}/${PN}"
|
||||||
|
else
|
||||||
|
S="${WORKDIR}/${PN}-src-${SRC_PV}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
_fossil_fetch() {
|
||||||
|
local distdir="${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}"
|
||||||
|
local repo_id="${1}"
|
||||||
|
local repo_uri="${2}"
|
||||||
|
|
||||||
|
local -x FOSSIL_HOME="${HOME}"
|
||||||
|
|
||||||
|
mkdir -p "${T}/fossil/${repo_id}" || die
|
||||||
|
pushd "${T}/fossil/${repo_id}" > /dev/null || die
|
||||||
|
|
||||||
|
if [[ -n "${EVCS_OFFLINE}" ]]; then
|
||||||
|
if [[ ! -f "${distdir}/fossil-src/${repo_id}/${repo_id}.fossil" ]]; then
|
||||||
|
die "Network activity disabled using EVCS_OFFLINE and clone of repository missing: \"${distdir}/fossil-src/${repo_id}/${repo_id}.fossil\""
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
if [[ ! -f "${distdir}/fossil-src/${repo_id}/${repo_id}.fossil" ]]; then
|
||||||
|
einfo fossil clone --verbose "${repo_uri}" "${repo_id}.fossil"
|
||||||
|
fossil clone --verbose "${repo_uri}" "${repo_id}.fossil" || die
|
||||||
|
echo
|
||||||
|
else
|
||||||
|
cp -p "${distdir}/fossil-src/${repo_id}/${repo_id}.fossil" . || die
|
||||||
|
einfo fossil pull --repository "${repo_id}.fossil" --verbose "${repo_uri}"
|
||||||
|
fossil pull --repository "${repo_id}.fossil" --verbose "${repo_uri}" || die
|
||||||
|
echo
|
||||||
|
fi
|
||||||
|
|
||||||
|
(
|
||||||
|
addwrite "${distdir}"
|
||||||
|
mkdir -p "${distdir}/fossil-src/${repo_id}" || die
|
||||||
|
cp -p "${repo_id}.fossil" "${distdir}/fossil-src/${repo_id}/${repo_id}.fossil" || die
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
|
popd > /dev/null || die
|
||||||
|
}
|
||||||
|
|
||||||
|
_fossil_checkout() {
|
||||||
|
local distdir="${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}"
|
||||||
|
local repo_id="${1}"
|
||||||
|
local branch_or_commit="${2}"
|
||||||
|
local target_directory="${3}"
|
||||||
|
|
||||||
|
local -x FOSSIL_HOME="${HOME}"
|
||||||
|
|
||||||
|
if [[ ! -f "${distdir}/fossil-src/${repo_id}/${repo_id}.fossil" ]]; then
|
||||||
|
die "Clone of repository missing: \"${distdir}/fossil-src/${repo_id}/${repo_id}.fossil\""
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ ! -f "${T}/fossil/${repo_id}/${repo_id}.fossil" ]]; then
|
||||||
|
mkdir -p "${T}/fossil/${repo_id}" || die
|
||||||
|
cp -p "${distdir}/fossil-src/${repo_id}/${repo_id}.fossil" "${T}/fossil/${repo_id}" || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
mkdir "${target_directory}" || die
|
||||||
|
pushd "${target_directory}" > /dev/null || die
|
||||||
|
|
||||||
|
einfo fossil open --quiet "${T}/fossil/${repo_id}/${repo_id}.fossil" "${branch_or_commit}"
|
||||||
|
fossil open --quiet "${T}/fossil/${repo_id}/${repo_id}.fossil" "${branch_or_commit}" || die
|
||||||
|
echo
|
||||||
|
|
||||||
|
popd > /dev/null || die
|
||||||
|
}
|
||||||
|
|
||||||
|
fossil_fetch() {
|
||||||
|
local repo_id="${1}"
|
||||||
|
local repo_uri="${2}"
|
||||||
|
local target_directory="${3}"
|
||||||
|
|
||||||
|
local branch_or_commit="${EFOSSIL_COMMIT:-${EFOSSIL_BRANCH:-trunk}}"
|
||||||
|
|
||||||
|
_fossil_fetch "${repo_id}" "${repo_uri}"
|
||||||
|
_fossil_checkout "${repo_id}" "${branch_or_commit}" "${target_directory}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
if [[ "${PV}" == "9999" ]]; then
|
||||||
|
fossil_fetch sqlite https://sqlite.org/src "${WORKDIR}/${PN}"
|
||||||
|
if use doc; then
|
||||||
|
fossil_fetch sqlite-doc https://sqlite.org/docsrc "${WORKDIR}/${PN}-doc"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
default
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
eapply "${FILESDIR}/"${PN}-3.35.0-build_{1.1,1.2,2.1,2.2}.patch
|
||||||
|
|
||||||
|
eapply_user
|
||||||
|
|
||||||
|
eautoreconf
|
||||||
|
|
||||||
|
multilib_copy_sources
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_configure() {
|
||||||
|
local -x CPPFLAGS="${CPPFLAGS}" CFLAGS="${CFLAGS}"
|
||||||
|
local options=()
|
||||||
|
|
||||||
|
options+=(
|
||||||
|
--enable-load-extension
|
||||||
|
--enable-threadsafe
|
||||||
|
)
|
||||||
|
|
||||||
|
# Support detection of misuse of SQLite API.
|
||||||
|
# https://sqlite.org/compile.html#enable_api_armor
|
||||||
|
append-cppflags -DSQLITE_ENABLE_API_ARMOR
|
||||||
|
|
||||||
|
# Support bytecode and tables_used virtual tables.
|
||||||
|
# https://sqlite.org/compile.html#enable_bytecode_vtab
|
||||||
|
# https://sqlite.org/bytecodevtab.html
|
||||||
|
append-cppflags -DSQLITE_ENABLE_BYTECODE_VTAB
|
||||||
|
|
||||||
|
# Support column metadata functions.
|
||||||
|
# https://sqlite.org/compile.html#enable_column_metadata
|
||||||
|
# https://sqlite.org/c3ref/column_database_name.html
|
||||||
|
append-cppflags -DSQLITE_ENABLE_COLUMN_METADATA
|
||||||
|
|
||||||
|
# Support sqlite_dbpage virtual table.
|
||||||
|
# https://sqlite.org/compile.html#enable_dbpage_vtab
|
||||||
|
# https://sqlite.org/dbpage.html
|
||||||
|
append-cppflags -DSQLITE_ENABLE_DBPAGE_VTAB
|
||||||
|
|
||||||
|
# Support dbstat virtual table.
|
||||||
|
# https://sqlite.org/compile.html#enable_dbstat_vtab
|
||||||
|
# https://sqlite.org/dbstat.html
|
||||||
|
append-cppflags -DSQLITE_ENABLE_DBSTAT_VTAB
|
||||||
|
|
||||||
|
# Support sqlite3_serialize() and sqlite3_deserialize() functions.
|
||||||
|
# https://sqlite.org/compile.html#enable_deserialize
|
||||||
|
# https://sqlite.org/c3ref/serialize.html
|
||||||
|
# https://sqlite.org/c3ref/deserialize.html
|
||||||
|
append-cppflags -DSQLITE_ENABLE_DESERIALIZE
|
||||||
|
|
||||||
|
# Support comments in output of EXPLAIN.
|
||||||
|
# https://sqlite.org/compile.html#enable_explain_comments
|
||||||
|
append-cppflags -DSQLITE_ENABLE_EXPLAIN_COMMENTS
|
||||||
|
|
||||||
|
# Support Full-Text Search versions 3, 4 and 5.
|
||||||
|
# https://sqlite.org/compile.html#enable_fts3
|
||||||
|
# https://sqlite.org/compile.html#enable_fts3_parenthesis
|
||||||
|
# https://sqlite.org/compile.html#enable_fts4
|
||||||
|
# https://sqlite.org/compile.html#enable_fts5
|
||||||
|
# https://sqlite.org/fts3.html
|
||||||
|
# https://sqlite.org/fts5.html
|
||||||
|
append-cppflags -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_FTS4
|
||||||
|
options+=(--enable-fts5)
|
||||||
|
|
||||||
|
# Support hidden columns.
|
||||||
|
append-cppflags -DSQLITE_ENABLE_HIDDEN_COLUMNS
|
||||||
|
|
||||||
|
# Support JSON1 extension.
|
||||||
|
# https://sqlite.org/compile.html#enable_json1
|
||||||
|
# https://sqlite.org/json1.html
|
||||||
|
append-cppflags -DSQLITE_ENABLE_JSON1
|
||||||
|
|
||||||
|
# Support memsys5 memory allocator.
|
||||||
|
# https://sqlite.org/compile.html#enable_memsys5
|
||||||
|
# https://sqlite.org/malloc.html#memsys5
|
||||||
|
append-cppflags -DSQLITE_ENABLE_MEMSYS5
|
||||||
|
|
||||||
|
# Support sqlite3_normalized_sql() function.
|
||||||
|
# https://sqlite.org/c3ref/expanded_sql.html
|
||||||
|
append-cppflags -DSQLITE_ENABLE_NORMALIZE
|
||||||
|
|
||||||
|
# Support sqlite_offset() function.
|
||||||
|
# https://sqlite.org/compile.html#enable_offset_sql_func
|
||||||
|
# https://sqlite.org/lang_corefunc.html#sqlite_offset
|
||||||
|
append-cppflags -DSQLITE_ENABLE_OFFSET_SQL_FUNC
|
||||||
|
|
||||||
|
# Support pre-update hook functions.
|
||||||
|
# https://sqlite.org/compile.html#enable_preupdate_hook
|
||||||
|
# https://sqlite.org/c3ref/preupdate_count.html
|
||||||
|
append-cppflags -DSQLITE_ENABLE_PREUPDATE_HOOK
|
||||||
|
|
||||||
|
# Support Resumable Bulk Update extension.
|
||||||
|
# https://sqlite.org/compile.html#enable_rbu
|
||||||
|
# https://sqlite.org/rbu.html
|
||||||
|
append-cppflags -DSQLITE_ENABLE_RBU
|
||||||
|
|
||||||
|
# Support R*Trees.
|
||||||
|
# https://sqlite.org/compile.html#enable_rtree
|
||||||
|
# https://sqlite.org/compile.html#enable_geopoly
|
||||||
|
# https://sqlite.org/rtree.html
|
||||||
|
# https://sqlite.org/geopoly.html
|
||||||
|
append-cppflags -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_GEOPOLY
|
||||||
|
|
||||||
|
# Support Session extension.
|
||||||
|
# https://sqlite.org/compile.html#enable_session
|
||||||
|
# https://sqlite.org/sessionintro.html
|
||||||
|
append-cppflags -DSQLITE_ENABLE_SESSION
|
||||||
|
|
||||||
|
# Support scan status functions.
|
||||||
|
# https://sqlite.org/compile.html#enable_stmt_scanstatus
|
||||||
|
# https://sqlite.org/c3ref/stmt_scanstatus.html
|
||||||
|
# https://sqlite.org/c3ref/stmt_scanstatus_reset.html
|
||||||
|
append-cppflags -DSQLITE_ENABLE_STMT_SCANSTATUS
|
||||||
|
|
||||||
|
# Support sqlite_stmt virtual table.
|
||||||
|
# https://sqlite.org/compile.html#enable_stmtvtab
|
||||||
|
# https://sqlite.org/stmt.html
|
||||||
|
append-cppflags -DSQLITE_ENABLE_STMTVTAB
|
||||||
|
|
||||||
|
# Support unknown() function.
|
||||||
|
# https://sqlite.org/compile.html#enable_unknown_sql_function
|
||||||
|
append-cppflags -DSQLITE_ENABLE_UNKNOWN_SQL_FUNCTION
|
||||||
|
|
||||||
|
# Support unlock notification.
|
||||||
|
# https://sqlite.org/compile.html#enable_unlock_notify
|
||||||
|
# https://sqlite.org/c3ref/unlock_notify.html
|
||||||
|
# https://sqlite.org/unlock_notify.html
|
||||||
|
append-cppflags -DSQLITE_ENABLE_UNLOCK_NOTIFY
|
||||||
|
|
||||||
|
# Support LIMIT and ORDER BY clauses on DELETE and UPDATE statements.
|
||||||
|
# https://sqlite.org/compile.html#enable_update_delete_limit
|
||||||
|
# https://sqlite.org/lang_delete.html#optional_limit_and_order_by_clauses
|
||||||
|
# https://sqlite.org/lang_update.html#optional_limit_and_order_by_clauses
|
||||||
|
append-cppflags -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT
|
||||||
|
|
||||||
|
# Support soundex() function.
|
||||||
|
# https://sqlite.org/compile.html#soundex
|
||||||
|
# https://sqlite.org/lang_corefunc.html#soundex
|
||||||
|
append-cppflags -DSQLITE_SOUNDEX
|
||||||
|
|
||||||
|
# Support URI filenames.
|
||||||
|
# https://sqlite.org/compile.html#use_uri
|
||||||
|
# https://sqlite.org/uri.html
|
||||||
|
append-cppflags -DSQLITE_USE_URI
|
||||||
|
|
||||||
|
# debug USE flag.
|
||||||
|
options+=($(use_enable debug))
|
||||||
|
|
||||||
|
# icu USE flag.
|
||||||
|
if use icu; then
|
||||||
|
# Support ICU extension.
|
||||||
|
# https://sqlite.org/compile.html#enable_icu
|
||||||
|
append-cppflags -DSQLITE_ENABLE_ICU
|
||||||
|
sed -e "s/^TLIBS = @LIBS@/& -licui18n -licuuc/" -i Makefile.in || die "sed failed"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# readline USE flag.
|
||||||
|
options+=(
|
||||||
|
--disable-editline
|
||||||
|
$(use_enable readline)
|
||||||
|
)
|
||||||
|
if use readline; then
|
||||||
|
options+=(--with-readline-inc="-I${ESYSROOT}/usr/include/readline")
|
||||||
|
fi
|
||||||
|
|
||||||
|
# secure-delete USE flag.
|
||||||
|
if use secure-delete; then
|
||||||
|
# Enable secure_delete pragma by default.
|
||||||
|
# https://sqlite.org/compile.html#secure_delete
|
||||||
|
# https://sqlite.org/pragma.html#pragma_secure_delete
|
||||||
|
append-cppflags -DSQLITE_SECURE_DELETE
|
||||||
|
fi
|
||||||
|
|
||||||
|
# static-libs USE flag.
|
||||||
|
options+=($(use_enable static-libs static))
|
||||||
|
|
||||||
|
# tcl, test, tools USE flags.
|
||||||
|
if use tcl || use test || { use tools && multilib_is_native_abi; }; then
|
||||||
|
options+=(
|
||||||
|
--enable-tcl
|
||||||
|
--with-tcl="${ESYSROOT}/usr/$(get_libdir)"
|
||||||
|
)
|
||||||
|
else
|
||||||
|
options+=(--disable-tcl)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ "${ABI}" == "x86" ]]; then
|
||||||
|
if $(tc-getCC) ${CPPFLAGS} ${CFLAGS} -E -P -dM - < /dev/null 2> /dev/null | grep -q "^#define __SSE__ 1$"; then
|
||||||
|
append-cflags -mfpmath=sse
|
||||||
|
else
|
||||||
|
append-cflags -ffloat-store
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
econf "${options[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_compile() {
|
||||||
|
emake HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}"
|
||||||
|
|
||||||
|
if use tools && multilib_is_native_abi; then
|
||||||
|
emake changeset dbdump dbhash dbtotxt index_usage rbu scrub showdb showjournal showshm showstat4 showwal sqldiff sqlite3_analyzer sqlite3_checker sqlite3_expert sqltclsh
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ "${PV}" == "9999" ]] && use doc && multilib_is_native_abi; then
|
||||||
|
emake tclsqlite3.c
|
||||||
|
|
||||||
|
local build_directory="$(pwd)"
|
||||||
|
build_directory="${build_directory##*/}"
|
||||||
|
|
||||||
|
mkdir "${WORKDIR}/${PN}-doc-build" || die
|
||||||
|
pushd "${WORKDIR}/${PN}-doc-build" > /dev/null || die
|
||||||
|
|
||||||
|
emake -f "../${PN}-doc/Makefile" -j1 SRC="../${PN}" BLD="../${build_directory}" DOC="../${PN}-doc" CC="$(tc-getBUILD_CC)" TCLINC="" TCLFLAGS="$($(tc-getBUILD_PKG_CONFIG) --libs tcl) -ldl -lm" base doc
|
||||||
|
rmdir doc/matrix{/*,} || die
|
||||||
|
|
||||||
|
popd > /dev/null || die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_test() {
|
||||||
|
if [[ "${EUID}" -eq 0 ]]; then
|
||||||
|
ewarn "Skipping tests due to root permissions"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
local -x SQLITE_HISTORY="${T}/sqlite_history_${ABI}"
|
||||||
|
|
||||||
|
emake HAVE_TCL="$(usex tcl 1 "")" $(use debug && echo fulltest || echo test)
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_install() {
|
||||||
|
emake DESTDIR="${D}" HAVE_TCL="$(usex tcl 1 "")" TCLLIBDIR="${EPREFIX}/usr/$(get_libdir)/${P}" install
|
||||||
|
|
||||||
|
if use tools && multilib_is_native_abi; then
|
||||||
|
install_tool() {
|
||||||
|
if [[ -f ".libs/${1}" ]]; then
|
||||||
|
newbin ".libs/${1}" "${2}"
|
||||||
|
else
|
||||||
|
newbin "${1}" "${2}"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
install_tool changeset sqlite3-changeset
|
||||||
|
install_tool dbdump sqlite3-db-dump
|
||||||
|
install_tool dbhash sqlite3-db-hash
|
||||||
|
install_tool dbtotxt sqlite3-db-to-txt
|
||||||
|
install_tool index_usage sqlite3-index-usage
|
||||||
|
install_tool rbu sqlite3-rbu
|
||||||
|
install_tool scrub sqlite3-scrub
|
||||||
|
install_tool showdb sqlite3-show-db
|
||||||
|
install_tool showjournal sqlite3-show-journal
|
||||||
|
install_tool showshm sqlite3-show-shm
|
||||||
|
install_tool showstat4 sqlite3-show-stat4
|
||||||
|
install_tool showwal sqlite3-show-wal
|
||||||
|
install_tool sqldiff sqlite3-diff
|
||||||
|
install_tool sqlite3_analyzer sqlite3-analyzer
|
||||||
|
install_tool sqlite3_checker sqlite3-checker
|
||||||
|
install_tool sqlite3_expert sqlite3-expert
|
||||||
|
install_tool sqltclsh sqlite3-tclsh
|
||||||
|
|
||||||
|
unset -f install_tool
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_install_all() {
|
||||||
|
find "${ED}" -name "*.la" -delete || die
|
||||||
|
|
||||||
|
doman sqlite3.1
|
||||||
|
|
||||||
|
if use doc; then
|
||||||
|
if [[ "${PV}" == "9999" ]]; then
|
||||||
|
pushd "${WORKDIR}/${PN}-doc-build/doc" > /dev/null || die
|
||||||
|
else
|
||||||
|
pushd "${WORKDIR}/${PN}-doc-${DOC_PV}" > /dev/null || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
find "(" -name "*.db" -o -name "*.txt" ")" -delete || die
|
||||||
|
if [[ "${PV}" != "9999" ]]; then
|
||||||
|
rm search search.d/admin || die
|
||||||
|
rmdir search.d || die
|
||||||
|
find -name "*~" -delete || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
(
|
||||||
|
docinto html
|
||||||
|
dodoc -r *
|
||||||
|
)
|
||||||
|
|
||||||
|
popd > /dev/null || die
|
||||||
|
fi
|
||||||
|
}
|
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