commit:     df218b782b8dae7100d25e6515576921e71bd061
Author:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Tue May  5 09:18:51 2020 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Tue May  5 09:18:51 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=df218b78

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

Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>

 .../octetos-db-maria-1.2.2_beta.ebuild             | 32 ++++++++++++----------
 1 file changed, 17 insertions(+), 15 deletions(-)

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 69205c9..a50af60 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
 }

Reply via email to