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:
2
srcpkgs/gettext/depends
Normal file
2
srcpkgs/gettext/depends
Normal file
@@ -0,0 +1,2 @@
|
||||
abi_depends=">=0.17"
|
||||
api_depends="${abi_depends}"
|
||||
21
srcpkgs/gettext/gettext-devel.template
Normal file
21
srcpkgs/gettext/gettext-devel.template
Normal file
@@ -0,0 +1,21 @@
|
||||
# Template file for 'gettext-devel'.
|
||||
#
|
||||
short_desc="${short_desc} (development files)"
|
||||
long_desc="${long_desc}
|
||||
|
||||
This package contains files for development, headers, static libs, etc."
|
||||
|
||||
Add_dependency run gettext
|
||||
|
||||
do_install()
|
||||
{
|
||||
mkdir -p ${DESTDIR}/usr/lib
|
||||
mkdir -p ${DESTDIR}/usr/share/doc
|
||||
|
||||
mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr
|
||||
mv ${SRCPKGDESTDIR}/usr/lib/*.*a ${DESTDIR}/usr/lib
|
||||
mv ${SRCPKGDESTDIR}/usr/lib/*.so ${DESTDIR}/usr/lib
|
||||
mv ${SRCPKGDESTDIR}/usr/share/doc/gettext ${DESTDIR}/usr/share/doc
|
||||
mv ${SRCPKGDESTDIR}/usr/share/aclocal ${DESTDIR}/usr/share
|
||||
mv ${SRCPKGDESTDIR}/usr/share/gettext ${DESTDIR}/usr/share
|
||||
}
|
||||
14
srcpkgs/gettext/gettext-libs.template
Normal file
14
srcpkgs/gettext/gettext-libs.template
Normal file
@@ -0,0 +1,14 @@
|
||||
# Template file for 'gettext-libs'.
|
||||
#
|
||||
short_desc="${short_desc} (shared libraries)"
|
||||
long_desc="${long_desc}
|
||||
|
||||
This package contains the ${sourcepkg} shared libraries."
|
||||
|
||||
Add_dependency run glibc
|
||||
|
||||
do_install()
|
||||
{
|
||||
mkdir -p ${DESTDIR}/usr/lib
|
||||
mv ${SRCPKGDESTDIR}/usr/lib/*.so.* ${DESTDIR}/usr/lib
|
||||
}
|
||||
13
srcpkgs/gettext/patches/disable_examples_install.diff
Normal file
13
srcpkgs/gettext/patches/disable_examples_install.diff
Normal file
@@ -0,0 +1,13 @@
|
||||
Do not install the examples.
|
||||
|
||||
--- gettext-tools/Makefile.in.orig 2009-02-19 02:26:59.754316493 +0100
|
||||
+++ gettext-tools/Makefile.in 2009-02-19 02:27:22.192981123 +0100
|
||||
@@ -724,7 +724,7 @@ top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
AUTOMAKE_OPTIONS = 1.5 gnu no-dependencies
|
||||
ACLOCAL_AMFLAGS = -I m4 -I ../gettext-runtime/m4 -I ../autoconf-lib-link/m4 -I ../m4 -I gnulib-m4 -I libgettextpo/gnulib-m4
|
||||
-SUBDIRS = doc intl gnulib-lib libgrep src libgettextpo po projects styles misc man m4 tests gnulib-tests examples
|
||||
+SUBDIRS = doc intl gnulib-lib libgrep src libgettextpo po projects styles misc man m4 tests gnulib-tests
|
||||
|
||||
# Allow users to use "gnulib-tool --update".
|
||||
|
||||
11
srcpkgs/gettext/patches/fix_open_mode.diff
Normal file
11
srcpkgs/gettext/patches/fix_open_mode.diff
Normal file
@@ -0,0 +1,11 @@
|
||||
--- gettext-tools/src/write-catalog.c.orig 2009-04-29 15:59:51.212345437 +0200
|
||||
+++ gettext-tools/src/write-catalog.c 2009-04-29 16:00:26.023855357 +0200
|
||||
@@ -220,7 +220,7 @@ message catalog has plural form translat
|
||||
/* Open the output file. */
|
||||
if (!to_stdout)
|
||||
{
|
||||
- fd = open (filename, O_WRONLY | O_CREAT);
|
||||
+ fd = open (filename, O_WRONLY | O_CREAT, 0755);
|
||||
if (fd < 0)
|
||||
{
|
||||
const char *errno_description = strerror (errno);
|
||||
20
srcpkgs/gettext/template
Normal file
20
srcpkgs/gettext/template
Normal file
@@ -0,0 +1,20 @@
|
||||
# Template build file for 'gettext'.
|
||||
pkgname=gettext
|
||||
version=0.17
|
||||
distfiles="http://ftp.gnu.org/pub/gnu/$pkgname/$pkgname-$version.tar.gz"
|
||||
build_style=gnu_configure
|
||||
configure_args="--disable-java --disable-native-java --disable-csharp
|
||||
--disable-libasprintf"
|
||||
short_desc="Internationalized Message Handling Library and tools"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
checksum=209638bb8e162f22c281145a34e220c66f1f6e9ff5e4c50c6f2ef2ded59537ba
|
||||
long_desc="
|
||||
GNU gettext provides the necessary tools and libraries for handling
|
||||
messages in different languages, as one of the steps to
|
||||
internationalisation (or i18n) of a utility."
|
||||
|
||||
subpackages="$pkgname-devel $pkgname-libs"
|
||||
Add_dependency run glibc
|
||||
Add_dependency build ncurses
|
||||
Add_dependency run ncurses-libs
|
||||
Add_dependency run gettext-libs
|
||||
Reference in New Issue
Block a user