create core package
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
def setup():
|
||||
pisitools.dosed("Makefile", " -O ", " $(CFLAGS) ")
|
||||
|
||||
def build():
|
||||
autotools.make("clean")
|
||||
autotools.make('-j1 CC="%s" CFLAGS="%s"' % (get.CC(), get.CFLAGS()))
|
||||
|
||||
def install():
|
||||
pisitools.dobin("yacc")
|
||||
|
||||
pisitools.doman("yacc.1")
|
||||
pisitools.dodoc("ACKNOWLEDGEMENTS", "NEW_FEATURES", "NOTES", "README*")
|
||||
@@ -0,0 +1,15 @@
|
||||
--- main.c.orig 2002-12-17 14:28:54.000000000 -0500
|
||||
+++ main.c 2002-12-17 14:29:31.000000000 -0500
|
||||
@@ -264,9 +264,9 @@
|
||||
text_file_name[len + 5] = 't';
|
||||
union_file_name[len + 5] = 'u';
|
||||
|
||||
- mktemp(action_file_name);
|
||||
- mktemp(text_file_name);
|
||||
- mktemp(union_file_name);
|
||||
+ mkstemp(action_file_name);
|
||||
+ mkstemp(text_file_name);
|
||||
+ mkstemp(union_file_name);
|
||||
|
||||
len = strlen(file_prefix);
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
diff -Naur yacc-1.9.1-orig/skeleton.c yacc-1.9.1/skeleton.c
|
||||
--- yacc-1.9.1-orig/skeleton.c 2008-07-17 20:01:30.000000000 +0300
|
||||
+++ yacc-1.9.1/skeleton.c 2008-07-17 20:02:55.000000000 +0300
|
||||
@@ -18,6 +18,7 @@
|
||||
"/*static char yysccsid[] = \"from: @(#)yaccpar 1.9 (Berkeley) 02/21/93\";*/",
|
||||
"static char yyrcsid[] = \"$Id: skeleton.c,v 1.2 1997/06/23 02:51:17 tdukes Exp $\";",
|
||||
"#endif",
|
||||
+ "#include <string.h>",
|
||||
"#define YYBYACC 1",
|
||||
"#define YYMAJOR 1",
|
||||
"#define YYMINOR 9",
|
||||
@@ -226,7 +227,10 @@
|
||||
" YYPREFIX, yystate, yyn, yyrule[yyn]);",
|
||||
"#endif",
|
||||
" yym = yylen[yyn];",
|
||||
- " yyval = yyvsp[1-yym];",
|
||||
+ " if (yym)",
|
||||
+ " yyval = yyvsp[1-yym];",
|
||||
+ " else",
|
||||
+ " memset(&yyval, 0, sizeof yyval);",
|
||||
" switch (yyn)",
|
||||
" {",
|
||||
0
|
||||
@@ -0,0 +1,24 @@
|
||||
--- byacc-1.9/defs.h.busted Sat May 6 21:10:56 2000
|
||||
+++ byacc-1.9/defs.h Sat May 6 21:11:22 2000
|
||||
@@ -1,7 +1,8 @@
|
||||
#include <assert.h>
|
||||
#include <ctype.h>
|
||||
#include <stdio.h>
|
||||
-
|
||||
+#include <string.h>
|
||||
+#include <stdlib.h>
|
||||
|
||||
/* machine-dependent definitions */
|
||||
/* the following definitions are for the Tahoe */
|
||||
@@ -280,10 +281,3 @@
|
||||
extern int errno;
|
||||
|
||||
|
||||
-/* system functions */
|
||||
-
|
||||
-extern void free();
|
||||
-extern char *calloc();
|
||||
-extern char *malloc();
|
||||
-extern char *realloc();
|
||||
-extern char *strcpy();
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>yacc</Name>
|
||||
<Homepage>http://dinosaur.compilertools.net/#yacc</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>as-is</License>
|
||||
<IsA>app:console</IsA>
|
||||
<Summary>Yacc: Yet Another Compiler-Compiler</Summary>
|
||||
<Description>Yacc provides a general tool for describing the input to a computer program. The Yacc user specifies the structures of his input, together with code to be invoked as each such structure is recognized. Yacc turns such a specification into a subroutine that handles the input process</Description>
|
||||
<Archive sha1sum="697ea853533e325f47b6b13401d05e7c97012729" type="targz">ftp://metalab.unc.edu/pub/Linux/devel/compiler-tools/yacc-1.9.1.tar.Z</Archive>
|
||||
<Patches>
|
||||
<Patch>mkstemp.patch</Patch>
|
||||
<Patch level="1">skeleton.c.diff</Patch>
|
||||
<Patch level="1">yacc-1.9.1-ia64.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>yacc</Name>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
<Path fileType="man">/usr/share/man</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="3">
|
||||
<Date>2014-05-11</Date>
|
||||
<Version>1.9.1</Version>
|
||||
<Comment>Release bump.</Comment>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2014-01-17</Date>
|
||||
<Version>1.9.1</Version>
|
||||
<Comment>Rebuild for 1.0</Comment>
|
||||
<Name>Richard de Bruin</Name>
|
||||
<Email>richdb@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2010-10-11</Date>
|
||||
<Version>1.9.1</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Pisi Linux Admins</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>yacc</Name>
|
||||
<Summary xml:lang="tr">Yacc: Yet Another Compiler-Compiler</Summary>
|
||||
<Description xml:lang="tr">Yacc, bir uygulamaya girdi açıklamasını yapan bir araçtır. Yacc kullanıcısı, girdinin yapısını ve bu yapının her seferinde tanındığı kodu belirtir. Yacc; bu tür bir belirlemeyi, girdi sürecini işleyen bir alt yordama çevirir.</Description>
|
||||
<Description xml:lang="fr">Yacc fourni un outil général de description d'entrée pour un logiciel. L'utilisateur de Yacc spécifie la structure de l'entrée avec le code à invoquer lorsque de tels structures sont reconnues. Yacc transforme ce qui a été spécifié en sous-routine gérant le processus d'entrée.</Description>
|
||||
</Source>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user