]> Pileus Git - ~andy/sunrise/blobdiff - app-misc/japanese-vocabulary/japanese-vocabulary-0.6.ebuild
app-misc/japanese-vocabulary: Add pkg_postrm to clean-up after itself on unmerge
[~andy/sunrise] / app-misc / japanese-vocabulary / japanese-vocabulary-0.6.ebuild
index 2cef4b0afb37d925c5bcafba32600bee0a249919..5b2c37318859b63b2efdce105e64f1197c23f752 100644 (file)
@@ -55,3 +55,8 @@ pkg_config() {
        einfo "The vocabulary database is in:"
        einfo "  /usr/share/${PN}"
 }
+
+pkg_postrm() {
+       # do not leave orphaned cruft behind
+       [[ -e /usr/share/${PN} ]] && rm -rf /usr/share/${PN}
+}