dev-libs/octetos-db-maria: simplify ebuild

Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
This commit is contained in:
Andrew Ammerlaan
2020-05-05 11:18:51 +02:00
parent 3cd9065473
commit df218b782b

View File

@@ -2,28 +2,30 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools
MYPV="${PV/_beta/-alpha.6}"
MYPN="${PN/-maria}"
MYP="${MYPN}-${MYPV}"
DESCRIPTION="C++ library for Database Acces."
HOMEPAGE="https://github.com/azaeldevel/octetos-db"
SRC_URI="https://github.com/azaeldevel/octetos-db/archive/1.2.2-alpha.6.tar.gz"
SRC_URI="https://github.com/azaeldevel/${MYPN}/archive/${MYPV}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
DEPEND="dev-libs/octetos-core dev-db/mariadb-connector-c"
RDEPEND="${DEPEND}"
BDEPEND=""
src_unpack() {
unpack ${A}
ln -s octetos-db-1.2.2-alpha.6 $P
}
src_configure() {
autoreconf -fi
if [[ -x ${ECONF_SOURCE:-.}/configure ]] ; then
econf --with-mariadb
fi
}
src_compile() {
if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
emake || die "emake failed"
fi
S="${WORKDIR}/${MYP}"
src_prepare() {
default
eautoreconf -fi
}