From 4cbcc855382a06088e2f016f62cafdbcb7e40665 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 20 Mar 2022 00:40:44 +0000 Subject: gentoo resync : 20.03.2022 --- dev-lua/luadbi/Manifest | 2 +- dev-lua/luadbi/luadbi-0.7.2-r1.ebuild | 103 ++++++++++++++++++++++++++++++++ dev-lua/luadbi/luadbi-0.7.2-r103.ebuild | 103 -------------------------------- 3 files changed, 104 insertions(+), 104 deletions(-) create mode 100644 dev-lua/luadbi/luadbi-0.7.2-r1.ebuild delete mode 100644 dev-lua/luadbi/luadbi-0.7.2-r103.ebuild (limited to 'dev-lua/luadbi') diff --git a/dev-lua/luadbi/Manifest b/dev-lua/luadbi/Manifest index 48342b0f801f..9d3f05320bab 100644 --- a/dev-lua/luadbi/Manifest +++ b/dev-lua/luadbi/Manifest @@ -1,4 +1,4 @@ AUX luadbi-0.7.2-mysql-8.patch 1920 BLAKE2B 5b8f65c9a6966df0bd18487e09effc073fb4ce9ed7913e1b9397ae722a2fe8cc04bcd8f5dce403fc5181fef8f95bdf71bffd00cb5b99932c6cf48e00daa49175 SHA512 436aa613eb420126f158103bc7c36cb3cc2a680c76d32e6239c2b310b7367bd5275c85640645d904ffee059b970095e8176df23dbca8b54aa13f436a619e2f6f DIST luadbi-0.7.2.tar.gz 36462 BLAKE2B 581c7353bfa36b3f6cabed2df78372f8810300bf4525bf8d370e61d469f9daa5a5c40c58916164a8d0a621a61e983e85c67b23ef03f51212be79f09ad8512047 SHA512 891f99cbc8f1b5327ef820641a1608abf41410f2f28584b975cc3cf65154b9bebf6f1b9ca7d1818b9c965738ad700dd17ae042dfd2a7146cf755871ebae535b9 -EBUILD luadbi-0.7.2-r103.ebuild 1969 BLAKE2B 5020fd3a1aa193b8214b81e8d6d3a8e2c93033ea12dbb709ec12446b12471eb79ea951e0e92d1a511a65b5a2b64ab4a49e51f673483798f8ed15d7a7c23485d4 SHA512 23c7eae1eab3e2871c2ef9b73b2648d1765794e32a3d5e3a656045c09a7ec27af14c2bfa84f338e1c247dbd7a3e85893906dbf6d321d13631254a18b8621897c +EBUILD luadbi-0.7.2-r1.ebuild 1969 BLAKE2B 34c5f3718dccaee65f96b12d5ab65d97b252c231026628bef7d600afacf6a0a660bb56ea9981ee9cc3637b87a43ac081166d9be892fbc1f2435f860e15bad299 SHA512 72f84b044b9c6f7853fb8d1db0f84171c7d4a6ef51d18d0da0a726bf54b13673c73a885453f5834518d4a162d8480b211258982d7a0f23c6ea799dcb0820d231 MISC metadata.xml 329 BLAKE2B 63f2efc683cb8c68fc27953c6003708f965328cc4b445e5b62c1cffc85e79c9971ef4bfca6ae6b7a95179c3ad13e9374a2d0f1e06518403902a461d7598ade72 SHA512 c1f454ba961c109a06e0a06e85ad426dc6d6cc5697e6c2ceda3fe003242c1d50ef5c71fa0a84201d0a20b7d22bdf1ab597ff780b681a3a32e08c14457f7a2081 diff --git a/dev-lua/luadbi/luadbi-0.7.2-r1.ebuild b/dev-lua/luadbi/luadbi-0.7.2-r1.ebuild new file mode 100644 index 000000000000..2580d774ea53 --- /dev/null +++ b/dev-lua/luadbi/luadbi-0.7.2-r1.ebuild @@ -0,0 +1,103 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LUA_COMPAT=( lua5-{1..4} luajit ) + +inherit lua toolchain-funcs + +DESCRIPTION="A database interface library for Lua" +HOMEPAGE="https://github.com/mwild1/luadbi" +SRC_URI="https://github.com/mwild1/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc x86" +IUSE="mysql postgres +sqlite test" +REQUIRED_USE=" + ${LUA_REQUIRED_USE} + || ( mysql postgres sqlite ) +" +RESTRICT="test" + +RDEPEND=" + ${LUA_DEPS} + mysql? ( dev-db/mysql-connector-c:0= ) + postgres? ( dev-db/postgresql:= ) + sqlite? ( dev-db/sqlite ) +" + +DEPEND="${RDEPEND}" + +BDEPEND=" + virtual/pkgconfig + test? ( + dev-lua/busted[${LUA_USEDEP}] + dev-lua/luarocks + ) +" + +PATCHES=( "${FILESDIR}/${PN}-0.7.2-mysql-8.patch" ) + +src_prepare() { + default + + # Respect users CFLAGS + sed -e 's/-g //' -e 's/-O2 //g' -i Makefile || die + + lua_copy_sources +} + +lua_src_compile() { + pushd "${BUILD_DIR}" || die + + tc-export AR CC + + local myemakeargs=( + "LUA_INC=$(lua_get_CFLAGS)" + ) + + use mysql && emake ${myemakeargs} MYSQL_INC="-I$(mariadb_config --libs)" mysql + use postgres && emake ${myemakeargs} PSQL_INC="-I$(pg_config --libdir)" psql + use sqlite emake ${myemakeargs} SQLITE3_INC="-I/usr/include" sqlite + + popd +} + +src_compile() { + lua_foreach_impl lua_src_compile +} + +lua_src_test() { + pushd "${BUILD_DIR}" || die + cd "${S}"/tests && ${ELUA} run_tests.lua || die + popd +} + +src_test() { + lua_foreach_impl lua_src_test +} + +lua_src_install() { + pushd "${BUILD_DIR}" || die + + local myemakeargs=( + DESTDIR="${ED}" + LUA_CDIR="$(lua_get_cmod_dir)" + LUA_INC="$(lua_get_CFLAGS)" + LUA_LDIR="$(lua_get_lmod_dir)" + ) + + use mysql && emake ${myemakeargs[@]} install_mysql + use postgres && emake ${myemakeargs[@]} install_psql + use sqlite && emake ${myemakeargs[@]} install_sqlite3 + + popd +} + +src_install() { + lua_foreach_impl lua_src_install + + einstalldocs +} diff --git a/dev-lua/luadbi/luadbi-0.7.2-r103.ebuild b/dev-lua/luadbi/luadbi-0.7.2-r103.ebuild deleted file mode 100644 index c158bd4ebfd0..000000000000 --- a/dev-lua/luadbi/luadbi-0.7.2-r103.ebuild +++ /dev/null @@ -1,103 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -LUA_COMPAT=( lua5-{1..4} luajit ) - -inherit lua toolchain-funcs - -DESCRIPTION="A database interface library for Lua" -HOMEPAGE="https://github.com/mwild1/luadbi" -SRC_URI="https://github.com/mwild1/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="amd64 arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc x86" -IUSE="mysql postgres +sqlite test" -REQUIRED_USE=" - ${LUA_REQUIRED_USE} - || ( mysql postgres sqlite ) -" -RESTRICT="test" - -RDEPEND=" - ${LUA_DEPS} - mysql? ( dev-db/mysql-connector-c:0= ) - postgres? ( dev-db/postgresql:= ) - sqlite? ( dev-db/sqlite ) -" - -DEPEND="${RDEPEND}" - -BDEPEND=" - virtual/pkgconfig - test? ( - dev-lua/busted[${LUA_USEDEP}] - dev-lua/luarocks - ) -" - -PATCHES=( "${FILESDIR}/${PN}-0.7.2-mysql-8.patch" ) - -src_prepare() { - default - - # Respect users CFLAGS - sed -e 's/-g //' -e 's/-O2 //g' -i Makefile || die - - lua_copy_sources -} - -lua_src_compile() { - pushd "${BUILD_DIR}" || die - - tc-export AR CC - - local myemakeargs=( - "LUA_INC=$(lua_get_CFLAGS)" - ) - - use mysql && emake ${myemakeargs} MYSQL_INC="-I$(mariadb_config --libs)" mysql - use postgres && emake ${myemakeargs} PSQL_INC="-I$(pg_config --libdir)" psql - use sqlite emake ${myemakeargs} SQLITE3_INC="-I/usr/include" sqlite - - popd -} - -src_compile() { - lua_foreach_impl lua_src_compile -} - -lua_src_test() { - pushd "${BUILD_DIR}" || die - cd "${S}"/tests && ${ELUA} run_tests.lua || die - popd -} - -src_test() { - lua_foreach_impl lua_src_test -} - -lua_src_install() { - pushd "${BUILD_DIR}" || die - - local myemakeargs=( - DESTDIR="${ED}" - LUA_CDIR="$(lua_get_cmod_dir)" - LUA_INC="$(lua_get_CFLAGS)" - LUA_LDIR="$(lua_get_lmod_dir)" - ) - - use mysql && emake ${myemakeargs[@]} install_mysql - use postgres && emake ${myemakeargs[@]} install_psql - use sqlite && emake ${myemakeargs[@]} install_sqlite3 - - popd -} - -src_install() { - lua_foreach_impl lua_src_install - - einstalldocs -} -- cgit v1.2.3