diff options
author | kwm <kwm@FreeBSD.org> | 2014-06-03 04:54:21 +0800 |
---|---|---|
committer | kwm <kwm@FreeBSD.org> | 2014-06-03 04:54:21 +0800 |
commit | c0eca2b635addbaeb1829ad8cfe12b8c4b1e6d6b (patch) | |
tree | b8fe12423b8236a17b88e9881b9d1c5acc9872ec /sysutils/upower | |
parent | 8bc55b1665e882a5462bac7da67e8f942ee4a541 (diff) | |
download | freebsd-ports-gnome-c0eca2b635addbaeb1829ad8cfe12b8c4b1e6d6b.tar.gz freebsd-ports-gnome-c0eca2b635addbaeb1829ad8cfe12b8c4b1e6d6b.tar.zst freebsd-ports-gnome-c0eca2b635addbaeb1829ad8cfe12b8c4b1e6d6b.zip |
Move LICENSE to please portlint.
Replace NO_INSTALL_MANPAGES with a MANPAGES option.
Remove /var/lib/DeviceKit-power from pkg-plist. This directory
was only created when installing from packages and isn't referenced anywhere.
Create /var/lib/upower with @exec to support old pkg_install.
PR: 185287
Submitted by: tijl@
Diffstat (limited to 'sysutils/upower')
-rw-r--r-- | sysutils/upower/Makefile | 25 | ||||
-rw-r--r-- | sysutils/upower/pkg-plist | 9 |
2 files changed, 18 insertions, 16 deletions
diff --git a/sysutils/upower/Makefile b/sysutils/upower/Makefile index cfe904515cf3..c6c8109fa442 100644 --- a/sysutils/upower/Makefile +++ b/sysutils/upower/Makefile @@ -4,18 +4,29 @@ PORTNAME= upower PORTVERSION= 0.9.7 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= sysutils MASTER_SITES= http://upower.freedesktop.org/releases/ MAINTAINER= gnome@FreeBSD.org COMMENT= D-Bus daemon for simplifying power management tasks +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING + LIB_DEPENDS= libpolkit-gobject-1.so:${PORTSDIR}/sysutils/polkit \ libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib -LICENSE= GPLv2 -LICENSE_FILE= ${WRKSRC}/COPYING +OPTIONS_DEFINE= MANPAGES +OPTIONS_DEFAULT=MANPAGES +OPTIONS_SUB= yes +MANPAGES_CONFIGURE_ENABLE= man-pages +MANPAGES_BUILD_DEPENDS= \ + ${LOCALBASE}/share/sgml/docbook/4.1:${PORTSDIR}/textproc/docbook-sgml \ + ${LOCALBASE}/share/xml/docbook/4.1.2:${PORTSDIR}/textproc/docbook-xml \ + xsltproc:${PORTSDIR}/textproc/libxslt \ + ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl + USES= gettext gmake libtool:keepla pathfix pkgconfig tar:bzip2 USE_GNOME= intlhack glib20 introspection:build,run GNU_CONFIGURE= yes @@ -29,12 +40,4 @@ CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib INSTALL_TARGET= install-strip -BUILD_DEPENDS+= ${LOCALBASE}/share/sgml/docbook/4.1:${PORTSDIR}/textproc/docbook-sgml \ - ${LOCALBASE}/share/xml/docbook/4.1.2:${PORTSDIR}/textproc/docbook-xml \ - xsltproc:${PORTSDIR}/textproc/libxslt \ - ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl - -post-install: - @${MKDIR} ${STAGEDIR}/var/lib/DeviceKit-power - .include <bsd.port.mk> diff --git a/sysutils/upower/pkg-plist b/sysutils/upower/pkg-plist index 02cbd54af75c..d048cbb10b32 100644 --- a/sysutils/upower/pkg-plist +++ b/sysutils/upower/pkg-plist @@ -21,9 +21,9 @@ lib/libupower-glib.so.1.0.1 libdata/pkgconfig/upower-glib.pc libexec/devkit-power-daemon libexec/upowerd -man/man1/upower.1.gz -man/man7/UPower.7.gz -man/man8/upowerd.8.gz +%%MANPAGES%%man/man1/upower.1.gz +%%MANPAGES%%man/man7/UPower.7.gz +%%MANPAGES%%man/man8/upowerd.8.gz share/dbus-1/interfaces/org.freedesktop.UPower.Device.xml share/dbus-1/interfaces/org.freedesktop.UPower.KbdBacklight.xml share/dbus-1/interfaces/org.freedesktop.UPower.QoS.xml @@ -37,9 +37,8 @@ share/locale/pl/LC_MESSAGES/upower.mo share/locale/sv/LC_MESSAGES/upower.mo share/polkit-1/actions/org.freedesktop.upower.policy share/polkit-1/actions/org.freedesktop.upower.qos.policy -@exec mkdir -p /var/lib/DeviceKit-power +@exec mkdir -p /var/lib/upower @dirrm include/libupower-glib @dirrm etc/UPower -@unexec rmdir /var/lib/DeviceKit-power 2>/dev/null || true @unexec rmdir /var/lib/upower 2>/dev/null || true @unexec rmdir /var/lib 2>/dev/null || true |