1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit cmake-utils eutils
7 DESCRIPTION="Off-The-Record messaging (OTR) for irssi"
8 HOMEPAGE="http://projects.tuxfamily.org/group.pl?name=irssiotr"
10 # This should probably be exported by cmake-utils as a variable
11 CMAKE_BINARY_DIR="${WORKDIR}"/${PN}_build
14 S="${WORKDIR}/irssiotr"
16 MY_IRSSI_URL="http://svn.irssi.org/cgi-bin/viewvc.cgi/irssi/trunk/src/fe-text"
17 MY_IRSSI_URLPARMS="revision=4806&root=irssi"
19 ${MY_IRSSI_URL}/mainwindows.h?${MY_IRSSI_URLPARMS}
20 ${MY_IRSSI_URL}/term.h?${MY_IRSSI_URLPARMS}
21 ${MY_IRSSI_URL}/statusbar.h?${MY_IRSSI_URLPARMS}
22 http://git.tuxfamily.org/irssiotr/irssiotr.git?p=gitroot/irssiotr/irssiotr.git;a=snapshot;h=${MY_PV};sf=tgz"
26 KEYWORDS="~amd64 ~x86"
30 >=net-libs/libotr-3.1.0
35 >=dev-util/cmake-2.4.7
40 ln -s "${DISTDIR}/irssiotr.git;a=snapshot;h=${MY_PV};sf=tgz" ${P}.tgz
43 mkdir -p "${CMAKE_BINARY_DIR}"
45 # copy prefetched irssi private headers and patch them
46 # a bug has been filed to make these public, irssi FS#535
47 for privheader in mainwindows.h term.h statusbar.h; do
48 cp "${DISTDIR}/${privheader}?${MY_IRSSI_URLPARMS}" \
49 "${CMAKE_BINARY_DIR}/${privheader}" \
50 || die "failed to copy prefetched irssi private headers"
52 cd "${CMAKE_BINARY_DIR}"
53 epatch "${S}"/privheaders.patch
54 mycmakeargs="-DIRSSIOTR_VERSION=${PV}"