aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Konečný <konecny.mike@gmail.com>2020-04-07 00:21:36 +0200
committerGitHub <noreply@github.com>2020-04-06 15:21:36 -0700
commit7edaafb077cc1915e95f4c7c13b1187dbc14f1b4 (patch)
tree832a47cb8822aadd2627cdbd056ec7c65311c9f1
parent6028fd5e1afc8deb653d29cf93dfb7f11fe954b5 (diff)
downloadvcpkg-7edaafb077cc1915e95f4c7c13b1187dbc14f1b4.tar.gz
vcpkg-7edaafb077cc1915e95f4c7c13b1187dbc14f1b4.zip
[mpfr] Add mirror for mpfr at gnu.org (#10035)
* add mirror for mpfr at gnu.org * remove deprecated include(vcpkg_common_functions) * update version number after modified port * update copyright handling command to install
-rw-r--r--ports/mpfr/CONTROL2
-rw-r--r--ports/mpfr/portfile.cmake7
2 files changed, 3 insertions, 6 deletions
diff --git a/ports/mpfr/CONTROL b/ports/mpfr/CONTROL
index 7d2ec7643..050de1d05 100644
--- a/ports/mpfr/CONTROL
+++ b/ports/mpfr/CONTROL
@@ -1,5 +1,5 @@
Source: mpfr
-Version: 4.0.2-1
+Version: 4.0.2-2
Homepage: https://www.mpfr.org
Description: The MPFR library is a C library for multiple-precision floating-point computations with correct rounding
Build-Depends: mpir
diff --git a/ports/mpfr/portfile.cmake b/ports/mpfr/portfile.cmake
index 5837976dd..2e202a578 100644
--- a/ports/mpfr/portfile.cmake
+++ b/ports/mpfr/portfile.cmake
@@ -1,7 +1,5 @@
-include(vcpkg_common_functions)
-
vcpkg_download_distfile(ARCHIVE
- URLS "http://www.mpfr.org/mpfr-4.0.2/mpfr-4.0.2.tar.xz"
+ URLS "http://www.mpfr.org/mpfr-4.0.2/mpfr-4.0.2.tar.xz" "https://ftp.gnu.org/gnu/mpfr/mpfr-4.0.2.tar.xz"
FILENAME "mpfr-4.0.2.tar.xz"
SHA512 d583555d08863bf36c89b289ae26bae353d9a31f08ee3894520992d2c26e5683c4c9c193d7ad139632f71c0a476d85ea76182702a98bf08dde7b6f65a54f8b88
)
@@ -24,5 +22,4 @@ vcpkg_copy_pdbs()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
# Handle copyright
-file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/mpfr)
-file(RENAME ${CURRENT_PACKAGES_DIR}/share/mpfr/COPYING ${CURRENT_PACKAGES_DIR}/share/mpfr/copyright)
+file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)