public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-libs/bitshuffle/files/, dev-libs/bitshuffle/
@ 2022-01-19  9:21 Miroslav Šulc
  0 siblings, 0 replies; 2+ messages in thread
From: Miroslav Šulc @ 2022-01-19  9:21 UTC (permalink / raw
  To: gentoo-commits

commit:     e13afd32c88258f381c8e35e2520201f18211b2d
Author:     Yuan Liao <liaoyuan <AT> gmail <DOT> com>
AuthorDate: Mon Dec 20 15:56:10 2021 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Wed Jan 19 09:21:06 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e13afd32

dev-libs/bitshuffle: Initial import

Signed-off-by: Yuan Liao <liaoyuan <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/23438/commits/2f68538368b6456bdd83fe9dd7b9b159bb850756
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>

 dev-libs/bitshuffle/Manifest                       |  1 +
 dev-libs/bitshuffle/bitshuffle-0.3.5.ebuild        | 37 ++++++++++++++++
 .../bitshuffle/files/bitshuffle-0.3.5-Makefile     | 50 ++++++++++++++++++++++
 dev-libs/bitshuffle/metadata.xml                   | 11 +++++
 4 files changed, 99 insertions(+)

diff --git a/dev-libs/bitshuffle/Manifest b/dev-libs/bitshuffle/Manifest
new file mode 100644
index 000000000000..4ac005d2b7cd
--- /dev/null
+++ b/dev-libs/bitshuffle/Manifest
@@ -0,0 +1 @@
+DIST bitshuffle-0.3.5.tar.gz 112312 BLAKE2B e9e70608217743a93d2bf5319af0f48feff391bb2893b161a1a4c391ab630c90fc59483041d7594eb8366a9469feb309f3b8054c8ecc630d070a9170735f61f5 SHA512 4ae371ab2e1adedb5c3a2c047e0583d320c87f0687d9dc1c921ed9e38d8b90a447fb305f399cd591adf48a473471fd5827f4da2777dd7f0fb6d5fd145fdeb36f

diff --git a/dev-libs/bitshuffle/bitshuffle-0.3.5.ebuild b/dev-libs/bitshuffle/bitshuffle-0.3.5.ebuild
new file mode 100644
index 000000000000..3a4dd5a7574d
--- /dev/null
+++ b/dev-libs/bitshuffle/bitshuffle-0.3.5.ebuild
@@ -0,0 +1,37 @@
+# Copyright 2021-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="Bitshuffle C library"
+HOMEPAGE="https://github.com/kiyo-masui/bitshuffle"
+SRC_URI="https://github.com/kiyo-masui/bitshuffle/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
+
+DEPEND="
+	app-arch/lz4
+"
+
+src_prepare() {
+	cp "${FILESDIR}/${P}-Makefile" "Makefile" || die "Failed to copy Makefile"
+	default
+}
+
+src_configure() {
+	tc-export CC
+	export PACKAGE_VERSION="${PV}"
+}
+
+src_install() {
+	local prefix="${EPREFIX}/usr"
+	emake \
+		DESTDIR="${D}" \
+		PREFIX="${prefix}" \
+		LIBDIR="${prefix}/$(get_libdir)" \
+		install
+}

diff --git a/dev-libs/bitshuffle/files/bitshuffle-0.3.5-Makefile b/dev-libs/bitshuffle/files/bitshuffle-0.3.5-Makefile
new file mode 100644
index 000000000000..f38d0cc5f149
--- /dev/null
+++ b/dev-libs/bitshuffle/files/bitshuffle-0.3.5-Makefile
@@ -0,0 +1,50 @@
+# Gentoo custom Makefile for Bitshuffle C library
+# Adapted from GNU Guix:
+# https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/python-compression.scm?h=v1.3.0#n346
+# Distributed under the terms of the GNU General Public License v3
+
+# To avoid bundled dependency, the copy of lz4 included
+# in Bitshuffle's source tree is not used
+
+PACKAGE_VERSION ?= 0.3.5
+
+# Upstream has never specified an soname, so we need to conduct downstream
+# soname versioning.  The format of soname is "lib${PN}.so.$(ver_cut 1)".
+# No incompatible ABI changes have been observed yet since version 0.2.4,
+# but just in case the upstream recklessly handles ABI compatibility,
+# please try to test ABI compatibility when updating to a new release,
+# using tools like 'abidiff' in dev-util/libabigail or alike.
+SONAME_VERSION := $(shell echo $(PACKAGE_VERSION) | cut -d. -f1)
+SONAME_BASE = libbitshuffle.so
+SONAME := $(SONAME_BASE).$(SONAME_VERSION)
+SOFILE := $(SONAME_BASE).$(PACKAGE_VERSION)
+
+CFLAGS := -O3 -ffast-math -std=c99 -fPIC $(CFLAGS)
+
+OBJS = \
+	src/bitshuffle.o \
+	src/bitshuffle_core.o \
+	src/iochain.o
+
+$(SOFILE): $(OBJS)
+	$(CC) $(CFLAGS) -o $@ -shared $(LDFLAGS) -Wl,-soname,$(SONAME) $^
+
+%.o: %.c
+	$(CC) $(CFLAGS) -Isrc -c $< -o $@
+
+INSTALL = install
+LN_S = ln -s
+
+PREFIX = /usr/local
+LIBDIR = $(PREFIX)/lib
+INCLUDEDIR = $(PREFIX)/include
+
+install: $(SOFILE)
+	$(INSTALL) -dm755 $(DESTDIR)$(LIBDIR)
+	$(INSTALL) -dm755 $(DESTDIR)$(INCLUDEDIR)
+	$(INSTALL) -m755 $(SOFILE) $(DESTDIR)$(LIBDIR)
+	$(INSTALL) -m644 src/bitshuffle.h $(DESTDIR)$(INCLUDEDIR)
+	$(INSTALL) -m644 src/bitshuffle_core.h $(DESTDIR)$(INCLUDEDIR)
+	$(INSTALL) -m644 src/iochain.h $(DESTDIR)$(INCLUDEDIR)
+	$(LN_S) $(SOFILE) $(DESTDIR)$(LIBDIR)/$(SONAME_BASE)
+	$(LN_S) $(SOFILE) $(DESTDIR)$(LIBDIR)/$(SONAME)

diff --git a/dev-libs/bitshuffle/metadata.xml b/dev-libs/bitshuffle/metadata.xml
new file mode 100644
index 000000000000..1dca9429232c
--- /dev/null
+++ b/dev-libs/bitshuffle/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="project">
+		<email>java@gentoo.org</email>
+		<name>Java</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">kiyo-masui/bitshuffle</remote-id>
+	</upstream>
+</pkgmetadata>


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

* [gentoo-commits] repo/gentoo:master commit in: dev-libs/bitshuffle/files/, dev-libs/bitshuffle/
@ 2024-08-29 10:52 Miroslav Šulc
  0 siblings, 0 replies; 2+ messages in thread
From: Miroslav Šulc @ 2024-08-29 10:52 UTC (permalink / raw
  To: gentoo-commits

commit:     d4bba0ecd6f6e00a6cb031268320a8c9c7e0adbc
Author:     Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
AuthorDate: Mon Aug 12 05:29:35 2024 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Thu Aug 29 10:48:37 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4bba0ec

dev-libs/bitshuffle: fix underlinked error

Bug: https://bugs.gentoo.org/914570
Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/38110
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>

 .../{bitshuffle-0.3.5.ebuild => bitshuffle-0.3.5-r1.ebuild}         | 6 +++++-
 dev-libs/bitshuffle/files/bitshuffle-0.3.5-Makefile                 | 4 +++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/dev-libs/bitshuffle/bitshuffle-0.3.5.ebuild b/dev-libs/bitshuffle/bitshuffle-0.3.5-r1.ebuild
similarity index 91%
rename from dev-libs/bitshuffle/bitshuffle-0.3.5.ebuild
rename to dev-libs/bitshuffle/bitshuffle-0.3.5-r1.ebuild
index 964fad44dbd0..9ffb25cf41d1 100644
--- a/dev-libs/bitshuffle/bitshuffle-0.3.5.ebuild
+++ b/dev-libs/bitshuffle/bitshuffle-0.3.5-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2021-2022 Gentoo Authors
+# Copyright 2021-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -17,6 +17,10 @@ DEPEND="
 	app-arch/lz4
 "
 
+RDEPEND="
+	app-arch/lz4
+"
+
 src_prepare() {
 	cp "${FILESDIR}/${P}-Makefile" "Makefile" || die "Failed to copy Makefile"
 	default

diff --git a/dev-libs/bitshuffle/files/bitshuffle-0.3.5-Makefile b/dev-libs/bitshuffle/files/bitshuffle-0.3.5-Makefile
index f38d0cc5f149..6ccea469dbae 100644
--- a/dev-libs/bitshuffle/files/bitshuffle-0.3.5-Makefile
+++ b/dev-libs/bitshuffle/files/bitshuffle-0.3.5-Makefile
@@ -26,8 +26,10 @@ OBJS = \
 	src/bitshuffle_core.o \
 	src/iochain.o
 
+LIBS := -llz4
+
 $(SOFILE): $(OBJS)
-	$(CC) $(CFLAGS) -o $@ -shared $(LDFLAGS) -Wl,-soname,$(SONAME) $^
+	$(CC) $(CFLAGS) -o $@ -shared $(LDFLAGS) -Wl,-soname,$(SONAME) $^ $(LIBS)
 
 %.o: %.c
 	$(CC) $(CFLAGS) -Isrc -c $< -o $@


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

end of thread, other threads:[~2024-08-29 10:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-19  9:21 [gentoo-commits] repo/gentoo:master commit in: dev-libs/bitshuffle/files/, dev-libs/bitshuffle/ Miroslav Šulc
  -- strict thread matches above, loose matches on Subject: below --
2024-08-29 10:52 Miroslav Šulc

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