-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
173 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
grap | ||
------------------------------------------ | ||
Grap is a language for typesetting graphs specified and first implemented by | ||
Brian Kernighan and Jon Bentley at Bell Labs. It is an expressive language for | ||
describing graphs and incorporating them in typeset documents. It is | ||
implemented as a preprocessor to Kernigan's pic language for describing | ||
languages, so any system that can use pic can use grap. For sure, TeX and | ||
groff can use it. | ||
|
||
Runtime requirements: | ||
cygwin-2.0.4-1 | ||
libgcc1-4.9.3-1 | ||
libstdc++6-4.9.3-1 | ||
|
||
Build requirements: | ||
(besides corresponding -devel packages) | ||
autoconf-13-1 | ||
automake-9-1 | ||
binutils-2.25-2 | ||
cygport-0.20.1-1 | ||
gcc-core-4.9.3-1 | ||
gcc-g++-4.9.3-1 | ||
make-4.1-1 | ||
|
||
Canonical website: | ||
http://www.lunabase.org/~faber/Vault/software/grap/ | ||
|
||
Canonical download: | ||
http://www.lunabase.org/~faber/Vault/software/grap/grap-1.45.tar.gz | ||
|
||
------------------------------------------- | ||
|
||
Build instructions: | ||
1. unpack grap-1.45-X-src.tar.xz | ||
2. if you use setup to install this src package, | ||
it will be unpacked under /usr/src automatically | ||
% cd /usr/src | ||
% cygport ./grap-1.45-X.cygport all | ||
|
||
This will create: | ||
/usr/src/grap-1.45-X-src.tar.xz | ||
/usr/src/grap-1.45-X.tar.xz | ||
|
||
------------------------------------------- | ||
|
||
Files included in the binary package: | ||
|
||
(grap) | ||
/usr/bin/grap.exe | ||
/usr/share/doc/Cygwin/grap.README | ||
/usr/share/doc/grap/AUTHORS | ||
/usr/share/doc/grap/CHANGES | ||
/usr/share/doc/grap/COPYING | ||
/usr/share/doc/grap/COPYRIGHT | ||
/usr/share/doc/grap/ChangeLog | ||
/usr/share/doc/grap/NEWS | ||
/usr/share/doc/grap/README | ||
/usr/share/doc/grap/grap.man | ||
/usr/share/grap/examples/400mpairs.d | ||
/usr/share/grap/examples/400mtimes.d | ||
/usr/share/grap/examples/400wpairs.d | ||
/usr/share/grap/examples/Makefile | ||
/usr/share/grap/examples/army.d | ||
/usr/share/grap/examples/boyhts.d | ||
/usr/share/grap/examples/cy_fatal.d | ||
/usr/share/grap/examples/example.ms | ||
/usr/share/grap/examples/internet.d | ||
/usr/share/grap/examples/prof2.d | ||
/usr/share/grap/examples/result.SQ_MESH.Fail1.S3.R0.Global.Random1500.succ.result | ||
/usr/share/grap/examples/result.SQ_MESH.Fail1.S3.R0.Hybrid.Random1500.succ.result | ||
/usr/share/grap/examples/result.SQ_MESH.Fail1.S3.R0.Local.Random1500.succ.result | ||
/usr/share/grap/examples/states.d | ||
/usr/share/grap/examples/states2.d | ||
/usr/share/grap/examples/states3.d | ||
/usr/share/grap/examples/usapop.d | ||
/usr/share/grap/grap.defines | ||
/usr/share/grap/grap.tex.defines | ||
/usr/share/man/man1/grap.1.gz | ||
|
||
------------------ | ||
|
||
Port Notes: | ||
|
||
----- version 1.45-1bl1 ----- | ||
Initial release by fd0 <https://github.com/fd00/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
HOMEPAGE="http://www.lunabase.org/~faber/Vault/software/${PN}/" | ||
SRC_URI="http://www.lunabase.org/~faber/Vault/software/${PN}/${P}.tar.gz" | ||
|
||
CATEGORY="Text" | ||
SUMMARY="Implementation of Kernigan & Bentley's grap language" | ||
DESCRIPTION="Grap is a language for typesetting graphs specified and first implemented by | ||
Brian Kernighan and Jon Bentley at Bell Labs. It is an expressive language for | ||
describing graphs and incorporating them in typeset documents. It is | ||
implemented as a preprocessor to Kernigan's pic language for describing | ||
languages, so any system that can use pic can use grap. For sure, TeX and | ||
groff can use it." | ||
|
||
CYGCONF_ARGS=" | ||
--with-example-dir=/usr/share/grap/examples | ||
" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
diff -buprN -x CYGWIN-PATCHES -x aclocal.m4~ -x aclocal.m4t -x autom4te.cache -x config.cache -x config.guess -x config.log -x config.status -x config.sub -x '*SlackBuild*' -x '*.egg-info' -x '*.dll' -x '*.exe' -x '*.o' -x '*.gch' -x '*.gem' -x .gitignore -x '*.jpg' -x '*.png' -x '*.qm' -x '*.svgz' -x '*.tif' -x '*.class' -x '*.jlc' -x '*.pyc' -x '*.pyo' -x '*.mo' -x '*.gmo' -x '*.orig' -x '*.rej' -x '*.spec' -x '*.temp' -x '*~' -x '*.stackdump' -x aclocal.m4 -x configure -x config.h -x '*.h.in' -x COPYING -x INSTALL -x ansi2knr.c -x ar-lib -x config-ml.in -x elisp-comp -x mdate-sh -x mkinstalldirs -x py-compile -x symlink-tree -x test-driver -x texinfo.tex -x ylwrap -x Makefile.in -x GNUmakefile.in -x makefile.in -x compile -x depcomp -x install-sh -x missing -x omf.make -x xmldocs.make -x gnome-doc-utils.make -x gnome-doc-utils.m4 -x mate-doc-utils.make -x mate-doc-utils.m4 origsrc/grap-1.45/Makefile.am src/grap-1.45/Makefile.am | ||
--- origsrc/grap-1.45/Makefile.am 2014-08-31 00:29:10.000000000 +0900 | ||
+++ src/grap-1.45/Makefile.am 2015-07-12 22:27:28.325486900 +0900 | ||
@@ -24,12 +24,12 @@ dist_man1_MANS = grap.doc | ||
|
||
# Where to put grap.defines | ||
definesdir = @DEFINES_DIR@ | ||
-dist_defines_DATA = grap*.defines | ||
+dist_defines_DATA = $(top_srcdir)/grap*.defines | ||
|
||
# Examples | ||
exampledir = @EXAMPLE_DIR@ | ||
-dist_example_DATA = examples/*.d examples/*.result examples/Makefile \ | ||
- examples/example.ms | ||
+dist_example_DATA = $(top_srcdir)/examples/*.d $(top_srcdir)/examples/*.result $(top_srcdir)/examples/Makefile \ | ||
+ $(top_srcdir)/examples/example.ms | ||
|
||
# Other docs | ||
docdir = @DOC_DIR@ | ||
@@ -40,7 +40,7 @@ AM_CXXFLAGS = @GXXFLAGS@ @CX0FLAGS@ | ||
|
||
# Rules for y.tab.h and grap.man | ||
y.tab.h: grap.yy | ||
- ${YACC} -d grap.yy && rm -f y.tab.c | ||
+ ${YACC} -d $(top_srcdir)/grap.yy && rm -f y.tab.c | ||
|
||
grap.man: grap.doc | ||
groff -mdoc -Tascii grap.doc > grap.man | ||
diff -buprN -x CYGWIN-PATCHES -x aclocal.m4~ -x aclocal.m4t -x autom4te.cache -x config.cache -x config.guess -x config.log -x config.status -x config.sub -x '*SlackBuild*' -x '*.egg-info' -x '*.dll' -x '*.exe' -x '*.o' -x '*.gch' -x '*.gem' -x .gitignore -x '*.jpg' -x '*.png' -x '*.qm' -x '*.svgz' -x '*.tif' -x '*.class' -x '*.jlc' -x '*.pyc' -x '*.pyo' -x '*.mo' -x '*.gmo' -x '*.orig' -x '*.rej' -x '*.spec' -x '*.temp' -x '*~' -x '*.stackdump' -x aclocal.m4 -x configure -x config.h -x '*.h.in' -x COPYING -x INSTALL -x ansi2knr.c -x ar-lib -x config-ml.in -x elisp-comp -x mdate-sh -x mkinstalldirs -x py-compile -x symlink-tree -x test-driver -x texinfo.tex -x ylwrap -x Makefile.in -x GNUmakefile.in -x makefile.in -x compile -x depcomp -x install-sh -x missing -x omf.make -x xmldocs.make -x gnome-doc-utils.make -x gnome-doc-utils.m4 -x mate-doc-utils.make -x mate-doc-utils.m4 origsrc/grap-1.45/grap.yy src/grap-1.45/grap.yy | ||
--- origsrc/grap-1.45/grap.yy 2014-08-25 07:58:06.000000000 +0900 | ||
+++ src/grap-1.45/grap.yy 2015-07-12 22:26:32.793685000 +0900 | ||
@@ -24,6 +24,9 @@ | ||
#ifdef HAVE_UNISTD_H | ||
#include <unistd.h> | ||
#endif | ||
+#if defined(__CYGWIN__) | ||
+extern "C" char *strptime(const char *s, const char *format, struct tm *tm); | ||
+#endif | ||
|
||
#include "grap.h" | ||
#include "grap_data.h" | ||
diff -buprN -x CYGWIN-PATCHES -x aclocal.m4~ -x aclocal.m4t -x autom4te.cache -x config.cache -x config.guess -x config.log -x config.status -x config.sub -x '*SlackBuild*' -x '*.egg-info' -x '*.dll' -x '*.exe' -x '*.o' -x '*.gch' -x '*.gem' -x .gitignore -x '*.jpg' -x '*.png' -x '*.qm' -x '*.svgz' -x '*.tif' -x '*.class' -x '*.jlc' -x '*.pyc' -x '*.pyo' -x '*.mo' -x '*.gmo' -x '*.orig' -x '*.rej' -x '*.spec' -x '*.temp' -x '*~' -x '*.stackdump' -x aclocal.m4 -x configure -x config.h -x '*.h.in' -x COPYING -x INSTALL -x ansi2knr.c -x ar-lib -x config-ml.in -x elisp-comp -x mdate-sh -x mkinstalldirs -x py-compile -x symlink-tree -x test-driver -x texinfo.tex -x ylwrap -x Makefile.in -x GNUmakefile.in -x makefile.in -x compile -x depcomp -x install-sh -x missing -x omf.make -x xmldocs.make -x gnome-doc-utils.make -x gnome-doc-utils.m4 -x mate-doc-utils.make -x mate-doc-utils.m4 origsrc/grap-1.45/grap_lex.ll src/grap-1.45/grap_lex.ll | ||
--- origsrc/grap-1.45/grap_lex.ll 2014-08-25 07:55:34.000000000 +0900 | ||
+++ src/grap-1.45/grap_lex.ll 2015-07-12 22:26:43.634863700 +0900 | ||
@@ -40,6 +40,9 @@ extern char *strerror(int errnum); | ||
#ifdef HAVE_ERRNO_H | ||
#include <errno.h> | ||
#endif | ||
+#if defined(__CYGWIN__) | ||
+extern "C" int fileno(FILE *stream); | ||
+#endif | ||
|
||
int return_macro = 0; | ||
int slashcount = 0; | ||
diff -buprN -x CYGWIN-PATCHES -x aclocal.m4~ -x aclocal.m4t -x autom4te.cache -x config.cache -x config.guess -x config.log -x config.status -x config.sub -x '*SlackBuild*' -x '*.egg-info' -x '*.dll' -x '*.exe' -x '*.o' -x '*.gch' -x '*.gem' -x .gitignore -x '*.jpg' -x '*.png' -x '*.qm' -x '*.svgz' -x '*.tif' -x '*.class' -x '*.jlc' -x '*.pyc' -x '*.pyo' -x '*.mo' -x '*.gmo' -x '*.orig' -x '*.rej' -x '*.spec' -x '*.temp' -x '*~' -x '*.stackdump' -x aclocal.m4 -x configure -x config.h -x '*.h.in' -x COPYING -x INSTALL -x ansi2knr.c -x ar-lib -x config-ml.in -x elisp-comp -x mdate-sh -x mkinstalldirs -x py-compile -x symlink-tree -x test-driver -x texinfo.tex -x ylwrap -x Makefile.in -x GNUmakefile.in -x makefile.in -x compile -x depcomp -x install-sh -x missing -x omf.make -x xmldocs.make -x gnome-doc-utils.make -x gnome-doc-utils.m4 -x mate-doc-utils.make -x mate-doc-utils.m4 origsrc/grap-1.45/grap_parse.cc src/grap-1.45/grap_parse.cc | ||
--- origsrc/grap-1.45/grap_parse.cc 2014-08-25 07:50:08.000000000 +0900 | ||
+++ src/grap-1.45/grap_parse.cc 2015-07-12 22:22:41.140882100 +0900 | ||
@@ -14,6 +14,7 @@ | ||
#ifdef HAVE_UNISTD_H | ||
#include <unistd.h> | ||
#endif | ||
+#if !defined(__CYGWIN__) | ||
#ifndef HAVE_OPTARG | ||
extern "C" { | ||
extern char *optarg; | ||
@@ -21,6 +22,7 @@ extern "C" { | ||
int getopt(int, char * const [], const char *); | ||
}; | ||
#endif | ||
+#endif | ||
|
||
#include "grap.h" | ||
#include "grap_data.h" |