mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-18 21:00:56 +02:00
lorcon: fix failure on first install
This commit is contained in:
parent
9b8175d0d8
commit
06212e99bf
2 changed files with 13 additions and 5 deletions
|
|
@ -1 +1 @@
|
|||
EBUILD lorcon-9999.ebuild 1145 SHA256 cf068f2ba96dd7c4484823caa22fe3977ff35bee623993275a107e0cc0869b3d SHA512 2684267996cd6d4c0f095e1affb28e612af08e1221c40784a0f7a1125ce0783b20a485ebc5e0061f36f9b1ce3f2923d3d9cf11d061787e58c3a1914a8ac54532 WHIRLPOOL bfe24e7b2a42037efca3deb66a5581547b05a58abc2a89904ed19d22f59207fbb4e7a74cae8bf65076ece9af360edc8bcc16ff816e41db6a265a8d5b07b19a9c
|
||||
EBUILD lorcon-9999.ebuild 1539 SHA256 b01cc8a8078a236cc3c96cfe1dcac8f50168a79afb483aa21b94aa4f7d245f55 SHA512 6e1e1ddce6cf70ee1f0cb10d651fa4a9202b9fa1b1ac300e55d1bd8bbd6dc6423e4493c94bf27a747f208c51df52b72effee689428869a5c0e52eed2f967f6ff WHIRLPOOL c9b2353d895772ad1bc92239ee10e17b42968316563610d02819408c9f68fae563a20863c8f60c52122497cf25dcc5cc8b5b90924686f2279baaab63a37dae31
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI=4
|
||||
EAPI=5
|
||||
|
||||
PYTHON_DEPEND="python? 2"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
|
|
@ -32,20 +32,28 @@ pkg_setup() {
|
|||
|
||||
src_prepare() {
|
||||
use python && distutils_src_prepare
|
||||
sed -i 's#<lorcon2/lorcon.h>#"../lorcon.h"#' pylorcon2/PyLorcon2.c
|
||||
sed -i 's#find_library("orcon2", "lorcon_list_drivers", "lorcon2/lorcon.h") and ##' ruby-lorcon/extconf.rb
|
||||
sed -i "s#-I/usr/include/lorcon2#-I${S}/#" ruby-lorcon/extconf.rb
|
||||
sed -i 's#<lorcon2/lorcon.h>#"../lorcon.h"#' ruby-lorcon/Lorcon2.h
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default_src_compile
|
||||
use python && distutils_src_compile
|
||||
emake
|
||||
if use python; then
|
||||
LDFLAGS+=" -L${S}/.libs/"
|
||||
distutils_src_compile
|
||||
fi
|
||||
if use ruby; then
|
||||
cd "${S}"/ruby-lorcon
|
||||
ruby extconf.rb
|
||||
sed -i "s#-L\.#-L. -L${S}/.libs -lorcon2 #g" Makefile
|
||||
emake
|
||||
fi
|
||||
}
|
||||
|
||||
src_install () {
|
||||
emake DESTDIR="${D}" install
|
||||
emake DESTDIR="${ED}" install
|
||||
use python && distutils_src_install
|
||||
if use ruby; then
|
||||
cd "${S}"/ruby-lorcon
|
||||
|
|
|
|||
Loading…
Reference in a new issue