app-i18n/man-pages-pl-0.6: fix file collisions with sys-apps/shadow-4.2.1-r1
authorIan Delaney <idella4@gentoo.org>
Fri, 4 Sep 2015 06:18:30 +0000 (14:18 +0800)
committerIan Delaney <idella4@gentoo.org>
Fri, 4 Sep 2015 06:18:30 +0000 (14:18 +0800)
patch submitted by Marek Paśnikowski, endorsed by maintainer with
user patch support added, fixes Bugs #557372 #558542

Package-Manager: portage-2.2.20

app-i18n/man-pages-pl/man-pages-pl-0.6.ebuild

index 64c861ba5fcb167952d4b7aaa5e6abaaef3eaa4b..e2444ec2a17817d7ebbc7c8c0a7099a367794ab0 100644 (file)
@@ -17,4 +17,12 @@ DOCS=( AUTHORS README )
 
 S="${WORKDIR}/manpages-pl-${PV}"
 
-RDEPEND="virtual/man"
+src_prepare() {
+       epatch_user
+       #mans provided by other packages
+       mans="generated/man1/groups.1 po/man1/groups.1.po"
+
+       for man in ${mans}; do
+               rm ${man} || die
+       done
+}