diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-12-14 13:26:14 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-12-14 13:26:14 +0000 |
commit | 6abbf81ef2f298e3221ff5e67a1f3c5f23958212 (patch) | |
tree | 25413d1cb3a0cbfe36029db32398c0f333609215 /dev-libs/libprelude | |
parent | 9c417bacd51da6d8b57fa9f37425161d30d4b95b (diff) |
gentoo resync : 14.12.2020
Diffstat (limited to 'dev-libs/libprelude')
-rw-r--r-- | dev-libs/libprelude/Manifest | 2 | ||||
-rw-r--r-- | dev-libs/libprelude/files/libprelude-5.2.0-luabindings_liblua.patch | 13 | ||||
-rw-r--r-- | dev-libs/libprelude/libprelude-5.2.0-r10.ebuild | 103 |
3 files changed, 118 insertions, 0 deletions
diff --git a/dev-libs/libprelude/Manifest b/dev-libs/libprelude/Manifest index d0a2f58ffc44..69708b02e775 100644 --- a/dev-libs/libprelude/Manifest +++ b/dev-libs/libprelude/Manifest @@ -2,6 +2,7 @@ AUX libprelude-4.0.0-fix-python-bindings.patch 1136 BLAKE2B 287f5e3c049ef4d3af54 AUX libprelude-5.1.0-fix_awk_error.patch 3243 BLAKE2B 2be6fe51c2edfd85b851f7080cc6b205703ba8ff25752392f1bd1a6a33c9101e45c937160cc593b66d851aa010723cefaa50577e6760d421139d321e421fedd9 SHA512 be78d258e81ae010301ce29f5de5cadc44bca50a1f20a7de85e1f2dfdcda22acaa11d0a497f440a3aeea3bb1e34b74ce238af2da0d6854059c67c76b2bfaa90f AUX libprelude-5.1.0-fix_gtkdoc_1.32.patch 416 BLAKE2B 9717541a0d57a0fb97a7f4f2b9d466d65f8091e96707cb7a20e61ce3aef925d44b93a71f03d90c074592e0bf91a133c7a2b87996ceabb10810a3795a595d874c SHA512 1b35a8b5af4701c51e3d9a20eaf501cf81f429b2f2f16c0d8fecefa51a3438b35cf237db3c4696c56e53a2a87b0663a08a73d72edac207ae04b067ef2c4dc6fe AUX libprelude-5.1.0-fix_py38.patch 322 BLAKE2B 0dd047f4a6c634b4f4f7c01aad619634228898a951c2ea629c07a5df087f8998df27f532ea9d893df2b233ebb0dde094f1acd6c5bb7b95a6688fdcb5e805c449 SHA512 b35c74578a2e00358a7da8f7301f9c4d1055e53c99bea71cc3ef90020a93ff7d0d41f1cf6d3ea3a5c6fc18a3ca1bcc9ed0baafdd8110c1fa51db34e005a1c874 +AUX libprelude-5.2.0-luabindings_liblua.patch 611 BLAKE2B 8541a59228a9e8d0b35cc22ec2d26f3f01a91348fd7eb293f68c637b1ca176c86cfa28578d28b8c290f76bf8b4adba2ff5f7da7a8fd16ee4b846730c4cd04b56 SHA512 1a45fc0fb71850769e0b23c0b1ce8eae0912bdb3398baaef91b631b622fbd7166a11cc1f501d8dfa063b8dc5230c41b3e521b57792d8c865b94d9a6efea2c995 DIST libprelude-4.0.0.tar.gz 2864402 BLAKE2B 2e51eb1af74b63140bc66a358b112a753c1a0fd86d6bb8bb43ccddca4cd396e34566168edca55a626a0b43ba56e676301f3792247c25f64c7a31430af3708311 SHA512 5d88e8f211b09cc3e43dbe299e935d8f11575ae3f1894059793966cd14a8e47177ef8963d45305e1a24f9efc4048520329b31681301a21815909bd38606c2ce7 DIST libprelude-4.1.0.tar.gz 2852916 BLAKE2B a18babb24795d17d72eb1c0755f4b0330125c8b289af0b52753f6f69b5e820f0f972019b57eaded3abfc45c69bd75c0d120fe29982887e55d75f2c4c8b6486f7 SHA512 073307ca070794b47643e2ef2db4788fa92374735558b466441f0663f420cab45aecc7a1d99bb487ad23ebe602d5668369ffa6ab29fa3b0504356420ab3a7878 DIST libprelude-5.1.1.tar.gz 2898350 BLAKE2B accc8610e8551f1c62156ea87748fa1dba2bd7d8bc0813782b2a91fde1cda5d64b404003846cd17af030486654cf48889dec5cf27c64874ac07c9cd905eb13ec SHA512 eddd6e1cf4fc4b2fa79a5132316576cc7205915fa19bf3a2a68cbc4eaf5abf50e5c594384aa1742d620304916da634e113a7c33e4ebca2bcee96e35c9796ed5f @@ -9,5 +10,6 @@ DIST libprelude-5.2.0.tar.gz 2902019 BLAKE2B f4caecdc4d34a075fecef73e043e653943f EBUILD libprelude-4.0.0.ebuild 1722 BLAKE2B 2b36c1e22214a06f031d3a98a97d189cb73a366cb8e96e897a1cc89a32908f4dd6fba4229112128571062ce09f4d730c0449a86067ecc2a5312edc388cb81ef1 SHA512 2f5d8c16260d0315e1f351943621b9021836596202f54397e6864e532ddc037a4374351399636c1450711d700e0d8e99524a43e4ba1d28873f981ad8ad8b33f4 EBUILD libprelude-4.1.0.ebuild 1723 BLAKE2B a77bd79df9b56432009a6d94903891bc2bc1f207a2d3d5c088d58ac61ff1ecde897a184301aef80d9da7b10c202246ac18dea144a1d29ffeb10d2beafeff74a4 SHA512 44ceb27532b2bd81fc2d50c8258969a559be61249fb05080c350413c628e40e7d17e8e02d32c9c159f44ac0eb81c4b59d3236d39b8eaa999345cf632886f6f02 EBUILD libprelude-5.1.1.ebuild 2006 BLAKE2B 82bffd675533d7ae41c4f660d0bfe4053b5dd820ae83337b582a17a030b807a1578be95bff26502c3e07bf0aa8048b352d79dd1a331921d45d3baee35057f594 SHA512 21deba252e8d04e8dfcf9815d54a77dadd731dc94e5bd246ea4483eb686feb93db02cd48aacf425e3cd589a3a4157e623982a83e445d4f0d9ecf360dd4aa462e +EBUILD libprelude-5.2.0-r10.ebuild 2064 BLAKE2B 296f12c0d9d66f15bd9861cd5cf8479a42c353deeed7e08d797c3b07b47691bf2b59fed720ae68325be69efd89bfa850544e67cf501f08b3b401ac12ecd08951 SHA512 e08374052c20ad7a8bc5fb996c6a5bce4cb581c91c55213dc4ae1d038aac939cfc113fd4ed16385f05979689a85f8af287da647ea457d0a8621632fd51f67d6e EBUILD libprelude-5.2.0.ebuild 1949 BLAKE2B f4bbc30333ed72d5373759868880742f4f0bf68fe2b2ecc3a6a47a59963b99e33cf87057ddd56249eb7266abb79d75e69d6beabe0f0da06e86fde4c512754082 SHA512 2e3971c1395f317bf3a32fedfc73bd2e5566d5ae889fff3609a77097d87d6a72fe32b523b42c1bb5bef8e59243396bbeeea381a8220b50f431f990ec669220ea MISC metadata.xml 871 BLAKE2B bf71e839f29918c8b71d3bd9e45c6afa99391f476ff8c94eb43d9378e754ddafb9cf4aeef69dce4fc2210819b08f62898d7ec4717a9d7f13d04ee3df24e0a734 SHA512 bf4e35e6d51f1797b24c262a6cfd38ef1ce06e80b504afabb2f3f0aa7f069335e96562f3716b819abaa1bcb1f8f88bcb1a72a11047cd87fd4d62d7903b200cec diff --git a/dev-libs/libprelude/files/libprelude-5.2.0-luabindings_liblua.patch b/dev-libs/libprelude/files/libprelude-5.2.0-luabindings_liblua.patch new file mode 100644 index 000000000000..6eeb4beb92b4 --- /dev/null +++ b/dev-libs/libprelude/files/libprelude-5.2.0-luabindings_liblua.patch @@ -0,0 +1,13 @@ +Compiled Lua modules must not link against liblua. + +--- a/bindings/lua/Makefile.am ++++ b/bindings/lua/Makefile.am +@@ -9,7 +9,7 @@ + + AM_CPPFLAGS = -I@top_srcdir@ -I@top_builddir@/src/include -I@top_srcdir@/src/include -I@top_builddir@/src/libprelude-error -I@top_srcdir@/bindings/c++/include @LUA_CFLAGS@ -I@top_srcdir@/libmissing -I@top_builddir@/libmissing + +-prelude_la_LDFLAGS = -module -avoid-version @LUA_LIBS@ ++prelude_la_LDFLAGS = -module -avoid-version + prelude_la_LIBADD = $(top_builddir)/bindings/c++/.libs/libpreludecpp.la + prelude_la_SOURCES = prelude.cxx + preludedir = $(libdir)/lua/@LUA_VERSION@ diff --git a/dev-libs/libprelude/libprelude-5.2.0-r10.ebuild b/dev-libs/libprelude/libprelude-5.2.0-r10.ebuild new file mode 100644 index 000000000000..47127ff700b9 --- /dev/null +++ b/dev-libs/libprelude/libprelude-5.2.0-r10.ebuild @@ -0,0 +1,103 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) +USE_RUBY="ruby25 ruby26 ruby27" +DISTUTILS_OPTIONAL=1 + +LUA_COMPAT=( lua5-{1..3} ) + +inherit autotools distutils-r1 lua-single ruby-single + +DESCRIPTION="Prelude-SIEM Framework Library" +HOMEPAGE="https://www.prelude-siem.org" +SRC_URI="https://www.prelude-siem.org/pkg/src/${PV}/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="lua perl python ruby" + +REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} ) + python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND="net-libs/gnutls:= + lua? ( ${LUA_DEPS} ) + perl? ( dev-lang/perl:= ) + python? ( ${PYTHON_DEPS} ) + ruby? ( ${RUBY_DEPS} )" + +DEPEND="${RDEPEND}" + +BDEPEND=">=dev-lang/swig-4.0.0 + dev-util/gtk-doc-am + sys-devel/flex + lua? ( ${LUA_DEPS} ) + perl? ( dev-lang/perl:= virtual/perl-ExtUtils-MakeMaker ) + python? ( ${PYTHON_DEPS} ) + ruby? ( ${RUBY_DEPS} ) + virtual/pkgconfig + virtual/yacc" + +PATCHES=( + "${FILESDIR}/${PN}-4.0.0-fix-python-bindings.patch" + "${FILESDIR}/${PN}-5.1.0-fix_gtkdoc_1.32.patch" + "${FILESDIR}/${PN}-5.2.0-luabindings_liblua.patch" +) + +src_prepare() { + default + + # Avoid null runpaths in Perl bindings. + sed -e 's/ LD_RUN_PATH=""//' -i "${S}/bindings/Makefile.am" || die "sed failed" + + eautoreconf + + if use python; then + cd bindings/python || die + distutils-r1_src_prepare + fi +} + +src_configure() { + local myconf=( + --enable-easy-bindings + --with-swig + --without-python2 + --localstatedir="${EPREFIX}/var" + $(use_with lua) + $(use_with perl) + $(usex perl '--with-perl-installdirs=vendor' '') + $(use_with ruby) + ) + + if use python; then + python_setup + myconf+=( --with-python3="${EPYTHON}" ) + else + myconf+=( --without-python3 ) + fi + + econf "${myconf[@]}" +} + +src_compile() { + default + if use python; then + cd bindings/python || die + distutils-r1_src_compile + fi +} + +src_install() { + default + find "${D}" -name '*.la' -delete || die + if use python; then + cd bindings/python || die + distutils-r1_src_install + fi + + keepdir /var/spool/prelude +} |