1 Commits

Author SHA1 Message Date
Jay Larson
efbad03fde Moved to slp format 2020-08-22 12:49:58 -05:00
2 changed files with 9 additions and 15 deletions

View File

@@ -8,25 +8,23 @@
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details. # GNU General Public License for more details.
DEPENDS = m4 DEPENDS = dash,glibc,m4
ARCH = x86_64 ARCH = x86_64
URL = http://www.gnu.org/software/bison/ URL = http://www.gnu.org/software/bison/
REPO = dev
BRIEF = GNU Project parser generator (yacc replacement)
DESC = Bison is a general-purpose parser generator that converts an \ DESC = Bison is a general-purpose parser generator that converts an \
annotated context-free grammar into a deterministic LR or generalized \ annotated context-free grammar into a deterministic LR or generalized \
LR (GLR) parser employing LALR(1) parser tables. LR (GLR) parser employing LALR(1) parser tables.
SNAPVER = sr0 SLVER = 1
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1) ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n') TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
SRCDIR := $(shell tar -tf $(ARCHIVE)|head -1|sed 's/\/.*//') SRCDIR := $(shell tar -tf $(ARCHIVE)|head -1|sed 's/\/.*//')
PATCHDIR := $(PWD)/SRC/patches PATCHDIR := $(PWD)/SRC/patches
VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'|sed 's/^-//')$(SNAPVER) VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'|sed 's/^-//')-$(SLVER)
MAKE = make include /usr/share/sl/Makefile.snaplinux
MAKEINST = make install
SNAPHACKS =
include /usr/share/snap/Makefile.snaplinux
$(SRCDIR): $(ARCHIVE) $(SRCDIR): $(ARCHIVE)
@if [ '$(TYPE)' == 'application/x-bzip2' ]; then \ @if [ '$(TYPE)' == 'application/x-bzip2' ]; then \
@@ -54,8 +52,7 @@ $(SRCDIR)/config.log: $(SRCDIR)
--target=x86_64-snap-linux-gnu --target=x86_64-snap-linux-gnu
$(SRCDIR)/src/bison: $(SRCDIR)/config.log $(SRCDIR)/src/bison: $(SRCDIR)/config.log
@cd $(SRCDIR); \ @cd $(SRCDIR) && make
$(MAKE)
$(ROOT): $(SRCDIR)/src/bison $(ROOT): $(SRCDIR)/src/bison
@if [ -d $(ROOT) ]; then \ @if [ -d $(ROOT) ]; then \
@@ -64,10 +61,7 @@ $(ROOT): $(SRCDIR)/src/bison
mkdir -v $(ROOT); \ mkdir -v $(ROOT); \
fi fi
@cd $(SRCDIR); \ @cd $(SRCDIR) && make install DESTDIR=$(ROOT)
$(MAKEINST) DESTDIR=$(ROOT)
@$(SNAPHACKS)
test: $(ROOT) test: $(ROOT)
@cd $(SRCDIR); \ @cd $(SRCDIR); \
@@ -75,7 +69,7 @@ test: $(ROOT)
clean: clean:
@rm -rvf $(ROOT) \ @rm -rvf $(ROOT) \
$(SNAPINFO) \ $(SLINFO) \
$(MANIFEST) \ $(MANIFEST) \
$(FILES) \ $(FILES) \
$(SRCDIR) $(SRCDIR)