# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 inherit toolchain-funcs flag-o-matic webapp DESCRIPTION="The UCSC genome browser suite, also known as Jim Kent's library and GoldenPath" HOMEPAGE="http://genome.ucsc.edu/" SRC_URI="http://hgdownload.cse.ucsc.edu/admin/jksrc.v${PV}.zip" LICENSE="blat" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="+mysql +server static-libs" REQUIRED_USE="server? ( mysql )" WEBAPP_MANUAL_SLOT="yes" RDEPEND=" dev-libs/openssl:0= media-libs/libpng:0= ! "${S}/98${PN}" doenvd "${S}/98${PN}" use server && webapp_postinst_txt en src/product/README.QuickStart use server && webapp_src_install insinto "/usr/include/${PN}" doins src/inc/*.h insinto "/usr/share/${PN}" doins -r src/product keepdir "/usr/share/doc/${PF}" find -name 'README*' -or -name '*.doc' | grep -v test | cpio -padv "${ED}/usr/share/doc/${PF}" || die } pkg_postinst() { use server && webapp_pkg_postinst }