Skip to content

Commit

Permalink
www-client/google-chrome: unify stable/beta/unstable ebuilds
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Gilbert <[email protected]>
  • Loading branch information
floppym committed Nov 12, 2018
1 parent 0babdca commit c9b3c6c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ DESCRIPTION="The web browser from Google"
HOMEPAGE="https://www.google.com/chrome"

if [[ ${PN} == google-chrome ]]; then
KEYWORDS="-* amd64"
MY_PN=${PN}-stable
else
KEYWORDS="-* ~amd64"
MY_PN=${PN}
fi

Expand All @@ -24,7 +26,6 @@ SRC_URI="https://dl.google.com/linux/chrome/deb/pool/main/g/${MY_PN}/${MY_P}_amd

LICENSE="google-chrome"
SLOT="0"
KEYWORDS="-* ~amd64"
IUSE="+plugins"
RESTRICT="bindist mirror strip"

Expand All @@ -38,7 +39,6 @@ RDEPEND="
dev-libs/glib:2
dev-libs/nspr
>=dev-libs/nss-3.26
gnome-base/gconf:2
media-libs/alsa-lib
media-libs/fontconfig
media-libs/freetype:2
Expand Down Expand Up @@ -104,9 +104,13 @@ src_install() {
-i "${CHROME_HOME}/${PN}" || die
fi

local suffix=
[[ ${PN} == google-chrome-beta ]] && suffix=_beta
[[ ${PN} == google-chrome-unstable ]] && suffix=_dev

local size
for size in 16 22 24 32 48 64 128 256 ; do
newicon -s ${size} "${CHROME_HOME}/product_logo_${size}_beta.png" ${PN}.png
newicon -s ${size} "${CHROME_HOME}/product_logo_${size}${suffix}.png" ${PN}.png
done

pax-mark m "${CHROME_HOME}/chrome"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ DESCRIPTION="The web browser from Google"
HOMEPAGE="https://www.google.com/chrome"

if [[ ${PN} == google-chrome ]]; then
KEYWORDS="-* amd64"
MY_PN=${PN}-stable
else
KEYWORDS="-* ~amd64"
MY_PN=${PN}
fi

Expand All @@ -24,7 +26,6 @@ SRC_URI="https://dl.google.com/linux/chrome/deb/pool/main/g/${MY_PN}/${MY_P}_amd

LICENSE="google-chrome"
SLOT="0"
KEYWORDS="-* ~amd64"
IUSE="+plugins"
RESTRICT="bindist mirror strip"

Expand Down Expand Up @@ -103,9 +104,13 @@ src_install() {
-i "${CHROME_HOME}/${PN}" || die
fi

local suffix=
[[ ${PN} == google-chrome-beta ]] && suffix=_beta
[[ ${PN} == google-chrome-unstable ]] && suffix=_dev

local size
for size in 16 22 24 32 48 64 128 256 ; do
newicon -s ${size} "${CHROME_HOME}/product_logo_${size}_dev.png" ${PN}.png
newicon -s ${size} "${CHROME_HOME}/product_logo_${size}${suffix}.png" ${PN}.png
done

pax-mark m "${CHROME_HOME}/chrome"
Expand Down
10 changes: 7 additions & 3 deletions www-client/google-chrome/google-chrome-70.0.3538.102.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ DESCRIPTION="The web browser from Google"
HOMEPAGE="https://www.google.com/chrome"

if [[ ${PN} == google-chrome ]]; then
KEYWORDS="-* amd64"
MY_PN=${PN}-stable
else
KEYWORDS="-* ~amd64"
MY_PN=${PN}
fi

Expand All @@ -24,7 +26,6 @@ SRC_URI="https://dl.google.com/linux/chrome/deb/pool/main/g/${MY_PN}/${MY_P}_amd

LICENSE="google-chrome"
SLOT="0"
KEYWORDS="-* amd64"
IUSE="+plugins"
RESTRICT="bindist mirror strip"

Expand All @@ -38,7 +39,6 @@ RDEPEND="
dev-libs/glib:2
dev-libs/nspr
>=dev-libs/nss-3.26
gnome-base/gconf:2
media-libs/alsa-lib
media-libs/fontconfig
media-libs/freetype:2
Expand Down Expand Up @@ -104,9 +104,13 @@ src_install() {
-i "${CHROME_HOME}/${PN}" || die
fi

local suffix=
[[ ${PN} == google-chrome-beta ]] && suffix=_beta
[[ ${PN} == google-chrome-unstable ]] && suffix=_dev

local size
for size in 16 22 24 32 48 64 128 256 ; do
newicon -s ${size} "${CHROME_HOME}/product_logo_${size}.png" ${PN}.png
newicon -s ${size} "${CHROME_HOME}/product_logo_${size}${suffix}.png" ${PN}.png
done

pax-mark m "${CHROME_HOME}/chrome"
Expand Down

0 comments on commit c9b3c6c

Please sign in to comment.