/[gentoo-x86]/sci-geosciences/grass/grass-6.4.2.ebuild
Gentoo

Diff of /sci-geosciences/grass/grass-6.4.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.4 Revision 1.13
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2014 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/grass-6.4.2.ebuild,v 1.4 2012/10/24 19:38:26 ulm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/grass-6.4.2.ebuild,v 1.13 2014/12/28 16:47:14 titanofold Exp $
4 4
5EAPI=4 5EAPI=4
6 6
7PYTHON_DEPEND="python? 2" 7PYTHON_DEPEND="python? 2"
8WANT_AUTOCONF="2.1"
8 9
9inherit eutils gnome2 multilib python versionator wxwidgets base 10inherit eutils gnome2 multilib python versionator wxwidgets autotools
10 11
11MY_PM=${PN}$(get_version_component_range 1-2 ${PV}) 12MY_PM=${PN}$(get_version_component_range 1-2 ${PV})
12MY_PM=${MY_PM/.} 13MY_PM=${MY_PM/.}
13MY_P=${P/_rc/RC} 14MY_P=${P/_rc/RC}
14 15
16HOMEPAGE="http://grass.osgeo.org/" 17HOMEPAGE="http://grass.osgeo.org/"
17SRC_URI="http://grass.osgeo.org/${MY_PM}/source/${MY_P}.tar.gz" 18SRC_URI="http://grass.osgeo.org/${MY_PM}/source/${MY_P}.tar.gz"
18 19
19LICENSE="GPL-2" 20LICENSE="GPL-2"
20SLOT="6" 21SLOT="6"
21KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" 22KEYWORDS="amd64 ppc ~ppc64 x86"
22IUSE="X cairo cxx ffmpeg fftw gmath jpeg motif mysql nls odbc opengl png postgres python readline sqlite tiff truetype wxwidgets" 23IUSE="X cairo cxx ffmpeg fftw gmath jpeg motif mysql nls odbc opengl png postgres python readline sqlite tiff truetype wxwidgets"
23 24
24TCL_DEPS=" 25TCL_DEPS="
25 >=dev-lang/tcl-8.5 26 >=dev-lang/tcl-8.5
26 >=dev-lang/tk-8.5" 27 >=dev-lang/tk-8.5"
31 sci-libs/proj 32 sci-libs/proj
32 sys-libs/gdbm 33 sys-libs/gdbm
33 sys-libs/ncurses 34 sys-libs/ncurses
34 sys-libs/zlib 35 sys-libs/zlib
35 cairo? ( x11-libs/cairo[X?,opengl?] ) 36 cairo? ( x11-libs/cairo[X?,opengl?] )
36 ffmpeg? ( virtual/ffmpeg ) 37 ffmpeg? ( >=virtual/ffmpeg-0.10 )
37 fftw? ( sci-libs/fftw:3.0 ) 38 fftw? ( sci-libs/fftw:3.0 )
38 gmath? ( 39 gmath? (
39 virtual/blas 40 virtual/blas
40 virtual/lapack 41 virtual/lapack
41 ) 42 )
45 opengl? ( 46 opengl? (
46 virtual/opengl 47 virtual/opengl
47 ${TCL_DEPS} 48 ${TCL_DEPS}
48 ) 49 )
49 png? ( media-libs/libpng ) 50 png? ( media-libs/libpng )
50 postgres? ( >=dev-db/postgresql-base-8.4 ) 51 postgres? ( >=dev-db/postgresql-8.4 )
51 readline? ( sys-libs/readline ) 52 readline? ( sys-libs/readline )
52 sqlite? ( dev-db/sqlite:3 ) 53 sqlite? ( dev-db/sqlite:3 )
53 tiff? ( media-libs/tiff ) 54 tiff? ( media-libs/tiff )
54 truetype? ( media-libs/freetype:2 ) 55 truetype? ( media-libs/freetype:2 )
55 wxwidgets? ( >=dev-python/wxpython-2.8.10.1[cairo,opengl?] ) 56 wxwidgets? ( >=dev-python/wxpython-2.8.10.1[cairo,opengl?] )
90S="${WORKDIR}/${MY_P}" 91S="${WORKDIR}/${MY_P}"
91 92
92PATCHES=( 93PATCHES=(
93 "${FILESDIR}"/${PN}-pkgconf.patch 94 "${FILESDIR}"/${PN}-pkgconf.patch
94 "${FILESDIR}"/${PN}-6.4.1-libav-0.8.patch 95 "${FILESDIR}"/${PN}-6.4.1-libav-0.8.patch
96 "${FILESDIR}"/${PN}-6.4.2-ffmpeg-1.patch
97 "${FILESDIR}"/${PN}-6.4.2-configure.patch
98 "${FILESDIR}"/${PN}-6.4.2-libav-9.patch
95) 99)
96 100
97REQUIRED_USE=" 101REQUIRED_USE="
98 motif? ( X ) 102 motif? ( X )
99 opengl? ( X ) 103 opengl? ( X )
127 fi 131 fi
128} 132}
129 133
130src_prepare() { 134src_prepare() {
131 use opengl || epatch "${FILESDIR}"/${PN}-6.4.0-html-nonviz.patch 135 use opengl || epatch "${FILESDIR}"/${PN}-6.4.0-html-nonviz.patch
132 base_src_prepare 136 epatch ${PATCHES[@]}
137 epatch_user
138 eautoconf
133} 139}
134 140
135src_configure() { 141src_configure() {
136 local myconf TCL_LIBDIR 142 local myconf TCL_LIBDIR
137 143
185 $(use_enable ppc64 64bit) \ 191 $(use_enable ppc64 64bit) \
186 $(use_with cairo) \ 192 $(use_with cairo) \
187 $(use_with cxx) \ 193 $(use_with cxx) \
188 $(use_with fftw) \ 194 $(use_with fftw) \
189 $(use_with ffmpeg) \ 195 $(use_with ffmpeg) \
190 --with-ffmpeg-includes="/usr/include/libavcodec /usr/include/libavdevice /usr/include/libavfilter /usr/include/libavformat /usr/include/libavutil /usr/include/libpostproc /usr/include/libswscale" \
191 $(use_with gmath blas) \ 196 $(use_with gmath blas) \
192 $(use_with gmath lapack) \ 197 $(use_with gmath lapack) \
193 $(use_with jpeg) \ 198 $(use_with jpeg) \
194 $(use_with mysql) \ 199 $(use_with mysql) \
195 --with-mysql-includes=/usr/include/mysql \ 200 --with-mysql-includes=/usr/include/mysql \
208 ${myconf} 213 ${myconf}
209} 214}
210 215
211src_compile() { 216src_compile() {
212 # we don't want to link against embeded mysql lib 217 # we don't want to link against embeded mysql lib
213 base_src_compile MYSQLDLIB="" 218 emake MYSQLDLIB=""
214} 219}
215 220
216src_install() { 221src_install() {
217 emake DESTDIR="${D}" \ 222 emake DESTDIR="${D}" \
218 INST_DIR="${D}"/usr/${MY_PM} \ 223 INST_DIR="${D}"/usr/${MY_PM} \

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.20