3
0
Fork 0
forked from mirrors/nixpkgs

efl: patch binary to handle manual dependency on libcurl.so

This commit is contained in:
José Romildo Malaquias 2018-03-27 13:54:44 -03:00
parent fb1f35424e
commit 0c573de7dd
5 changed files with 13 additions and 24 deletions

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, efl, python2Packages, dbus, curl, makeWrapper }:
{ stdenv, fetchurl, pkgconfig, efl, python2Packages, dbus, makeWrapper }:
stdenv.mkDerivation rec {
name = "econnman-${version}";
@ -11,13 +11,12 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ makeWrapper pkgconfig python2Packages.wrapPython ];
buildInputs = [ efl python2Packages.python dbus curl ];
buildInputs = [ efl python2Packages.python dbus ];
pythonPath = [ python2Packages.pythonefl python2Packages.dbus-python ];
postInstall = ''
wrapPythonPrograms
wrapProgram $out/bin/econnman-bin --prefix LD_LIBRARY_PATH : ${curl.out}/lib
'';
meta = {

View file

@ -70,6 +70,12 @@ stdenv.mkDerivation rec {
'Cflags: -I''${includedir}/eina-1/eina'"$modules"
'';
# EFL applications depend on libcurl, although it is linked at
# runtime by hand in code (it is dlopened).
postFixup = ''
patchelf --add-needed ${curl.out}/lib/libcurl.so $out/lib/libecore_con.so
'';
enableParallelBuilding = true;
meta = {

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, efl, pcre, curl, makeWrapper }:
{ stdenv, fetchurl, pkgconfig, efl, pcre, makeWrapper }:
stdenv.mkDerivation rec {
name = "ephoto-${version}";
@ -11,11 +11,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ (pkgconfig.override { vanilla = true; }) makeWrapper ];
buildInputs = [ efl pcre curl ];
postInstall = ''
wrapProgram $out/bin/ephoto --prefix LD_LIBRARY_PATH : ${curl.out}/lib
'';
buildInputs = [ efl pcre ];
meta = {
description = "Image viewer and editor written using the Enlightenment Foundation Libraries";

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, meson, ninja, pkgconfig, efl, gst_all_1, pcre, curl, wrapGAppsHook }:
{ stdenv, fetchurl, meson, ninja, pkgconfig, efl, gst_all_1, pcre, wrapGAppsHook }:
stdenv.mkDerivation rec {
name = "rage-${version}";
@ -24,12 +24,7 @@ stdenv.mkDerivation rec {
gst_all_1.gst-plugins-bad
gst_all_1.gst-libav
pcre
curl
];
postInstall = ''
wrapProgram $out/bin/rage --prefix LD_LIBRARY_PATH : ${curl.out}/lib
'';
];
meta = {
description = "Video + Audio player along the lines of mplayer";

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, efl, pcre, curl, makeWrapper }:
{ stdenv, fetchurl, pkgconfig, efl, pcre, makeWrapper }:
stdenv.mkDerivation rec {
name = "terminology-${version}";
@ -17,15 +17,8 @@ stdenv.mkDerivation rec {
buildInputs = [
efl
pcre
curl
];
postInstall = ''
for f in $out/bin/*; do
wrapProgram $f --prefix LD_LIBRARY_PATH : ${curl.out}/lib
done
'';
meta = {
description = "The best terminal emulator written with the EFL";
homepage = http://enlightenment.org/;