From 0f558761aa2dee1017b4751e4017205e015a9560 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 29 Jun 2022 12:04:12 +0100 Subject: gentoo resync : 29.12.2022 --- media-gfx/libredwg/Manifest | 2 +- media-gfx/libredwg/libredwg-0.12.5-r1.ebuild | 113 +++++++++++++++++++++++++++ media-gfx/libredwg/libredwg-0.12.5.ebuild | 106 ------------------------- 3 files changed, 114 insertions(+), 107 deletions(-) create mode 100644 media-gfx/libredwg/libredwg-0.12.5-r1.ebuild delete mode 100644 media-gfx/libredwg/libredwg-0.12.5.ebuild (limited to 'media-gfx/libredwg') diff --git a/media-gfx/libredwg/Manifest b/media-gfx/libredwg/Manifest index 4ea0dd579cfc..ca39231fe5f8 100644 --- a/media-gfx/libredwg/Manifest +++ b/media-gfx/libredwg/Manifest @@ -2,5 +2,5 @@ DIST libredwg-0.12.4.tar.gz 18318912 BLAKE2B 21ff443881c19782c747ddf880eba230902 DIST libredwg-0.12.5.tar.gz 16855123 BLAKE2B 2ca0bfafdb0ca6e412d3aaf7df21f80a2eed4bad795bffacc1c767f23dc555b35b2aeedb35dffab099c5dbab2890f9363cfc1508c3fec16a6ff51ce79a272e3e SHA512 0b5da6e863410d9ce012d311e921a39fa0d9cb6d96d17f1df70ca767c1768cd625e35503f24830a6a33400ede92d14b36ce87b92f177a5af7e6d4573920cf50c DIST libredwg-85695f3d5903b1cd5b4030efe50db3b4f5f3c928.tar.gz 12597 BLAKE2B cd01f6c446d5d129545fdae07c0101d133e1f4e69ee62e94c27c3c2853dcc30854f40aed0c6f38f6594c5f5eb9e7b2d18d3b2e4f487b7bf1a3f7f39facde38bc SHA512 1d08cfa6216e0fe671dab77a0bd0b4ef0c4eb174878eba909c680e0ee93a82079b3cbf60afe2de7b0078258de8bcc588961e59cf0c14fe5f2d1f70db639ef95a EBUILD libredwg-0.12.4.ebuild 1977 BLAKE2B c2bee6ce5a6807cb650689968faf922687e77547a0541d54beab6bd8a8eaf97ec018ba14da08d51508243d68e081f52cf2b85c32a99be429b43d3a01c94e46c2 SHA512 516860beaa723735a67322d52bed2168817a77bac2140cd93d39e8b272c41fa0ec036c50f9810c9df286bb4da805914de744bd9f8cc3be125f5e9dd0838fc709 -EBUILD libredwg-0.12.5.ebuild 2542 BLAKE2B 92420c01b1659c2d001f1b1d88de1185efa5d2195d26ad8d6df74110d8358fe6aab3e56d0187e1170dc28c11431cb2733ef07c56c95551e40ca5814c668e7c8a SHA512 ffdc9c6f859d91d8c1b2e1c2df7fa96489d73fd4d87c536e18b9db8c86268f16b6b304fbe40c8174bc6aee9e876c74dd9e95648a542eb54c6247bc3b5b2e6985 +EBUILD libredwg-0.12.5-r1.ebuild 2750 BLAKE2B b9bf273f206d35eb464f8059c5b8a71270c67b91e1ac3b0a85985e2c315e859dae0a14837f11ebb4a13a2c16f3251277f03a8fe88760b948e105d290e9a81904 SHA512 084684abeb7549b900b39dbdf10bef1b2ab0e0235803c1b053c46a2468ae182bf4f1adaf781caf19d4d149a19fa8c33dcfd3eae7f438f1b95bf2de4f042d3a6d MISC metadata.xml 406 BLAKE2B c39713a8733c296d7b9c8d87210f1bec2bcebf415d2dcb6e6326fd6a89e9b84b44bffd781cd953de35894220b51277d39c3fd80ad8c9fe8f22cb29fdb920467c SHA512 a474d5abfc3db689b006dad09dc5ab003526141269d30e6acb7c241054be518a21f6a034ed9939a75098386cd01012d460bf70e0c12f0f14023ac48682c44e81 diff --git a/media-gfx/libredwg/libredwg-0.12.5-r1.ebuild b/media-gfx/libredwg/libredwg-0.12.5-r1.ebuild new file mode 100644 index 000000000000..677d324e8fe6 --- /dev/null +++ b/media-gfx/libredwg/libredwg-0.12.5-r1.ebuild @@ -0,0 +1,113 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..11} ) +DOCS_BUILDER="doxygen" +# File is hardcoded to be run from ../ so we use this instead of DOCS_DIR +DOCS_CONFIG_NAME="doc/Doxyfile" + +inherit autotools docs python-single-r1 perl-functions + +JSMN_COMMIT="85695f3d5903b1cd5b4030efe50db3b4f5f3c928" + +DESCRIPTION="C library to handle DWG files" +HOMEPAGE="https://www.gnu.org/software/libredwg/" +SRC_URI=" + https://github.com/LibreDWG/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz + https://github.com/zserge/jsmn/archive/${JSMN_COMMIT}.tar.gz -> ${PN}-${JSMN_COMMIT}.tar.gz +" + +LICENSE="GPL-3 MIT" +SLOT="0" +KEYWORDS="~amd64" + +# https://github.com/LibreDWG/libredwg/issues/342 +RESTRICT="test" + +IUSE="debug python perl static-libs" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND=" + python? ( ${PYTHON_DEPS} ) + perl? ( dev-lang/perl ) + dev-libs/libpcre2 + dev-libs/pslib +" +DEPEND="${RDEPEND} + python? ( dev-lang/swig ) + perl? ( dev-lang/swig ) +" +BDEPEND="|| ( + sys-devel/gcc[sanitize] + sys-libs/compiler-rt-sanitizers[asan(-)] + ) + dev-vcs/git +" + +src_unpack() { + # Build system really wants jsmn to be here + default + rm -r "${S}/jsmn" || die + mv "${WORKDIR}/jsmn-${JSMN_COMMIT}" "${S}/jsmn" || die +} + +src_prepare() { + default + # Fix variable references itself error, fails in src_install otherwise. + sed -i -e 's/TEXINPUTS="$(TEXINPUTS)$(PATH_SEPARATOR)$(TEXINFO_TEX_DIR)"/TEXINPUTS="$(PATH_SEPARATOR)$(TEXINFO_TEX_DIR)"/g' doc/Makefile.am || die + # https://github.com/LibreDWG/libredwg/issues/404 + # Workaround: release tarball does not include dwg2ps.1. + # Upstream autotools stuff has to be run in git repo + git init -q || die + git config --global user.email "larry@gentoo.org" || die + git config --global user.name "Larry the Cow" || die + git add . || die + git commit -qm 'init' || die + git tag ${PV} || die + eautoreconf +} + +src_configure() { + perl_set_version + local myconf=( + --enable-write + --enable-dxf + --enable-json + --disable-gcov + $(use_enable !debug release) + $(use_enable debug trace) + $(use_enable debug) + $(use_enable static-libs static) + $(use_enable python python "${EPYTHON}") + $(usex perl "--with-perl-install=vendor" "--with-perl-install=no") + ) + + if use python || use perl; then + myconf+=( --enable-bindings ) + else + myconf+=( --disable-bindings ) + fi + + econf ${myconf[@]} +} + +src_compile() { + perl_set_version + emake + docs_compile +} + +src_install() { + perl_set_version + default + use python && python_optimize + # remove .la files if static-libs disabled + if ! use static-libs; then + rm "${ED}/usr/$(get_libdir)/libredwg.la" || die + if use python; then + rm "${D}/$(python_get_sitedir)/_LibreDWG.la" || die + fi + fi +} diff --git a/media-gfx/libredwg/libredwg-0.12.5.ebuild b/media-gfx/libredwg/libredwg-0.12.5.ebuild deleted file mode 100644 index 8f14bdef8e11..000000000000 --- a/media-gfx/libredwg/libredwg-0.12.5.ebuild +++ /dev/null @@ -1,106 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{8..10} ) -DOCS_BUILDER="doxygen" -# File is hardcoded to be run from ../ so we use this instead of DOCS_DIR -DOCS_CONFIG_NAME="doc/Doxyfile" - -inherit autotools docs python-single-r1 perl-functions - -JSMN_COMMIT="85695f3d5903b1cd5b4030efe50db3b4f5f3c928" - -DESCRIPTION="C library to handle DWG files" -HOMEPAGE="https://www.gnu.org/software/libredwg/" -SRC_URI=" - https://github.com/LibreDWG/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz - https://github.com/zserge/jsmn/archive/${JSMN_COMMIT}.tar.gz -> ${PN}-${JSMN_COMMIT}.tar.gz -" - -LICENSE="GPL-3 MIT" -SLOT="0" -KEYWORDS="~amd64" - -# https://github.com/LibreDWG/libredwg/issues/342 -RESTRICT="test" - -IUSE="debug python perl static-libs" -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" - -RDEPEND=" - python? ( ${PYTHON_DEPS} ) - perl? ( dev-lang/perl ) - dev-libs/libpcre2 - dev-libs/pslib -" -DEPEND="${RDEPEND} - python? ( dev-lang/swig ) - perl? ( dev-lang/swig ) -" -BDEPEND="|| ( - sys-devel/gcc[sanitize] - sys-libs/compiler-rt-sanitizers[asan(-)] - ) - dev-vcs/git -" - -src_unpack() { - # Build system really wants jsmn to be here - default - rm -r "${S}/jsmn" || die - mv "${WORKDIR}/jsmn-${JSMN_COMMIT}" "${S}/jsmn" || die -} - -src_prepare() { - default - # Fix variable references itself error, fails in src_install otherwise. - sed -i -e 's/TEXINPUTS="$(TEXINPUTS)$(PATH_SEPARATOR)$(TEXINFO_TEX_DIR)"/TEXINPUTS="$(PATH_SEPARATOR)$(TEXINFO_TEX_DIR)"/g' doc/Makefile.am || die - # https://github.com/LibreDWG/libredwg/issues/404 - # Workaround: release tarball does not include dwg2ps.1. - # Upstream autotools stuff has to be run in git repo - git init -q || die - git config --global user.email "larry@gentoo.org" || die - git config --global user.name "Larry the Cow" || die - git add . || die - git commit -qm 'init' || die - git tag ${PV} || die - eautoreconf -} - -src_configure() { - perl_set_version - local myconf=( - --enable-write - --enable-dxf - --enable-json - --disable-gcov - $(use_enable !debug release) - $(use_enable debug trace) - $(use_enable debug) - $(use_enable static-libs static) - $(use_enable python python "${EPYTHON}") - $(usex perl "--with-perl-install=vendor" "--with-perl-install=no") - ) - - if use python || use perl; then - myconf+=( --enable-bindings ) - else - myconf+=( --disable-bindings ) - fi - - econf ${myconf[@]} -} - -src_compile() { - perl_set_version - emake - docs_compile -} - -src_install() { - perl_set_version - default - use python && python_optimize -} -- cgit v1.2.3