Commits

Ryan Schmidt authored 148f1a0f0c0
synergy: Rename major and minor variables

In other ports, the variables major and minor usually describe components of the port's version number. Since here they are used for components of the macOS version number, rename them to macos_major and macos_minor.
No tags

sysutils/synergy/Portfile

Modified
33 33 }
34 34
35 35 patchfiles patch-CMakeLists.txt.diff \
36 36 patch-src_CMakeLists.txt.diff \
37 37 patch-src-lib-platform-OSXScreen.mm.diff
38 38
39 39 post-patch {
40 40 reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/src/CMakeLists.txt
41 41 }
42 42
43 -set major [lindex [split ${macosx_version} .] 0]
44 -set minor [lindex [split ${macosx_version} .] 1]
45 -configure.args -G \"Unix Makefiles\" \
46 - -DOSX_TARGET_MAJOR=${major} -DOSX_TARGET_MINOR=${minor}
43 +set macos_major [lindex [split ${macosx_version} .] 0]
44 +set macos_minor [lindex [split ${macosx_version} .] 1]
45 +configure.args -G \"Unix Makefiles\" \
46 + -DOSX_TARGET_MAJOR=${macos_major} -DOSX_TARGET_MINOR=${macos_minor}
47 47
48 48 use_parallel_build no
49 49
50 50 destroot {
51 51 xinstall -d ${destroot}${prefix}/bin
52 52 xinstall -m 755 ${worksrcpath}/bin/synergyc ${destroot}${prefix}/bin
53 53 xinstall -m 755 ${worksrcpath}/bin/synergys ${destroot}${prefix}/bin
54 54 xinstall -m 644 ${worksrcpath}/doc/synergyc.man ${destroot}${prefix}/share/man/man1/synergyc.1
55 55 xinstall -m 644 ${worksrcpath}/doc/synergys.man ${destroot}${prefix}/share/man/man1/synergys.1
56 56 xinstall -d ${destroot}${prefix}/etc/${name}

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut