Major infrastructure changes, part 2.

* Moved helpers, common and triggers dirs into xbps-src, where
  they belong.
* Renamed the templates dir to srcpkgs, it was so redundant before.
* Make it possible to add subpkgs with no restriction in names, for
  example udev now has a subpkgs called "libgudev". Previously
  subpkgs were named "${sourcepkg}-${pkgname}".
* xbps-src: changed to look for template files in current directory.
  That means that most arguments from the targets have been removed.
* xbps-src: added a reinstall target, to remove + install.
* xbps-src: do not overwrite binpkgs by default, skip them.

And more that I forgot because it's a mega-commit that I've been
working for some days already...

--HG--
extra : convert_revision : 0f466878584d1e6895d2a234f07ea1b2d1e61b3e
This commit is contained in:
Juan RP
2009-11-22 08:31:44 +01:00
parent 3c58e3ad40
commit 85cc462e1d
1305 changed files with 719 additions and 654 deletions

2
srcpkgs/libwmf/depends Normal file
View File

@@ -0,0 +1,2 @@
abi_depends=">=0.2.8.4"
api_depends="${abi_depends}"

View File

@@ -0,0 +1,23 @@
# Template file for 'libwmf-devel'.
#
short_desc="${sourcepkg} development files"
long_desc="${long_desc}
This package contains files for development, headers, static libs, etc."
Add_dependency run libwmf
do_install()
{
local gtk_abiver="2.10.0"
mkdir -p ${DESTDIR}/usr/lib/gtk-2.0/${gtk_abiver}/loaders
mkdir -p ${DESTDIR}/usr/bin ${DESTDIR}/usr/share
mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr
mv ${SRCPKGDESTDIR}/usr/lib/lib*.*a ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/lib/lib*.so ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/share/doc ${DESTDIR}/usr/share
mv ${SRCPKGDESTDIR}/usr/bin/libwmf-config ${DESTDIR}/usr/bin
mv ${SRCPKGDESTDIR}/usr/lib/gtk-2.0/${gtk_abiver}/loaders/*.*a \
${DESTDIR}/usr/lib/gtk-2.0/${gtk_abiver}/loaders
}

39
srcpkgs/libwmf/template Normal file
View File

@@ -0,0 +1,39 @@
# Template build file for 'libwmf'.
pkgname=libwmf
version=0.2.8.4
revision=1
distfiles="${SOURCEFORGE_SITE}/wvware/$pkgname-$version.tar.gz"
build_style=gnu_configure
configure_args="--with-gsfontdir=/usr/share/fonts/Type1
--with-fontdir=/usr/share/fonts/Type1
--with-gsfontmap=/usr/share/ghostscript/8.15/lib/Fontmap.GS"
short_desc="Library for reading and converting WMF (Windows Meta Files)"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=5b345c69220545d003ad52bfd035d5d6f4f075e65204114a9e875e84895a7cf8
long_desc="
libwmf is a library for UNIX-like machines that can convert wmf
(Windows Meta Files) files into other formats. Currently it supports
a gd binding to convert to png, and an X one to draw direct to an X
window or pixmap. It also comes with a program to display wmfs: wmf2x.
Without a TrueType font server and the standard MS Windows fonts, the X
binding might render text in a different font than would appear under
MS Windows natively (this is a runtime issue for the wmf2x program)."
triggers="gtk-pixbuf-loaders"
subpackages="$pkgname-devel"
Add_dependency build pkg-config
Add_dependency full glibc
Add_dependency full freetype
Add_dependency full jpeg
Add_dependency full libpng
Add_dependency full expat
Add_dependency full gtk+
Add_dependency full gsfonts
Add_dependency full gd
post_install()
{
rm -rf ${DESTDIR}/usr/share/fonts
}