diff options
author | Azamat H. Hackimov <azamat.hackimov@gmail.com> | 2024-07-19 19:03:49 +0300 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2024-07-20 14:21:08 +0300 |
commit | 18a566f48897094c0b015d68e12fa26b1bdb1956 (patch) | |
tree | 63aa7d8123b1c9c76e930fb2cdaeebe61e662b6f | |
parent | media-libs/faun: drop 0.1.2 (diff) | |
download | gentoo-18a566f48897094c0b015d68e12fa26b1bdb1956.tar.gz gentoo-18a566f48897094c0b015d68e12fa26b1bdb1956.tar.bz2 gentoo-18a566f48897094c0b015d68e12fa26b1bdb1956.zip |
dev-libs/boron: add 2.1.0
Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com>
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
-rw-r--r-- | dev-libs/boron/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/boron/boron-2.1.0.ebuild | 37 | ||||
-rw-r--r-- | dev-libs/boron/files/boron-2.1.0_makefile.patch | 62 |
3 files changed, 100 insertions, 0 deletions
diff --git a/dev-libs/boron/Manifest b/dev-libs/boron/Manifest index 790cc271727e..247491b31f40 100644 --- a/dev-libs/boron/Manifest +++ b/dev-libs/boron/Manifest @@ -1 +1,2 @@ DIST boron-2.0.8.tar.gz 351968 BLAKE2B c89b61ca2cf55960edd5cfbb8b6bfe9501cfca775a250d325d5f2874423aafca5d9157600a1859c17909c6948f47830613e42b2b916335636876c60ffe7782d2 SHA512 b583dfafc10a640c2cf919b38e5bcdfcbe146e874d4c41fbd4fc6d510ea38938b3e91de502f42e5b2923c9dd201358ffe15c0df47655ac8a8ed2294979338db0 +DIST boron-2.1.0.tar.gz 366773 BLAKE2B 23af3d86d153e9efd6e7660dd31c6c08bfdca542b56aa6893f06c353d92aded224d50a9ec1159930012e87874cf44ee437e7873b4cfb834b49a05977c4bb16d5 SHA512 2cd2c8043efc9569ae579fa7e7365567dca9cb5ec39218b83ef015936a60ff9ea61cac1b40b8593aacf8aaa9b12aaf00baa0c55adb6cd1238ca91ae4d1190636 diff --git a/dev-libs/boron/boron-2.1.0.ebuild b/dev-libs/boron/boron-2.1.0.ebuild new file mode 100644 index 000000000000..59eb5137f125 --- /dev/null +++ b/dev-libs/boron/boron-2.1.0.ebuild @@ -0,0 +1,37 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit edo toolchain-funcs + +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.1.0_makefile.patch" +) + +src_configure() { + tc-export CC + # Non-standard configure + edo ./configure \ + $(usex bzip2 "--bzip2" "") +} + +src_install() { + emake DESTDIR="${D}/usr" install install-dev + dodoc README.md +} diff --git a/dev-libs/boron/files/boron-2.1.0_makefile.patch b/dev-libs/boron/files/boron-2.1.0_makefile.patch new file mode 100644 index 000000000000..f90c0cde6a5d --- /dev/null +++ b/dev-libs/boron/files/boron-2.1.0_makefile.patch @@ -0,0 +1,62 @@ +diff --git a/Makefile b/Makefile +index a590cbb..e3ee964 100644 +--- a/Makefile ++++ b/Makefile +@@ -11,7 +11,7 @@ VIM_DIR=$(DESTDIR)/share/vim/vimfiles/syntax + + OS := $(shell uname) + +-CFLAGS = -pipe -pedantic -Wall -W -Iinclude -Iurlan -Ieval -Isupport ++CFLAGS += -pipe -pedantic -Wall -W -Iinclude -Iurlan -Ieval -Isupport + CFLAGS += -O3 -DNDEBUG + #CFLAGS += -g -DDEBUG + +@@ -84,17 +84,17 @@ endif + + + $(ODIR)/%.o: urlan/%.c +- cc -c $(CFLAGS) $(CONFIG) $< -o $@ ++ $(CC) -c $(CFLAGS) $(CONFIG) $< -o $@ + $(ODIR)/%.o: support/%.c +- cc -c $(CFLAGS) $(CONFIG) $< -o $@ ++ $(CC) -c $(CFLAGS) $(CONFIG) $< -o $@ + $(ODIR)/%.o: eval/%.c +- cc -c $(CFLAGS) $(CONFIG) $< -o $@ ++ $(CC) -c $(CFLAGS) $(CONFIG) $< -o $@ + + boron: $(EXE_OBJS) $(BORON_LIB) +- cc $^ -o $@ $(EXE_LIBS) ++ $(CC) $(LDFLAGS) $^ -o $@ $(EXE_LIBS) + + $(ODIR)/os.o: unix/os.c +- cc -c $(CFLAGS) $(CONFIG) $< -o $@ ++ $(CC) -c $(CFLAGS) $(LDFLAGS) $(CONFIG) $< -o $@ + + $(EXE_OBJS): | $(ODIR) + $(LIB_OBJS): | $(ODIR) +@@ -108,7 +108,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) $(LDFLAGS) -o $@ -shared -Wl,-soname,libboron.so.2 $^ $(LIBS) + ln -sf $(BORON_LIB) libboron.so.2 + ln -sf $(BORON_LIB) libboron.so + endif +@@ -130,13 +130,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 |