void-packages/srcpkgs/gcc/gcc-objc.template
Juan RP f6120f278f coreutils, gcc{,c++,objc,objc++}, mpfr, ppl: bumprev for gmp update.
--HG--
extra : convert_revision : 80acf8c61c267099edc7f749e787e2850eb2f77a
2010-03-29 14:59:18 +02:00

35 lines
876 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 cloog-ppl
Add_dependency run ppl
Add_dependency run gmp
Add_dependency run mpfr
Add_dependency run gcc
Add_dependency run libobjc
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}
}