Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | SUMMARY = "A partition editor to graphically manage disk partitions " |
| 2 | HOMEPAGE = "http://gparted.org/index.php" |
| 3 | LICENSE = "GPLv2" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" |
| 5 | |
| 6 | inherit autotools pkgconfig gtk-icon-cache |
| 7 | |
| 8 | SRC_URI = " \ |
| 9 | ${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}/${BPN}-${PV}/${BPN}-${PV}.tar.bz2 \ |
| 10 | file://org.yoctoproject.pkexec.run-gparted.policy \ |
| 11 | file://gparted_polkit \ |
| 12 | " |
| 13 | SRC_URI[md5sum] = "b8480274c68876acff5965d4346710e7" |
| 14 | SRC_URI[sha256sum] = "02398ab33894a59b0bd8707e598c46d8bb56f1413cd54de48eed61e2920ecd60" |
| 15 | |
| 16 | DEPENDS = "glib-2.0 gtkmm parted gnome-doc-utils-native" |
| 17 | |
| 18 | do_install_append() { |
| 19 | # Add a script which checks if polkit is installed. |
| 20 | # If yes: a policy is requested from polkit / otherwise start as usual |
| 21 | install ${WORKDIR}/gparted_polkit ${D}${sbindir} |
| 22 | sed -i 's:%sbindir%:${sbindir}:g' ${D}${sbindir}/gparted_polkit |
| 23 | # relink menu entry to use our script |
| 24 | sed -i 's:${sbindir}/gparted:${sbindir}/gparted_polkit:g' ${D}${datadir}/applications/gparted.desktop |
| 25 | |
| 26 | install -d ${D}${datadir}/polkit-1/actions |
| 27 | install ${WORKDIR}/org.yoctoproject.pkexec.run-gparted.policy ${D}${datadir}/polkit-1/actions/org.yoctoproject.pkexec.run-gparted.policy |
| 28 | } |
| 29 | |
| 30 | EXTRA_OECONF = "--disable-scrollkeeper --disable-doc" |
| 31 | |
| 32 | FILES_${PN} += " \ |
| 33 | ${datadir}/appdata \ |
| 34 | ${datadir}/icons \ |
| 35 | ${datadir}/polkit-1 \ |
| 36 | " |
| 37 | |
| 38 | RDEPENDS_${PN} = "dosfstools mtools e2fsprogs" |