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.
gentoo-overlay/net-misc/quickshare/quickshare-1.0.ebuild

44 lines
826 B

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=4
inherit eutils toolchain-funcs
DESCRIPTION="A simple HTTP server with a GUI which allows for easy sharing of files"
HOMEPAGE="http://houbysoft.com/qs/"
SRC_URI="http://houbysoft.com/download/${P}-src.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
RDEPEND="net-libs/libmicrohttpd
x11-libs/gtk+:2"
DEPEND="${RDEPEND}
virtual/pkgconfig"
S=${WORKDIR}/${P}-src
src_prepare() {
sed -i \
-e 's:gcc ${LOPT}:$(CC) $(LDFLAGS):' \
-e 's:-o $@:-o $@ ${LOPT}:' \
-e 's:gcc:$(CC):' \
Makefile || die
}
src_compile() {
tc-export CC
emake COPT="${CFLAGS}"
}
src_install() {
dobin qs
dodoc README
insinto /usr/share/quickshare
doins {on,off}.png
make_desktop_entry qs QuickShare
}