diff options
author | Sam James <sam@gentoo.org> | 2023-12-20 03:20:09 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-12-20 03:26:53 +0000 |
commit | 15ce2a687ddc3acccde171d6103304b6684d1f4c (patch) | |
tree | f6e39e6cbb0c4ae928bef3e7ae814a3fbd7b2b74 /dev-cpp | |
parent | dev-cpp/libodb: add 2.5.0_beta25 (diff) | |
download | gentoo-15ce2a687ddc3acccde171d6103304b6684d1f4c.tar.gz gentoo-15ce2a687ddc3acccde171d6103304b6684d1f4c.tar.bz2 gentoo-15ce2a687ddc3acccde171d6103304b6684d1f4c.zip |
dev-cpp/libodb-sqlite: add 2.5.0_beta25
While at it, add some small bump instructions to start.
Bug: https://bugs.gentoo.org/916146
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-cpp')
-rw-r--r-- | dev-cpp/libodb-sqlite/Manifest | 2 | ||||
-rw-r--r-- | dev-cpp/libodb-sqlite/libodb-sqlite-2.5.0_beta25.ebuild | 124 |
2 files changed, 126 insertions, 0 deletions
diff --git a/dev-cpp/libodb-sqlite/Manifest b/dev-cpp/libodb-sqlite/Manifest index beffdc9e332d..c8662032c79d 100644 --- a/dev-cpp/libodb-sqlite/Manifest +++ b/dev-cpp/libodb-sqlite/Manifest @@ -1,4 +1,6 @@ DIST build2-toolchain-0.13.0.tar.xz 4218940 BLAKE2B ed27290df21e5db843325b3e42c43c6934ce8f2b9b157538b921f9cfe3a7dccc3b56e261053373553cbd7fbff39e912ffe2282f812d0e6f158749ed5748d5e33 SHA512 0485872acd40beb700739b2995f76efcc9811dd52a38ee049576e45fcb5a7d7ae9c718beca8aeab9ab3f1c5e0270d3946f2335f88ec19476577c195417c2dbd4 DIST build2-toolchain-0.14.0.tar.xz 4687616 BLAKE2B 98b2ec93c18027cbb3294650b3ad5d3dc97c1f06a6580437eac2db0297d3517cf327179f3a7c6efc611bffed5d028a034382d408ca58a976311d50a26534323c SHA512 d238a4ddfce8506b51b3b775738e818e7e0b36961a09ae0912c0c8688057b8393afebd4c0a28c6e6827c2e72ad5b82bc5e1231f798a66c2bb86b2b1e4ece73ef +DIST build2-toolchain-0.15.0.tar.xz 5122496 BLAKE2B 6170ccf7e251e189369873ae81a4c24fdfd7b3beb38728da0c40284a8e6329d1dd152e861bbb5d2dbc0b4931af6e72c191c52abe98111c5dbf7922df888b046e SHA512 3dba63813a227a1542bcec52406c98e6d61fb366f0fe2617fac130906d0811d00356330bcd03faabf83f30604044f92e40476669a4b04060f83ede7a4db88ecb DIST libodb-sqlite-2.5.0-b.19.tar.gz 74822 BLAKE2B e9a5d3be8b453bcdc026b6349572c3bd88eb468329216bee535f4e1ac72bfe6c88b485efe2476303600209df42023099fdda88b410d9295e8cab73ed9dd03fc0 SHA512 be6dbc731d9f45dfc7e9246f404edad78d59c9d38cff6599aed56d60d4f0e8391336e2da3608f66d74559f0a8d34243eb38e7e6a1221188959321810193ae901 DIST libodb-sqlite-2.5.0-b.21.tar.gz 79975 BLAKE2B f9dca03ba909276ed137c15cbe32a8227b688f8b1c2d3e98b7040f3463359400fd5116088ae77722651589788e2d8e1367bc135ed2104dbc2d624ff4910f3fce SHA512 a84ea3847c64e5beffcb1f3958583bc02d371a4eb354ad32d0083b01e27362905bdcf09913c9b4cd6fc977eeaba95fd46cf953332e4fd0d673ca2f7521c71a1f +DIST libodb-sqlite-2.5.0-b.25.tar.gz 77096 BLAKE2B 594e805428c4b6f20cefa9838175831278166e6d5612be4a79da972ca85ca95f6f8b18adadfd11ba4adcb7751f83bea8b5e3ce1f6e7ae76c5b361fcabfc633be SHA512 886119c8524939fa7c094afc157ada1797dca338d6e1a488aca8552615e2050c9d555e3784226e2d28faee58019a8e51b990ee9df1af1bdfe00d591d7268d673 diff --git a/dev-cpp/libodb-sqlite/libodb-sqlite-2.5.0_beta25.ebuild b/dev-cpp/libodb-sqlite/libodb-sqlite-2.5.0_beta25.ebuild new file mode 100644 index 000000000000..c1b349bd0db1 --- /dev/null +++ b/dev-cpp/libodb-sqlite/libodb-sqlite-2.5.0_beta25.ebuild @@ -0,0 +1,124 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_P="${PN}-$(ver_cut 1-3)-b.$(ver_cut 5)" + +# Compare BUILD2_PV with the version in the tarball in the 'manifest' file. +# e.g. from 2.5.0_beta25's manifest: +# +depends: * build2 >= 0.15.0 +# +depends: * bpkg >= 0.15.0 +BUILD2_PN=build2-toolchain +BUILD2_PV="0.15.0" +BUILD2_P="${BUILD2_PN}-${BUILD2_PV}" + +inherit toolchain-funcs multiprocessing + +DESCRIPTION="Common ODB runtime library" +HOMEPAGE="https://codesynthesis.com/products/odb/" +SRC_URI=" + https://pkg.cppget.org/1/beta/odb/${MY_P}.tar.gz + https://download.build2.org/${BUILD2_PV}/${BUILD2_P}.tar.xz +" +BS="${WORKDIR}/${BUILD2_P}" +S="${WORKDIR}/${MY_P}" + +LICENSE="|| ( Code-Synthesis-ODB GPL-2 )" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND=" + dev-cpp/libodb + dev-db/sqlite:3 +" +BDEPEND="virtual/pkgconfig" +RDEPEND=" + ${DEPEND} + !<dev-util/build2-${BUILD2_PV} +" + +b() { + local myargs=( + --jobs $(makeopts_jobs) + --verbose 3 + ) + export LD_LIBRARY_PATH="${BS}/libbutl/libbutl:${BS}/build2/libbuild2:${BS}/build2/libbuild2/bash:${BS}/build2/libbuild2/in:${BS}/build2/libbuild2/bin:${BS}/build2/libbuild2/c:${BS}/build2/libbuild2/cc:${BS}/build2/libbuild2/cxx:${BS}/build2/libbuild2/version:${BS}/libpkgconf/libpkgconf:${LD_LIBRARY_PATH}" + set -- "${BS}"/build2/build2/b-boot "${@}" "${myargs[@]}" + echo "${@}" + "${@}" || die "${@} failed" +} + +src_prepare() { + cd "${WORKDIR}" || die + for i in ${BUILD2_P}/libodb-sqlite/buildfile ${MY_P}/buildfile; do + printf 'cxx.libs += %s\ncxx.poptions += %s\n' \ + "-L${EPREFIX}/usr/$(get_libdir) $($(tc-getPKG_CONFIG) sqlite3 --libs)" \ + "$($(tc-getPKG_CONFIG) sqlite3 --cflags)" >> \ + ${i} \ + || die + done + + cd "${BS}" || die + eapply "${FILESDIR}"/build2-0.13.0_alpha0_pre20200710-nousrlocal.patch + sed \ + -e 's:libsqlite3[/]\?::' \ + -i buildfile build/bootstrap.build \ + || die + + if has_version dev-util/pkgconf; then + for i in build2/build2/buildfile build2/libbuild2/buildfile; do + printf 'cxx.libs += %s\ncxx.poptions += %s\n' \ + "$($(tc-getPKG_CONFIG) libpkgconf --libs)" \ + "$($(tc-getPKG_CONFIG) libpkgconf --cflags)" >> \ + "${i}" \ + || die + done + sed \ + -e 's:libpkgconf[/]\?::' \ + -i buildfile build/bootstrap.build \ + || die + fi + + cd "${S}" || die + default +} + +src_configure() { + pushd ${BS} || die + emake -C build2 -f bootstrap.gmake \ + CXX=$(tc-getCXX) \ + CXXFLAGS="${CXXFLAGS}" \ + LDFLAGS="${LDFLAGS}" + popd || die + + b configure \ + config.cxx="$(tc-getCXX)" \ + config.cxx.coptions="${CXXFLAGS}" \ + config.cxx.loptions="${LDFLAGS}" \ + config.c="$(tc-getCC)" \ + config.cc.coptions="${CFLAGS}" \ + config.cc.loptions="${LDFLAGS}" \ + config.bin.ar="$(tc-getAR)" \ + config.bin.ranlib="$(tc-getRANLIB)" \ + config.bin.lib=shared \ + config.install.root="${EPREFIX}"/usr \ + config.install.lib="${EPREFIX}"/usr/$(get_libdir) \ + config.install.doc="${EPREFIX}"/usr/share/doc/${PF} +} + +src_compile() { + b update-for-install + use test && b update-for-test +} + +src_test() { + b test +} + +src_install() { + b install \ + config.install.chroot="${D}" +} |