* Added f-spot.
svn path=/nixpkgs/trunk/; revision=2380
This commit is contained in:
parent
8880818869
commit
a04773c876
28
pkgs/applications/graphics/f-spot/builder.sh
Normal file
28
pkgs/applications/graphics/f-spot/builder.sh
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
. $stdenv/setup
|
||||||
|
. $makeWrapper
|
||||||
|
|
||||||
|
postInstall=postInstall
|
||||||
|
postInstall() {
|
||||||
|
mv $out/bin $out/bin-orig
|
||||||
|
mkdir $out/bin
|
||||||
|
|
||||||
|
for i in $out/bin-orig/*; do
|
||||||
|
echo "wrapping $(basename $i)"
|
||||||
|
# !!! TODO: figure out the MONO_GAC_PREFIX automatically
|
||||||
|
makeWrapper "$i" "$out/bin/$(basename $i)" \
|
||||||
|
--suffix PATH ':' "$(dirname $(type -p mono))" \
|
||||||
|
--suffix LD_LIBRARY_PATH ':' "$sqlite/lib" \
|
||||||
|
--suffix LD_LIBRARY_PATH ':' "$libgnomeui/lib/libglade/2.0" \
|
||||||
|
--suffix MONO_GAC_PREFIX ':' "$gtksharp"
|
||||||
|
done
|
||||||
|
|
||||||
|
# !!! hack
|
||||||
|
export ALL_INPUTS="$out $pkgs"
|
||||||
|
|
||||||
|
find $out -name "*.dll.config" -o -name "*.exe.config" | while read configFile; do
|
||||||
|
echo "modifying config file $configFile"
|
||||||
|
$monoDLLFixer "$configFile"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
genericBuild
|
26
pkgs/applications/graphics/f-spot/default.nix
Normal file
26
pkgs/applications/graphics/f-spot/default.nix
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
{ stdenv, fetchurl, perl, perlXMLParser, pkgconfig, mono, libexif
|
||||||
|
, libgnome, libgnomeui, gtksharp, libjpeg, sqlite, lcms, libgphoto2
|
||||||
|
, monoDLLFixer
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "f-spot-0.0.10";
|
||||||
|
|
||||||
|
builder = ./builder.sh;
|
||||||
|
makeWrapper = ../../../build-support/make-wrapper/make-wrapper.sh;
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = http://ftp.gnome.org/pub/gnome/sources/f-spot/0.0/f-spot-0.0.10.tar.bz2;
|
||||||
|
md5 = "19cc6e067ccc261b0502ff6189b79832";
|
||||||
|
};
|
||||||
|
|
||||||
|
patches = [./dllmap.patch];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
perl perlXMLParser pkgconfig mono libexif
|
||||||
|
libgnome libgnomeui gtksharp libjpeg sqlite
|
||||||
|
lcms libgphoto2
|
||||||
|
];
|
||||||
|
|
||||||
|
inherit monoDLLFixer gtksharp sqlite libgnomeui;
|
||||||
|
}
|
28
pkgs/applications/graphics/f-spot/dllmap.patch
Normal file
28
pkgs/applications/graphics/f-spot/dllmap.patch
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
diff -rc f-spot-0.0.10-orig/libgphoto2-sharp/libgphoto2-sharp.dll.config f-spot-0.0.10/libgphoto2-sharp/libgphoto2-sharp.dll.config
|
||||||
|
*** f-spot-0.0.10-orig/libgphoto2-sharp/libgphoto2-sharp.dll.config 2005-02-27 19:25:09.000000000 +0100
|
||||||
|
--- f-spot-0.0.10/libgphoto2-sharp/libgphoto2-sharp.dll.config 2005-03-11 12:13:12.000000000 +0100
|
||||||
|
***************
|
||||||
|
*** 1,3 ****
|
||||||
|
<configuration>
|
||||||
|
! <dllmap dll="libgphoto2.so" target="/usr/lib/libgphoto2.so.2"/>
|
||||||
|
</configuration>
|
||||||
|
--- 1,3 ----
|
||||||
|
<configuration>
|
||||||
|
! <dllmap dll="libgphoto2.so" target="libgphoto2.so.2"/>
|
||||||
|
</configuration>
|
||||||
|
diff -rc f-spot-0.0.10-orig/src/f-spot.exe.config.in f-spot-0.0.10/src/f-spot.exe.config.in
|
||||||
|
*** f-spot-0.0.10-orig/src/f-spot.exe.config.in 2005-02-27 18:03:02.000000000 +0100
|
||||||
|
--- f-spot-0.0.10/src/f-spot.exe.config.in 2005-03-11 12:48:03.000000000 +0100
|
||||||
|
***************
|
||||||
|
*** 9,13 ****
|
||||||
|
<dllmap dll="libfspoteog" target="@prefix@/lib/f-spot/libfspoteog.so.0"/>
|
||||||
|
<dllmap dll="libfspotjpeg" target="@prefix@/lib/f-spot/libfspotjpg.so.0"/>
|
||||||
|
<dllmap dll="liblcms-1.0.0.dll" target="liblcms.so.1"/>
|
||||||
|
! <dllmap dll="libexif.dll" target="libexif.so.@EXIF_SOVERSION@"/>
|
||||||
|
</configuration>
|
||||||
|
--- 9,13 ----
|
||||||
|
<dllmap dll="libfspoteog" target="@prefix@/lib/f-spot/libfspoteog.so.0"/>
|
||||||
|
<dllmap dll="libfspotjpeg" target="@prefix@/lib/f-spot/libfspotjpg.so.0"/>
|
||||||
|
<dllmap dll="liblcms-1.0.0.dll" target="liblcms.so.1"/>
|
||||||
|
! <dllmap dll="libexif.dll" target="libexif.so"/>
|
||||||
|
</configuration>
|
@ -1143,14 +1143,12 @@ rec {
|
|||||||
inherit (gtkLibs) gtk;
|
inherit (gtkLibs) gtk;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
|
||||||
fspot = (import ../applications/graphics/f-spot) {
|
fspot = (import ../applications/graphics/f-spot) {
|
||||||
inherit fetchurl stdenv perl perlXMLParser pkgconfig mono
|
inherit fetchurl stdenv perl perlXMLParser pkgconfig mono
|
||||||
libexif libjpeg sqlite lcms;
|
libexif libjpeg sqlite lcms libgphoto2 monoDLLFixer;
|
||||||
inherit (gnome) libgnome libgnomeui;
|
inherit (gnome) libgnome libgnomeui;
|
||||||
gtksharp = gtksharp1;
|
gtksharp = gtksharp1;
|
||||||
};
|
};
|
||||||
*/
|
|
||||||
|
|
||||||
hello = (import ../applications/misc/hello/ex-1) {
|
hello = (import ../applications/misc/hello/ex-1) {
|
||||||
inherit fetchurl stdenv perl;
|
inherit fetchurl stdenv perl;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user