From 4ec8670944296b4e901bc6b2cd4558bdb8449a84 Mon Sep 17 00:00:00 2001 From: Johannes Schwab Date: Sat, 18 Jan 2014 12:50:58 +0100 Subject: [PATCH] fist commit --- README.md | 15 +++++++ gentoo-twister-overlay.xml | 15 +++++++ metadata/layout.conf | 1 + net-p2p/twister/Manifest | 3 ++ .../files/0.9.06_beta-twister-qt.pro.patch | 20 +++++++++ net-p2p/twister/twister-0.9.06_beta.ebuild | 44 +++++++++++++++++++ profiles/repo_name | 1 + 7 files changed, 99 insertions(+) create mode 100644 README.md create mode 100644 gentoo-twister-overlay.xml create mode 100644 metadata/layout.conf create mode 100644 net-p2p/twister/Manifest create mode 100644 net-p2p/twister/files/0.9.06_beta-twister-qt.pro.patch create mode 100644 net-p2p/twister/twister-0.9.06_beta.ebuild create mode 100644 profiles/repo_name diff --git a/README.md b/README.md new file mode 100644 index 0000000..a6bc3bc --- /dev/null +++ b/README.md @@ -0,0 +1,15 @@ +Unofficial gentoo-twister-overlay +================================ + +A gentoo overlay for twister. +This overlay fetches the source from github, builds the twisterd and copies it to /usr/bin. + +You can add the overlay to portage with: + + # layman -o https://raw.github.com/ddorian1/gentoo-twister-overlay/master/gentoo-twister-overlay.xml -a twister + +And than install twister (and dependencies) with: + + # emerge -a twister + +I only tested on amd64, but it should work on other platforms too. diff --git a/gentoo-twister-overlay.xml b/gentoo-twister-overlay.xml new file mode 100644 index 0000000..c68f5f1 --- /dev/null +++ b/gentoo-twister-overlay.xml @@ -0,0 +1,15 @@ + + + + twister + Unofficial twister overlay + https://github.com/ddorian1/gentoo-twister-overlay + + johannes_schwab@gmx.de + Johannes Schwab + + git://github.com/ddorian1/gentoo-twister-overlay.git + https://github.com/ddorian1/gentoo-twister-overlay/commits/master.atom + + + diff --git a/metadata/layout.conf b/metadata/layout.conf new file mode 100644 index 0000000..d43e61c --- /dev/null +++ b/metadata/layout.conf @@ -0,0 +1 @@ +masters = gentoo diff --git a/net-p2p/twister/Manifest b/net-p2p/twister/Manifest new file mode 100644 index 0000000..e1b3fb1 --- /dev/null +++ b/net-p2p/twister/Manifest @@ -0,0 +1,3 @@ +AUX 0.9.06_beta-twister-qt.pro.patch 846 SHA256 79bac6fd3324cb110c143c69b329ebd0eb82f3872bcdf291567120b3a037bf67 SHA512 776c0abf594c2b67a1f782d48c3a3fe72466fe9ac149cd0135a63450144ef75d75c70e0e471cff4cb757eeb6a7c9b2b6f15e55465148126e7317779bbff286bb WHIRLPOOL bbcf104598fdf5cc5be6ef9af241286d4878ff0ca7d3dd5751dc5552931aa35b102e26439991462260eee08f7e871d257595958e71bfc491f10cb1d8789f48f0 +DIST 19ff320d24ad4926a90b778d95ecbccb843d1d1d.tar.gz 6259265 SHA256 cbd4bfc009839004bcb3d7687164e8acf5d77e68b0421b7d3ffb93a223aa588f SHA512 d15b528390093c8178ef78d645a40df2037efb23a4577b21759ad815c5eef25c2819098100894815ca9975a92ead4694b2fcc8fc02887bc63f5ecb42c73e6ab6 WHIRLPOOL e69278dc2de89bc8ffec4b9d1dc3b3ed6dcc47202804b1c2cd2e32439ec3bc2ec399cff2a75149cb0ecd198d47539a042344e758796b6c9fb7f3f1128c1314b3 +EBUILD twister-0.9.06_beta.ebuild 783 SHA256 68d25e57f3b6f1ff5208c27dc0bd20d603c0494ead8f3b9e96ba58e21623ed05 SHA512 880d00aaca936fe73155bbe32b25a96269591673b81cbb10d38b70f1bfc8ac8c7014bc5398ead2daf250d1d8b9ff745a857c0ec692d5bc7ca4f89139aff55347 WHIRLPOOL 827a8ac7e56ec31010aa4ab70ed18fc644d675cea12245a8c91687ca280007fc231c4d9b450bbb0f0e4236e3dee4c986de5e6e0367dde3fa422c778999a327fb diff --git a/net-p2p/twister/files/0.9.06_beta-twister-qt.pro.patch b/net-p2p/twister/files/0.9.06_beta-twister-qt.pro.patch new file mode 100644 index 0000000..b1227da --- /dev/null +++ b/net-p2p/twister/files/0.9.06_beta-twister-qt.pro.patch @@ -0,0 +1,20 @@ +diff --git a/twister-qt.pro b/twister-qt.pro +index 841791f..070c480 100644 +--- a/twister-qt.pro ++++ b/twister-qt.pro +@@ -452,8 +452,13 @@ LIBS += -lssl -lcrypto -ldb_cxx$$BDB_LIB_SUFFIX + # -lgdi32 has to happen after -lcrypto (see #681) + win32:LIBS += -lws2_32 -lshlwapi -lmswsock -lole32 -loleaut32 -luuid -lgdi32 + LIBS += -lboost_system$$BOOST_LIB_SUFFIX -lboost_filesystem$$BOOST_LIB_SUFFIX -lboost_program_options$$BOOST_LIB_SUFFIX -lboost_thread$$BOOST_THREAD_LIB_SUFFIX +-win32:LIBS += -lboost_chrono$$BOOST_LIB_SUFFIX +-macx:LIBS += -lboost_chrono$$BOOST_LIB_SUFFIX ++ ++contains(USE_BOOST_46,1) { ++ message(Building with boost 1.4.6. Excluding chrono library.) ++} else { ++ message(Building with boost over 1.4.6. Including chrono library.) ++ LIBS += -lboost_chrono$$BOOST_LIB_SUFFIX ++} + + contains(RELEASE, 1) { + !win32:!macx { diff --git a/net-p2p/twister/twister-0.9.06_beta.ebuild b/net-p2p/twister/twister-0.9.06_beta.ebuild new file mode 100644 index 0000000..94ded4e --- /dev/null +++ b/net-p2p/twister/twister-0.9.06_beta.ebuild @@ -0,0 +1,44 @@ +EAPI=5 +inherit eutils + +COMMIT="19ff320d24ad4926a90b778d95ecbccb843d1d1d" + +DESCRIPTION="Peer-to-peer microblogging" +HOMEPAGE="http://twister.net.co/" +SRC_URI="https://github.com/miguelfreitas/twister-core/archive/${COMMIT}.tar.gz" +RESTRICT="mirror" + +LICENSE="MIT BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="dev-libs/openssl + sys-libs/db + dev-libs/boost + net-libs/miniupnpc" + +DEPEND="${RDEPEND}" + +S="${WORKDIR}/twister-core-${COMMIT}" + +src_configure() { + cd "${S}/libtorrent" + ./bootstrap.sh + econf --enable-logging --enable-debug --enable-dht + + cd "${S}" + qmake BDB_INCLUDE_PATH=/usr/include/db4.8 +} + +src_prepare() { + epatch "${FILESDIR}/${PV}-twister-qt.pro.patch" +} + +src_compile() { + emake +} + +src_install() { + mkdir -p "${D}usr/bin/" + cp "${S}/twisterd" "${D}usr/bin/twisterd" +} diff --git a/profiles/repo_name b/profiles/repo_name new file mode 100644 index 0000000..5051863 --- /dev/null +++ b/profiles/repo_name @@ -0,0 +1 @@ +twister