Update of /cvsroot/fink/dists/10.7/stable/main/finkinfo/devel
In directory vz-cvs-3.sog:/tmp/cvs-serv31957/stable/main/finkinfo/devel
Added Files:
automoc.info flag-dedup.info flag-dedup.patch
Log Message:
need these for building too
--- NEW FILE: flag-dedup.info ---
Package: flag-dedup
Version: 0.2
Revision: 31
Description: Remove duplicate compiler flags
License: GPL
Maintainer: Benjamin Reed <[email protected]>
BuildDepends: fink (>= 0.30.2-1)
Source: none
PatchFile: %n.patch
PatchFile-MD5: 1622940414256c3afb47b5cd49e0805a
UseMaxBuildJobs: true
CompileScript: #
InstallScript: <<
mkdir -p %i/bin
install -m755 flag-dedup %i/bin
<<
DescUsage: <<
flag-dedup [-v] CMD ARG1 ARG2 ...
The command CMD is launched with ARG1 ARG2 ... as arguments. The
arguments are de-duplicated so multiple compiler flags are reduced
to a single flag.
The -v flag causes flag-dedup to print the command that will be
launched and all the flags in order on STDOUT.
<<
--- NEW FILE: automoc.info ---
Info3: <<
Package: automoc-%type_pkg[automoc]
Version: 0.9.89
Revision: 0.999999.31
Description: Automatic moc for Qt4
Type: automoc (x11 mac)
License: LGPL
Maintainer: Benjamin Reed <[email protected]>
Depends: qt4-base-%type_pkg[automoc]-qtcore-shlibs (>= 4.7.3-2)
BuildDepends: <<
cmake (>= 2.8.2-1),
fink (>= 0.30.2-1),
kde4-buildenv (>= 4.6.0-1),
system-openssl-dev,
qt4-base-%type_pkg[automoc] (>= 4.7.3-2)
<<
GCC: 4.0
CustomMirror: <<
Primary: http://ranger.users.finkproject.org/distfiles
eur-NL: http://ranger.users.finkproject.org/distfiles
nam-US: http://ranger.befunk.com/fink
nam-US: http://astrange.ithinksw.net/~astrange/ranger-fink
nam-CA: http://www.southofheaven.net/befunk
<<
Source: mirror:custom:automoc/automoc-0fc7d22.tar.bz2
Source-MD5: b444ace116241d4135305b687496620c
SourceDirectory: automoc
UseMaxBuildJobs: true
CompileScript: <<
#!/bin/sh -ev
export KDE4_PREFIX="%p" KDE4_TYPE="%type_pkg[automoc]"
. %p/sbin/kde4-buildenv.sh
mkdir -p build
pushd build
cmake $KDE4_CMAKE_ARGS ..
make VERBOSE=1
popd
<<
InstallScript: <<
#!/bin/sh -ev
pushd build
make -j1 install/fast DESTDIR="%d"
popd
<<
PostInstScript: <<
WEIGHT=100
if [ "%type_pkg[automoc]" = "x11" ]; then
WEIGHT=50
fi
update-alternatives --auto automoc4
update-alternatives --install %p/bin/automoc4 automoc4
%p/opt/kde4/%type_pkg[automoc]/bin/automoc4 $WEIGHT
<<
PreRmScript: update-alternatives --remove automoc4
%p/opt/kde4/%type_pkg[automoc]/bin/automoc4
DescDetail: <<
This package contains the automoc4 binary which is used to run moc on
the right binaries in a Qt 4 or KDE 4 application.
Moc is the meta object compiler which is a much used tool when using the Qt
toolkit.
<<
<<
--- NEW FILE: flag-dedup.patch ---
--- /dev/null 2011-05-14 23:17:03.000000000 -0400
+++ tmp/flag-dedup 2011-05-14 23:45:43.000000000 -0400
@@ -0,0 +1,57 @@
+#!/usr/bin/perl
+# -*- mode: Perl; tab-width: 4; -*-
+
+# A dirty hack by Benjamin Reed
+# Based on a dirty hack by Daniel Macks
+
+use warnings;
+use strict;
+
+my $verbose = 0;
+if (@ARGV && $ARGV[0] eq '-v') {
+ $verbose = 1;
+ shift;
+}
+
+if (!@ARGV) {
+ warn "Usage: $0 [-v] cmd [flags for cmd]\n";
+ warn " resort [flags for cmd] and call cmd with them\n";
+ warn " -v causes display of some diagnostics on STDOUT\n";
+ exit 1;
+}
+
+my @flag_prefixes = qw( -I -L -F -Wl -l -framework );
+
+# keep a list of seen flags
+my %existing_args = ();
+
+# what we will launch after organizing the flags
+my @subcmd = ();
+
+# separate the args according to flag
+my $skip_next = 0;
+while (@ARGV) {
+ if ($skip_next) {
+ $skip_next = 0;
+ next;
+ }
+ my $arg = shift @ARGV;
+ my($match) = grep { $arg =~ /^$_/ } @flag_prefixes;
+ if (defined $match) {
+ if ($match eq "-framework") {
+ $skip_next = 1;
+ $arg = "-Wl,-framework," . shift @ARGV;
+ }
+ # parsed off a known flag
+ if (not exists $existing_args{$arg}) {
+ push(@subcmd, $arg);
+ }
+ $existing_args{$arg}++;
+ } else {
+ # unhandled flag, add it
+ push(@subcmd, $arg);
+ }
+}
+
+print "$0: @subcmd\n" if $verbose;
+exec {$subcmd[0]} @subcmd or die "Could not exec $subcmd[0]: $!\n";
------------------------------------------------------------------------------
Using storage to extend the benefits of virtualization and iSCSI
Virtualization increases hardware utilization and delivers a new level of
agility. Learn what those decisions are and how to modernize your storage
and backup environments for virtualization.
http://www.accelacomm.com/jaw/sfnl/114/51434361/
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs