~ubuntu-branches/ubuntu/trusty/gdis/trusty

« back to all changes in this revision

Viewing changes to make_gdis.app

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Leidert (dale)
  • Date: 2009-04-06 17:12:18 UTC
  • mfrom: (3.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090406171218-uizoe126jrq09ytt
Tags: 0.90-1
* New upstream release 0.90.
* Acknowledge NMU (closes: #492994). Thanks to Neil Williams.

* makefile.debian: Upstream doesn't provide a Makefile to edit - so created
  our own.
* debian/compat: Added and set to be 5.
* debian/control: Added Homepage, Vcs* and DM-Upload-Allowed fields.
  (Maintainer): Set to the debichem team with approval by Noèl.
  (Uploaders): Added myself.
  (Build-Depends): Increased debhelper version to 5. Removed glutg3-dev.
  Added dpatch.
  (Standards-Version): Bumped to 3.8.1.
  (Description): Removed homepage. Fixed a typo.
* debian/copyright: Updated, completed and adjusted.
* debian/dirs: Dropped useless file.
* debian/docs: Renamed to debian/gdis.docs.
* debian/menu: Renamed to debian/gdis.menu.
  (section): Fixed accordingly to policy.
* debian/gdis.1: Just some formatting changes.
* debian/gdis.desktop: Added file (with small fixes) provided by Phill Bull
  (LP: #111353).
* debian/gdis.install: Added.
* debian/rules: Cleaned. Installation is now done by dh_install. Make sure,
  the CVS directory is not copied. Added dh_desktop call.
* debian/source.lintian-overrides: makefile.debian is created for Debian but
  lives outside debian/.
* debian/watch: Added.
* debian/README.build: Dropped.
* debian/README.source: Added to be compliant to the policy v3.8.
* debian/patches/Debian_make.dpatch: Added.
  - gdis.h (ELEM_FILE): Moved fix for gdis.elemts path (#399132) to this
    patch.
* debian/patches/00list: Added.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
  echo "I hope you are running this script from the makefile."
14
14
  exit 42
15
15
fi
 
16
if [[ ! -d $FINK ]]; then
 
17
  echo "Error: environment variable FINK does not point to a real directory."
 
18
  echo "$FINK"
 
19
  exit 42
 
20
fi
16
21
 
17
22
################################################################################
18
23
# A convenience function.
47
52
  echo "done."
48
53
fi
49
54
 
 
55
# Fix in case script is not executable after above step.
 
56
if [[ ! -x gdis.app/Contents/Resources/script ]]; then
 
57
  chmod a+x gdis.app/Contents/Resources/script
 
58
fi
 
59
 
50
60
# Workaround for platypus icon copy bug
51
61
if [[ ! -f gdis.app/Contents/Resources/GDIS.icns ]]; then
52
62
  cp GDIS.icns gdis.app/Contents/Resources
56
66
mkdir -p gdis.app/Contents/Frameworks
57
67
#Make fink library dependencies to be within gdis.app.
58
68
echo "Fixing library dependencies in gdis..."
59
 
for lib in `otool -L gdis | grep "$FINK"` ; do
60
 
  if [[ -n $( echo $lib | grep $FINK ) ]]; then
 
69
for lib in `otool -L gdis.app/Contents/Resources/gdis | grep -i "$FINK"` ; do
 
70
  if [[ -n $( echo $lib | grep -i $FINK ) ]]; then
61
71
    checkfile $lib
62
72
    cp -f $lib gdis.app/Contents/Frameworks
63
73
    newlib=$( echo "$lib" | sed 's/^.*\//\@executable_path\/..\/Frameworks\//' )
68
78
 
69
79
echo "Copying pango..."
70
80
for file in `find $FINK/lib/pango` ; do
71
 
  newfile=$( echo "$file" | sed "s/$FINK1\/lib/gdis.app\/Contents\/Frameworks/" )
 
81
#  newfile=$( echo "$file" | sed "s/$FINK1\/lib/gdis.app\/Contents\/Frameworks/" )
 
82
  newfile=$( echo "$file" | perl -p -e "s/$FINK1\/lib/gdis.app\/Contents\/Frameworks/gi" )
72
83
  if [[ -d $file ]]; then
73
84
    mkdir -p $newfile
74
85
  else
92
103
mkdir -p gdis.app/Contents/Resources/etc/pango
93
104
checkfile $FINK/etc/pango/pangox.aliases
94
105
cp $FINK/etc/pango/pangox.aliases gdis.app/Contents/Resources/etc/pango/pangox.aliases
95
 
pango-querymodules | grep -v "^#" | sed "s/$FINK1\/lib/\$\{CWD\}\/..\/Frameworks/" | sed -E "s/^([^ ]+)/\"\1\"/" > gdis.app/Contents/Resources/etc/pango/pango.modules
 
106
#pango-querymodules | grep -v "^#" | sed "s/$FINK1\/lib/\$\{CWD\}\/..\/Frameworks/" | sed -E "s/^([^ ]+)/\"\1\"/" > gdis.app/Contents/Resources/etc/pango/pango.modules
 
107
pango-querymodules | grep -v "^#" | perl -p -e "s/$FINK1\/lib/\\$\{\CWD}\/..\/Frameworks/gi" | sed -E "s/^([^ ]+)/\"\1\"/" > gdis.app/Contents/Resources/etc/pango/pango.modules
96
108
 
97
109
echo "Copying GTK2..."
98
110
mkdir -p gdis.app/Contents/Frameworks/gtk-2.0/$GTK2VERS
99
111
for file in `find $FINK/lib/gtk-2.0/$GTK2VERS` ; do
100
 
  newfile=$( echo "$file" | sed "s/$FINK1\/lib/gdis.app\/Contents\/Frameworks/" )
 
112
#  newfile=$( echo "$file" | sed "s/$FINK1\/lib/gdis.app\/Contents\/Frameworks/" )
 
113
  newfile=$( echo "$file" | perl -p -e "s/$FINK1\/lib/gdis.app\/Contents\/Frameworks/gi" )
101
114
  if [[ -d $file ]]; then
102
115
    mkdir -p $newfile
103
116
  else
111
124
done
112
125
 
113
126
mkdir -p gdis.app/Contents/Resources/etc/gtk-2.0
114
 
gtk-query-immodules-2.0 | sed "s/$FINK1\/lib/\$\{CWD\}\/..\/Frameworks/" | grep -v "^#" > gdis.app/Contents/Resources/etc/gtk-2.0/gtk.immodules
 
127
#gtk-query-immodules-2.0 | sed "s/$FINK1\/lib/\$\{CWD\}\/..\/Frameworks/" | grep -v "^#" > gdis.app/Contents/Resources/etc/gtk-2.0/gtk.immodules
 
128
gtk-query-immodules-2.0 | perl -p -e "s/$FINK1\/lib/\\$\{\CWD}\/..\/Frameworks/gi" | grep -v "^#" > gdis.app/Contents/Resources/etc/gtk-2.0/gtk.immodules
115
129
 
116
130
# Get rid of fink dependencies out of libraries too.
117
131
echo "Fixing inter-library dependencies..."
119
133
  echo "  processing $file"
120
134
  newlib=$( echo "$file" | sed 's/^.*\//\@executable_path\/..\/Frameworks\//' )
121
135
  install_name_tool -id $newlib $file
122
 
  for lib in `otool -L $file | grep "$FINK"` ; do
123
 
    if [[ -n $( echo $lib | grep $FINK ) ]]; then
 
136
  for lib in `otool -L $file | grep -i "$FINK"` ; do
 
137
    if [[ -n $( echo $lib | grep -i $FINK ) ]]; then
124
138
      newlib=$( echo "$lib" | sed 's/^.*\//\@executable_path\/..\/Frameworks\//' )
125
139
      install_name_tool -change $lib $newlib $file
126
140
    fi
127
141
  done
128
142
done
129
143
 
130
 
gdk-pixbuf-query-loaders | sed "s/$FINK1\/lib/\$\{CWD\}\/..\/Frameworks/"> gdis.app/Contents/Resources/gdk-pixbuf.loaders
 
144
gdk-pixbuf-query-loaders | perl -p -e "s/$FINK1\/lib/\\$\{\CWD}\/..\/Frameworks/gi"> gdis.app/Contents/Resources/gdk-pixbuf.loaders
 
145
#gdk-pixbuf-query-loaders | sed "s/$FINK1\/lib/\$\{CWD\}\/..\/Frameworks/"> gdis.app/Contents/Resources/gdk-pixbuf.loaders
131
146
 
132
147
# Final check that we've sorted out all the Fink dependencies.
133
148
echo "Just checking sure we got all the Fink dependencies sorted..."
134
149
for file in `find gdis.app/Contents/Frameworks -name "*.dylib" -or -name "*.so"`; do
135
 
  if [[ -n `otool -L $file | grep "$FINK"` ]]; then
 
150
  if [[ -n `otool -L $file | grep -i "$FINK"` ]]; then
136
151
    echo "$file still has a FINK depenency"
137
152
  fi
138
153
done
139
 
if [[ -n `otool -L gdis.app/Contents/Resources/gdis | grep "$FINK"` ]]; then
 
154
if [[ -n `otool -L gdis.app/Contents/Resources/gdis | grep -i "$FINK"` ]]; then
140
155
  echo "gdis.app/Contents/Resources/gdis still has a FINK depenency"
141
156
fi
142
157