Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: kde-plasma/ksshaskpass/
Date: Sun, 11 Oct 2020 11:08:28
Message-Id: 1602405275.82a4b5b8b62c9dfa0bc50eb2ec5278a8223dddc1.asturm@gentoo
1 commit: 82a4b5b8b62c9dfa0bc50eb2ec5278a8223dddc1
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 11 08:11:36 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 11 08:34:35 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=82a4b5b8
7
8 kde-plasma/ksshaskpass: Cleanup pre-5.17 migration code
9
10 Package-Manager: Portage-3.0.8, Repoman-3.0.1
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 kde-plasma/ksshaskpass/ksshaskpass-5.20.0.ebuild | 28 +---------------------
14 .../ksshaskpass/ksshaskpass-5.20.49.9999.ebuild | 28 +---------------------
15 kde-plasma/ksshaskpass/ksshaskpass-9999.ebuild | 28 +---------------------
16 3 files changed, 3 insertions(+), 81 deletions(-)
17
18 diff --git a/kde-plasma/ksshaskpass/ksshaskpass-5.20.0.ebuild b/kde-plasma/ksshaskpass/ksshaskpass-5.20.0.ebuild
19 index 74622de790..3b6631f533 100644
20 --- a/kde-plasma/ksshaskpass/ksshaskpass-5.20.0.ebuild
21 +++ b/kde-plasma/ksshaskpass/ksshaskpass-5.20.0.ebuild
22 @@ -24,28 +24,6 @@ DEPEND="
23 "
24 RDEPEND="${DEPEND}"
25
26 -pkg_setup() {
27 - ecm_pkg_setup
28 -
29 - local srcfile=/etc/plasma/startup/05-ksshaskpass.sh
30 - local newfile=/etc/xdg/plasma-workspace/env/05-ksshaskpass.sh
31 - if [[ -f "${EROOT}"${srcfile} ]]; then
32 - local md5=$(md5sum "${EROOT}"${srcfile})
33 - if [[ ${md5%% *} != 615ae8f5b0090ff7f51d0edee7885d55 ]]; then
34 - elog "Existing modified "${EPREFIX}"${srcfile} detected."
35 - elog "Copying to "${EPREFIX}"${newfile}..."
36 - cp -v "${EROOT}"${srcfile} "${T}"/ || die
37 - fi
38 - fi
39 -}
40 -
41 -src_prepare() {
42 - ecm_src_prepare
43 - if [[ ! -f "${T}"/05-ksshaskpass.sh ]]; then
44 - cp "${FILESDIR}"/05-ksshaskpass.sh "${T}"/ || die
45 - fi
46 -}
47 -
48 src_install() {
49 ecm_src_install
50
51 @@ -69,10 +47,6 @@ pkg_postinst() {
52 elog "If that's not desired, select the one you want to use in"
53 elog "/etc/xdg/plasma-workspace/env/05-ksshaskpass.sh"
54
55 - # Clean up pre-5.17.4 script
56 - if [[ -e "${EROOT}"/etc/plasma/startup/05-ksshaskpass.sh ]]; then
57 - rm "${EROOT}"/etc/plasma/startup/05-ksshaskpass.sh || die
58 - elog "Removed obsolete ${EPREFIX}/etc/plasma/startup/05-ksshaskpass.sh"
59 - fi
60 + # Clean up pre-5.17.4 dirs
61 rmdir -v "${EROOT}"/etc/plasma{/startup,} 2> /dev/null
62 }
63
64 diff --git a/kde-plasma/ksshaskpass/ksshaskpass-5.20.49.9999.ebuild b/kde-plasma/ksshaskpass/ksshaskpass-5.20.49.9999.ebuild
65 index fcb93a585b..114c496db8 100644
66 --- a/kde-plasma/ksshaskpass/ksshaskpass-5.20.49.9999.ebuild
67 +++ b/kde-plasma/ksshaskpass/ksshaskpass-5.20.49.9999.ebuild
68 @@ -24,28 +24,6 @@ DEPEND="
69 "
70 RDEPEND="${DEPEND}"
71
72 -pkg_setup() {
73 - ecm_pkg_setup
74 -
75 - local srcfile=/etc/plasma/startup/05-ksshaskpass.sh
76 - local newfile=/etc/xdg/plasma-workspace/env/05-ksshaskpass.sh
77 - if [[ -f "${EROOT}"${srcfile} ]]; then
78 - local md5=$(md5sum "${EROOT}"${srcfile})
79 - if [[ ${md5%% *} != 615ae8f5b0090ff7f51d0edee7885d55 ]]; then
80 - elog "Existing modified "${EPREFIX}"${srcfile} detected."
81 - elog "Copying to "${EPREFIX}"${newfile}..."
82 - cp -v "${EROOT}"${srcfile} "${T}"/ || die
83 - fi
84 - fi
85 -}
86 -
87 -src_prepare() {
88 - ecm_src_prepare
89 - if [[ ! -f "${T}"/05-ksshaskpass.sh ]]; then
90 - cp "${FILESDIR}"/05-ksshaskpass.sh "${T}"/ || die
91 - fi
92 -}
93 -
94 src_install() {
95 ecm_src_install
96
97 @@ -69,10 +47,6 @@ pkg_postinst() {
98 elog "If that's not desired, select the one you want to use in"
99 elog "/etc/xdg/plasma-workspace/env/05-ksshaskpass.sh"
100
101 - # Clean up pre-5.17.4 script
102 - if [[ -e "${EROOT}"/etc/plasma/startup/05-ksshaskpass.sh ]]; then
103 - rm "${EROOT}"/etc/plasma/startup/05-ksshaskpass.sh || die
104 - elog "Removed obsolete ${EPREFIX}/etc/plasma/startup/05-ksshaskpass.sh"
105 - fi
106 + # Clean up pre-5.17.4 dirs
107 rmdir -v "${EROOT}"/etc/plasma{/startup,} 2> /dev/null
108 }
109
110 diff --git a/kde-plasma/ksshaskpass/ksshaskpass-9999.ebuild b/kde-plasma/ksshaskpass/ksshaskpass-9999.ebuild
111 index 90b12a9625..77949b1a2b 100644
112 --- a/kde-plasma/ksshaskpass/ksshaskpass-9999.ebuild
113 +++ b/kde-plasma/ksshaskpass/ksshaskpass-9999.ebuild
114 @@ -24,28 +24,6 @@ DEPEND="
115 "
116 RDEPEND="${DEPEND}"
117
118 -pkg_setup() {
119 - ecm_pkg_setup
120 -
121 - local srcfile=/etc/plasma/startup/05-ksshaskpass.sh
122 - local newfile=/etc/xdg/plasma-workspace/env/05-ksshaskpass.sh
123 - if [[ -f "${EROOT}"${srcfile} ]]; then
124 - local md5=$(md5sum "${EROOT}"${srcfile})
125 - if [[ ${md5%% *} != 615ae8f5b0090ff7f51d0edee7885d55 ]]; then
126 - elog "Existing modified "${EPREFIX}"${srcfile} detected."
127 - elog "Copying to "${EPREFIX}"${newfile}..."
128 - cp -v "${EROOT}"${srcfile} "${T}"/ || die
129 - fi
130 - fi
131 -}
132 -
133 -src_prepare() {
134 - ecm_src_prepare
135 - if [[ ! -f "${T}"/05-ksshaskpass.sh ]]; then
136 - cp "${FILESDIR}"/05-ksshaskpass.sh "${T}"/ || die
137 - fi
138 -}
139 -
140 src_install() {
141 ecm_src_install
142
143 @@ -69,10 +47,6 @@ pkg_postinst() {
144 elog "If that's not desired, select the one you want to use in"
145 elog "/etc/xdg/plasma-workspace/env/05-ksshaskpass.sh"
146
147 - # Clean up pre-5.17.4 script
148 - if [[ -e "${EROOT}"/etc/plasma/startup/05-ksshaskpass.sh ]]; then
149 - rm "${EROOT}"/etc/plasma/startup/05-ksshaskpass.sh || die
150 - elog "Removed obsolete ${EPREFIX}/etc/plasma/startup/05-ksshaskpass.sh"
151 - fi
152 + # Clean up pre-5.17.4 dirs
153 rmdir -v "${EROOT}"/etc/plasma{/startup,} 2> /dev/null
154 }