forked from semios/semios-packages
37 lines
733 B
Python
37 lines
733 B
Python
from lib import cpp
|
|
from lib.make import *
|
|
|
|
version("3.7.91")
|
|
source_url("https://alpha.gnu.org/gnu/bison/bison-3.7.91.tar.xz")
|
|
|
|
builddep("shortcut/c")
|
|
builddep("shortcut/autotools")
|
|
builddep("gnu-m4")
|
|
|
|
block_hook("autolink")
|
|
|
|
|
|
def build():
|
|
cpp.configure(["--enable-relocatable"])
|
|
cpp.make()
|
|
cpp.make_install()
|
|
|
|
|
|
on_build(build)
|
|
|
|
|
|
def pack_bison(composer):
|
|
composer.add_dir("bin", "bin")
|
|
composer.add_dir("lib", "lib")
|
|
composer.makedir("share")
|
|
composer.add_dir("share/aclocal", "share/aclocal")
|
|
composer.add_dir("share/bison", "share/bison")
|
|
|
|
|
|
package("bison")
|
|
dep("semi-libc @same-arch")
|
|
dep("gnu-m4")
|
|
on_pack(pack_bison)
|
|
link("bin/bison", "/bin/bison")
|
|
link("bin/yacc", "/bin/yacc", default=False)
|