Skip to content

Commit

Permalink
sys-libs/libomp: Port to llvm.org eclass
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Górny <[email protected]>
  • Loading branch information
mgorny committed Nov 3, 2019
1 parent 462a7e9 commit 24b529d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 23 deletions.
12 changes: 3 additions & 9 deletions sys-libs/libomp/libomp-10.0.0.9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
EAPI=7

PYTHON_COMPAT=( python{2_7,3_{5,6,7}} )
inherit cmake-multilib git-r3 linux-info multiprocessing python-any-r1
inherit cmake-multilib linux-info llvm.org multiprocessing python-any-r1

DESCRIPTION="OpenMP runtime library for LLVM/clang compiler"
HOMEPAGE="https://openmp.llvm.org"
SRC_URI=""
EGIT_REPO_URI="https://github.com/llvm/llvm-project.git"
S=${WORKDIR}/${P}/openmp
LLVM_COMPONENTS=( openmp )
llvm.org_set_globals

LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )"
SLOT="0"
Expand Down Expand Up @@ -67,11 +66,6 @@ pkg_setup() {
use test && python-any-r1_pkg_setup
}

src_unpack() {
git-r3_fetch
git-r3_checkout '' '' '' openmp
}

multilib_src_configure() {
local libdir="$(get_libdir)"
local mycmakeargs=(
Expand Down
7 changes: 3 additions & 4 deletions sys-libs/libomp/libomp-9.0.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
EAPI=7

PYTHON_COMPAT=( python{2_7,3_{5,6,7}} )
inherit cmake-multilib linux-info multiprocessing python-any-r1
inherit cmake-multilib linux-info llvm.org multiprocessing python-any-r1

MY_P=openmp-${PV}.src
DESCRIPTION="OpenMP runtime library for LLVM/clang compiler"
HOMEPAGE="https://openmp.llvm.org"
SRC_URI="https://releases.llvm.org/${PV}/${MY_P}.tar.xz"
S=${WORKDIR}/${MY_P}
LLVM_COMPONENTS=( openmp )
llvm.org_set_globals

LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )"
SLOT="0"
Expand Down
13 changes: 3 additions & 10 deletions sys-libs/libomp/libomp-9.0.1.9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@
EAPI=7

PYTHON_COMPAT=( python{2_7,3_{5,6,7}} )
inherit cmake-multilib git-r3 linux-info multiprocessing python-any-r1
inherit cmake-multilib linux-info llvm.org multiprocessing python-any-r1

DESCRIPTION="OpenMP runtime library for LLVM/clang compiler"
HOMEPAGE="https://openmp.llvm.org"
SRC_URI=""
EGIT_REPO_URI="https://github.com/llvm/llvm-project.git"
EGIT_BRANCH="release/9.x"
S=${WORKDIR}/${P}/openmp
LLVM_COMPONENTS=( openmp )
llvm.org_set_globals

LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )"
SLOT="0"
Expand Down Expand Up @@ -68,11 +66,6 @@ pkg_setup() {
use test && python-any-r1_pkg_setup
}

src_unpack() {
git-r3_fetch
git-r3_checkout '' '' '' openmp
}

multilib_src_configure() {
local libdir="$(get_libdir)"
local mycmakeargs=(
Expand Down

0 comments on commit 24b529d

Please sign in to comment.