CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
bison: fixed documentation issues
authorJose V Beneyto <sepen@crux.nu>
Tue, 16 Feb 2010 11:52:48 +0000 (12:52 +0100)
committerJose V Beneyto <sepen@crux.nu>
Tue, 16 Feb 2010 11:52:48 +0000 (12:52 +0100)
bison/Pkgfile

index bbc935f50fd37225078db2f37efb35a0ebfcaeed..e43c7cb2917802c8f2d5d5d6dbdfba9ac243baa6 100644 (file)
@@ -6,18 +6,24 @@
 
 name=bison
 version=2.4.1
-release=1
+release=2
 source=(ftp://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2)
 
 build() {
-    cd $name-$version
-    ./configure --build=$CHOST \
-                --host=$CTARGET \
-                --prefix=/usr\
-                --mandir=/usr/man \
-                --disable-nls
-    make
-    make DESTDIR=$PKG install
-    rm -rf $PKG/usr/share/info
-    rm $PKG/usr/share/bison/README
+  cd $name-$version
+  ./configure --build=$CHOST \
+              --host=$CTARGET \
+              --prefix=/usr\
+              --disable-nls
+
+  sed '/^SUBDIRS =/ s/doc//' -i Makefile.in
+
+  make
+  make DESTDIR=$PKG install
+
+  install -d $PKG/usr/man/man1
+  install -m 0644 doc/*.1 $PKG/usr/man/man1
+
+  rm -rf $PKG/usr/share/info
+  rm $PKG/usr/share/bison/README
 }