summary refs log tree commit diff
path: root/pkgs/applications/graphics/f-spot/builder.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/graphics/f-spot/builder.sh')
-rw-r--r--pkgs/applications/graphics/f-spot/builder.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/f-spot/builder.sh b/pkgs/applications/graphics/f-spot/builder.sh
new file mode 100644
index 000000000000..88ab8810e74f
--- /dev/null
+++ b/pkgs/applications/graphics/f-spot/builder.sh
@@ -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