automoc _unstable_ port information

Info3: <<
Package: automoc-%type_pkg[automoc]
Version: 0.9.89
Revision: 0.999999.1
Description: Automatic moc for Qt4
Type: automoc (x11 mac)
License: LGPL
Maintainer: Benjamin Reed

Depends: qt4-base-%type_pkg[automoc]-qtcore-shlibs (>= 4.7.3-1)
BuildDepends: <<
cmake (>= 2.8.2-1),
fink (>= 0.30.0-1),
kde4-buildenv (>= 4.6.0-1),
system-openssl-dev,
qt4-base-%type_pkg[automoc] (>= 4.7.3-1)
<<
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.
<<
<<