public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-scheme/guile-libyaml/
@ 2022-02-15 15:31 Maciej Barć
  0 siblings, 0 replies; 2+ messages in thread
From: Maciej Barć @ 2022-02-15 15:31 UTC (permalink / raw
  To: gentoo-commits

commit:     3a1ec12abcf6e7953b8d2eaed7a149d5d68e2849
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 15 15:28:53 2022 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Tue Feb 15 15:31:12 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a1ec12a

dev-scheme/guile-libyaml: new package; add version 20211124

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 dev-scheme/guile-libyaml/Manifest                  |  1 +
 .../guile-libyaml/guile-libyaml-20211124.ebuild    | 64 ++++++++++++++++++++++
 dev-scheme/guile-libyaml/metadata.xml              | 13 +++++
 3 files changed, 78 insertions(+)

diff --git a/dev-scheme/guile-libyaml/Manifest b/dev-scheme/guile-libyaml/Manifest
new file mode 100644
index 000000000000..b8e2f7deeefe
--- /dev/null
+++ b/dev-scheme/guile-libyaml/Manifest
@@ -0,0 +1 @@
+DIST guile-libyaml-20211124.tar.gz 6221 BLAKE2B 12e35af8495543f90289bd437d27177901f01090c66ba113d128258c7bd448513332698659b48438a92b75d78dcd686b7ffad66e7c7adb2374f504b1e29485ad SHA512 17e6eef46e412db7be877bf54dc59f4ddb3f2235bb54a33f79aa0e938ad65f5fd68fc4247e055ecde3de37d8d872ccda5f0205d5f546d97458890b0b97764d0d

diff --git a/dev-scheme/guile-libyaml/guile-libyaml-20211124.ebuild b/dev-scheme/guile-libyaml/guile-libyaml-20211124.ebuild
new file mode 100644
index 000000000000..36fd680e32a4
--- /dev/null
+++ b/dev-scheme/guile-libyaml/guile-libyaml-20211124.ebuild
@@ -0,0 +1,64 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+H=2bdacb72a65ab63264b2edc9dac9692df7ec9b3e
+
+DESCRIPTION="Simple yaml module for Guile using the ffi-helper from nyacc"
+HOMEPAGE="https://github.com/mwette/guile-libyaml/"
+SRC_URI="https://github.com/mwette/${PN}/archive/${H}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-${H}"
+
+LICENSE="LGPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+RESTRICT="strip"
+
+RDEPEND="
+	>=dev-scheme/guile-2.0.0:=
+	dev-libs/libyaml
+"
+DEPEND="${RDEPEND}"
+BDEPEND="dev-scheme/guile-nyacc"
+
+# guile generates ELF files without use of C or machine code
+# It's a portage's false positive. bug #677600
+QA_PREBUILT='*[.]go'
+
+guild_local() {
+	GUILE_LOAD_COMPILED_PATH="${S}" GUILE_LOAD_PATH="${S}" guild "${@}" || die
+}
+
+src_prepare() {
+	default
+
+	# http://debbugs.gnu.org/cgi/bugreport.cgi?bug=38112
+	find "${S}" -name "*.scm" -exec touch {} + || die
+}
+
+src_compile() {
+	# Generate bindings using NYACC
+	guild_local compile-ffi --no-exec yaml/libyaml.ffi
+
+	# Compile modules
+	mkdir -p "${S}"/ccache || die
+	guild_local compile -o "${S}"/ccache/libyaml.go "${S}"/yaml/libyaml.scm
+	guild_local compile -o "${S}"/ccache/yaml.go "${S}"/yaml.scm
+}
+
+src_install() {
+	local site_dir="$(guile -c '(display (%site-dir))')"
+	insinto "${site_dir}"/yaml
+	doins yaml/libyaml.scm
+	insinto "${site_dir}"
+	doins yaml.scm
+
+	local site_ccache_dir="$(guile -c '(display (%site-ccache-dir))')"
+	insinto "${site_ccache_dir}"/yaml
+	doins ccache/libyaml.go
+	insinto "${site_ccache_dir}"
+	doins ccache/yaml.go
+
+	einstalldocs
+}

diff --git a/dev-scheme/guile-libyaml/metadata.xml b/dev-scheme/guile-libyaml/metadata.xml
new file mode 100644
index 000000000000..3f151f03aaf3
--- /dev/null
+++ b/dev-scheme/guile-libyaml/metadata.xml
@@ -0,0 +1,13 @@
+<?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://github.com/mwette/guile-libyaml/issues</bugs-to>
+    <remote-id type="github">mwette/guile-libyaml</remote-id>
+  </upstream>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-scheme/guile-libyaml/
@ 2023-03-04 16:32 Maciej Barć
  0 siblings, 0 replies; 2+ messages in thread
From: Maciej Barć @ 2023-03-04 16:32 UTC (permalink / raw
  To: gentoo-commits

commit:     f013942f1c469b82d14e51d85f4c8e4e20a2a58e
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Sat Mar  4 15:52:31 2023 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Sat Mar  4 16:32:10 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f013942f

dev-scheme/guile-libyaml: H -> COMMIT

Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 dev-scheme/guile-libyaml/guile-libyaml-20211124.ebuild | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/dev-scheme/guile-libyaml/guile-libyaml-20211124.ebuild b/dev-scheme/guile-libyaml/guile-libyaml-20211124.ebuild
index 36fd680e32a4..9a9d84dc8e24 100644
--- a/dev-scheme/guile-libyaml/guile-libyaml-20211124.ebuild
+++ b/dev-scheme/guile-libyaml/guile-libyaml-20211124.ebuild
@@ -1,14 +1,15 @@
-# Copyright 2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-H=2bdacb72a65ab63264b2edc9dac9692df7ec9b3e
+[[ ${PV} == 20211124 ]] && COMMIT=2bdacb72a65ab63264b2edc9dac9692df7ec9b3e
 
 DESCRIPTION="Simple yaml module for Guile using the ffi-helper from nyacc"
 HOMEPAGE="https://github.com/mwette/guile-libyaml/"
-SRC_URI="https://github.com/mwette/${PN}/archive/${H}.tar.gz -> ${P}.tar.gz"
-S="${WORKDIR}/${PN}-${H}"
+SRC_URI="https://github.com/mwette/${PN}/archive/${COMMIT}.tar.gz
+	-> ${P}.tar.gz"
+S="${WORKDIR}"/${PN}-${COMMIT}
 
 LICENSE="LGPL-3+"
 SLOT="0"


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-03-04 16:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-04 16:32 [gentoo-commits] repo/gentoo:master commit in: dev-scheme/guile-libyaml/ Maciej Barć
  -- strict thread matches above, loose matches on Subject: below --
2022-02-15 15:31 Maciej Barć

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox