1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="a front-end for Oracle program sqlplus with command-line editing"
9 HOMEPAGE="https://sourceforge.net/projects/gqlplus/"
10 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
14 KEYWORDS="~amd64 ~amd64-linux ~x64-macos"
17 DEPEND="sys-libs/readline:*"
21 # don't use packaged readline and old version containing it
22 rm -Rf readline gqlplus-1.15
24 # maintainer can't seem to get versioning right
25 sed -i '/^#define VERSION/s/"[^"]\+"/"'"${PV}"'"/' gqlplus.c || die
26 sed -i '/^AC_INIT/s/\[[1-9.]\+\]/['"${PV}"']/' configure.ac || die