| 1 |
mgorny |
1.1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
|
|
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
|
|
# $Header: $
|
| 4 |
|
|
|
| 5 |
|
|
EAPI=4
|
| 6 |
|
|
|
| 7 |
|
|
inherit autotools-utils
|
| 8 |
|
|
|
| 9 |
|
|
DESCRIPTION="Pretty small HTTP server - a command-line tool to share files"
|
| 10 |
|
|
HOMEPAGE="https://bitbucket.org/mgorny/pshs/"
|
| 11 |
|
|
SRC_URI="mirror://bitbucket/mgorny/${PN}/downloads/${P}.tar.bz2"
|
| 12 |
|
|
|
| 13 |
|
|
LICENSE="BSD"
|
| 14 |
|
|
SLOT="0"
|
| 15 |
|
|
KEYWORDS="~amd64 ~x86"
|
| 16 |
|
|
IUSE="+magic +netlink upnp"
|
| 17 |
|
|
|
| 18 |
|
|
RDEPEND=">=dev-libs/libevent-2
|
| 19 |
|
|
magic? ( sys-apps/file )
|
| 20 |
|
|
upnp? ( net-libs/miniupnpc )"
|
| 21 |
|
|
DEPEND="${RDEPEND}
|
| 22 |
|
|
netlink? ( sys-apps/iproute2
|
| 23 |
|
|
>=sys-kernel/linux-headers-2.6.27 )"
|
| 24 |
|
|
# libnetlink is static only ATM
|
| 25 |
|
|
|
| 26 |
|
|
src_configure() {
|
| 27 |
|
|
myeconfargs=(
|
| 28 |
|
|
$(use_enable magic libmagic)
|
| 29 |
|
|
$(use_enable netlink)
|
| 30 |
|
|
$(use_enable upnp)
|
| 31 |
|
|
)
|
| 32 |
|
|
|
| 33 |
|
|
autotools-utils_src_configure
|
| 34 |
|
|
}
|