From e3eaf6d78c93d7442f71b09270176010a0c66e3a Mon Sep 17 00:00:00 2001 From: davehome Date: Thu, 20 Oct 2011 01:14:17 +0000 Subject: [PATCH] gnome-power-manager: temporarily nuke manpage install to fix build --- srcpkgs/gnome-power-manager/template | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/srcpkgs/gnome-power-manager/template b/srcpkgs/gnome-power-manager/template index d44baf2accf..8d68317da01 100644 --- a/srcpkgs/gnome-power-manager/template +++ b/srcpkgs/gnome-power-manager/template @@ -37,3 +37,31 @@ Add_dependency build intltool Add_dependency build gnome-doc-utils Add_dependency build gtk+3-devel Add_dependency build upower-devel + +pre_configure() +{ +if [ "$version" = "3.2.1" ]; then + sed -i -e "s|^ gnome-power-manager.sgml \\$||" \ + ${wrksrc}/man/Makefile.am + + sed -i -e "s|^ gnome-power-statistics.sgml$||" ${wrksrc}/man/Makefile.am + + sed -i -e "s|^ gnome-power-manager.1 \\$||" \ + ${wrksrc}/man/Makefile.am + + sed -i -e "s|^ gnome-power-statistics.1$||" ${wrksrc}/man/Makefile.am + + sed -i -e "s|^gnome-power-manager.1: gnome-power-manager.sgml$||" \ + ${wrksrc}/man/Makefile.am + + sed -i -e "s|^gnome-power-statistics.1: gnome-power-statistics.sgml$||" \ + ${wrksrc}/man/Makefile.am + + sed -i -e "s|docbook2man \$\? \&\> \/dev\/null||g" ${wrksrc}/man/Makefile.am + + sed -i -e "s|\\\||g" ${wrksrc}/man/Makefile.am + + rm ${wrksrc}/man/gnome-power-*.sgml +fi + +}