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

[starlink-ast] create new port #17105

Merged
merged 25 commits into from
Jul 23, 2021
Merged
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
f8be70c
initial test of AST (broken)
veggiesaurus Apr 2, 2021
8f399c8
slight improvement to build
veggiesaurus Apr 2, 2021
ceb4b38
almost working...
veggiesaurus Apr 5, 2021
edbfc6f
added minpack cflags
veggiesaurus Apr 5, 2021
b6acb38
use static linking
veggiesaurus Apr 5, 2021
d8479a4
yaml and pthreads features added
veggiesaurus Apr 5, 2021
960be2f
debug and release cflags
veggiesaurus Apr 5, 2021
7f4ce40
versioning
veggiesaurus Apr 5, 2021
07cc28b
formated vcpkg.json
veggiesaurus Apr 6, 2021
9165ab4
updated version string
veggiesaurus Apr 6, 2021
2df5474
adjusted based on PR feedback
veggiesaurus Apr 12, 2021
f3153d6
Merge branch 'master' into veggiesaurus/starlink_ast
veggiesaurus Apr 12, 2021
95bf9b1
updated to 9.2.4 release to avoid source patching
veggiesaurus Apr 14, 2021
82cb2a8
removed comments
veggiesaurus Apr 14, 2021
59936d3
updated baseline version
veggiesaurus Apr 14, 2021
5844fa8
Apply suggestions from code review
veggiesaurus Jul 20, 2021
fabbe01
adds supports field to json
veggiesaurus Jul 20, 2021
036a337
Update ports/starlink-ast/portfile.cmake
veggiesaurus Jul 20, 2021
3138435
Merge branch 'veggiesaurus/starlink_ast' of https://github.com/veggie…
veggiesaurus Jul 20, 2021
d471bb7
removed --disabled-shared and MINPACK_NO_DLL
veggiesaurus Jul 20, 2021
28afdbd
use DETERMINE_BUILD_TRIPLET to determine host
veggiesaurus Jul 20, 2021
acfa89d
updates git-tree hash
veggiesaurus Jul 20, 2021
0dc91e9
quotemarks fix
veggiesaurus Jul 21, 2021
07b8e30
git tree hash update
veggiesaurus Jul 21, 2021
80c68b0
Merge branch 'master' into veggiesaurus/starlink_ast
veggiesaurus Jul 21, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
44 changes: 44 additions & 0 deletions ports/starlink-ast/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
vcpkg_fail_port_install(ON_TARGET "Linux" "OSX")

vcpkg_download_distfile(ARCHIVE
URLS "https://github.com/Starlink/ast/releases/download/v9.2.4/ast-9.2.4.tar.gz"
FILENAME "ast-9.2.4.tar.gz"
SHA512 84e6f243e6d9d77328b73b97355feb3990307fb9c8f9b2f30344d71e2f5e63a849cdce0090ff5b7cc16028e12d68516c885b13d76db841072c9d1d06a7742a9e
)

vcpkg_extract_source_archive_ex(
OUT_SOURCE_PATH SOURCE_PATH
ARCHIVE ${ARCHIVE}
)
NancyLi1013 marked this conversation as resolved.
Show resolved Hide resolved

set(CONFIGURE_OPTIONS "--without-fortran star_cv_cnf_trail_type=long star_cv_cnf_f2c_compatible=no")

if ("yaml" IN_LIST FEATURES)
set(CONFIGURE_OPTIONS "${CONFIGURE_OPTIONS} --with-yaml")
else()
set(CONFIGURE_OPTIONS "${CONFIGURE_OPTIONS} --without-yaml")
endif()

if ("pthreads" IN_LIST FEATURES)
set(CONFIGURE_OPTIONS "${CONFIGURE_OPTIONS} --with-pthreads")
else()
set(CONFIGURE_OPTIONS "${CONFIGURE_OPTIONS} --without-pthreads")
endif()

vcpkg_acquire_msys(MSYS_ROOT PACKAGES make automake1.16 perl)
vcpkg_configure_make(
SOURCE_PATH "${SOURCE_PATH}"
USE_WRAPPERS
DETERMINE_BUILD_TRIPLET
OPTIONS ${CONFIGURE_OPTIONS}
OPTIONS_RELEASE ${CONFIGURE_OPTIONS_RELEASE}
OPTIONS_DEBUG ${CONFIGURE_OPTIONS_DEBUG}
)

vcpkg_install_make()

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share")

# # Handle copyright
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
veggiesaurus marked this conversation as resolved.
Show resolved Hide resolved
21 changes: 21 additions & 0 deletions ports/starlink-ast/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "starlink-ast",
"version-semver": "9.2.4",
"description": "The AST library provides a comprehensive range of facilities for attaching world coordinate systems to astronomical data, for retrieving and interpreting that information and for generating graphical output based on it",
"homepage": "https://starlink.eao.hawaii.edu/starlink/AST",
"supports": "windows",
"features": {
"pthreads": {
"description": "build with POSIX threads support",
"dependencies": [
"pthreads"
]
},
"yaml": {
"description": "build with YAML support",
"dependencies": [
"libyaml"
]
}
}
}
veggiesaurus marked this conversation as resolved.
Show resolved Hide resolved
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5784,6 +5784,10 @@
"baseline": "0.6.4",
"port-version": 0
},
"starlink-ast": {
"baseline": "9.2.4",
"port-version": 0
},
"status-code": {
"baseline": "1.0.0-ab3cd821",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/s-/starlink-ast.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "3c1e8a4ebe3b90b515ddd83ca8199b01013f8c3a",
"version-semver": "9.2.4",
"port-version": 0
}
]
}