~ubuntu-branches/debian/sid/stellarium/sid

« back to all changes in this revision

Viewing changes to util/pkgApp.pl

  • Committer: Package Import Robot
  • Author(s): Tomasz Buchert
  • Date: 2013-08-04 15:06:55 UTC
  • mfrom: (1.2.12)
  • Revision ID: package-import@ubuntu.com-20130804150655-iji0vb5navh3lk13
Tags: 0.12.2-1
* Imported Upstream version 0.12.2
* Added dependency to phonon (to enable video/sound)
* Fixed VCS links
* Removed unused lintian tag (embedded-library glee)
* Dropped obsolete patch
* Update copyright

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
                if ( ! -e $fwPath ) {
64
64
                    my $c = "cp -RP -p $absname $frameworks_dir/$fwname";
65
65
                    `$c`;
 
66
                    system('chmod', '-R', '755', "$frameworks_dir/$fwname");
66
67
                } else {
67
68
                    $not_existed = 0;
68
69
                }
69
70
 
70
71
                my $c = sprintf($id_inmt, $relPath, $fwPath);
 
72
                print "$c\n";
71
73
                `$c`;
72
74
                $c = sprintf($ch_inmt, $name, $relPath, $main_executable);
 
75
                print "$c\n";
73
76
                `$c`;
74
77
 
75
78
                if ( $not_existed ) {
97
100
                if ( ! -e $fwPath ) {
98
101
                    my $c = "cp -RP -p $absname $frameworks_dir/$fwname";
99
102
                    `$c`;
 
103
                    system('chmod', '-R', '755', "$frameworks_dir/$fwname");
100
104
                } else {
101
105
                    $not_existed = 0;
102
106
                }
103
107
 
104
108
                my $c = sprintf($id_inmt, $relPath, $fwPath);
 
109
                print "$c\n";
105
110
                `$c`;
106
111
                $c = sprintf($ch_inmt, $name, $relPath, $main_executable);
 
112
                print "$c\n";
107
113
                `$c`;
108
114
 
109
115
                if ( $not_existed ) {
130
136
                if ( ! -e $fwPath ) {
131
137
                    my $c = "cp -P $absname $frameworks_dir/$current_arch";
132
138
                    `$c`;
 
139
                    system('chmod', '-R', '755', "$frameworks_dir/$current_arch");
133
140
                } else {
134
141
                    $not_existed = 0;
135
142
                }
136
143
 
137
144
                my $c = sprintf($id_inmt, $relPath, $fwPath);
 
145
                print "$c\n";
138
146
                `$c`;
139
147
                $c = sprintf($ch_inmt, $absname, $relPath, $main_executable);
 
148
                print "$c\n";
140
149
                `$c`;
141
150
 
142
151
                if ( $not_existed ) {
166
175
                my $relPath = "\@executable_path/$basename";
167
176
 
168
177
                my $c = sprintf($id_inmt, $relPath, $absname);
 
178
                print "$c\n";
169
179
                `$c`;
170
180
                $c = sprintf($ch_inmt, $name, $relPath, $main_executable);
 
181
                print "$c\n";
171
182
                `$c`;
172
183
 
173
184
                &recurse($absname, $frameworks_dir, $current_arch);
224
235
sub locateFramework {
225
236
    my $fname = shift;
226
237
    my $lib;
227
 
    foreach $lib ( '~/Library/Frameworks', '/Library/Frameworks', '/usr/local/Trolltech/Qt-4.7.1/lib' ) {
 
238
    foreach $lib ( '/opt/local/Library/Frameworks', '~/Library/Frameworks', '/Library/Frameworks', '/usr/local/Trolltech/Qt-4.7.1/lib' ) {
228
239
        if ( -e "$lib/$fname" ) {
229
240
            return "$lib/$fname";
230
241
        }