mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 10:32:13 +08:00
graphviz rebuild, clean up better depends
This commit is contained in:
parent
0a68001005
commit
89af6ffd26
@ -8,11 +8,22 @@ source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|||||||
|
|
||||||
pkgname=graphviz
|
pkgname=graphviz
|
||||||
pkgver=2.28.0
|
pkgver=2.28.0
|
||||||
pkgrel=2
|
pkgrel=3
|
||||||
pkgdesc="Creates acircular graph images"
|
pkgdesc="Creates acircular graph images"
|
||||||
arch=('i686' 'x86_64')
|
arch=('i686' 'x86_64')
|
||||||
license=('CPL')
|
license=('CPL')
|
||||||
depends=('gd>=2.0.35' 'librsvg>=2.22.3' 'libxaw>=1.0.5' 'ghostscript>=9.00')
|
depends=('gd' 'librsvg' 'libxaw' 'ghostscript' 'pango')
|
||||||
|
makedepends=('swig' 'guile' 'lua' 'ocaml' 'perl' 'php' 'python2' 'r' 'ruby' 'tk' 'qt')
|
||||||
|
optdepends=('guile: guile bindings'
|
||||||
|
'lua: lua bindings'
|
||||||
|
'ocaml: ocaml bindings'
|
||||||
|
'perl: perl bindings'
|
||||||
|
'php: php bindings'
|
||||||
|
'python2: python bindings'
|
||||||
|
'r: r bindings'
|
||||||
|
'ruby: ruby bindings'
|
||||||
|
'tcl: tcl bindings'
|
||||||
|
'qt: gvedit')
|
||||||
url="http://www.graphviz.org/"
|
url="http://www.graphviz.org/"
|
||||||
options=('!libtool')
|
options=('!libtool')
|
||||||
source=(${url}/pub/${pkgname}/stable/SOURCES/${pkgname}-${pkgver}.tar.gz
|
source=(${url}/pub/${pkgname}/stable/SOURCES/${pkgname}-${pkgver}.tar.gz
|
||||||
@ -23,23 +34,19 @@ sha1sums=('4725d88a13e071ee22e632de551d4a55ca08ee7d'
|
|||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||||
./configure --prefix=/usr --without-gnomeui --docdir=/usr/share/doc/gvkp \
|
|
||||||
--disable-tcl --disable-sharp --disable-ruby --disable-python \
|
|
||||||
--disable-lua --disable-guile --disable-perl || return 1
|
|
||||||
|
|
||||||
#--bindir=/bindir --libdir=/libdir --includedir=/includedir --mandir=/mandir \
|
sed -i "/RUBY_INCLUDES=\"/s|\"$| `eval echo -I/usr/include/ruby-1.9.1/{$CARCH-linux,ruby/backward,}`\"|" configure
|
||||||
#--infodir=/infodir \
|
sed -i '/LIBPOSTFIX="64"/d' configure
|
||||||
#--docdir=/docdir --htmldir=/htmldir --dvidir=/dvidir \
|
export PYTHON=python2
|
||||||
#--pdfdir=/pdfdir --psdir=/psdir
|
|
||||||
|
|
||||||
make || return 1
|
./configure --prefix=/usr
|
||||||
make DESTDIR="${pkgdir}" install || return 1
|
make
|
||||||
install -Dm644 ../LICENSE "${pkgdir}"/usr/share/licenses/graphviz/LICENSE
|
}
|
||||||
#Fix a wrong file location for x86_64
|
|
||||||
rm -rf ${pkgdir}/usr/lib64
|
package() {
|
||||||
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||||
# Fix non-fhs doc files.
|
make DESTDIR="${pkgdir}" install
|
||||||
cd ${pkgdir}/usr/share
|
|
||||||
mkdir doc
|
# cf. http://www.graphviz.org/License.php
|
||||||
mv graphviz/doc doc/graphviz
|
install -Dm644 ../LICENSE "${pkgdir}"/usr/share/licenses/graphviz/LICENSE
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user