add bacl refit

This commit is contained in:
Mario Fetka
2012-11-08 16:45:23 +01:00
parent 2f09215541
commit 82c5a43dd9
10 changed files with 390 additions and 8 deletions

View File

@@ -0,0 +1,2 @@
DIST djcrx204.zip 794048 RMD160 bffa80f4550e51ed84a4b0368a2615a4dc594bcf SHA1 cfc9aaa38d8367bbae91ab3f22d219a9971a34be SHA256 739454bf0077d1e17b4c3f374069b4ad60be14724467d2bf2fc56b5c96be835a
EBUILD djgpp-runtime-2.0.4.ebuild 1790 RMD160 dc0a133ea9ef57291b37792d4ffaa3684d97460b SHA1 39784b6c1153a9f684b5a29ccf3d1ca6a2a8eb90 SHA256 40636ffe00cdbaccebee1192d20fab13ca111ac4a8c277feca96105f662a55f1

View File

@@ -0,0 +1,70 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/mingw64-runtime/mingw64-runtime-2.0.1.ebuild,v 1.1 2012/03/12 05:26:31 vapier Exp $
export CBUILD=${CBUILD:-${CHOST}}
export CTARGET=${CTARGET:-${CHOST}}
if [[ ${CTARGET} == ${CHOST} ]] ; then
if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
export CTARGET=${CATEGORY/cross-}
fi
fi
inherit flag-o-matic eutils toolchain-funcs
DESCRIPTION="Free DOS runtime and import library definitions"
HOMEPAGE="http://www.delorie.com/djgpp/"
SRC_URI="ftp://ftp.delorie.com/pub/djgpp/beta/v2/djcrx204.zip"
LICENSE="LGPL GPL"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="crosscompile_opts_headers-only"
RESTRICT="strip"
S=${WORKDIR}
is_crosscompile() {
[[ ${CHOST} != ${CTARGET} ]]
}
just_headers() {
use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]]
}
pkg_setup() {
if [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then
die "Invalid configuration"
fi
}
src_unpack() {
unpack ${A}
find "${WORKDIR}" -type f -exec touch -r . {} +
}
src_compile() {
just_headers && return 0
CHOST=${CTARGET} strip-unsupported-flags
append-cppflags -isystem "${WORKDIR}/include"
$(tc-getCC) ${CFLAGS} src/stub/stubify.c -o stubify
$(tc-getCC) ${CFLAGS} src/stub/stubedit.c -o stubedit
}
src_install() {
insinto /usr/${CTARGET}/usr/include
doins -r "${WORKDIR}"/include/* || die
is_crosscompile \
&& dosym usr /usr/${CTARGET}/${CTARGET} \
&& dosym usr/include /usr/${CTARGET}/sys-include
just_headers && return 0
insinto /usr/${CTARGET}/lib
doins -r "${WORKDIR}"/lib/* || die
into /usr
newbin stubify ${CTARGET}-stubify
newbin stubedit ${CTARGET}-stubedit
env -uRESTRICT CHOST=${CTARGET} prepallstrip
}