summaryrefslogtreecommitdiff
path: root/dev-lang/bas
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-lang/bas
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-lang/bas')
-rw-r--r--dev-lang/bas/Manifest6
-rw-r--r--dev-lang/bas/bas-2.4.ebuild39
-rw-r--r--dev-lang/bas/files/bas-2.1-makefile.patch49
-rw-r--r--dev-lang/bas/metadata.xml8
4 files changed, 102 insertions, 0 deletions
diff --git a/dev-lang/bas/Manifest b/dev-lang/bas/Manifest
new file mode 100644
index 000000000000..0adf3996b6ac
--- /dev/null
+++ b/dev-lang/bas/Manifest
@@ -0,0 +1,6 @@
+AUX bas-2.1-makefile.patch 1591 SHA256 c974fd3b3448d6719fdfdcb81b31dbc2b923515641e72f1a5390eb9bb6b0bda2 SHA512 4ab41d2fed965f1165e741edc461070bd5ee6d76b05b16751671f34623c6ac7d459924357ce3db8fdaa9421f2e30f41ded5c4424799c82fc75fb337afd674b55 WHIRLPOOL c00ac263178d916c9e3bf4c659247cf81690b1b318b345a4e2a54d42a3199ae087f64ba3e7bd1594150c559d17c11be8101b2086928811536de831d1119a2447
+DIST bas-2.4.tar.gz 258055 SHA256 2a147dd75a80049c1e6030c97aadb03a31fdbb622d0e18bd7961d167c9b48fac SHA512 1a86805d1981a7bc920d7f6ab7827ee9f0ed9535b78b4c46718106e7abe0b1ef9298631e7e4d3d9bf206a8ca0e1239db48a9d94b0b85b71101aea0956d1454d7 WHIRLPOOL 15a1c8a7f00158e330c13998f00976ab10258d8dffb9689722cb01db7ddd62fd15b6a1cc8ad91368a578729e312088a34f29dcaf60b960e43736e3aa2ff8049d
+EBUILD bas-2.4.ebuild 754 SHA256 2aeb57381ab2732cd830a1fe5ee9225a06864fdb07d6b57a8d81b662b234dc6c SHA512 12b86f38f0e838126cbd02a6a6a98fa4b2fe9603921b3806d6ab981b7fd2bb1f0aa1264ecf7cc5cc21918e6904d69228b2eb64b1da1a091550aadb278c0f4d73 WHIRLPOOL 009369d848c632dbc299b3ead5610137f097303b822c423099ad170b2b6f89f3d98f23aa965a23a25d7cc646f05613b1835bafa65232ed96806cd78f860a4dd2
+MISC ChangeLog 2930 SHA256 c51221dabf6698228d72ca4c8aec2dc1a09c50327d9f002263c15252ff45233c SHA512 13ab0be79632f94e720a2524cf5c729ad72a1985be634fcff80107a9552f333fcc7bf501e296e086aa8d571c2d55f788ea09077ce7c490d8b7817c0afa6816d8 WHIRLPOOL a33846393478ff8a24fdf0a358af00d1762f74681ade6aade980fb268572260bdfe4025ed648f706bdb0d9727c869d20792fa779830eaf899feb605ca14c33c5
+MISC ChangeLog-2015 1183 SHA256 31a3f8a8e7169878f33549987df32d369b51a23b6cce80c0ad7e2ba4c0b0b4b2 SHA512 c8500653f999d072e463379d285625b3bc894c1245ec64ffd46216ad89fab469f22f2f82f3002e58ea6622162fcbe5bdeb0a840cf44b25d9a19bf91eb21f05c2 WHIRLPOOL 80ff6bce81735069127eeb0c4bafbe0dc40c1cbc7fab9e4311bd897fb162cbf4bf79dbf794383e78045bc82f59b58bd584cd363c844c5dcd347f0ee0b21f8ed7
+MISC metadata.xml 275 SHA256 7f1f0c57f0471329c49650406db3cda8565f2e251bc98a38354e9dfb37a3d058 SHA512 01eaccce18447fa65e25b0064e088eafed7dd0f45bf938eeb53fc2dd4610039ce2cbefedbd1a35152f924f29cb7e9de8d19a0c75bf7439c48d6f1a2872af15c7 WHIRLPOOL 8aa88719871efb227c5ca31f6e302b8396a72747d95fba200947467fd1901901047e16ba5a59ef603c661be83cb7fb874be56ad111edd670dfc7f9c8afeeba52
diff --git a/dev-lang/bas/bas-2.4.ebuild b/dev-lang/bas/bas-2.4.ebuild
new file mode 100644
index 000000000000..6e07253f7a6e
--- /dev/null
+++ b/dev-lang/bas/bas-2.4.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit autotools eutils toolchain-funcs
+
+DESCRIPTION="An interpreter for the classic dialect of the programming language BASIC"
+HOMEPAGE="http://www.moria.de/~michael/bas/"
+SRC_URI="http://www.moria.de/~michael/bas/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="lr0"
+
+RDEPEND="sys-libs/ncurses
+ virtual/libintl"
+DEPEND="${RDEPEND}
+ sys-devel/gettext"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${PN}-2.1-makefile.patch
+
+ eautoconf
+}
+
+src_configure() {
+ tc-export AR
+ econf \
+ $(use_enable lr0)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc NEWS README
+ insinto /usr/share/doc/${PF}/pdf
+ doins bas.pdf
+}
diff --git a/dev-lang/bas/files/bas-2.1-makefile.patch b/dev-lang/bas/files/bas-2.1-makefile.patch
new file mode 100644
index 000000000000..3be4bb09eafa
--- /dev/null
+++ b/dev-lang/bas/files/bas-2.1-makefile.patch
@@ -0,0 +1,49 @@
+Fixes makefile.in to respect DESTDIR during install
+Fixes makefile.in to use $MAKE instead of 'make'
+Fixes makefile.in to respect AR during libbas build
+
+Patch by Kevin McCarthy <signals42@gmail.com>
+
+--- Makefile.in
++++ Makefile.in
+@@ -27,7 +27,7 @@
+ libbas.a: auto.o bas.o fs.o global.o token.o program.o \
+ str.o value.o var.o
+ rm -f $@
+- ar cq $@ auto.o bas.o fs.o global.o token.o program.o \
++ $(AR) cq $@ auto.o bas.o fs.o global.o token.o program.o \
+ str.o value.o var.o
+ @RANLIB@ libbas.a
+
+@@ -35,7 +35,7 @@
+ install-po-no:
+ install-po-yes: $(CATALOGS)
+ for cat in $(CATALOGS); do \
+- dir=$(localedir)/`basename $$cat .mo`/LC_MESSAGES; \
++ dir=$(DESTDIR)/$(localedir)/`basename $$cat .mo`/LC_MESSAGES; \
+ [ -d $$dir ] || @INSTALL@ -m 755 -d $$dir; \
+ @INSTALL@ -m 644 $$cat $$dir/bas.mo; \
+ done
+@@ -44,14 +44,14 @@
+ for i in test/test*; do ./$$i || break; done
+
+ install: all
+- @INSTALL@ -m 755 -d @bindir@
+- @INSTALL@ bas @bindir@/bas
+- @INSTALL@ -m 755 -d @libdir@
+- @INSTALL@ -m 644 libbas.a @libdir@/libbas.a
+- @RANLIB@ @libdir@/libbas.a
+- @INSTALL@ -m 755 -d @mandir@/man1
+- @INSTALL@ -m 644 bas.1 @mandir@/man1/bas.1
+- make install-po
++ @INSTALL@ -m 755 -d $(DESTDIR)/@bindir@
++ @INSTALL@ bas $(DESTDIR)/@bindir@/bas
++ @INSTALL@ -m 755 -d $(DESTDIR)/@libdir@
++ @INSTALL@ -m 644 libbas.a $(DESTDIR)/@libdir@/libbas.a
++ @RANLIB@ $(DESTDIR)/@libdir@/libbas.a
++ @INSTALL@ -m 755 -d $(DESTDIR)/@mandir@/man1
++ @INSTALL@ -m 644 bas.1 $(DESTDIR)/@mandir@/man1/bas.1
++ $(MAKE) install-po
+
+ .c.o:
+ $(CC) -c $(CPPFLAGS) $(CFLAGS) $<
diff --git a/dev-lang/bas/metadata.xml b/dev-lang/bas/metadata.xml
new file mode 100644
index 000000000000..62afbf117e8a
--- /dev/null
+++ b/dev-lang/bas/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <use>
+ <flag name="lr0">Use the LR0 parser instead of the recursive descending parser</flag>
+ </use>
+</pkgmetadata>