This repository was archived by the owner on May 11, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathQxOrm.ebuild
More file actions
67 lines (52 loc) · 1.98 KB
/
QxOrm.ebuild
File metadata and controls
67 lines (52 loc) · 1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-cpp/qxorm/qxorm-1.1.5-r1.ebuild,v 1.1.5-r1 2011/04/04 $
EAPI="2"
inherit qt4-r2
DESCRIPTION="C++ Object Relational Mapping library"
HOMEPAGE="http://www.qxorm.com/"
SRC_URI="http://sourceforge.net/projects/qxorm/files/QxOrm_${PV}.zip"
S=${WORKDIR}/QxOrm
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="gui"
RDEPEND="x11-libs/qt-sql:4
gui? ( x11-libs/qt-gui:4 )"
DEPEND="${RDEPEND}"
PACKNAME="QxOrm"
PATCHES=(
"${FILESDIR}/${P}-20110413.patch"
)
src_configure() {
local conf_add
conf_add="${conf_add} $(use_enable gui)"
eqmake4 "${PACKNAME}.pro" \
CONFIG+="${conf_add}" \
|| die "eqmake4 failed."
}
src_compile() {
default
emake all || die "make all failed"
}
src_install() {
emake install DESTDIR="${D}"|| die "make install failed"
# deploy headers
dodir /usr/include/${PACKNAME} || die "create include directory failed"
insinto /usr/include/${PACKNAME}
doins -r ${S}/include/* || die "headers copy failed"
doins -r ${S}/inl/* || die "inline headers copy failed"
find "${D}"/usr/include -type f -name "*.h" -exec sed -i 's,../inl/,,g' {} \;
find "${D}"/usr/include -type f -name "*.inl" -exec sed -i 's,../inl/,,g' {} \;
# deploy library
insinto /usr/lib
#doins ${S}/lib/libQxOrm.a || die "copy library failed"
#doins ${S}/lib/libQxOrm.la || die "copy library failed"
exeinto /usr/lib
doexe ${S}/lib/libQxOrm.so.1.0.0 || die "copy library failed"
# rename library
LIBDIR=`ls "${D}"/usr/|grep lib`
mv "${D}"/usr/${LIBDIR}/lib${PACKNAME}.so.1.0.0 "${D}"/usr/${LIBDIR}/lib${PACKNAME}-1.1.so.${PV} || die "rename <lib${PACKNAME}-1.1.so.4.0.0> library failed"
ln -sf lib${PACKNAME}-1.1.so.${PV} "${D}"/usr/${LIBDIR}/lib${PACKNAME}-1.1.so || die "create symbolic link <lib${PACKNAME}-1.1.so> failed"
ln -sf lib${PACKNAME}-1.1.so.${PV} "${D}"/usr/${LIBDIR}/lib${PACKNAME}.so || die "create symbolic link <lib${PACKNAME}.so> failed"
}