aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-lua/lua-md5/Manifest1
-rw-r--r--dev-lua/lua-md5/files/lua-md5-1.2-respect-DESTDIR.patch19
-rw-r--r--dev-lua/lua-md5/lua-md5-1.2.ebuild25
-rw-r--r--dev-lua/lua-md5/metadata.xml8
4 files changed, 53 insertions, 0 deletions
diff --git a/dev-lua/lua-md5/Manifest b/dev-lua/lua-md5/Manifest
new file mode 100644
index 000000000..247b0c1bb
--- /dev/null
+++ b/dev-lua/lua-md5/Manifest
@@ -0,0 +1 @@
+DIST lua-md5-1.2.tar.gz 29896 BLAKE2B 28188ff00688245df5bed9c06397134b49f2a9f97eea9db979cd1bf1ade20cd54ab592c007d6bef6d6e91415ea6e628e2ec9b101a0f56c0c7bce0415f4a05744 SHA512 1d0925351b4b774581f78147b7dd44df649eec2bc8397db991149feaf1f16c8f26d4b0fce6d8463be656115cebf605339ba8da851bc50d1ae1da8033d4ed564d
diff --git a/dev-lua/lua-md5/files/lua-md5-1.2-respect-DESTDIR.patch b/dev-lua/lua-md5/files/lua-md5-1.2-respect-DESTDIR.patch
new file mode 100644
index 000000000..9f7e71027
--- /dev/null
+++ b/dev-lua/lua-md5/files/lua-md5-1.2-respect-DESTDIR.patch
@@ -0,0 +1,19 @@
+--- Makefile.ori 2018-09-11 16:35:19.884248326 +0200
++++ Makefile 2018-09-11 16:35:22.214321658 +0200
+@@ -22,11 +22,11 @@
+ $(CC) $(CFLAGS) $(LIB_OPTION) -o src/$(DES56_LIBNAME) $(DES56_OBJS) $(COMPAT52_OBJS)
+
+ install: src/$(MD5_LIBNAME) src/$(DES56_LIBNAME)
+- mkdir -p $(LUA_LIBDIR)/md5
+- cp src/$(MD5_LIBNAME) $(LUA_LIBDIR)/md5/core.so
+- mkdir -p $(LUA_DIR)
+- cp $(MD5_LUAS) $(LUA_DIR)
+- cp src/$(DES56_LIBNAME) $(LUA_LIBDIR)
++ mkdir -p $(DESTDIR)/$(LUA_LIBDIR)/md5
++ cp src/$(MD5_LIBNAME) $(DESTDIR)/$(LUA_LIBDIR)/md5/core.so
++ mkdir -p $(DESTDIR)/$(LUA_DIR)
++ cp $(MD5_LUAS) $(DESTDIR)/$(LUA_DIR)
++ cp src/$(DES56_LIBNAME) $(DESTDIR)/$(LUA_LIBDIR)
+
+ clean:
+ rm -f $(MD5_OBJS) src/$(MD5_LIBNAME) $(DES56_OBJS) src/$(DES56_LIBNAME) $(COMPAT52_OBJS)
diff --git a/dev-lua/lua-md5/lua-md5-1.2.ebuild b/dev-lua/lua-md5/lua-md5-1.2.ebuild
new file mode 100644
index 000000000..14a644702
--- /dev/null
+++ b/dev-lua/lua-md5/lua-md5-1.2.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils
+
+DESCRIPTION="Basic cryptographic facilities for Lua 5.0, 5.1 or 5.2"
+HOMEPAGE="http://keplerproject.github.io/md5"
+SRC_URI="https://github.com/keplerproject/md5/archive/v1.2.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"/md5-"${PV}"
+
+src_prepare(){
+ epatch "${FILESDIR}"/lua-md5-1.2-respect-DESTDIR.patch
+ default
+}
diff --git a/dev-lua/lua-md5/metadata.xml b/dev-lua/lua-md5/metadata.xml
new file mode 100644
index 000000000..4163b4b2a
--- /dev/null
+++ b/dev-lua/lua-md5/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mmokrejs@fold.natur.cuni.cz</email>
+ <name>Martin Mokrejs</name>
+ </maintainer>
+</pkgmetadata>