www-apps/hugo-bin - 0.158.0 (arrans-overlay)

Search

Package Information

Description:
The world’s fastest framework for building websites.
Homepage:
https://gohugo.io
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
0.158.0 8 ~amd64 ~arm ~arm64 0
View Raw Ebuild
# Generated via: https://github.com/arran4/arrans_overlay/blob/main/.github/workflows/www-apps-hugo-bin-update.yaml
EAPI=8
DESCRIPTION="The world’s fastest framework for building websites."
HOMEPAGE="https://gohugo.io"
SRC_URI="
  amd64? ( !extended? (  https://github.com/gohugoio/hugo/releases/download/v${PV}/hugo_${PV}_linux-amd64.tar.gz -> ${P}-hugo_${PV}_linux-amd64.tar.gz  )  )  
  amd64? ( extended? (  https://github.com/gohugoio/hugo/releases/download/v${PV}/hugo_extended_${PV}_Linux-64bit.tar.gz -> ${P}-hugo_extended_${PV}_Linux-64bit.tar.gz  )  )  
  arm? (  https://github.com/gohugoio/hugo/releases/download/v${PV}/hugo_${PV}_linux-arm.tar.gz -> ${P}-hugo_${PV}_linux-arm.tar.gz  )  
  arm64? ( !extended? (  https://github.com/gohugoio/hugo/releases/download/v${PV}/hugo_${PV}_linux-arm64.tar.gz -> ${P}-hugo_${PV}_linux-arm64.tar.gz  )  )  
  arm64? ( extended? (  https://github.com/gohugoio/hugo/releases/download/v${PV}/hugo_extended_${PV}_linux-arm64.tar.gz -> ${P}-hugo_extended_${PV}_linux-arm64.tar.gz  )  )  
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64"
IUSE=" extended"

REQUIRED_USE="extended? ( || ( amd64 arm64  ) ) "

RDEPEND="extended? ( sys-devel/gcc  ) "

S="${WORKDIR}"

src_unpack() {
  if use amd64 && ! use extended ; then
    unpack "${DISTDIR}/${P}-hugo_${PV}_linux-amd64.tar.gz" || die "Can't unpack archive file"
  fi
  if use amd64 && use extended; then
    unpack "${DISTDIR}/${P}-hugo_extended_${PV}_Linux-64bit.tar.gz" || die "Can't unpack archive file"
  fi
  if use arm; then
    unpack "${DISTDIR}/${P}-hugo_${PV}_linux-arm.tar.gz" || die "Can't unpack archive file"
  fi
  if use arm64 && ! use extended ; then
    unpack "${DISTDIR}/${P}-hugo_${PV}_linux-arm64.tar.gz" || die "Can't unpack archive file"
  fi
  if use arm64 && use extended; then
    unpack "${DISTDIR}/${P}-hugo_extended_${PV}_linux-arm64.tar.gz" || die "Can't unpack archive file"
  fi
}

src_install() {
  exeinto /opt/bin
  if use amd64 && ! use extended ; then
    newexe "hugo" "hugo" || die "Failed to install Binary"
  fi
  if use arm; then
    newexe "hugo" "hugo" || die "Failed to install Binary"
  fi
  if use arm64 && ! use extended ; then
    newexe "hugo" "hugo" || die "Failed to install Binary"
  fi
  if use amd64 && use extended; then
    newexe "hugo" "hugo" || die "Failed to install Binary"
  fi
  if use arm64 && use extended; then
    newexe "hugo" "hugo" || die "Failed to install Binary"
  fi
}

USE Flags

Dependencies

RDEPEND

extended? ( sys-devel/gcc  ) 

Manifest for 0.158.0

Type File Size Source URLs
DIST hugo-bin-0.158.0-hugo_0.158.0_linux-amd64.tar.gz 18387306 bytes https://github.com/gohugoio/hugo/releases/download/v0.158.0/hugo_0.158.0_linux-amd64.tar.gz
DIST hugo-bin-0.158.0-hugo_0.158.0_linux-arm.tar.gz 17010535 bytes https://github.com/gohugoio/hugo/releases/download/v0.158.0/hugo_0.158.0_linux-arm.tar.gz
DIST hugo-bin-0.158.0-hugo_0.158.0_linux-arm64.tar.gz 16923029 bytes https://github.com/gohugoio/hugo/releases/download/v0.158.0/hugo_0.158.0_linux-arm64.tar.gz
DIST hugo-bin-0.158.0-hugo_extended_0.158.0_Linux-64bit.tar.gz 19188182 bytes https://github.com/gohugoio/hugo/releases/download/v0.158.0/hugo_extended_0.158.0_Linux-64bit.tar.gz
DIST hugo-bin-0.158.0-hugo_extended_0.158.0_linux-arm64.tar.gz 17659206 bytes https://github.com/gohugoio/hugo/releases/download/v0.158.0/hugo_extended_0.158.0_linux-arm64.tar.gz