aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpowderluv <anush@chromium.org>2010-05-07 00:30:00 -0700
committerpowderluv <anush@chromium.org>2010-05-07 00:30:00 -0700
commitae67289b672e008298d40f1b6dfff726ce46bdbe (patch)
treeef0e2ece0bc40f772bcecd34b7e0a08f8528c00a
parentbump vala-dbus-binding-tool-0.1.6 (diff)
downloadembedded-cross-ae67289b672e008298d40f1b6dfff726ce46bdbe.tar.gz
embedded-cross-ae67289b672e008298d40f1b6dfff726ce46bdbe.tar.bz2
embedded-cross-ae67289b672e008298d40f1b6dfff726ce46bdbe.zip
Fix libatasmart cross-compile
-rw-r--r--dev-libs/libatasmart/ChangeLog16
-rw-r--r--dev-libs/libatasmart/Manifest5
-rw-r--r--dev-libs/libatasmart/files/libatasmart-0.17-cross-compile.patch37
-rw-r--r--dev-libs/libatasmart/libatasmart-0.17.ebuild30
-rw-r--r--dev-libs/libatasmart/metadata.xml5
5 files changed, 93 insertions, 0 deletions
diff --git a/dev-libs/libatasmart/ChangeLog b/dev-libs/libatasmart/ChangeLog
new file mode 100644
index 0000000..3ed53e6
--- /dev/null
+++ b/dev-libs/libatasmart/ChangeLog
@@ -0,0 +1,16 @@
+# ChangeLog for dev-libs/libatasmart
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libatasmart/ChangeLog,v 1.2 2009/11/04 22:27:00 eva Exp $
+
+*libatasmart-0.17 (04 Nov 2009)
+
+ 04 Nov 2009; Gilles Dartiguelongue <eva@gentoo.org>
+ +libatasmart-0.17.ebuild:
+ Version bump.
+
+*libatasmart-0.16 (29 Oct 2009)
+
+ 29 Oct 2009; Gilles Dartiguelongue <eva@gentoo.org>
+ +libatasmart-0.16.ebuild, +metadata.xml:
+ Initial ebuild for GNOME 2.28.
+
diff --git a/dev-libs/libatasmart/Manifest b/dev-libs/libatasmart/Manifest
new file mode 100644
index 0000000..01c9274
--- /dev/null
+++ b/dev-libs/libatasmart/Manifest
@@ -0,0 +1,5 @@
+AUX libatasmart-0.17-cross-compile.patch 1163 RMD160 b65e34b50614f2a1b3cb13c369eca7b4655b2aa8 SHA1 02fae541a36ecbf7f530a2aeea7d8a7590e36107 SHA256 ab1617421dd36018bb47c1e52c6f7cbb0bc8f6968f3d25f0a274f08472784e92
+DIST libatasmart-0.17.tar.gz 376341 RMD160 88083222f34ae34457e25d772204e4efbeefb379 SHA1 33135e67bf6a3ea87b902944a80190e8f4427b2a SHA256 2d62a11274f32cde2f074adef9ceb662bf205618dfc8f8e74b9be6a8b1ed5ffd
+EBUILD libatasmart-0.17.ebuild 783 RMD160 587bffae9972d0839071feffd88177f61be19b89 SHA1 16e1132578350287fdcbd6002908eb4d40dfa8ca SHA256 31c89346aaf8776b8967e13264951cc7b0b885365784ce43f8f8bd936ffafa64
+MISC ChangeLog 506 RMD160 b0e1143e2ed7610398a331e44602687686533ce5 SHA1 eb70194cad9d0a2e1a9800d8a079a91093357d7a SHA256 264f8f2ce386c5370ea5ecd4c2fa5048afab5713ba5965e4e12027c8376bae29
+MISC metadata.xml 158 RMD160 c0e2bae8e91bb6be8922bac5e4f597302e06587e SHA1 38f78e9790bcd4382b4a49aa226aa6dda1d3a3d7 SHA256 3a7dbca0fdc557de69783e0663e2d76ddab129ea8a19b2d0ef6d3e5d1b947ce1
diff --git a/dev-libs/libatasmart/files/libatasmart-0.17-cross-compile.patch b/dev-libs/libatasmart/files/libatasmart-0.17-cross-compile.patch
new file mode 100644
index 0000000..1c1b8f2
--- /dev/null
+++ b/dev-libs/libatasmart/files/libatasmart-0.17-cross-compile.patch
@@ -0,0 +1,37 @@
+diff -ruN libatasmart-0.17/Makefile.am libatasmart-0.17.new/Makefile.am
+--- libatasmart-0.17/Makefile.am 2009-10-26 19:26:55.000000000 -0700
++++ libatasmart-0.17.new/Makefile.am 2010-05-02 19:56:01.000000000 -0700
+@@ -89,8 +89,8 @@
+ libatasmart_la_CFLAGS = \
+ $(LIBUDEV_CFLAGS)
+
+-strpool_SOURCES = \
+- strpool.c
++strpool: strpool.c
++ $(CC_FOR_BUILD) strpool.c -o $(top_builddir)/strpool
+
+ BUILT_SOURCES = \
+ atasmart.strpool.c
+diff -ruN libatasmart-0.17/configure.ac libatasmart-0.17.new/configure.ac
+--- libatasmart-0.17/configure.ac 2009-10-26 19:12:03.000000000 -0700
++++ libatasmart-0.17.new/configure.ac 2010-05-02 19:55:21.000000000 -0700
+@@ -55,6 +55,19 @@
+ AC_PROG_CXX
+
+ # GCC flags
++dnl Get the host compiler if cross-compiling
++dnl
++AM_CONDITIONAL(CROSS_COMPILING, [ test $cross_compiling = yes ])
++AC_MSG_CHECKING([for CC_FOR_BUILD])
++if test "x${CC_FOR_BUILD+set}" != "xset" ; then
++ if test "x$cross_compiling" = "xyes" ; then
++ CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
++ else
++ CC_FOR_BUILD=${CC}
++ fi
++fi
++AC_MSG_RESULT([$CC_FOR_BUILD])
++AC_SUBST(CC_FOR_BUILD)
+
+ test_gcc_flag() {
+ AC_LANG_CONFTEST([int main(int argc, char*argv[]) {}])
diff --git a/dev-libs/libatasmart/libatasmart-0.17.ebuild b/dev-libs/libatasmart/libatasmart-0.17.ebuild
new file mode 100644
index 0000000..8f6ae17
--- /dev/null
+++ b/dev-libs/libatasmart/libatasmart-0.17.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libatasmart/libatasmart-0.17.ebuild,v 1.1 2009/11/04 22:27:00 eva Exp $
+
+EAPI="2"
+
+inherit eutils
+
+DESCRIPTION="Lean and small library for ATA S.M.A.R.T. hard disks"
+HOMEPAGE="http://0pointer.de/blog/projects/being-smart.html"
+SRC_URI="http://0pointer.de/public/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="sys-fs/udev"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-cross-compile.patch"
+ ${S}/bootstrap.sh
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc README || die "dodoc failed"
+ rm -rf "${D}"/usr/share/doc/${PN} || die "rm failed"
+}
diff --git a/dev-libs/libatasmart/metadata.xml b/dev-libs/libatasmart/metadata.xml
new file mode 100644
index 0000000..da6fd63
--- /dev/null
+++ b/dev-libs/libatasmart/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>gnome</herd>
+</pkgmetadata>