From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 207E3158089 for ; Thu, 14 Sep 2023 09:00:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3767D2BC019; Thu, 14 Sep 2023 09:00:26 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1E30B2BC019 for ; Thu, 14 Sep 2023 09:00:26 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4AA56335D3A for ; Thu, 14 Sep 2023 09:00:25 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 870511189 for ; Thu, 14 Sep 2023 09:00:23 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1694681913.91d2178cc61c4705cfbc8cb242656c7b2cc930d6.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/libredwg/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-gfx/libredwg/Manifest media-gfx/libredwg/libredwg-0.12.5.6321.ebuild X-VCS-Directories: media-gfx/libredwg/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: 91d2178cc61c4705cfbc8cb242656c7b2cc930d6 X-VCS-Branch: master Date: Thu, 14 Sep 2023 09:00:23 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2e7c1e87-dfd8-4ca7-ac23-32864b4ab4c4 X-Archives-Hash: 6d2345784a8742eeeeab52b1a141ab9e commit: 91d2178cc61c4705cfbc8cb242656c7b2cc930d6 Author: Andrew Ammerlaan gentoo org> AuthorDate: Thu Sep 14 08:58:33 2023 +0000 Commit: Andrew Ammerlaan gentoo org> CommitDate: Thu Sep 14 08:58:33 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91d2178c media-gfx/libredwg: add 0.12.5.6321 Closes: https://bugs.gentoo.org/909301 Signed-off-by: Andrew Ammerlaan gentoo.org> media-gfx/libredwg/Manifest | 1 + media-gfx/libredwg/libredwg-0.12.5.6321.ebuild | 114 +++++++++++++++++++++++++ 2 files changed, 115 insertions(+) diff --git a/media-gfx/libredwg/Manifest b/media-gfx/libredwg/Manifest index 159e5af27422..7086d173faed 100644 --- a/media-gfx/libredwg/Manifest +++ b/media-gfx/libredwg/Manifest @@ -1,4 +1,5 @@ DIST libredwg-0.12.5.5865.tar.gz 18891945 BLAKE2B d779963d29c484e806549a530655041000c79277bbd53795b81b211e63c18e9aa112fa6b6f495dd6f950ac70019cae000b28c76c531d0d942e349ab92295e10a SHA512 24443ca405b33347f43dddf46346b23cb76e5209a7e4451bb5cfc467569df0784cea86a96aaf349aa7b59adb5c38059292ca3c8a831796232fd29b3fad6240b6 DIST libredwg-0.12.5.6149.tar.gz 18995120 BLAKE2B 5e2698ef3edcdc99e658ac3d9f6ee4090b8e82518c655e4e3d837477b770adae3b159fab98ed3a802d61fcc831dfad3560a93eb268e8ac60aa32f2bb3f74b02a SHA512 e5deca193239c686ecb21aea9bd03005b1983fa9e5eb9c5d0fa4ecf00b3a990f4caaae3abed62bbc7bdf720f9e9d17466d519aa8390fa0109241dcc0eb0a4b40 +DIST libredwg-0.12.5.6321.tar.gz 20413375 BLAKE2B 4645228ca6e4b8624df33b5584b3645a7e40cfa4840b7fd2473cb1b062c61973d89e0fdaf108ca8105835b3c5f4197d030339798c08a2c790b0ead2595b69bd4 SHA512 25ac81e4a6db1f0dea201a24b3cff7a865a18e67e1fa8fbdcecc4e95542812eb66907612593c9afa93aad51fa0e107226b495a477ceed76af4b8b71eadd99e5e DIST libredwg-0.12.5.tar.gz 16855123 BLAKE2B 2ca0bfafdb0ca6e412d3aaf7df21f80a2eed4bad795bffacc1c767f23dc555b35b2aeedb35dffab099c5dbab2890f9363cfc1508c3fec16a6ff51ce79a272e3e SHA512 0b5da6e863410d9ce012d311e921a39fa0d9cb6d96d17f1df70ca767c1768cd625e35503f24830a6a33400ede92d14b36ce87b92f177a5af7e6d4573920cf50c DIST libredwg-85695f3d5903b1cd5b4030efe50db3b4f5f3c928.tar.gz 12597 BLAKE2B cd01f6c446d5d129545fdae07c0101d133e1f4e69ee62e94c27c3c2853dcc30854f40aed0c6f38f6594c5f5eb9e7b2d18d3b2e4f487b7bf1a3f7f39facde38bc SHA512 1d08cfa6216e0fe671dab77a0bd0b4ef0c4eb174878eba909c680e0ee93a82079b3cbf60afe2de7b0078258de8bcc588961e59cf0c14fe5f2d1f70db639ef95a diff --git a/media-gfx/libredwg/libredwg-0.12.5.6321.ebuild b/media-gfx/libredwg/libredwg-0.12.5.6321.ebuild new file mode 100644 index 000000000000..61cd225885db --- /dev/null +++ b/media-gfx/libredwg/libredwg-0.12.5.6321.ebuild @@ -0,0 +1,114 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) +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 + --disable-werror + $(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 +}