Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/starparse/, sci-libs/starparse/files/
Date: Sat, 28 Dec 2013 19:54:18
Message-Id: 1388257853.bbe8747e08b63ab3b1344af3b1eaeeb901a7f359.jlec@gentoo
1 commit: bbe8747e08b63ab3b1344af3b1eaeeb901a7f359
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 28 19:10:53 2013 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 28 19:10:53 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=bbe8747e
7
8 sci-libs/starparse: Add patch for guile-1.8
9
10 Package-Manager: portage-2.2.7
11
12 ---
13 sci-libs/starparse/ChangeLog | 4 ++
14 .../starparse/files/starparse-9999-guile1.8.patch | 60 ++++++++++++++++++++++
15 sci-libs/starparse/starparse-9999.ebuild | 10 ++--
16 3 files changed, 71 insertions(+), 3 deletions(-)
17
18 diff --git a/sci-libs/starparse/ChangeLog b/sci-libs/starparse/ChangeLog
19 index 56f12b5..f3f0f28 100644
20 --- a/sci-libs/starparse/ChangeLog
21 +++ b/sci-libs/starparse/ChangeLog
22 @@ -2,6 +2,10 @@
23 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
24 # $Header: $
25
26 + 28 Dec 2013; Justin Lecher <jlec@g.o> starparse-9999.ebuild,
27 + +files/starparse-9999-guile1.8.patch:
28 + Add patch for guile-1.8
29 +
30 28 Dec 2013; Justin Lecher <jlec@g.o> starparse-9999.ebuild:
31 Add missing dep on pkgconfig
32
33
34 diff --git a/sci-libs/starparse/files/starparse-9999-guile1.8.patch b/sci-libs/starparse/files/starparse-9999-guile1.8.patch
35 new file mode 100644
36 index 0000000..1d6e176
37 --- /dev/null
38 +++ b/sci-libs/starparse/files/starparse-9999-guile1.8.patch
39 @@ -0,0 +1,60 @@
40 +--- src/guile-binding.c
41 ++++ src/guile-binding.c
42 +@@ -61,10 +61,10 @@
43 + char* filter_string = NULL;
44 + char* fname = "-";
45 +
46 +- if (SCM_NFALSEP(filter_string_scm))
47 ++ if (scm_is_true(filter_string_scm))
48 + filter_string = scm_to_locale_string(filter_string_scm);
49 +
50 +- if (SCM_NFALSEP(fname_scm))
51 ++ if (scm_is_true(fname_scm))
52 + fname = scm_to_locale_string(fname_scm);
53 +
54 + ship_item_cb = ship_item_scm;
55 +--- src/Makefile.am
56 ++++ src/Makefile.am
57 +@@ -6,13 +6,10 @@
58 + libstarparse_la_SOURCES =\
59 + parser.y lexer.l starparse.h
60 +
61 +-libstarparse_la_CFLAGS =
62 +-libstarparse_la_LDFLAGS =
63 +-
64 + if ENABLE_GUILE
65 + libstarparse_la_SOURCES += guile-binding.c guile-compat.h
66 +-libstarparse_la_CFLAGS += @GUILE_CFLAGS@
67 +-libstarparse_la_LDFLAGS += @GUILE_LDFLAGS@ -lpthread
68 ++libstarparse_la_CFLAGS = @GUILE_CFLAGS@
69 ++libstarparse_la_LIBADD = @GUILE_LIBS@ -lpthread
70 + endif
71 +
72 +
73 +--- configure.ac
74 ++++ configure.ac
75 +@@ -10,18 +10,13 @@
76 +
77 + AM_INIT_AUTOMAKE
78 +
79 +-AC_ARG_ENABLE(guile,
80 ++AC_ARG_ENABLE([guile],
81 + AS_HELP_STRING([--enable-guile],
82 +- [build bindings for guile scheme interpreter]),
83 +- USE_GUILE=$enable_guile,
84 +- USE_GUILE=yes) # default value
85 +-
86 +-if test "x$USE_GUILE" = "xyes";
87 +-then
88 +- GUILE_FLAGS
89 +-fi
90 +-
91 +-AM_CONDITIONAL(ENABLE_GUILE, test "x$USE_GUILE" = "xyes")
92 ++ [build bindings for guile scheme interpreter]))
93 ++AS_IF([test "x$enable_guile" = "xyes"], [
94 ++ PKG_CHECK_MODULES([GUILE], [guile-1.8])
95 ++])
96 ++AM_CONDITIONAL(ENABLE_GUILE, test "x$enable_guile" = "xyes")
97 +
98 + AC_CONFIG_FILES([Makefile
99 + starparse-env
100
101 diff --git a/sci-libs/starparse/starparse-9999.ebuild b/sci-libs/starparse/starparse-9999.ebuild
102 index 09265fc..1c54b56 100644
103 --- a/sci-libs/starparse/starparse-9999.ebuild
104 +++ b/sci-libs/starparse/starparse-9999.ebuild
105 @@ -4,7 +4,7 @@
106
107 EAPI=5
108
109 -AUTOTOOLS_AUTORECONF="true"
110 +AUTOTOOLS_AUTORECONF=yes
111
112 inherit autotools-utils git-r3
113
114 @@ -15,11 +15,15 @@ EGIT_REPO_URI="git://burrow-owl.git.sourceforge.net/gitroot/burrow-owl/starparse
115 LICENSE="GPL-2"
116 SLOT="0"
117 KEYWORDS=""
118 -IUSE="guile static-libs"
119 +IUSE="guile static-libs test"
120 +
121 +REQUIRED_USE="test? ( guile )"
122
123 RDEPEND="guile? ( dev-scheme/guile:12 )"
124 DEPEND="${RDEPEND}
125 - virtual/pkconfig"
126 + virtual/pkgconfig"
127 +
128 +PATCHES=( "${FILESDIR}"/${P}-guile1.8.patch )
129
130 src_configure() {
131 local myeconfargs=( $(use_enable guile) )