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

[libgourou] Add new port and its dep #28037

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 5 commits
Commits
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
15 changes: 15 additions & 0 deletions ports/libgourou/portfile.cmake
@@ -0,0 +1,15 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO SamuelMarks/${PORT}
REF c7bdf7ec3c775ad152c845eded85b6b531016993
SHA512 9876e1c624901474ea26c5ffee8d944062d3d4c097ab4243056530c0ef45c15ec1c6599ed7d058a70e7c460e3416a6aab124560f16f1579d858f7e243e452d7c
HEAD_REF cmake
)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
)
vcpkg_cmake_install()
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/cmake/License.txt")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include"
"${CURRENT_PACKAGES_DIR}/debug/share")
22 changes: 22 additions & 0 deletions ports/libgourou/vcpkg.json
@@ -0,0 +1,22 @@
{
"name": "libgourou",
"version": "0.8.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

The upstream repository on GitHub doesn't have any releases or tags, so where did this version come from?
I see that you are actually using the latest commit, so if there is no release or tags available, you should use "version-date": "2022-11-28" here (date of submission of this pr).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

The upstream repository on GitHub doesn't have any releases or tags, so where did this version come from?

@Cheney-W IIUC you are looking at an unofficial fork, but upstream is there:

See the tags on the left https://indefero.soutade.fr/p/libgourou/source/tree/master/

So shouldn't this port download from real upstream?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've been messaging the maintainer we can wait to see if he accepts my patches I guess?- He accepted some but not all so I think this might work, but happy to try again if you push it.

"description": "libgourou is a free implementation of Adobe's ADEPT protocol used to add DRM on ePub/PDF files",
"homepage": "https://indefero.soutade.fr/p/libgourou",
"license": "LGPL-3.0-or-later",
"supports": "!uwp",
"dependencies": [
"libzip",
"openssl",
"pugixml",
"updfparser",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
Cheney-W marked this conversation as resolved.
Show resolved Hide resolved
}
]
}
17 changes: 17 additions & 0 deletions ports/updfparser/portfile.cmake
@@ -0,0 +1,17 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO SamuelMarks/${PORT}
REF 75942e15122c199b36c1468f8ce8e5b93d83cebc
SHA512 45502c76a3960b43fe1e84bf58bf818bfa15d120a7cce5cd2d21e2ba34961498166226544ab01ab665765e6e7d095d48610e42110506856880b0de5d224c3575
HEAD_REF cmake
)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_TESTING=OFF
)
vcpkg_cmake_install()
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/cmake/License.txt")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include"
"${CURRENT_PACKAGES_DIR}/debug/share")
18 changes: 18 additions & 0 deletions ports/updfparser/vcpkg.json
@@ -0,0 +1,18 @@
{
"name": "updfparser",
"version": "0.8.0",
SamuelMarks marked this conversation as resolved.
Show resolved Hide resolved
"description": "updfparser is a very simple PDF parser that will load PDF objects without interpretation",
"homepage": "https://indefero.soutade.fr/p/updfparser",
"license": "LGPL-3.0-or-later",
"supports": "!uwp",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
Cheney-W marked this conversation as resolved.
Show resolved Hide resolved
}
]
}
8 changes: 8 additions & 0 deletions versions/baseline.json
Expand Up @@ -3780,6 +3780,10 @@
"baseline": "3.1",
"port-version": 5
},
"libgourou": {
"baseline": "0.8.0",
"port-version": 0
},
"libgpg-error": {
"baseline": "1.46",
"port-version": 0
Expand Down Expand Up @@ -7668,6 +7672,10 @@
"baseline": "2022-06-21",
"port-version": 0
},
"updfparser": {
"baseline": "0.8.0",
"port-version": 0
},
"urdfdom": {
"baseline": "3.1.0",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/l-/libgourou.json
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "1811a1793b1e9402331346fa8b051ac3b8f5cefd",
"version": "0.8.0",
"port-version": 0
}
]
}
9 changes: 9 additions & 0 deletions versions/u-/updfparser.json
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "f5b50499bb92368f83e3cf5ba7b6fa18f828f21b",
"version": "0.8.0",
"port-version": 0
}
]
}