gcc: convert to subpkgs.
--HG-- extra : convert_revision : 88fbeeb5b204c2d8a82f4c4b9833723d8503657b
This commit is contained in:
parent
fed44a5c15
commit
0b8c5b3253
7 changed files with 75 additions and 1 deletions
1
templates/gcc-dev
Symbolic link
1
templates/gcc-dev
Symbolic link
|
@ -0,0 +1 @@
|
|||
gcc
|
1
templates/gcc-docs
Symbolic link
1
templates/gcc-docs
Symbolic link
|
@ -0,0 +1 @@
|
|||
gcc
|
1
templates/gcc-locale
Symbolic link
1
templates/gcc-locale
Symbolic link
|
@ -0,0 +1 @@
|
|||
gcc
|
31
templates/gcc/dev.template
Normal file
31
templates/gcc/dev.template
Normal file
|
@ -0,0 +1,31 @@
|
|||
# Template file for 'gcc-dev'.
|
||||
#
|
||||
short_desc="${short_desc} (development files)"
|
||||
long_desc="${long_desc}
|
||||
|
||||
This package contains files for development, headers, static libs, etc."
|
||||
run_depends="gcc-libs-${version}"
|
||||
|
||||
do_install()
|
||||
{
|
||||
local destdir=${XBPS_DESTDIR}/${pkgname}-${version}
|
||||
local origdir=${XBPS_DESTDIR}/${sourcepkg}-${version}
|
||||
|
||||
mkdir -p ${destdir}/usr/lib/gcc/${xbps_machine}-pc-linux-gnu/${version}
|
||||
|
||||
mv ${origdir}/usr/include ${destdir}/usr
|
||||
mv ${origdir}/usr/lib/gcc/${xbps_machine}-pc-linux-gnu/${version}/include \
|
||||
${destdir}/usr/lib/gcc/${xbps_machine}-pc-linux-gnu/${version}
|
||||
|
||||
for f in mudflap mudflapth ssp_nonshared supc++ ssp stdc++ \
|
||||
objc gomp gcc_s; do
|
||||
for ext in a la; do
|
||||
if [ -f ${origdir}/usr/lib/lib${f}.${ext} ]; then
|
||||
mv ${origdir}/usr/lib/lib${f}.${ext} ${destdir}/usr/lib
|
||||
fi
|
||||
done
|
||||
if [ -f ${origdir}/usr/lib/lib${f}.so ]; then
|
||||
mv ${origdir}/usr/lib/lib${f}.so ${destdir}/usr/lib
|
||||
fi
|
||||
done
|
||||
}
|
21
templates/gcc/docs.template
Normal file
21
templates/gcc/docs.template
Normal file
|
@ -0,0 +1,21 @@
|
|||
# Template file for 'gcc-docs'.
|
||||
#
|
||||
short_desc="${short_desc} (documentation)"
|
||||
long_desc="${long_desc}
|
||||
|
||||
This package contains the ${sourcepkg} documentation: manual pages
|
||||
and info files."
|
||||
run_depends=
|
||||
noarch=yes
|
||||
|
||||
do_install()
|
||||
{
|
||||
local destdir=${XBPS_DESTDIR}/${pkgname}-${version}
|
||||
|
||||
# Move manpages and info files.
|
||||
mkdir -p ${destdir}/usr/share
|
||||
mv ${XBPS_DESTDIR}/${sourcepkg}-${version}/usr/share/man \
|
||||
${destdir}/usr/share
|
||||
mv ${XBPS_DESTDIR}/${sourcepkg}-${version}/usr/share/info \
|
||||
${destdir}/usr/share
|
||||
}
|
17
templates/gcc/locale.template
Normal file
17
templates/gcc/locale.template
Normal file
|
@ -0,0 +1,17 @@
|
|||
# Template file for 'gcc-locale'.
|
||||
#
|
||||
short_desc="${short_desc} (locales)"
|
||||
long_desc="${long_desc}
|
||||
|
||||
This package contains the ${sourcepkg} locale files, for non US users."
|
||||
run_depends=
|
||||
noarch=yes
|
||||
|
||||
do_install()
|
||||
{
|
||||
local destdir=${XBPS_DESTDIR}/${pkgname}-${version}
|
||||
|
||||
mkdir -p ${destdir}/usr/share
|
||||
mv ${XBPS_DESTDIR}/${sourcepkg}-${version}/usr/share/locale \
|
||||
${destdir}/usr/share
|
||||
}
|
|
@ -1,5 +1,6 @@
|
|||
# Template build file for 'gcc'
|
||||
pkgname=gcc
|
||||
sourcepkg=gcc
|
||||
version=4.3.2
|
||||
patch_files="$pkgname-fix-amd64.diff"
|
||||
distfiles="
|
||||
|
@ -19,7 +20,8 @@ long_desc="
|
|||
|
||||
base_chroot=yes
|
||||
build_depends="gmp-4.2.4 mpfr-2.3.2 binutils-2.18"
|
||||
run_depends="glibc-2.8 $build_depends"
|
||||
run_depends="glibc-2.8 gmp-libs-4.2.4 mpfr-libs-2.3.2 binutils-2.18"
|
||||
subpackages="dev docs locale"
|
||||
|
||||
# As specified in the LFS book, disable installing libiberty.
|
||||
pre_configure()
|
||||
|
|
Loading…
Reference in a new issue