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/gdbm/depends
Normal file
2
srcpkgs/gdbm/depends
Normal file
@@ -0,0 +1,2 @@
|
||||
abi_depends=">=1.8.0"
|
||||
api_depends="${abi_depends}"
|
||||
15
srcpkgs/gdbm/gdbm-devel.template
Normal file
15
srcpkgs/gdbm/gdbm-devel.template
Normal file
@@ -0,0 +1,15 @@
|
||||
# Template file for 'gdbm-devel'.
|
||||
#
|
||||
short_desc="${short_desc} (development files)"
|
||||
long_desc="${long_desc}
|
||||
|
||||
This package contains files for development, headers, static libs, etc."
|
||||
|
||||
Add_dependency run gdbm
|
||||
|
||||
do_install()
|
||||
{
|
||||
mkdir -p ${DESTDIR}/usr/lib
|
||||
mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr
|
||||
mv ${SRCPKGDESTDIR}/usr/lib/*.*a ${DESTDIR}/usr/lib
|
||||
}
|
||||
29
srcpkgs/gdbm/patches/fix_installation.diff
Normal file
29
srcpkgs/gdbm/patches/fix_installation.diff
Normal file
@@ -0,0 +1,29 @@
|
||||
--- Makefile.in.orig 2008-10-25 02:29:16.000000000 +0200
|
||||
+++ Makefile.in 2008-10-25 02:30:57.000000000 +0200
|
||||
@@ -131,11 +131,11 @@ install: libgdbm.la gdbm.h gdbm.info
|
||||
$(INSTALL_ROOT)$(includedir) $(INSTALL_ROOT)$(man3dir) \
|
||||
$(INSTALL_ROOT)$(infodir)
|
||||
$(LIBTOOL) $(INSTALL) -c libgdbm.la $(INSTALL_ROOT)$(libdir)/libgdbm.la
|
||||
- $(INSTALL_DATA) -o $(BINOWN) -g $(BINGRP) gdbm.h \
|
||||
+ $(INSTALL_DATA) gdbm.h \
|
||||
$(INSTALL_ROOT)$(includedir)/gdbm.h
|
||||
- $(INSTALL_DATA) -o $(BINOWN) -g $(BINGRP) $(srcdir)/gdbm.3 \
|
||||
+ $(INSTALL_DATA) $(srcdir)/gdbm.3 \
|
||||
$(INSTALL_ROOT)$(man3dir)/gdbm.3
|
||||
- $(INSTALL_DATA) -o $(BINOWN) -g $(BINGRP) $(srcdir)/gdbm.info \
|
||||
+ $(INSTALL_DATA) $(srcdir)/gdbm.info \
|
||||
$(INSTALL_ROOT)$(infodir)/gdbm.info
|
||||
|
||||
install-compat:
|
||||
@@ -143,9 +143,9 @@ install-compat:
|
||||
$(INSTALL_ROOT)$(includedir)
|
||||
$(LIBTOOL) $(INSTALL) -c libgdbm_compat.la \
|
||||
$(INSTALL_ROOT)$(libdir)/libgdbm_compat.la
|
||||
- $(INSTALL_DATA) -o $(BINOWN) -g $(BINGRP) $(srcdir)/dbm.h \
|
||||
+ $(INSTALL_DATA) $(srcdir)/dbm.h \
|
||||
$(INSTALL_ROOT)$(includedir)/dbm.h
|
||||
- $(INSTALL_DATA) -o $(BINOWN) -g $(BINGRP) $(srcdir)/ndbm.h \
|
||||
+ $(INSTALL_DATA) $(srcdir)/ndbm.h \
|
||||
$(INSTALL_ROOT)$(includedir)/ndbm.h
|
||||
|
||||
#libgdbm.a: $(OBJS) gdbm.h
|
||||
21
srcpkgs/gdbm/template
Normal file
21
srcpkgs/gdbm/template
Normal file
@@ -0,0 +1,21 @@
|
||||
# Template file for 'gdbm'
|
||||
pkgname=gdbm
|
||||
version=1.8.3
|
||||
distfiles="http://ftp.gnu.org/gnu/$pkgname/$pkgname-$version.tar.gz"
|
||||
build_style=gnu_configure
|
||||
make_install_args="INSTALL_ROOT=$XBPS_DESTDIR/$pkgname-$version"
|
||||
short_desc="GNU database routines"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
checksum=cc340338a2e28b40058ab9eb5354a21d53f88a1582ea21ba0bb185c37a281dc9
|
||||
long_desc="
|
||||
GNU dbm is a set of database routines that use extensible hashing.
|
||||
It works similar to the standard Unix dbm routines."
|
||||
|
||||
subpackages="gdbm-devel"
|
||||
Add_dependency full glibc
|
||||
|
||||
post_build()
|
||||
{
|
||||
mkdir -p ${DESTDIR}/usr/share/info
|
||||
touch -f ${DESTDIR}/usr/share/info/dir
|
||||
}
|
||||
Reference in New Issue
Block a user