commit: 2c62ebeef292180c72a83358467616ab5860db58 Author: Azael Reyes <azael.devel <AT> gmail <DOT> com> AuthorDate: Tue Nov 3 05:24:32 2020 +0000 Commit: Azael Reyes <azael.devel <AT> gmail <DOT> com> CommitDate: Tue Nov 3 05:24:32 2020 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2c62ebee
app-misc/apidb: fixing fragmantatio of octetos-db Signed-off-by: Azael Reyes <azael.devel <AT> gmail.com> Package-Manager: Portage-3.0.8, Repoman-3.0.2 app-misc/apidb/Manifest | 1 + app-misc/apidb/apidb-5.0.0_alpha20.ebuild | 74 +++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+) diff --git a/app-misc/apidb/Manifest b/app-misc/apidb/Manifest index 69810b13..d060bbbb 100644 --- a/app-misc/apidb/Manifest +++ b/app-misc/apidb/Manifest @@ -1,4 +1,5 @@ DIST 4.3.0-beta.2.tar.gz 168416 BLAKE2B a3c6e948d0227c6bfc1e030111c0c31fe89ebc294f283246f3446d611ae4d4353534c9270dac40fb46b9189d8ea42ab0f10c2e2d783af8499442c207bd76e3dd SHA512 efc0733ea683a47a2e10e97a53ea6ed378aa152b191d7689529a9acfe0866c7aefec2987b9094c4874c4966ae5869a133a5b194de8e99af338282ff30f2586ad DIST 5.0.0-alpha.2.tar.gz 165464 BLAKE2B 92975743b28dbed779c9d3c86cb9636b321f18268e830e97fcd80f54f67bb29a70b1d8f5bd509b5f6c86f982b48d31b861aad5f1981f4304ad43eda254620283 SHA512 d184cc782494e655f154cd23486a3bf4385b07c0ce95032b940c614cb16cb575ffecdceab3e71e7d90cb198b68867b06666da65db0981e5b87c4ab7c703fa794 DIST 5.0.0-alpha19.tar.gz 160561 BLAKE2B 52479e68742f62b8c98d9c9a31a261f6c887966bdf3e1820e3109af5a8164ba8294e4aecf806afb182a05750a6a548d855a492ee277051c494ef8897e2de3e73 SHA512 7008857aa20365d8b9f0c05a5e021e4071ae9af7c9208a4d33840b8e5118e5e1404cd005ec05a5a0d64bb3690d009a2f60af648dadc2bd14d806b6776828724b +DIST 5.0.0-alpha20.tar.gz 160582 BLAKE2B cc50f784b67f0ab1564f4ea596864e65fa5c87f3729befd9a53ecf200f11f97ced901207bfd5313b814bc5b2d5df35ab62102606974e2b4f52e2bf80a09f9c9d SHA512 465f2938f4fe9d1f557bc5c81e0639259a0aecda3949e18055a08f56a0294400e14a9a5e7865f4b46305343aca2ce1d283b963e6b15b2acffcc9a5758b494a15 DIST 5.0.0-alpha8.tar.gz 165674 BLAKE2B 10227665ddf1c2b17cacb4b52a4fb0ef06125066546cfc5ce919e2ce6bcba27dabdb471edee4a405f05208333fd6e719981d90384194dc6fab62791abc2eb671 SHA512 e1ef0a916b64ba116efad641b64446656a1e57c0e1c0d65cceafb59ec04deb142de1a11e625c4e8c214b36dcbf9adb4d413283d7a22f0a090098cebfc021e182 diff --git a/app-misc/apidb/apidb-5.0.0_alpha20.ebuild b/app-misc/apidb/apidb-5.0.0_alpha20.ebuild new file mode 100644 index 00000000..4267a06c --- /dev/null +++ b/app-misc/apidb/apidb-5.0.0_alpha20.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +CMAKE_MAKEFILE_GENERATOR="emake" +CMAKE_BINARY=cmake +CMAKE_MAKEFILE_GENERATOR=emake + +MYPV="${PV/_alpha20/-alpha20}" +MYPN="${PN}" +MYP="${MYPN}-${MYPV}" + +DESCRIPTION="API Generator for Database acces." +HOMEPAGE="https://github.com/azaeldevel/apidb" +SRC_URI="https://github.com/azaeldevel/${PN}/archive/${MYPV}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" + +IUSE="+mariadb postgresql commands gtk +corelibs" + +DEPEND="" +RDEPEND="${DEPEND}" +BDEPEND=" + dev-libs/libxml2 + dev-libs/boost + dev-libs/octetos-coreutils + sys-devel/bison + sys-devel/flex + gtk? ( x11-libs/gtk+ ) + dev-libs/libtar + mariadb? ( dev-libs/octetos-db-maria ) + postgresql? ( dev-libs/octetos-db-postgresql ) + media-gfx/imagemagick +" + +S="${WORKDIR}/${PN}-${MYPV}" + +src_prepare() { + sed -i 's/lib/${LIBDIR}/' src/CMakeLists.txt || die + sed -i 's/lib/${LIBDIR}/' src/mysql-reader-c++/CMakeLists.txt || die + sed -i 's/lib/${LIBDIR}/' src/mariadb-reader-c++/CMakeLists.txt || die + sed -i 's/lib/${LIBDIR}/' src/postgresql-reader-c++/CMakeLists.txt || die + + cmake_src_prepare +} + +src_configure() { + APIDBBUILD="CORE" + APIDBINSTALL="" + if use corelibs ;then + APIDBINSTALL="CORE" + fi + if use mariadb ;then + APIDBBUILD="$APIDBBUILD;MARIADB" + APIDBINSTALL="$APIDBINSTALL;DRIVERS" + fi + if use postgresql ;then + APIDBBUILD="$APIDBBUILD;POSTGRESQL" + APIDBINSTALL="$APIDBINSTALL;DRIVERS" + fi + if use commands ;then + APIDBINSTALL="$APIDBINSTALL;COMMANDS" + fi + if use gtk ;then + APIDBINSTALL="$APIDBINSTALL;GTK3" + fi + local mycmakeargs=(-DAPIDB_VERSION_STAGE=alpha -DPLATFORM=LINUX_GENTOO -DAPIDBBUILD=$APIDBBUILD -DAPIDBINSTALL=$APIDBINSTALL) + cmake_src_configure +}