Skip to content

Commit fefb5b0

Browse files
authored
Merge pull request #155 from bgilbert/release
Update openslide, sqlite3
2 parents e721e7e + 045ecdc commit fefb5b0

File tree

5 files changed

+19
-350
lines changed

5 files changed

+19
-350
lines changed

.github/workflows/windows.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -189,17 +189,5 @@ jobs:
189189
for bits in 32 64; do
190190
echo "======== ${bits}-bit ========"
191191
cd "${GITHUB_WORKSPACE}/openslide-win${bits}-${{ inputs.pkgver }}/bin"
192-
if [ -e slidetool.exe ]; then
193-
showprops="./slidetool.exe prop list"
194-
else
195-
# OpenSlide 3.4.1
196-
showprops="./openslide-show-properties.exe"
197-
fi
198-
OPENSLIDE_DEBUG=? $showprops 2> conftest ||:
199-
if ! grep -q " synthetic " conftest; then
200-
# OpenSlide 3.4.1
201-
echo "Smoke test not supported in this OpenSlide version"
202-
continue
203-
fi
204-
OPENSLIDE_DEBUG=synthetic $showprops ""
192+
OPENSLIDE_DEBUG=synthetic ./slidetool.exe prop list ""
205193
done

build.sh

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,11 @@ cairo_licenses="COPYING COPYING-LGPL-2.1 COPYING-MPL-1.1"
6060
libxml2_licenses="Copyright"
6161
uthash_licenses="LICENSE"
6262
libdicom_licenses="LICENSE"
63-
# Remove workaround in bdist() when updating these
64-
openslide_licenses="LICENSE.txt lgpl-2.1.txt COPYING.LESSER"
63+
openslide_licenses="COPYING.LESSER"
6564
openslide_java_licenses="COPYING.LESSER"
6665

6766
# Build artifacts
68-
openslide_artifacts="libopenslide-0.dll openslide-quickhash1sum.exe openslide-show-properties.exe openslide-write-png.exe slidetool.exe"
67+
openslide_artifacts="libopenslide-1.dll slidetool.exe"
6968
openslide_java_artifacts="openslide-jni.dll openslide.jar"
7069

7170
# Update-checking URLs
@@ -317,11 +316,6 @@ bdist() {
317316
fi
318317
for artifact in $(expand ${package}_artifacts)
319318
do
320-
if [ "${artifact}" = slidetool.exe -a \
321-
! -e "${root}/bin/${artifact}" ]; then
322-
# Allow missing slidetool.exe until next OpenSlide release
323-
continue
324-
fi
325319
if [ "${artifact}" != "${artifact%.dll}" -o \
326320
"${artifact}" != "${artifact%.exe}" ] ; then
327321
echo "Stripping ${artifact}..."
@@ -347,12 +341,8 @@ bdist() {
347341
for artifact in $(expand ${package}_licenses)
348342
do
349343
if ! cp "${srcdir}/${artifact}" "${licensedir}" 2>/dev/null; then
350-
# OpenSlide license files were renamed; support both until
351-
# the next release
352-
if [ "${package}" != openslide ]; then
353-
echo "Failed to copy ${artifact} from ${package}."
354-
exit 1
355-
fi
344+
echo "Failed to copy ${artifact} from ${package}."
345+
exit 1
356346
fi
357347
done
358348
if [ "$package" = openslide ]; then
@@ -376,15 +366,7 @@ bdist() {
376366
cp "${root}/lib/libopenslide.dll.a" "${zipdir}/lib/libopenslide.lib"
377367
mkdir -p "${zipdir}/include"
378368
cp -r "${root}/include/openslide" "${zipdir}/include/"
379-
if [ -f "${srcdir}/README.md" ]; then
380-
cp "${srcdir}/README.md" "${zipdir}/"
381-
else
382-
cp "${srcdir}/README.txt" "${zipdir}/"
383-
fi
384-
if [ -e "${zipdir}/bin/slidetool.exe" ]; then
385-
# If slidetool is present, drop the redundant legacy programs
386-
rm "${zipdir}/bin/openslide-"*".exe"*
387-
fi
369+
cp "${srcdir}/README.md" "${zipdir}/"
388370
elif [ "$package" != openslide_java ]; then
389371
log_version "${zipdir}" "$(expand ${package}_name)" \
390372
"$(meson_wrap_version ${package})"

meson/subprojects/openslide.wrap

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
# not from wrapdb
22

33
[wrap-file]
4-
directory = openslide-3.4.1
5-
source_url = https://github.com/openslide/openslide/releases/download/v3.4.1/openslide-3.4.1.tar.xz
6-
source_filename = openslide-3.4.1.tar.xz
7-
source_hash = 9938034dba7f48fadc90a2cdf8cfe94c5613b04098d1348a5ff19da95b990564
8-
9-
# backport of Meson config from Git main
10-
diff_files = openslide-meson.patch
4+
directory = openslide-4.0.0
5+
source_url = https://github.com/openslide/openslide/releases/download/v4.0.0/openslide-4.0.0.tar.xz
6+
source_filename = openslide-4.0.0.tar.xz
7+
source_hash = cc227c44316abb65fb28f1c967706eb7254f91dbfab31e9ae6a48db6cf4ae562

meson/subprojects/packagefiles/openslide-meson.patch

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

0 commit comments

Comments
 (0)