delete old package

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@2160 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one
2010-05-09 06:54:13 +00:00
parent c6d9c58995
commit cea85aca22
7 changed files with 43 additions and 160 deletions

View File

@@ -1,55 +1,53 @@
# Copyright 1999-2008 Gentoo Foundation
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-pda/libopensync/libopensync-0.36.ebuild,v 1.2 2008/04/20 17:07:42 flameeyes Exp $
# $Header: /var/cvsroot/gentoo-x86/app-pda/libopensync/libopensync-0.39.ebuild,v 1.2 2009/11/16 21:25:21 eva Exp $
inherit cmake-utils eutils
inherit cmake-utils
DESCRIPTION="OpenSync synchronisation framework library"
HOMEPAGE="http://www.opensync.org/"
SRC_URI="http://www.opensync.org/download/releases/${PV}/${P}.tar.bz2"
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
SLOT="0"
LICENSE="LGPL-2.1"
IUSE="debug doc python"
IUSE="doc python test"
# Tests don't pass
#>=dev-libs/check-0.9.2
#mycmakeargs="${mycmakeargs} -DOPENSYNC_UNITTESTS=ON"
# 14% tests passed, 275 tests failed out of 321
RESTRICT="test"
RDEPEND=">=dev-db/sqlite-3
>=dev-libs/glib-2
>=dev-libs/glib-2.12
dev-libs/libxml2
python? ( >=dev-lang/python-2.2 )"
DEPEND="${RDEPEND}
python? ( >=dev-lang/swig-1.3.17 )
>=dev-util/cmake-2.4.7
>=dev-util/pkgconfig-0.9.0
doc? ( app-doc/doxygen )"
doc? ( app-doc/doxygen )
python? ( >=dev-lang/swig-1.3.17 )
test? ( >=dev-libs/check-0.9.2 )"
src_compile() {
local mycmakeargs
mycmakeargs="${mycmakeargs} -DCMAKE_SKIP_RPATH=ON"
mycmakeargs="${mycmakeargs} -DOPENSYNC_TRACE=$(use debug && echo ON || echo OFF)"
mycmakeargs="${mycmakeargs} -DOPENSYNC_DEBUG_MODULES=$(use debug && echo ON || echo OFF)"
mycmakeargs="${mycmakeargs} -DOPENSYNC_PYTHONBINDINGS=$(use python && echo ON || echo OFF)"
mycmakeargs="${mycmakeargs} -DBUILD_DOCUMENTATION=$(use doc && echo ON || echo OFF)"
DOCS="AUTHORS CODING ChangeLog README"
local mycmakeargs="
-DCMAKE_SKIP_RPATH=ON
$(cmake-utils_use_enable python WRAPPER)
$(cmake-utils_use_build doc DOCUMENTATION)
$(cmake-utils_use test OPENSYNC_UNITTESTS)
"
cmake-utils_src_compile
if use doc ; then
cd "${WORKDIR}/${PN}_build"
doxygen Doxyfile || die "Failed to generate docs."
cmake-utils_src_make DoxygenDoc || die "Failed to generate docs."
fi
}
src_test() {
echo ">>> Test phase [test]: ${CATEGORY}/${PF}"
pushd "${CMAKE_BUILD_DIR}" > /dev/null
pushd "${WORKDIR}/${PN}_build" > /dev/null
if ! LD_LIBRARY_PATH="${WORKDIR}/${PN}_build/opensync/" emake -j1 test ; then
if ! LD_LIBRARY_PATH="${CMAKE_BUILD_DIR}/opensync/" emake -j1 test ; then
die "Make test failed. See above for details."
fi
@@ -60,13 +58,7 @@ src_install() {
cmake-utils_src_install
if use doc ; then
cd "${WORKDIR}/${PN}_build"
cd "${CMAKE_BUILD_DIR}"
dohtml docs/html/* || die "Failed to install docs."
fi
}
pkg_postinst() {
elog "Building with 'debug' useflag is highly encouraged"
elog "and requiered for bug reports."
elog "Also see http://www.opensync.org/wiki/tracing"
}