diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-embedded/libftdi | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.xz |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-embedded/libftdi')
-rw-r--r-- | dev-embedded/libftdi/Manifest | 4 | ||||
-rw-r--r-- | dev-embedded/libftdi/files/libftdi-1.0-staticlibs.patch | 123 | ||||
-rw-r--r-- | dev-embedded/libftdi/libftdi-0.19.ebuild | 57 | ||||
-rw-r--r-- | dev-embedded/libftdi/libftdi-0.20.ebuild | 65 | ||||
-rw-r--r-- | dev-embedded/libftdi/libftdi-1.0.ebuild | 66 | ||||
-rw-r--r-- | dev-embedded/libftdi/libftdi-1.2.ebuild | 65 | ||||
-rw-r--r-- | dev-embedded/libftdi/libftdi-9999.ebuild | 65 | ||||
-rw-r--r-- | dev-embedded/libftdi/metadata.xml | 8 |
8 files changed, 453 insertions, 0 deletions
diff --git a/dev-embedded/libftdi/Manifest b/dev-embedded/libftdi/Manifest new file mode 100644 index 00000000000..57bb77c638a --- /dev/null +++ b/dev-embedded/libftdi/Manifest @@ -0,0 +1,4 @@ +DIST libftdi-0.19.tar.gz 406671 SHA256 567c9d2c42d92fc401c5aba2deed45ffb2433990984e816bcdf31e441aef06be SHA512 c6deefe8c83063343321e8c2c6b6c1c2842a9f1caf4e54f47106c3c4aac638736f19fecf91582c6cc9f4917c4d140157440c360ce3a030dfb7fa027483bab972 WHIRLPOOL b3ee2812697cb8e0e549d580b07b2d67f2bc7bbb5da823e80172748d2d907e67c36314c4524beb2278e131a57c1ae4e25efaaa7b243ab80b30a3f88fa9f6fd7a +DIST libftdi-0.20.tar.gz 423570 SHA256 3176d5b5986438f33f5208e690a8bfe90941be501cc0a72118ce3d338d4b838e SHA512 540e5eb201a65936c3dbabff70c251deba1615874b11ff27c5ca16c39d71c150cf61758a68b541135a444fe32ab403b0fba0daf55c587647aaf9b3f400f1dee7 WHIRLPOOL b1eab592bd6a21a123c7e951d5e4cdafc740c20773b8c5c7c86eef2a05bc8a190a2758a04187d3436de464a49dc329d4e4c9e54792287cc5c39a0ec7d08425d2 +DIST libftdi1-1.0.tar.bz2 97072 SHA256 7290fd38208d8c00d25ed13ce172aaa0403b37148080e4a33a99837022d2b321 SHA512 e733db0bf826415971c64723fe1e56cb1201fa1b9e3a3f04a2a47e1d16c543ae29c634a514f5ff5ca422c2e3b3e1715988c84df1dc66114700209dfb1e6d96ae WHIRLPOOL 82b384b396b12681d88531082e6a5d9d765934877192001106b7bb2ee91da91d0941eb7514b7b091fca403d47b4458a5ae06c5249b0cb0114a0fbe7b7056b7ed +DIST libftdi1-1.2.tar.bz2 100672 SHA256 a6ea795c829219015eb372b03008351cee3fb39f684bff3bf8a4620b558488d6 SHA512 d175e2b39dda880653a2e46db67e49a8921095e69eff6598159c3c31292d4ce76617c2f1617fd6727b08c930fcea335d8ef01857debbb60e7ac384b516d38a05 WHIRLPOOL 7e6646a23b8e8f1c0fec6b1ad3231797653e1788abfb7340cd391c792d2f48e4cada0ca832e325947b49d964919d5b81cddd8b43f3962d185605afbabd743fbf diff --git a/dev-embedded/libftdi/files/libftdi-1.0-staticlibs.patch b/dev-embedded/libftdi/files/libftdi-1.0-staticlibs.patch new file mode 100644 index 00000000000..a3ce560dbfb --- /dev/null +++ b/dev-embedded/libftdi/files/libftdi-1.0-staticlibs.patch @@ -0,0 +1,123 @@ +make static libs optional. already sent upstream. + +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -46,6 +46,8 @@ set(CPACK_COMPONENT_SHAREDLIBS_GROUP "Development") + "Static library, good if you want to embed libftdi1 in your application.") + set(CPACK_COMPONENT_HEADERS_DESCRIPTION + "C/C++ header files.") ++ ++option ( STATICLIBS "Build static libraries" ON ) + + set(CPACK_COMPONENT_SHAREDLIBS_GROUP "Development") + set(CPACK_COMPONENT_STATICLIBS_GROUP "Development") +--- a/ftdipp/CMakeLists.txt ++++ b/ftdipp/CMakeLists.txt +@@ -30,12 +30,16 @@ if (FTDIPP) + set_target_properties(ftdipp1 PROPERTIES VERSION ${VERSION_FIXUP}.${MINOR_VERSION}.0 SOVERSION 2) + + # Static library +- add_library(ftdipp1-static STATIC ${cpp_sources}) +- set_target_properties(ftdipp1-static PROPERTIES OUTPUT_NAME "ftdipp1") ++ if (STATICLIBS) ++ add_library(ftdipp1-static STATIC ${cpp_sources}) ++ set_target_properties(ftdipp1-static PROPERTIES OUTPUT_NAME "ftdipp1") ++ endif (STATICLIBS) + + # Prevent clobbering each other during the build + set_target_properties(ftdipp1 PROPERTIES CLEAN_DIRECT_OUTPUT 1) +- set_target_properties(ftdipp1-static PROPERTIES CLEAN_DIRECT_OUTPUT 1) ++ if (STATICLIBS) ++ set_target_properties(ftdipp1-static PROPERTIES CLEAN_DIRECT_OUTPUT 1) ++ endif (STATICLIBS) + + # Dependencies + target_link_libraries(ftdipp1 ftdi1 ${LIBUSB_LIBRARIES} ${BOOST_LIBRARIES}) +@@ -46,10 +50,12 @@ if (FTDIPP) + LIBRARY DESTINATION lib${LIB_SUFFIX} + COMPONENT sharedlibs + ) +- install( TARGETS ftdipp1-static +- ARCHIVE DESTINATION lib${LIB_SUFFIX} +- COMPONENT staticlibs +- ) ++ if (STATICLIBS) ++ install( TARGETS ftdipp1-static ++ ARCHIVE DESTINATION lib${LIB_SUFFIX} ++ COMPONENT staticlibs ++ ) ++ endif (STATICLIBS) + install( FILES ${cpp_headers} + DESTINATION include/${PROJECT_NAME} + COMPONENT headers +@@ -61,10 +67,12 @@ if (FTDIPP) + DESTINATION bin + COMPONENT sharedlibs + ) +- install( TARGETS ftdipp1-static +- DESTINATION bin +- COMPONENT staticlibs +- ) ++ if (STATICLIBS) ++ install( TARGETS ftdipp1-static ++ DESTINATION bin ++ COMPONENT staticlibs ++ ) ++ endif (STATICLIBS) + install( FILES ${cpp_headers} + DESTINATION include/${PROJECT_NAME} + COMPONENT headers +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -28,11 +28,15 @@ set_target_properties(ftdi1 PROPERTIES VERSION ${VERSION_FIXUP}.${MINOR_VERSION} + + # Static library + add_library(ftdi1-static STATIC ${c_sources}) +-set_target_properties(ftdi1-static PROPERTIES OUTPUT_NAME "ftdi1") ++if (STATICLIBS) ++ set_target_properties(ftdi1-static PROPERTIES OUTPUT_NAME "ftdi1") ++endif (STATICLIBS) + + # Prevent clobbering each other during the build + set_target_properties(ftdi1 PROPERTIES CLEAN_DIRECT_OUTPUT 1) +-set_target_properties(ftdi1-static PROPERTIES CLEAN_DIRECT_OUTPUT 1) ++if (STATICLIBS) ++ set_target_properties(ftdi1-static PROPERTIES CLEAN_DIRECT_OUTPUT 1) ++endif (STATICLIBS) + + # Dependencies + target_link_libraries(ftdi1 ${LIBUSB_LIBRARIES}) +@@ -45,10 +49,12 @@ if(${UNIX}) + COMPONENT sharedlibs + ) + +- install( TARGETS ftdi1-static +- ARCHIVE DESTINATION lib${LIB_SUFFIX} +- COMPONENT staticlibs +- ) ++ if (STATICLIBS) ++ install( TARGETS ftdi1-static ++ ARCHIVE DESTINATION lib${LIB_SUFFIX} ++ COMPONENT staticlibs ++ ) ++ endif (STATICLIBS) + + install( FILES ${c_headers} + DESTINATION include/${PROJECT_NAME} +@@ -64,10 +70,12 @@ if(${WIN32}) + COMPONENT sharedlibs + ) + +- install( TARGETS ftdi1-static +- DESTINATION bin +- COMPONENT staticlibs +- ) ++ if (STATICLIBS) ++ install( TARGETS ftdi1-static ++ DESTINATION bin ++ COMPONENT staticlibs ++ ) ++ endif (STATICLIBS) + + install( FILES ${c_headers} + DESTINATION include/${PROJECT_NAME} diff --git a/dev-embedded/libftdi/libftdi-0.19.ebuild b/dev-embedded/libftdi/libftdi-0.19.ebuild new file mode 100644 index 00000000000..f873ced5ad5 --- /dev/null +++ b/dev-embedded/libftdi/libftdi-0.19.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +if [[ ${PV} == 9999* ]] ; then + EGIT_REPO_URI="git://developer.intra2net.com/${PN}" + inherit git-2 autotools +else + SRC_URI="http://www.intra2net.com/en/developer/${PN}/download/${P}.tar.gz" + KEYWORDS="amd64 arm ppc ppc64 sparc x86" +fi + +DESCRIPTION="Userspace access to FTDI USB interface chips" +HOMEPAGE="http://www.intra2net.com/en/developer/libftdi/" + +LICENSE="LGPL-2" +SLOT="0" +IUSE="cxx doc examples python static-libs" + +RDEPEND="virtual/libusb:0 + cxx? ( dev-libs/boost ) + python? ( dev-lang/python )" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen )" + +src_prepare() { + if [[ ${PV} == 9999* ]] ; then + mkdir -p m4 + eautoreconf + fi +} + +src_configure() { + econf \ + $(use_enable cxx libftdipp) \ + $(use_with doc docs) \ + $(use_with examples) \ + $(use_enable python python-binding) \ + $(use_enable static-libs static) +} + +src_install() { + emake DESTDIR="${D}" install || die + use static-libs || find "${D}" -name '*.la' -delete + dodoc ChangeLog README + + if use doc ; then + doman doc/man/man3/* + dohtml doc/html/* + fi + if use examples ; then + docinto examples + dodoc examples/*.c + fi +} diff --git a/dev-embedded/libftdi/libftdi-0.20.ebuild b/dev-embedded/libftdi/libftdi-0.20.ebuild new file mode 100644 index 00000000000..a5804f398b1 --- /dev/null +++ b/dev-embedded/libftdi/libftdi-0.20.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +inherit cmake-utils python + +if [[ ${PV} == 9999* ]] ; then + EGIT_REPO_URI="git://developer.intra2net.com/${PN}" + inherit git-2 +else + SRC_URI="http://www.intra2net.com/en/developer/${PN}/download/${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86" +fi + +DESCRIPTION="Userspace access to FTDI USB interface chips" +HOMEPAGE="http://www.intra2net.com/en/developer/libftdi/" + +LICENSE="LGPL-2" +SLOT="0" +IUSE="cxx doc examples python" + +RDEPEND="virtual/libusb:0 + cxx? ( dev-libs/boost ) + python? ( dev-lang/python )" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen )" + +src_prepare() { + sed -i \ + -e "s:[$]{PYTHON_LIB_INSTALL}/../site-packages:$(python_get_sitedir):" \ + bindings/CMakeLists.txt || die + sed -i \ + -e '/SET(LIB_SUFFIX /d' \ + CMakeLists.txt || die +} + +src_configure() { + mycmakeargs=( + $(cmake-utils_use cxx FTDIPP) + $(cmake-utils_use doc DOCUMENTATION) + $(cmake-utils_use examples EXAMPLES) + $(cmake-utils_use python PYTHON_BINDINGS) + -DCMAKE_SKIP_BUILD_RPATH=ON + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + dodoc ChangeLog README + + if use doc ; then + # Clean up crap man pages. #356369 + rm -vf "${CMAKE_BUILD_DIR}"/doc/man/man3/{_,usb_,deprecated}* + + doman "${CMAKE_BUILD_DIR}"/doc/man/man3/* + dohtml "${CMAKE_BUILD_DIR}"/doc/html/* + fi + if use examples ; then + docinto examples + dodoc examples/*.c + fi +} diff --git a/dev-embedded/libftdi/libftdi-1.0.ebuild b/dev-embedded/libftdi/libftdi-1.0.ebuild new file mode 100644 index 00000000000..b831aa1e15b --- /dev/null +++ b/dev-embedded/libftdi/libftdi-1.0.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit cmake-utils eutils + +MY_P="${PN}1-${PV}" +if [[ ${PV} == 9999* ]] ; then + EGIT_REPO_URI="git://developer.intra2net.com/${PN}" + inherit git-2 +else + SRC_URI="http://www.intra2net.com/en/developer/${PN}/download/${MY_P}.tar.bz2" + KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~sparc ~x86" +fi + +DESCRIPTION="Userspace access to FTDI USB interface chips" +HOMEPAGE="http://www.intra2net.com/en/developer/libftdi/" + +LICENSE="LGPL-2" +SLOT="0" +IUSE="cxx doc examples python static-libs tools" + +RDEPEND="virtual/libusb:1 + cxx? ( dev-libs/boost ) + python? ( dev-lang/python ) + tools? ( dev-libs/confuse )" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen )" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-1.0-staticlibs.patch +} + +src_configure() { + mycmakeargs=( + $(cmake-utils_use cxx FTDIPP) + $(cmake-utils_use doc DOCUMENTATION) + $(cmake-utils_use examples EXAMPLES) + $(cmake-utils_use python PYTHON_BINDINGS) + $(cmake-utils_use static-libs STATICLIBS) + $(cmake-utils_use tools FTDI_EEPROM) + -DCMAKE_SKIP_BUILD_RPATH=ON + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + dodoc AUTHORS ChangeLog README TODO + + if use doc ; then + # Clean up crap man pages. #356369 + rm -vf "${CMAKE_BUILD_DIR}"/doc/man/man3/{_,usb_,deprecated}* + + doman "${CMAKE_BUILD_DIR}"/doc/man/man3/* + dohtml "${CMAKE_BUILD_DIR}"/doc/html/* + fi + if use examples ; then + docinto examples + dodoc examples/*.c + fi +} diff --git a/dev-embedded/libftdi/libftdi-1.2.ebuild b/dev-embedded/libftdi/libftdi-1.2.ebuild new file mode 100644 index 00000000000..169e010a467 --- /dev/null +++ b/dev-embedded/libftdi/libftdi-1.2.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit cmake-utils + +MY_P="${PN}1-${PV}" +if [[ ${PV} == 9999* ]] ; then + EGIT_REPO_URI="git://developer.intra2net.com/${PN}" + inherit git-2 +else + SRC_URI="http://www.intra2net.com/en/developer/${PN}/download/${MY_P}.tar.bz2" + KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~sparc ~x86" +fi + +DESCRIPTION="Userspace access to FTDI USB interface chips" +HOMEPAGE="http://www.intra2net.com/en/developer/libftdi/" + +LICENSE="LGPL-2" +SLOT="0" +IUSE="cxx doc examples python static-libs tools" + +RDEPEND="virtual/libusb:1 + cxx? ( dev-libs/boost ) + python? ( dev-lang/python ) + tools? ( + !<dev-embedded/ftdi_eeprom-1.0 + dev-libs/confuse + )" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen )" + +S=${WORKDIR}/${MY_P} + +src_configure() { + mycmakeargs=( + $(cmake-utils_use cxx FTDIPP) + $(cmake-utils_use doc DOCUMENTATION) + $(cmake-utils_use examples EXAMPLES) + $(cmake-utils_use python PYTHON_BINDINGS) + $(cmake-utils_use static-libs STATICLIBS) + $(cmake-utils_use tools FTDI_EEPROM) + -DCMAKE_SKIP_BUILD_RPATH=ON + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + dodoc AUTHORS ChangeLog README TODO + + if use doc ; then + # Clean up crap man pages. #356369 + rm -vf "${CMAKE_BUILD_DIR}"/doc/man/man3/_* || die + + doman "${CMAKE_BUILD_DIR}"/doc/man/man3/* + dohtml "${CMAKE_BUILD_DIR}"/doc/html/* + fi + if use examples ; then + docinto examples + dodoc examples/*.c + fi +} diff --git a/dev-embedded/libftdi/libftdi-9999.ebuild b/dev-embedded/libftdi/libftdi-9999.ebuild new file mode 100644 index 00000000000..169e010a467 --- /dev/null +++ b/dev-embedded/libftdi/libftdi-9999.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" + +inherit cmake-utils + +MY_P="${PN}1-${PV}" +if [[ ${PV} == 9999* ]] ; then + EGIT_REPO_URI="git://developer.intra2net.com/${PN}" + inherit git-2 +else + SRC_URI="http://www.intra2net.com/en/developer/${PN}/download/${MY_P}.tar.bz2" + KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~sparc ~x86" +fi + +DESCRIPTION="Userspace access to FTDI USB interface chips" +HOMEPAGE="http://www.intra2net.com/en/developer/libftdi/" + +LICENSE="LGPL-2" +SLOT="0" +IUSE="cxx doc examples python static-libs tools" + +RDEPEND="virtual/libusb:1 + cxx? ( dev-libs/boost ) + python? ( dev-lang/python ) + tools? ( + !<dev-embedded/ftdi_eeprom-1.0 + dev-libs/confuse + )" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen )" + +S=${WORKDIR}/${MY_P} + +src_configure() { + mycmakeargs=( + $(cmake-utils_use cxx FTDIPP) + $(cmake-utils_use doc DOCUMENTATION) + $(cmake-utils_use examples EXAMPLES) + $(cmake-utils_use python PYTHON_BINDINGS) + $(cmake-utils_use static-libs STATICLIBS) + $(cmake-utils_use tools FTDI_EEPROM) + -DCMAKE_SKIP_BUILD_RPATH=ON + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + dodoc AUTHORS ChangeLog README TODO + + if use doc ; then + # Clean up crap man pages. #356369 + rm -vf "${CMAKE_BUILD_DIR}"/doc/man/man3/_* || die + + doman "${CMAKE_BUILD_DIR}"/doc/man/man3/* + dohtml "${CMAKE_BUILD_DIR}"/doc/html/* + fi + if use examples ; then + docinto examples + dodoc examples/*.c + fi +} diff --git a/dev-embedded/libftdi/metadata.xml b/dev-embedded/libftdi/metadata.xml new file mode 100644 index 00000000000..3f860e47416 --- /dev/null +++ b/dev-embedded/libftdi/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>dev-embedded</herd> +<use> + <flag name='tools'>build ftdi_eeprom helper tool</flag> +</use> +</pkgmetadata> |