Magellan Linux

Diff of /trunk/core/ghostscript-gpl/ghostscript-gpl-8.70-r1.smage2

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

revision 3591 by niro, Mon Oct 26 18:30:22 2009 UTC revision 3597 by niro, Mon Oct 26 19:13:12 2009 UTC
# Line 24  DEPEND=">= media-libs/libjpeg-7 Line 24  DEPEND=">= media-libs/libjpeg-7
24  SDEPEND=">= net-print/cups-1.4  SDEPEND=">= net-print/cups-1.4
25   >= dev-util/pkgconfig-0.23"   >= dev-util/pkgconfig-0.23"
26    
27  SRCFILE="${PNAME}-${PVER}.tar.bz2"  SRCFILE="${PNAME/-gpl/}-${PVER}.tar.bz2"
28  EXTRA_SRCFILE="ghostscript-fonts-std-8.11.tar.gz"  EXTRA_SRCFILE="ghostscript-fonts-std-8.11.tar.gz"
29    
30  SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"  SRCDIR="${BUILDDIR}/${PNAME/-gpl/}-${PVER}"
31    
32  sminclude mtools  sminclude mtools
33    
34  SRC_URI=(  SRC_URI=(
35   http://ghostscript.com/releases/${SRCFILE}   sourceforge://${PNAME/-gpl/}/${SRCFILE}
36   mirror://${PNAME}/${SRCFILE}   mirror://${PNAME}/${SRCFILE}
37   mirror://${PNAME}/${EXTRA_SRCFILE}   mirror://${PNAME}/${EXTRA_SRCFILE}
38   mirror://${PNAME}/${PNAME}-${PVER}-multilib.patch   mirror://${PNAME}/${PNAME}-${PVER}-multilib.patch
# Line 46  SRC_URI=( Line 46  SRC_URI=(
46   mirror://${PNAME}/${PNAME}-${PVER}-respect-gsc-ldflags.patch   mirror://${PNAME}/${PNAME}-${PVER}-respect-gsc-ldflags.patch
47  )  )
48    
49    UP2DATE="updatecmd_sourceforge ${PNAME/-gpl/}"
50    
51  src_prepare()  src_prepare()
52  {  {
53   munpack ${SRCFILE} || die   munpack ${SRCFILE} || die
# Line 74  src_prepare() Line 76  src_prepare()
76   mpatch ${PNAME}-${PVER}-respect-gsc-ldflags.patch || die   mpatch ${PNAME}-${PVER}-respect-gsc-ldflags.patch || die
77    
78   # search path fix   # search path fix
79   sed -i -e "s:\$\(gsdatadir\)/lib:/usr/share/ghostscript/${PVM}/$(get_libdir):" \   sed -i -e "s:\$\(gsdatadir\)/lib:/usr/share/ghostscript/${PVER%.*}/$(mlibdir):" \
  -e 's:$(gsdir)/fonts:/usr/share/fonts/default/ghostscript/:' \  
  -e "s:exdir=.*:exdir=/usr/share/doc/${PF}/examples:" \  
  -e "s:docdir=.*:docdir=/usr/share/doc/${PF}/html:" \  
  -e "s:GS_DOCDIR=.*:GS_DOCDIR=/usr/share/doc/${PF}/html:" \  
  base/Makefile.in base/*.mak || die "sed failed"  
   
   
  # search path fix  
  sed -e "s:\$\(gsdatadir\)/lib:/usr/share/ghostscript/${PVER:0:4}/$(mlibdir):" \  
80   -e 's:$(gsdir)/fonts:/usr/share/ghostscript/fonts:' \   -e 's:$(gsdir)/fonts:/usr/share/ghostscript/fonts:' \
81   base/Makefile.in base/*.mak || die   base/Makefile.in base/*.mak || die
82    
83   # fix doc pathes   # fix doc pathes
84   sed -i "s:exdir=.*:exdir=/usr/share/doc/${PNAME}-${PVER}/examples:" Makefile.in || die   sed -i -e "s:exdir=.*:exdir=/usr/share/doc/${PNAME}-${PVER}/examples:" \
85   -e "s:docdir=.*:docdir=/usr/share/doc/${PF}/html:" \   -e "s:docdir=.*:docdir=/usr/share/doc/${PNAME}-${PVER}/html:" \
86   -e "s:GS_DOCDIR=.*:GS_DOCDIR=/usr/share/doc/${PF}/html:" \   -e "s:GS_DOCDIR=.*:GS_DOCDIR=/usr/share/doc/${PNAME}-${PVER}/html:" \
87   base/Makefile.in base/*.mak || die   base/Makefile.in base/*.mak || die
88    
89     # fix libtool issues
90     mlibtoolize || die
91    
92   # regen makefiles   # regen makefiles
93   autoreconf --install --force --verbose || die   autoreconf --install --force --verbose || die
94   cd ${SRCDIR}/ijs   cd ${SRCDIR}/ijs
95     # fix libtool issues
96     mlibtoolize || die
97   autoreconf --install --force --verbose || die   autoreconf --install --force --verbose || die
98  }  }
99    

Legend:
Removed from v.3591  
changed lines
  Added in v.3597