public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/lua:master commit in: dev-lua/lyaml/files/, dev-lua/lyaml/
@ 2018-02-17  3:26 Vadim A. Misbakh-Soloviov
  0 siblings, 0 replies; only message in thread
From: Vadim A. Misbakh-Soloviov @ 2018-02-17  3:26 UTC (permalink / raw
  To: gentoo-commits

commit:     94977099663fc0279c8b214fb7f8b9293098b8b1
Author:     Vadim A. Misbakh-Soloviov <git <AT> mva <DOT> name>
AuthorDate: Sat Feb 17 03:26:28 2018 +0000
Commit:     Vadim A. Misbakh-Soloviov <mva <AT> mva <DOT> name>
CommitDate: Sat Feb 17 03:26:28 2018 +0000
URL:        https://gitweb.gentoo.org/proj/lua.git/commit/?id=94977099

lyaml: fixed (thanks @gvvaughan for describing the buildsystem specialities, and sorry for prev. commit msg); Although, specl buildprocess is still broken anyway (but with another reason this time)

 dev-lua/lyaml/files/Makefile    | 13 ++++++++++++-
 dev-lua/lyaml/lyaml-9999.ebuild | 10 ++--------
 2 files changed, 14 insertions(+), 9 deletions(-)

diff --git a/dev-lua/lyaml/files/Makefile b/dev-lua/lyaml/files/Makefile
index 3667fe6..6be8e46 100644
--- a/dev-lua/lyaml/files/Makefile
+++ b/dev-lua/lyaml/files/Makefile
@@ -1,4 +1,15 @@
+CC ?= cc
+package ?= "lyaml"
+version ?= "git:HEAD"
+DEBUG ?= NDEBUG
+LUA_INCDIR ?= /usr/include/lua5.1
+CF ?= -fPIC -O2 -DPACKAGE='"$(package)"' -D$(DEBUG) -DVERSION='"$(version)"' -Iext/include -I/usr/include -I$(LUA_INCDIR) $(CFLAGS)
+LF ?= -shared -L/usr/lib64 -L/usr/lib32 -L/usr/libx32 -L/usr/lib -lyaml $(LDFLAGS)
+
+SOURCES = ext/yaml/yaml.c ext/yaml/emitter.c ext/yaml/parser.c ext/yaml/scanner.c
+SONAME = yaml.so
+
 all:
-	$(LUA) build-aux/luke package=$(package) version=$(version) LUA_INCDIR="$(LUA_INCDIR)" LYAML_DIR="$(LYAML_DIR)"
+	$(CC) $(CF) $(SOURCES) $(LF) -o $(SONAME)
 doc:
 	ldoc -c build-aux/config.ld.in .

diff --git a/dev-lua/lyaml/lyaml-9999.ebuild b/dev-lua/lyaml/lyaml-9999.ebuild
index 1a35f58..5cc85c9 100644
--- a/dev-lua/lyaml/lyaml-9999.ebuild
+++ b/dev-lua/lyaml/lyaml-9999.ebuild
@@ -6,7 +6,7 @@ EAPI=6
 VCS="git"
 GITHUB_A="gvvaughan"
 
-inherit autotools lua
+inherit lua
 
 DESCRIPTION="LibYAML binding for Lua."
 HOMEPAGE="https://github.com/gvvaughan/lyaml"
@@ -35,11 +35,6 @@ all_lua_prepare() {
 		-e '/^dir/s@../doc@../html@' \
 		-i build-aux/config.ld.in
 
-	sed -r \
-		-e '/^ldocs/d' \
-		-e '/^external_dependencies/,/\}/s@checksymbol[^ ]*@@' \
-		-i lukefile
-
 	cp "${FILESDIR}"/Makefile "${S}"
 
 	lua_default
@@ -54,12 +49,11 @@ each_lua_configure() {
 		package="${PN}"
 		version="${ver}"
 		LUA_INCDIR="$(lua_get_incdir)"
-		LYAML_DIR="${EROOT}usr"
 	)
 	lua_default
 }
 
 each_lua_install() {
 	dolua lib/"${PN}"
-	dolua linux/"${PN:1}".so
+	dolua "${PN:1}".so
 }


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-02-17  3:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-17  3:26 [gentoo-commits] proj/lua:master commit in: dev-lua/lyaml/files/, dev-lua/lyaml/ Vadim A. Misbakh-Soloviov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox