diff --git a/dev-libs/octetos-db-maria/octetos-db-maria-1.2.2_beta.ebuild b/dev-libs/octetos-db-maria/octetos-db-maria-1.2.2_beta.ebuild index 69205c95e3..a50af6013e 100644 --- a/dev-libs/octetos-db-maria/octetos-db-maria-1.2.2_beta.ebuild +++ b/dev-libs/octetos-db-maria/octetos-db-maria-1.2.2_beta.ebuild @@ -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 }