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/readline/depends
Normal file
2
srcpkgs/readline/depends
Normal file
@@ -0,0 +1,2 @@
|
||||
abi_depends=">=6.0"
|
||||
api_depends="${abi_depends}"
|
||||
28
srcpkgs/readline/readline-devel.template
Normal file
28
srcpkgs/readline/readline-devel.template
Normal file
@@ -0,0 +1,28 @@
|
||||
# Template file for 'readline-devel'.
|
||||
#
|
||||
short_desc="${short_desc} (development files)"
|
||||
long_desc="${long_desc}
|
||||
|
||||
This package contains files for development, headers, static libs, etc."
|
||||
|
||||
Add_dependency run readline-libs
|
||||
|
||||
do_install()
|
||||
{
|
||||
mkdir -p ${DESTDIR}/usr/lib
|
||||
mkdir -p ${DESTDIR}/usr/share/info
|
||||
mkdir -p ${DESTDIR}/usr/share/man
|
||||
mkdir -p ${DESTDIR}/usr/share/info
|
||||
|
||||
mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr
|
||||
mv ${SRCPKGDESTDIR}/usr/lib/*.*a ${DESTDIR}/usr/lib
|
||||
cd ${DESTDIR}/usr/lib && \
|
||||
ln -s ../../lib/libreadline.so.6 libreadline.so
|
||||
mv ${SRCPKGDESTDIR}/usr/share/readline ${DESTDIR}/usr/share
|
||||
mv ${SRCPKGDESTDIR}/usr/share/man/man3 ${DESTDIR}/usr/share/man
|
||||
touch -f ${DESTDIR}/usr/share/info/dir
|
||||
for f in history rluserman; do
|
||||
mv ${SRCPKGDESTDIR}/usr/share/info/${f}.info \
|
||||
${DESTDIR}/usr/share/info
|
||||
done
|
||||
}
|
||||
53
srcpkgs/readline/template
Normal file
53
srcpkgs/readline/template
Normal file
@@ -0,0 +1,53 @@
|
||||
# Template build file for 'readline'.
|
||||
pkgname=readline
|
||||
_dist_ver=6.0
|
||||
_patch_ver=004
|
||||
version=${_dist_ver}.${_patch_ver}
|
||||
wrksrc=${pkgname}-${_dist_ver}
|
||||
distfiles="http://savory.googlecode.com/files/${pkgname}-${_dist_ver}.tar.gz"
|
||||
build_style=gnu_configure
|
||||
configure_args="--with-curses --enable-multibyte"
|
||||
make_build_args="SHLIB_LIBS=-lncurses"
|
||||
short_desc="The GNU Readline Library"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
checksum=1199d905c025735b34cf67d03078585e18f84707052413279fe68ce48c1cc1de
|
||||
long_desc="
|
||||
The GNU Readline library provides a set of functions for use by
|
||||
applications that allow users to edit command lines as they are
|
||||
typed in. Both Emacs and vi editing modes are available. The
|
||||
Readline library includes additional functions to maintain a list
|
||||
of previously-entered command lines, to recall and perhaps reedit
|
||||
those lines, and perform csh-like history expansion on previous
|
||||
commands."
|
||||
|
||||
subpackages="$pkgname-devel"
|
||||
Add_dependency full glibc
|
||||
Add_dependency build ncurses
|
||||
Add_dependency run ncurses-libs
|
||||
Add_dependency build texinfo
|
||||
|
||||
pre_configure()
|
||||
{
|
||||
local url="http://ftp.gnu.org/gnu/$pkgname/$pkgname-6.0-patches"
|
||||
|
||||
if [ "${_patch_ver}" -gt 000 ]; then
|
||||
for p in $(seq -w 001 ${_patch_ver}); do
|
||||
[ -f ${XBPS_SRCDISTDIR}/readline60-${p} ] && continue
|
||||
$XBPS_FETCH_CMD ${url}/readline60-$p
|
||||
done
|
||||
fi
|
||||
cd ${wrksrc}
|
||||
for p in $(seq -w 001 ${_patch_ver}); do
|
||||
patch -s -Np0 -i ${XBPS_SRCDISTDIR}/readline60-${p} && \
|
||||
msg_normal "Applying patch readline60-$p."
|
||||
done
|
||||
sed -i 's|-Wl,-rpath,$(libdir) ||g' support/shobj-conf
|
||||
}
|
||||
|
||||
post_install()
|
||||
{
|
||||
# Move shared libs to /.
|
||||
mkdir -p $DESTDIR/lib
|
||||
mv $DESTDIR/usr/lib/lib*.so.* $DESTDIR/lib
|
||||
rm -f ${DESTDIR}/usr/lib/lib*.so
|
||||
}
|
||||
Reference in New Issue
Block a user