commit: 6d143c9104e4e3fc8ade50620ee24afd140b6648 Author: Azael Reyes <azael.devel <AT> gmail <DOT> com> AuthorDate: Fri Sep 11 07:45:23 2020 +0000 Commit: Azael Reyes <azael.devel <AT> gmail <DOT> com> CommitDate: Fri Sep 11 07:45:23 2020 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6d143c91
app-misc/apidb: fixing packing. Signed-off-by: Azael Reyes <azael.devel <AT> gmail.com> Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Azael Reyes <azael.devel <AT> gmail.com> app-misc/apidb/Manifest | 1 + app-misc/apidb/apidb-5.0.0_alpha8.ebuild | 73 ++++++++++++++++++++++++++++++++ app-misc/apidb/metadata.xml | 6 ++- 3 files changed, 78 insertions(+), 2 deletions(-) diff --git a/app-misc/apidb/Manifest b/app-misc/apidb/Manifest index 21f2aca4..8cacbc60 100644 --- a/app-misc/apidb/Manifest +++ b/app-misc/apidb/Manifest @@ -1,2 +1,3 @@ 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-alpha8.tar.gz 165674 BLAKE2B 10227665ddf1c2b17cacb4b52a4fb0ef06125066546cfc5ce919e2ce6bcba27dabdb471edee4a405f05208333fd6e719981d90384194dc6fab62791abc2eb671 SHA512 e1ef0a916b64ba116efad641b64446656a1e57c0e1c0d65cceafb59ec04deb142de1a11e625c4e8c214b36dcbf9adb4d413283d7a22f0a090098cebfc021e182 diff --git a/app-misc/apidb/apidb-5.0.0_alpha8.ebuild b/app-misc/apidb/apidb-5.0.0_alpha8.ebuild new file mode 100644 index 00000000..7aa63d03 --- /dev/null +++ b/app-misc/apidb/apidb-5.0.0_alpha8.ebuild @@ -0,0 +1,73 @@ +# 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/_alpha8/-alpha8}" +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 gui corelibs" + +DEPEND="" +RDEPEND="${DEPEND}" +BDEPEND=" + dev-libs/libxml2 + dev-libs/boost + sys-devel/bison + sys-devel/flex + gui? ( 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 gui ;then + APIDBINSTALL="$APIDBINSTALL;GUI" + fi + local mycmakeargs=(-DAPIDB_VERSION_STAGE=alpha -DPLATFORM=GENTOO -DAPIDBBUILD=$APIDBBUILD -DAPIDBINSTALL=$APIDBINSTALL) + cmake_src_configure +} diff --git a/app-misc/apidb/metadata.xml b/app-misc/apidb/metadata.xml index 7e7ab6d0..0b42eb8a 100644 --- a/app-misc/apidb/metadata.xml +++ b/app-misc/apidb/metadata.xml @@ -6,7 +6,9 @@ <name>Azael Reyes</name> </maintainer> <use> - <flag name="mariadb">Enable MariaDB conection</flag> - <flag name="postgresql">Enable PostgreSQL conection</flag> + <flag name="mariadb">Build MariaDB Layer</flag> + <flag name="postgresql">Build PostgreSQL Layer</flag> + <flag name="commands">Build commands</flag> + <flag name="corelibs">Build Abtract layer</flag> </use> </pkgmetadata>