summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lua/lua-curl/lua-curl-9999.ebuild')
-rw-r--r--dev-lua/lua-curl/lua-curl-9999.ebuild42
1 files changed, 19 insertions, 23 deletions
diff --git a/dev-lua/lua-curl/lua-curl-9999.ebuild b/dev-lua/lua-curl/lua-curl-9999.ebuild
index 8a8702e..28c65b5 100644
--- a/dev-lua/lua-curl/lua-curl-9999.ebuild
+++ b/dev-lua/lua-curl/lua-curl-9999.ebuild
@@ -4,7 +4,8 @@
EAPI="5"
-inherit git-r3
+VCS="git-r3"
+inherit lua
DESCRIPTION="Lua cURL Library"
HOMEPAGE="https://github.com/Lua-cURL/Lua-cURLv3"
@@ -15,37 +16,32 @@ EGIT_REPO_URI="https://github.com/Lua-cURL/Lua-cURLv3"
LICENSE="MIT"
SLOT="0"
KEYWORDS=""
-IUSE="doc examples luajit"
+IUSE="doc +examples"
RDEPEND="
- virtual/lua[luajit=]
net-misc/curl
"
-DEPEND="${RDEPEND}
- virtual/pkgconfig
+DEPEND="
+ doc? ( dev-lua/luadoc )
+ ${RDEPEND}
"
-src_prepare() {
- epatch_user
-}
+EXAMPLES=( examples/* )
+HTML_DOCS=( html/ )
+READMES=( README.md )
-src_configure() {
- local lua="lua";
- use luajit && lua="luajit";
- echo "LUA_IMPL=${lua}" > ${S}/.config;
+each_lua_compile() {
+ _lua_setCFLAGS
+ emake LUA_IMPL="${lua_impl}"
}
-
-
-src_install() {
- use examples && {
- docompress -x /usr/share/doc/${PF}/examples
- dodoc -r examples
- }
+all_lua_compile() {
use doc && (
- docompress -x /usr/share/doc/${PF}/html
cd doc
- ldoc .
- dohtml -r html
+ ldoc . -d ../html
)
- default
+}
+
+
+each_lua_install() {
+ emake LUA_IMPL="${lua_impl}" DESTDIR="${D}" install
}