public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michael Weber" <xmw@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] dev/xmw:master commit in: dev-embedded/libmsp430/files/, dev-embedded/libmsp430/
Date: Fri, 27 Feb 2015 21:04:50 +0000 (UTC)	[thread overview]
Message-ID: <1425071083.8277b01484b58e3bb43e919908501d175dfc967a.xmw@gentoo> (raw)

commit:     8277b01484b58e3bb43e919908501d175dfc967a
Author:     Michael Weber <michael <AT> xmw <DOT> de>
AuthorDate: Fri Feb 27 21:04:43 2015 +0000
Commit:     Michael Weber <xmw <AT> gentoo <DOT> org>
CommitDate: Fri Feb 27 21:04:43 2015 +0000
URL:        http://sources.gentoo.org/gitweb/?p=dev/xmw.git;a=commit;h=8277b014

Initial import

Package-Manager: portage-2.2.17
Manifest-Sign-Key: 62EEF090

---
 dev-embedded/libmsp430/ChangeLog                   |  6 +++
 dev-embedded/libmsp430/Manifest                    | 13 +++++++
 .../libmsp430/files/libmsp430-3.4.3.4-hidapi.patch | 41 +++++++++++++++++++++
 dev-embedded/libmsp430/libmsp430-3.4.3.4.ebuild    | 43 ++++++++++++++++++++++
 dev-embedded/libmsp430/metadata.xml                |  8 ++++
 5 files changed, 111 insertions(+)

diff --git a/dev-embedded/libmsp430/ChangeLog b/dev-embedded/libmsp430/ChangeLog
new file mode 100644
index 0000000..7ff10ae
--- /dev/null
+++ b/dev-embedded/libmsp430/ChangeLog
@@ -0,0 +1,6 @@
+*libmsp430-3.4.3.4 (27 Feb 2015)
+
+  27 Feb 2015; Michael Weber <xmw@gentoo.org>
+  +files/libmsp430-3.4.3.4-hidapi.patch, +libmsp430-3.4.3.4.ebuild,
+  +metadata.xml:
+  Initial import

diff --git a/dev-embedded/libmsp430/Manifest b/dev-embedded/libmsp430/Manifest
new file mode 100644
index 0000000..8d045ed
--- /dev/null
+++ b/dev-embedded/libmsp430/Manifest
@@ -0,0 +1,13 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+DIST libmsp430-slac460k.zip 1878118 SHA256 e847be9f785c49eb7f3c5e05630945de3efe2edd09e1e20b4c8dd7aaa82696f9 SHA512 7f4deaac3076bbcffc8ba73e077662799f1abda7b95231c3c9ab83988abc5ed77d6df53a8ef925678cdee672c7f61733463499fdaad2f074366b02fb7f50a59e WHIRLPOOL 51f89c750ea7f7ab750e0c5c25e36c328f72ce85df2c30d05ea1a0006796f124ca1d8631ed587b855bcc77a038f1331f88806c82a615a2c462b9b9bb6ff11e0b
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2
+
+iL4EAREIAGYFAlTw2+tfFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3Bl
+bnBncC5maWZ0aGhvcnNlbWFuLm5ldDY3QjA4MzdGODg1NUMxMjIzNUQ0MDgxNzky
+N0FERDBDNjJFRUYwOTAACgkQknrdDGLu8JApHwD/eOxjZ5QvQqrTIaiRYbQEDSLX
+eYEQR24PGT9Aw/KwfHABAJQRuMWyV4eLd1TQXJJJ0FLigcrU0gKWNq9lZyzH6oSz
+=36xM
+-----END PGP SIGNATURE-----

diff --git a/dev-embedded/libmsp430/files/libmsp430-3.4.3.4-hidapi.patch b/dev-embedded/libmsp430/files/libmsp430-3.4.3.4-hidapi.patch
new file mode 100644
index 0000000..1b3f741
--- /dev/null
+++ b/dev-embedded/libmsp430/files/libmsp430-3.4.3.4-hidapi.patch
@@ -0,0 +1,41 @@
+--- MSPDebugStack_OS_Package/ThirdParty/BSL430_DLL/Makefile
++++ MSPDebugStack_OS_Package/ThirdParty/BSL430_DLL/Makefile
+@@ -44,6 +44,9 @@
+ 
+ LIBS :=
+ 
++INCLUDES += $(shell pkg-config --cflags hidapi-libusb)
++LIBS += $(shell pkg-config --libs hidapi-libusb)
++
+ SRC := \
+ 	./BSL430_DLL/MSPBSL_Factory.cpp \
+ 	$(wildcard ./BSL430_DLL/Connections/*.cpp) \
+@@ -59,6 +59,7 @@
+ OUTPUT := ../lib/libbsl430.a
+ 
+ all: $(OBJS)
++	mkdir -p $(basename $(OUTPUT))
+ 	ar -cq $(OUTPUT) $(OBJS)
+ 
+ $(PCH_COMPILED): $(PCH_HEADER)
+--- MSPDebugStack_OS_Package/Makefile
++++ MSPDebugStack_OS_Package/Makefile
+@@ -52,6 +52,9 @@
+ LIBS :=
+ STATIC_LIBS :=
+ 
++INCLUDES += $(shell pkg-config --cflags hidapi-libusb)
++LIBS += $(shell pkg-config --libs hidapi-libusb)
++
+ ifdef STATIC
+ STATIC_LIBS += -lboost_thread -lboost_filesystem -lboost_date_time -lboost_system -lbsl430 -lusb-1.0 -lrt
+ else
+@@ -91,7 +91,7 @@
+ OUTPUT := libmsp430.so
+ 
+ all: $(BSLLIB) $(OBJS)
+-	$(CXX) $(CXXFLAGS) -shared -Wl,-soname,$(OUTPUT) -o $(OUTPUT) $(OBJS) ThirdParty/lib/hid-libusb.o $(LIBDIRS) -Wl,-Bstatic $(STATIC_LIBS) -Wl,-Bdynamic $(LIBS)
++	$(CXX) $(CXXFLAGS) -shared -Wl,-soname,$(OUTPUT) -o $(OUTPUT) $(OBJS) $(LIBDIRS) -Wl,-Bstatic $(STATIC_LIBS) -Wl,-Bdynamic $(LIBS)
+ 
+ $(PCH_COMPILED): $(PCH_HEADER)
+ 	$(CXX) $(MAKE_PCH) -o $@ $< $(CXXFLAGS) $(INCLUDES) $(DEFINES)

diff --git a/dev-embedded/libmsp430/libmsp430-3.4.3.4.ebuild b/dev-embedded/libmsp430/libmsp430-3.4.3.4.ebuild
new file mode 100644
index 0000000..e287908
--- /dev/null
+++ b/dev-embedded/libmsp430/libmsp430-3.4.3.4.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="MSP430.DLLv3 Open Source Package contains the source code for the MSP Debug Stack"
+HOMEPAGE="http://processors.wiki.ti.com/index.php/MSPDS_Open_Source_Package"
+SRC_URI="http://www-s.ti.com/sc/techzip/slac460.zip -> ${PN}-slac460k.zip"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="debug"
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+	>=dev-libs/boost-1.53[threads]
+	dev-libs/hidapi
+	virtual/pkgconfig"
+
+S=${WORKDIR}/MSPDebugStack_OS_Package
+
+src_prepare() {
+	epatch "${FILESDIR}"/${P}-hidapi.patch
+}
+
+src_compile() {
+	local my_make_args=(
+		CXX="$(tc-getCXX)"
+		CXXFLAGS="${CXXFLAGS} -fPIC"
+		DEFINES="-DUNIX $(usex debug "" -DNDEBUG)"
+	)
+	emake "${my_make_args[@]}" -C ThirdParty/BSL430_DLL
+	emake "${my_make_args[@]}"
+}
+
+src_install() {
+	dolib.so libmsp430.so
+	dodoc revisions.txt
+}

diff --git a/dev-embedded/libmsp430/metadata.xml b/dev-embedded/libmsp430/metadata.xml
new file mode 100644
index 0000000..5b80fb9
--- /dev/null
+++ b/dev-embedded/libmsp430/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+<email>xmw@gentoo.org</email>
+<name>Michael Weber</name>
+</maintainer>
+</pkgmetadata>


                 reply	other threads:[~2015-02-27 21:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1425071083.8277b01484b58e3bb43e919908501d175dfc967a.xmw@gentoo \
    --to=xmw@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox