Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev-libs/libflatarray: version bump to 0.3.0 #2607

Closed
wants to merge 3 commits into from

Conversation

gentryx
Copy link
Contributor

@gentryx gentryx commented Oct 20, 2016

This adds an ebuild for LibFlatArray 0.3.0, which was released here:
http://libgeodecomp.org/news_libflatarray_030.html

Package-Manager: portage-2.3.2

This adds an ebuild for LibFlatArray 0.3.0, which was releasd here:
http://libgeodecomp.org/news_libflatarray_030.html

Package-Manager: portage-2.3.2
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EAPI=6

LICENSE="Boost-1.0"
IUSE="cuda doc"

DEPEND="${RDEPEND}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why include RDEPEND if it's empty?

if use cuda; then
cuda_src_prepare
fi
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

turn this into:

src_prepare() {
    use cuda && cuda_src_prepare
    cmake-utils_src_prepare
}


src_configure() {
local mycmakeargs=(
$(cmake-utils_use_with cuda CUDA) -DWITH_SILO=false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you'll have to get rid of the cmake-utils functions for EAPI=6, also put the -DWITH_SILO on a separate line


src_compile() {
cmake-utils_src_compile
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not needed, EXPORT_FUNCTIONS'd by the eclass

src_install() {
DOCS=( README )
cmake-utils_src_install
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not needed, EXPORT_FUNCTIONS'd by the eclass


src_test() {
cmake-utils_src_make test
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not needed, EXPORT_FUNCTIONS'd by the eclass

@gentryx
Copy link
Contributor Author

gentryx commented Oct 24, 2016

@SoapGentoo Thanks for the feedback. I make the changes you requested, please review. :-)

@gentryx
Copy link
Contributor Author

gentryx commented Nov 3, 2016

@SoapGentoo ping

@SoapGentoo SoapGentoo self-assigned this Nov 3, 2016

DEPEND="
doc? ( app-doc/doxygen )
cuda? ( dev-util/nvidia-cuda-toolkit )"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you sure cuda is only a build-time dependency? @marbre I don't use CUDA, could you please give your input here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this is valid.

In the case of LibFlatArray enabling the CUDA build option obviously requires the CUDA toolkit to be installed. If CUDA gets removed after the installation of LibFlatArray, the library stays in a usable state. Its CUDA components only get activated if someone's using NVCC (from the CUDA Toolkit) to compile source.

Copy link
Contributor

@marbre marbre Nov 6, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gentryx It seems it is a header only library since no binaries are compiled that are linked against e.g. cufft., right?
@SoapGentoo Thus the library itself has no run time dependencies, as it cannot be executed, but the applications using the cuda specific includes of libflatarray have.

And please excuse the late reply.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mabre: yeah, that's right.


src_prepare() {
use cuda && cuda_src_prepare
cmake-utils_src_prepare
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also, one more small request, could you please swap these? applying patches is the first thing that should happen in src_prepare

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks. makes sense. done.

@SoapGentoo
Copy link
Member

@gentryx one last thing: can you please squash all your commits into one? Have a look here: https://wiki.gentoo.org/wiki/Gentoo_Github#Rebasing_commits

@gentoo-bot gentoo-bot closed this in c3bcf7a Nov 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants