You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.1 KiB
51 lines
1.1 KiB
9 years ago
|
EAPI=5
|
||
|
inherit eutils
|
||
|
|
||
|
|
||
|
DESCRIPTION="Peer-to-peer microblogging"
|
||
|
HOMEPAGE="http://twister.net.co/"
|
||
9 years ago
|
SRC_URI="https://github.com/miguelfreitas/twister-core/archive/v${PV}.tar.gz -> ${PF}.tar.gz"
|
||
9 years ago
|
RESTRICT="mirror"
|
||
|
|
||
|
LICENSE="MIT BSD"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
IUSE="tk"
|
||
|
|
||
|
RDEPEND="dev-libs/openssl:*[-bindist]
|
||
|
sys-libs/db:4.8
|
||
|
dev-libs/boost
|
||
|
net-libs/miniupnpc
|
||
|
tk? ( || ( dev-lang/python:2.7[tk] dev-lang/python:2.6[tk] ) )"
|
||
|
|
||
|
DEPEND="${RDEPEND}"
|
||
|
|
||
9 years ago
|
S="${WORKDIR}/twister-core-${PV}"
|
||
9 years ago
|
|
||
|
src_configure() {
|
||
|
./bootstrap.sh
|
||
|
}
|
||
|
|
||
|
src_compile() {
|
||
|
emake
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
einstall
|
||
|
|
||
|
use tk || rm -f "${D}/usr/bin/twister-control"
|
||
|
use tk || rm -f "${D}/usr/share/applications/twister-control.desktop"
|
||
|
|
||
|
exeinto "/usr/bin/"
|
||
|
doexe "${FILESDIR}/twister-html-install"
|
||
|
doexe "${FILESDIR}/twister-html-update"
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
elog "Befor running twister, each user must set up twister's HTML files"
|
||
|
elog "in ~/.twister/html and the configs in ~/.twister/twister.conf."
|
||
|
elog "They can do this by running twister-html-install."
|
||
|
elog ""
|
||
|
elog "To keep the HTML files up to date, run twister-html-update."
|
||
|
}
|