mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 13:37:21 +03:00
8a282aa46c
* Remove explicit setting of PERL5LIB. * Use the generic Perl builder for the BerkeleyDB and XML::Parser modules. * Prefix all names of Perl modules with `perl-' (in the generic Perl builder). svn path=/nixpkgs/trunk/; revision=2365
30 lines
901 B
Bash
30 lines
901 B
Bash
. $stdenv/setup
|
|
. $makeWrapper
|
|
|
|
export MONO_GAC_PREFIX=$monodoc:$gtksharp
|
|
|
|
postInstall=postInstall
|
|
postInstall() {
|
|
mv $out/bin $out/bin-orig
|
|
mkdir $out/bin
|
|
|
|
moz=$(ls $mozilla/lib/*/libgtkembedmoz.so)
|
|
|
|
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 PATH ':' "$(dirname $(type -p mono))" \
|
|
--suffix LD_LIBRARY_PATH ':' "$gtksharp/lib" \
|
|
--suffix MONO_GAC_PREFIX ':' "$gtksharp" \
|
|
--suffix MONO_GAC_PREFIX ':' "$gtkmozembedsharp" \
|
|
--suffix MONO_GAC_PREFIX ':' "$gtksourceviewsharp" \
|
|
--suffix MONO_GAC_PREFIX ':' "$monodoc" \
|
|
--set MOZILLA_FIVE_HOME "$(dirname $moz)"
|
|
done
|
|
}
|
|
|
|
genericBuild
|
|
|