Skip to content

Commit 35e4da0

Browse files
committed
[gmime] Use official build system [skip actions]
1 parent 80d54ff commit 35e4da0

File tree

5 files changed

+26
-88
lines changed

5 files changed

+26
-88
lines changed

ports/gmime/CMakeLists.txt

Lines changed: 0 additions & 58 deletions
This file was deleted.

ports/gmime/portfile.cmake

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,30 @@
1-
set(LIB_NAME gmime)
2-
set(LIB_VERSION 3.2.6)
3-
4-
set(LIB_FILENAME ${LIB_NAME}-${LIB_VERSION}.tar.xz)
5-
61
vcpkg_download_distfile(ARCHIVE
7-
URLS "https://download.gnome.org/sources/gmime/3.2/${LIB_FILENAME}"
8-
FILENAME "${LIB_FILENAME}"
2+
URLS "https://download.gnome.org/sources/gmime/3.2/gmime-${VERSION}.tar.xz"
3+
FILENAME "gmime-${VERSION}.tar.xz"
94
SHA512 a60d3f9f1aa8490865c22cd9539544e9c9f3ceb4037b9749cf9e5c279f97aa88fc4cd077bf2aff314ba0db2a1b7bbe76f9b1ca5a17fffcbd6315ecebc5414a3d
105
)
116

127
vcpkg_extract_source_archive(
138
SOURCE_PATH
149
ARCHIVE "${ARCHIVE}"
15-
SOURCE_BASE "${LIB_VERSION}"
1610
)
1711

18-
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
12+
set(ENV{ACLOCAL} "aclocal -I \"${CURRENT_INSTALLED_DIR}/share/aclocal/\"")
13+
set(ENV{GTKDOCIZE} true)
1914

20-
# We can use file supplied with original sources
21-
configure_file("${SOURCE_PATH}/build/vs2017/unistd.h" "${SOURCE_PATH}" COPYONLY)
22-
configure_file("${SOURCE_PATH}/build/vs2017/config.h" "${SOURCE_PATH}" COPYONLY)
23-
configure_file("${SOURCE_PATH}/build/vs2017/gmime.def" "${SOURCE_PATH}" COPYONLY)
24-
vcpkg_find_acquire_program(PKGCONFIG)
25-
vcpkg_cmake_configure(
15+
vcpkg_configure_make(
2616
SOURCE_PATH "${SOURCE_PATH}"
17+
AUTOCONFIG
2718
OPTIONS
28-
"-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}"
19+
--disable-crypto
20+
--disable-glibtest
21+
--disable-introspection
22+
--disable-vala
2923
)
30-
31-
vcpkg_cmake_install()
24+
vcpkg_install_make()
25+
vcpkg_copy_pdbs()
26+
vcpkg_fixup_pkgconfig()
3227

3328
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
3429

35-
# License and man
36-
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${LIB_NAME}" RENAME copyright)
37-
38-
vcpkg_copy_pdbs()
30+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")

ports/gmime/vcpkg.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
{
22
"name": "gmime",
33
"version": "3.2.6",
4-
"port-version": 6,
4+
"port-version": 7,
55
"description": "GMime is a C/C++ library which may be used for the creation and parsing of messages using the Multipurpose Internet Mail Extension (MIME).",
6-
"homepage": "https://developer.gnome.org/gmime/",
6+
"homepage": "https://github.com/jstedfast/gmime",
77
"license": "LGPL-2.1-or-later",
8-
"supports": "windows & !xbox",
8+
"supports": "!xbox",
99
"dependencies": [
1010
"glib",
11-
"libiconv",
12-
"libidn2",
1311
{
14-
"name": "vcpkg-cmake",
15-
"host": true
12+
"name": "libiconv",
13+
"platform": "!windows"
1614
},
15+
"libidn2",
1716
"zlib"
1817
]
1918
}

versions/baseline.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3194,7 +3194,7 @@
31943194
},
31953195
"gmime": {
31963196
"baseline": "3.2.6",
3197-
"port-version": 6
3197+
"port-version": 7
31983198
},
31993199
"gmmlib": {
32003200
"baseline": "22.5.2",

versions/g-/gmime.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"versions": [
3+
{
4+
"git-tree": "5b1f053f75ec146c2f4cd22afbe62f5d4673bc20",
5+
"version": "3.2.6",
6+
"port-version": 7
7+
},
38
{
49
"git-tree": "93e8b6f02474e1edb7e99db85020d864ee071ce0",
510
"version": "3.2.6",

0 commit comments

Comments
 (0)