void-packages/srcpkgs/gcc/gcc-objc.template
Juan RP 0d002ffbe7 gcc: bumprev for ppl ABI change, misc fixes:
- Added c[89]9 wrappers and manpages from NetBSD.
- Do not run fixincludes.
- Remove python stuff that only gets installed when python is found.
2010-10-28 00:44:07 +02:00

38 lines
976 B
Text

# Template file for 'gcc-objc'.
#
short_desc="GCC Objective-C support"
long_desc="${long_desc}
This package contains GCC Objective-C support."
revision=1
Add_dependency run glibc
Add_dependency run zlib
Add_dependency run cloog-ppl
Add_dependency run ppl
Add_dependency run gmp
Add_dependency run mpfr
Add_dependency run mpc
Add_dependency run libelf
Add_dependency run gcc ">=$version"
Add_dependency run libobjc ">=$version"
do_install()
{
local triplet=
if [ "${xbps_machine}" = "x86_64" ]; then
triplet="${xbps_machine}-unknown-linux-gnu"
else
triplet="${xbps_machine}-pc-linux-gnu"
fi
mkdir -p ${DESTDIR}//usr/lib/gcc/${triplet}/${version}
mkdir -p ${DESTDIR}/usr/libexec/gcc/${triplet}/${version}/include
mv ${SRCPKGDESTDIR}/usr/lib/gcc/${triplet}/${version}/include/objc \
${DESTDIR}/usr/lib/gcc/${triplet}/${version}/include
mv ${SRCPKGDESTDIR}/usr/libexec/gcc/${triplet}/${version}/cc1obj \
${DESTDIR}/usr/libexec/gcc/${triplet}/${version}
}