New package: nsgenbind-0.0.1.
This commit is contained in:
parent
4df36fedf3
commit
03e4d583a7
2 changed files with 69 additions and 0 deletions
srcpkgs/nsgenbind
49
srcpkgs/nsgenbind/patches/bison.patch
Normal file
49
srcpkgs/nsgenbind/patches/bison.patch
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
From 51bd18034c510a6d4711823e08b69af2f7aa063e Mon Sep 17 00:00:00 2001
|
||||||
|
From: Vincent Sanders <vincent.sanders@collabora.co.uk>
|
||||||
|
Date: Fri, 03 May 2013 10:39:49 +0000
|
||||||
|
Subject: fix building teh lexers with bison versions at and after 2.6
|
||||||
|
|
||||||
|
---
|
||||||
|
diff --git a/src/nsgenbind-lexer.l b/src/nsgenbind-lexer.l
|
||||||
|
index b257c83..8189a72 100644
|
||||||
|
--- src/nsgenbind-lexer.l
|
||||||
|
+++ src/nsgenbind-lexer.l
|
||||||
|
@@ -19,6 +19,16 @@
|
||||||
|
yylloc->first_column = yylloc->last_column + 1; \
|
||||||
|
yylloc->last_column += yyleng;
|
||||||
|
|
||||||
|
+
|
||||||
|
+/* Ensure compatability with bison 2.6 and later */
|
||||||
|
+#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED && defined NSGENBIND_STYPE_IS_DECLARED
|
||||||
|
+#define YYSTYPE NSGENBIND_STYPE
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
+#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED && defined NSGENBIND_LTYPE_IS_DECLARED
|
||||||
|
+#define YYLTYPE NSGENBIND_LTYPE
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
%}
|
||||||
|
|
||||||
|
/* lexer options */
|
||||||
|
diff --git a/src/webidl-lexer.l b/src/webidl-lexer.l
|
||||||
|
index 5369d99..74b9bb8 100644
|
||||||
|
--- src/webidl-lexer.l
|
||||||
|
+++ src/webidl-lexer.l
|
||||||
|
@@ -27,6 +27,15 @@
|
||||||
|
yylloc->first_column = yylloc->last_column + 1; \
|
||||||
|
yylloc->last_column += yyleng;
|
||||||
|
|
||||||
|
+/* Ensure compatability with bison 2.6 and later */
|
||||||
|
+#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED && defined WEBIDL_STYPE_IS_DECLARED
|
||||||
|
+#define YYSTYPE WEBIDL_STYPE
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
+#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED && defined WEBIDL_LTYPE_IS_DECLARED
|
||||||
|
+#define YYLTYPE WEBIDL_LTYPE
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
%}
|
||||||
|
|
||||||
|
|
||||||
|
--
|
||||||
|
cgit v0.9.0.3-65-g4555
|
20
srcpkgs/nsgenbind/template
Normal file
20
srcpkgs/nsgenbind/template
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
# Template build file for 'nsgenbind'.
|
||||||
|
pkgname=nsgenbind
|
||||||
|
version=0.0.1
|
||||||
|
revision=1
|
||||||
|
hostmakedepends="pkg-config flex netsurf-buildsystem"
|
||||||
|
short_desc="Tool to generate javascript to dom bindings from w3c webid files"
|
||||||
|
maintainer="davehome <davehome@redthumb.info.tm>"
|
||||||
|
license="MIT"
|
||||||
|
homepage="http://www.netsurf-browser.org"
|
||||||
|
distfiles="http://download.netsurf-browser.org/libs/releases/${pkgname}-${version}-src.tar.gz"
|
||||||
|
checksum=05eb57a0b6de8ae094826e39620cee9ef9b672e79f755e7810ca98c0a3989552
|
||||||
|
|
||||||
|
do_build() {
|
||||||
|
make ${makejobs} PREFIX=/usr
|
||||||
|
}
|
||||||
|
|
||||||
|
do_install() {
|
||||||
|
make PREFIX=/usr DESTDIR=${DESTDIR} install
|
||||||
|
vinstall COPYING 0644 usr/share/licenses/${pkgname}
|
||||||
|
}
|
Loading…
Reference in a new issue