diff options
Diffstat (limited to 'dev-scheme/guile-zlib')
-rw-r--r-- | dev-scheme/guile-zlib/Manifest | 4 | ||||
-rw-r--r-- | dev-scheme/guile-zlib/files/guile-zlib-0.1.0-gentoo.patch | 13 | ||||
-rw-r--r-- | dev-scheme/guile-zlib/guile-zlib-0.1.0.ebuild | 43 | ||||
-rw-r--r-- | dev-scheme/guile-zlib/metadata.xml | 12 |
4 files changed, 72 insertions, 0 deletions
diff --git a/dev-scheme/guile-zlib/Manifest b/dev-scheme/guile-zlib/Manifest new file mode 100644 index 000000000000..036b1fd33a86 --- /dev/null +++ b/dev-scheme/guile-zlib/Manifest @@ -0,0 +1,4 @@ +AUX guile-zlib-0.1.0-gentoo.patch 379 BLAKE2B 02d2736a3eccc61d4999aeea3772fe453c5ca1f342b9cf7572440f99d49c9eb354ee54a3fca43573db7a26ef2ec010dcd339265e80850672c2f058b8700e8089 SHA512 bca1126732448a48dc0885cc372a5deb55e89b1aff3799a050a380ceef64d8e52d1a8db6004cb31280b1573fe461d247556cb64397aaa349f7267a26d6ee931c +DIST guile-zlib-0.1.0.tar.gz 14652 BLAKE2B 10f0c4d312b07415f3846927a3a1d59aa62106bf0e4a4446ba6764486104053da544fc994491af6611154edb459bba7c55e79095695b90c28ce4237e24e3b98b SHA512 bf9201c7c01324a44ae86a673f4d1b92fd6f346d0be9d5a6390cc8be11d79d00a1cdee88c28ceb7fc5b99215198cf3ac368884381933e40babc85a21cbd300e3 +EBUILD guile-zlib-0.1.0.ebuild 1021 BLAKE2B 4370630ccfba3ce0d660d102355c9c6ed10b8864d2839895c7379fb9fd135339ca40886277fc94c969a305abb1ccb25bb58375956c6deb1793ddf158146bd972 SHA512 f6189342a08da9f7496d8cef92b9822d6577bad56f97ddbb5cbfa0b05963497bcdb50d989a7b655ba10158bb81a91de554a5a9e6d28cb7960ff5a7ebe6716040 +MISC metadata.xml 356 BLAKE2B 00ef20bfe70a10b0072b2da74e20aeba0e5292c10b93d76ae9745dd470f1ed1b31cf4b76160d5556305985ad89468403a0f3449c7a87c9c977540eddc28a22c5 SHA512 677dba48d7789520b3f3b57b162e58258a587357885a70e5ff6d4f1a1aca93301b76c51cd51b0add254c2b588ef5b22423a74abaf37c59e7d18f63e0e491147e diff --git a/dev-scheme/guile-zlib/files/guile-zlib-0.1.0-gentoo.patch b/dev-scheme/guile-zlib/files/guile-zlib-0.1.0-gentoo.patch new file mode 100644 index 000000000000..9d63512f8499 --- /dev/null +++ b/dev-scheme/guile-zlib/files/guile-zlib-0.1.0-gentoo.patch @@ -0,0 +1,13 @@ +Not upstreamable hack. Gentoo installs /usr/${libdir}/libz.so +linker script that redirects to /${libdir}/libz.so.1 + +Let's use ELF file directly. It also requires guile to support +direct loading and enforces >=guile-3. +--- a/zlib/config.scm.in ++++ b/zlib/config.scm.in +@@ -20,4 +20,4 @@ + #:export (%libz)) + + (define %libz +- "@LIBZ_LIBDIR@/libz") ++ "@LIBZ_LIBDIR@/libz.so.1") diff --git a/dev-scheme/guile-zlib/guile-zlib-0.1.0.ebuild b/dev-scheme/guile-zlib/guile-zlib-0.1.0.ebuild new file mode 100644 index 000000000000..fb293dfdba44 --- /dev/null +++ b/dev-scheme/guile-zlib/guile-zlib-0.1.0.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="GNU Guile library providing bindings to zlib" +HOMEPAGE="https://notabug.org/guile-zlib/guile-zlib/" +SRC_URI="https://notabug.org/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}"/${PN} + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + >=dev-scheme/guile-2.0.0:= + sys-libs/zlib +" +DEPEND="${RDEPEND}" + +DOCS=( AUTHORS ChangeLog HACKING NEWS README.org ) +PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) + +# guile generates ELF files without use of C or machine code +# It's a portage's false positive. bug #677600 +QA_PREBUILT='*[.]go' + +src_prepare() { + default + + # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=38112 + find "${S}" -name "*.scm" -exec touch {} + || die + + eautoreconf +} + +src_configure() { + # Gentoo installs zlib to /${libdir} and to /usr/${libdir}. + # We need /${libdir} with shared library here. + econf LIBZ_LIBDIR="${EPREFIX}/$(get_libdir)" +} diff --git a/dev-scheme/guile-zlib/metadata.xml b/dev-scheme/guile-zlib/metadata.xml new file mode 100644 index 000000000000..fdc4b2dc1015 --- /dev/null +++ b/dev-scheme/guile-zlib/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> + +<pkgmetadata> + <maintainer type="project"> + <email>scheme@gentoo.org</email> + <name>Gentoo Scheme Project</name> + </maintainer> + <upstream> + <bugs-to>https://notabug.org/guile-zlib/guile-zlib/</bugs-to> + </upstream> +</pkgmetadata> |