mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-30 10:01:32 +02:00
sys-fs/exfat-utils: import from upstream
BUG=chromium-os:37727 TEST=emerge-{x86,amd64,arm}-generic sys-fs/exfat-utils Change-Id: I15892a5cfb66abc16ba8e07004d550fc553c1dab Reviewed-on: https://gerrit.chromium.org/gerrit/40949 Reviewed-by: Mike Frysinger <vapier@chromium.org> Tested-by: Ben Chan <benchan@chromium.org> Commit-Queue: David James <davidjames@chromium.org>
This commit is contained in:
parent
c0b99b9170
commit
123adc2fe1
1
sdk_container/src/third_party/portage-stable/sys-fs/exfat-utils/Manifest
vendored
Normal file
1
sdk_container/src/third_party/portage-stable/sys-fs/exfat-utils/Manifest
vendored
Normal file
@ -0,0 +1 @@
|
||||
DIST exfat-utils-0.9.8.tar.gz 51557 SHA256 97d8c77e048d0fdc2e5425ff22a139306ce3f1575b58e56c26bb968930a423bb SHA512 bff817b3b886d0ea03439c55d6497336e880b4eb5298e06c7fe8c60216dc491d27df9258865232a71d1a59fe1b3cffb38191caea5aaa4ad8965e3526126a2a38 WHIRLPOOL 4fb52ee2aefcb59692dbc66530cae6d813b1497a9e5900c2c074452cc759770fd60b3bf3fb41cf146dc98ece1f065e5cf50443017739823761cdd30a2c2d6c9b
|
33
sdk_container/src/third_party/portage-stable/sys-fs/exfat-utils/exfat-utils-0.9.8.ebuild
vendored
Normal file
33
sdk_container/src/third_party/portage-stable/sys-fs/exfat-utils/exfat-utils-0.9.8.ebuild
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-fs/exfat-utils/exfat-utils-0.9.8.ebuild,v 1.3 2013/01/09 23:03:22 vapier Exp $
|
||||
|
||||
EAPI=4
|
||||
inherit scons-utils toolchain-funcs eutils
|
||||
|
||||
DESCRIPTION="exFAT filesystem utilities"
|
||||
HOMEPAGE="http://code.google.com/p/exfat/"
|
||||
SRC_URI="http://exfat.googlecode.com/files/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm x86"
|
||||
IUSE=""
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/${PN}-0.9.8-build-vars.patch
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
tc-export CC
|
||||
escons CCFLAGS="${CFLAGS}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin dump/dumpexfat label/exfatlabel mkfs/mkexfatfs fsck/exfatfsck
|
||||
dosym mkexfatfs /usr/bin/mkfs.exfat
|
||||
dosym exfatfsck /usr/bin/fsck.exfat
|
||||
|
||||
doman */*.8
|
||||
dodoc ChangeLog
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
make sure we pass down important env vars
|
||||
|
||||
https://groups.google.com/d/topic/exfat/BfRq9XU2kQM/discussion
|
||||
|
||||
--- a/SConstruct
|
||||
+++ b/SConstruct
|
||||
@@ -29,6 +29,10 @@ destdir = env.get('DESTDIR', '/sbin');
|
||||
targets = []
|
||||
libs = ['exfat']
|
||||
|
||||
+if 'AR' in os.environ:
|
||||
+ conf.env.Replace(AR = os.environ['AR'])
|
||||
+if 'RANLIB' in os.environ:
|
||||
+ conf.env.Replace(RANLIB = os.environ['RANLIB'])
|
||||
if 'CC' in os.environ:
|
||||
conf.env.Replace(CC = os.environ['CC'])
|
||||
if 'CCFLAGS' in os.environ:
|
||||
@@ -74,6 +74,9 @@ if platform.system() == 'FreeBSD':
|
||||
conf.env.Append(LIBPATH = ['/usr/local/lib'])
|
||||
|
||||
env = conf.Finish()
|
||||
+for var in ('SYSROOT',):
|
||||
+ if var in os.environ:
|
||||
+ env['ENV'][var] = os.environ[var]
|
||||
|
||||
def make_symlink(dir, target, link_name):
|
||||
workdir = os.getcwd()
|
Loading…
x
Reference in New Issue
Block a user