summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzamat H. Hackimov <azamat.hackimov@gmail.com>2023-04-28 14:19:45 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2024-07-19 17:30:56 +0300
commitc9a16d414124ddd3ffd9c10dd94ea4ea1ed4eb96 (patch)
tree086c7b030bdc8ad7d2c9f5132c96ef258b8e9361 /dev-libs/boron
parentdev-python/pytest-import-check: Bump to 0.0.4 (diff)
downloadgentoo-c9a16d414124ddd3ffd9c10dd94ea4ea1ed4eb96.tar.gz
gentoo-c9a16d414124ddd3ffd9c10dd94ea4ea1ed4eb96.tar.bz2
gentoo-c9a16d414124ddd3ffd9c10dd94ea4ea1ed4eb96.zip
dev-libs/boron: new package, add 2.0.8
Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com> Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-libs/boron')
-rw-r--r--dev-libs/boron/Manifest1
-rw-r--r--dev-libs/boron/boron-2.0.8.ebuild35
-rw-r--r--dev-libs/boron/files/boron-2.0.8_makefile.patch59
-rw-r--r--dev-libs/boron/metadata.xml15
4 files changed, 110 insertions, 0 deletions
diff --git a/dev-libs/boron/Manifest b/dev-libs/boron/Manifest
new file mode 100644
index 000000000000..790cc271727e
--- /dev/null
+++ b/dev-libs/boron/Manifest
@@ -0,0 +1 @@
+DIST boron-2.0.8.tar.gz 351968 BLAKE2B c89b61ca2cf55960edd5cfbb8b6bfe9501cfca775a250d325d5f2874423aafca5d9157600a1859c17909c6948f47830613e42b2b916335636876c60ffe7782d2 SHA512 b583dfafc10a640c2cf919b38e5bcdfcbe146e874d4c41fbd4fc6d510ea38938b3e91de502f42e5b2923c9dd201358ffe15c0df47655ac8a8ed2294979338db0
diff --git a/dev-libs/boron/boron-2.0.8.ebuild b/dev-libs/boron/boron-2.0.8.ebuild
new file mode 100644
index 000000000000..db885c01179b
--- /dev/null
+++ b/dev-libs/boron/boron-2.0.8.ebuild
@@ -0,0 +1,35 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="A scripting language similar to REBOL"
+HOMEPAGE="https://urlan.sourceforge.net/boron/"
+SRC_URI="https://downloads.sourceforge.net/urlan/${P}.tar.gz"
+
+LICENSE="LGPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="bzip2 readline"
+
+DEPEND="
+ bzip2? ( app-arch/bzip2:= )
+ !bzip2? ( sys-libs/zlib:= )
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-2.0.8_makefile.patch"
+)
+
+src_configure() {
+ # Non-standard configure
+ ./configure \
+ $(usex bzip2 "--bzip2" "") \
+ || die
+}
+
+src_install() {
+ emake DESTDIR="${D}/usr" install install-dev
+ dodoc README.md
+}
diff --git a/dev-libs/boron/files/boron-2.0.8_makefile.patch b/dev-libs/boron/files/boron-2.0.8_makefile.patch
new file mode 100644
index 000000000000..f524663756d5
--- /dev/null
+++ b/dev-libs/boron/files/boron-2.0.8_makefile.patch
@@ -0,0 +1,59 @@
+From 8f796a61697e9efe1d6e5498b807e74fc274af24 Mon Sep 17 00:00:00 2001
+From: "Azamat H. Hackimov" <azamat.hackimov@gmail.com>
+Date: Fri, 28 Apr 2023 12:01:28 +0300
+Subject: [PATCH] Fixes to buildsystem
+
+* Properly respect CFLAGS
+* Respect LDFLAGS
+* Don't compress man-pages
+* Don't strip binaries
+--- a/Makefile
++++ b/Makefile
+@@ -11,8 +11,7 @@ VIM_DIR=$(DESTDIR)/share/vim/vimfiles/syntax
+
+ OS := $(shell uname)
+
+-CFLAGS = -pipe -pedantic -Wall -W -Iinclude -Iurlan -Ieval -Isupport
+-CFLAGS += -O3 -DNDEBUG
++CFLAGS += -pipe -pedantic -Wall -W -Iinclude -Iurlan -Ieval -Isupport
+ #CFLAGS += -g -DDEBUG
+
+ ifeq ($(OS), Darwin)
+@@ -91,7 +90,7 @@ $(ODIR)/%.o: eval/%.c
+ cc -c $(CFLAGS) $(CONFIG) $< -o $@
+
+ boron: $(EXE_OBJS) $(BORON_LIB)
+- cc $^ -o $@ $(EXE_LIBS)
++ cc $^ -o $@ $(EXE_LIBS) $(LDFLAGS)
+
+ $(ODIR)/os.o: unix/os.c
+ cc -c $(CFLAGS) $(CONFIG) $< -o $@
+@@ -108,7 +107,7 @@ ifdef STATIC_LIB
+ else ifeq ($(OS), Darwin)
+ libtool -dynamiclib -o $@ $^ -install_name @rpath/$(BORON_LIB) $(LIBS)
+ else
+- cc -o $@ -shared -Wl,-soname,libboron.so.2 $^ $(LIBS)
++ cc -o $@ -shared -Wl,-soname,libboron.so.2 $^ $(LIBS) $(LDFLAGS)
+ ln -sf $(BORON_LIB) libboron.so.2
+ ln -sf $(BORON_LIB) libboron.so
+ endif
+@@ -130,13 +129,12 @@ ifeq ($(OS), Darwin)
+ install_name_tool -change libboron.dylib $(LIB_DIR)/libboron.dylib boron
+ install -m 644 libboron.dylib $(LIB_DIR)
+ else
+- install -m 755 -s $(BORON_LIB) $(LIB_DIR)
++ install -m 755 $(BORON_LIB) $(LIB_DIR)
+ ln -s $(BORON_LIB) $(LIB_DIR)/libboron.so.2
+ endif
+ endif
+- install -s -m 755 boron $(BIN_DIR)
+- gzip -c -n doc/boron.troff > doc/boron.1.gz
+- install -m 644 doc/boron.1.gz $(MAN_DIR)
++ install -m 755 boron $(BIN_DIR)
++ install -m 644 doc/boron.troff $(MAN_DIR)/boron.1
+
+ uninstall:
+ rm -f $(BIN_DIR)/boron $(MAN_DIR)/boron.1
+--
+2.39.2
+
diff --git a/dev-libs/boron/metadata.xml b/dev-libs/boron/metadata.xml
new file mode 100644
index 000000000000..0a665448e565
--- /dev/null
+++ b/dev-libs/boron/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>azamat.hackimov@gmail.com</email>
+ <name>Azamat H. Hackimov</name>
+ </maintainer>
+ <maintainer type="project" proxied="proxy">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">urlan</remote-id>
+ </upstream>
+</pkgmetadata>