Update of /cvsroot/fink/dists/10.7/stable/main/finkinfo/text
In directory vz-cvs-3.sog:/tmp/cvs-serv32698

Added Files:
        miktex-tools.info miktex-tools.patch 
Log Message:
Add miktex-tools, which contains several handy tools for LaTeX users


--- NEW FILE: miktex-tools.patch ---
diff -Nurd miktex-2.8.3541/BuildUtilities/c4p/gram.y 
miktex-new-2.8.3541/BuildUtilities/c4p/gram.y
--- miktex-2.8.3541/BuildUtilities/c4p/gram.y   2009-01-20 17:41:55.000000000 
+0100
+++ miktex-new-2.8.3541/BuildUtilities/c4p/gram.y       2011-03-23 
12:55:57.000000000 +0100
@@ -23,7 +23,6 @@
 #include <cstring>

 #include <cstdlib>

 #include <cctype>

-#include <malloc.h>

 

 #include "common.h"

 

diff -Nurd miktex-2.8.3541/CMakeLists.txt miktex-new-2.8.3541/CMakeLists.txt
--- miktex-2.8.3541/CMakeLists.txt      2009-02-24 12:37:30.000000000 +0100
+++ miktex-new-2.8.3541/CMakeLists.txt  2011-03-23 13:01:15.000000000 +0100
@@ -249,13 +249,14 @@
   set(HAVE_MPM_QT_SOURCES 1)
 endif(EXISTS ${CMAKE_SOURCE_DIR}/${rel_mpm_qt_dir}/)
 
+# Fink on Mac OS X 10.4, use flex-devel flex
+SET( FLEX_EXE /usr/bin/flex )
+
 set(required_programs
   bison
   cat
   date
   diff
-  flex
-  lynx
   perl
   sed
   tr
@@ -505,6 +506,9 @@
     "${CMAKE_RC_FLAGS} -I${CMAKE_SOURCE_DIR}/Resources/Videos")
 else(NATIVE_WINDOWS)
   add_definitions(-DMIKTEX_UNIX)
+
+  link_libraries(z)
+  link_libraries(png)
 endif(NATIVE_WINDOWS)
 
 ###############################################################################
diff -Nurd miktex-2.8.3541/Libraries/MiKTeX/KPathSeaEmulation/StdAfx.h 
miktex-new-2.8.3541/Libraries/MiKTeX/KPathSeaEmulation/StdAfx.h
--- miktex-2.8.3541/Libraries/MiKTeX/KPathSeaEmulation/StdAfx.h 2008-12-21 
20:30:05.000000000 +0100
+++ miktex-new-2.8.3541/Libraries/MiKTeX/KPathSeaEmulation/StdAfx.h     
2011-03-23 12:55:57.000000000 +0100
@@ -22,7 +22,6 @@
 #pragma once

 

 #include <cstdlib>

-#include <malloc.h>

 #if defined(MIKTEX_UNIX)

 #include <sys/time.h>

 #endif

diff -Nurd miktex-2.8.3541/Libraries/MiKTeX/KPathSeaEmulation/kpsemu.cpp 
miktex-new-2.8.3541/Libraries/MiKTeX/KPathSeaEmulation/kpsemu.cpp
--- miktex-2.8.3541/Libraries/MiKTeX/KPathSeaEmulation/kpsemu.cpp       
2009-01-26 16:23:49.000000000 +0100
+++ miktex-new-2.8.3541/Libraries/MiKTeX/KPathSeaEmulation/kpsemu.cpp   
2011-03-23 12:55:57.000000000 +0100
@@ -527,6 +527,13 @@
       FATAL_CRT_ERROR ("fseeko64", lpszFileName);
     }
   return (0);
+#elif defined(__APPLE__)
+  // Mac OS X fseeko is already 64-bits
+  if (fseeko(pfile, offset, where) != 0)
+    {
+      FATAL_CRT_ERROR ("fseeko", lpszFileName);
+    }
+  return (0);
 #else
 #  error Unimplemented: KPSE::FSeek64()
 #endif
@@ -573,6 +580,14 @@
     }
   return (pos);
   
+#elif defined(__APPLE__)
+  // Mac OS X ftello is already 64-bits
+  MIKTEX_INT64 pos = ftello(pfile);
+  if (pos < 0)
+    {
+      FATAL_CRT_ERROR ("ftello", lpszFileName);
+    }
+  return (pos);
 #else
 #  error Unimplemented: KPSE::FTell64
 #endif
diff -Nurd miktex-2.8.3541/Programs/MiKTeX/makex/internal.h 
miktex-new-2.8.3541/Programs/MiKTeX/makex/internal.h
--- miktex-2.8.3541/Programs/MiKTeX/makex/internal.h    2009-01-04 
21:48:59.000000000 +0100
+++ miktex-new-2.8.3541/Programs/MiKTeX/makex/internal.h        2011-03-23 
12:55:57.000000000 +0100
@@ -37,8 +37,6 @@
 #include <cstdlib>
 #include <string>
 
-#include <malloc.h>
-
 #include <getopt.h>
 #include <miktex/App/Application>
 #include <miktex/Core/Core>

--- NEW FILE: miktex-tools.info ---
Package: miktex-tools
Version: 2.8.3541
Revision: 3
Source: mirror:ctan:systems/win32/miktex/source/miktex-%v.tar.bz2
Source-MD5: edfc0fce88d135ecd67fe893685e76c7
PatchFile: miktex-tools.patch
PatchFile-MD5: 5260d15a13fab383016f39d0eb1a2e35
License: GPL
Depends: libpng14-shlibs
BuildDepends: tetex-base, fink (>= 0.24.12), libpng15, cmake
BuildDependsOnly: False
CompileScript: <<
#!/bin/sh -ev
  mkdir build
  cd build
  cmake -DCMAKE_INSTALL_PREFIX=%p -DCMAKE_INSTALL_NAME_DIR=%p/lib -DNO_GUI=1 ..
  make -j1
<<
ConfigureParams: --disable-dependency-tracking --mandir=%p/share/man 
LIBCURL_CPPFLAGS="-I."
InstallScript: <<
#!/bin/sh -ev
 cd build
 make install DESTDIR=%d
<<
DocFiles: README
Description: MiKTeX package manager tools 
DescDetail: << 
  The MiKTeX Tools package does not comprise a TeX system.
  The package should be regarded as an addition to the TeX system
  installed on your system.

  The following utilities are included:
  - initexmf: MiKTeX Configuration Utility
  - mpm: MiKTeX Package Manager
  - mthelp: MiKTeX Help Utility (experimental)

  If you get any errors that say "locale name not valid", set your LANG to 'C'
  like this: $ LANG=C mpm --version
  This will fix the problem.
<<
DescUsage: <<
 By default, mpm installs its packages into %p/share/texmf-local
 or wherever the TeX environment variable $TEXMFLOCAL points to.
 You can determine this directory with the shell command
     kpsewhich --expand-var '$TEXMFLOCAL'
 You can override the default by using the option 
  --install-root with the mpm command.
<<
DescPackaging: <<
 BuildDependsOnly: False, because some private headers are included.
 The dylibs are purely local, so no shlibs splitoff is needed.
 Since somewhere between 2.6 and 2.8, the tools package was merged with the
 original package, so since version 2.8-3541 this package downloads all of
 miktex (but only compiles miktex-tools). The cmake script makes sure only
 miktex-tools is built on non-win32.

 About the patch:
 lynx is required by the cmake file, but we remove it, because it doesn't
 seem to be required here. Also, malloc.h inclusions are removed as MacOS
 doesn't have it (malloc is in stdlib.h), and the 64-bit function wrappers
 will simply use the native functions in Mac standard C library as they are
 64-bit by themselves.
<<
DescPort: <<
 The LIBCURL_CPPFLAGS configure hack prevents %p/include to appear
 too early on the compiler line.
<<
Maintainer: Sjors Gielen <[email protected]>
Homepage: http://www.miktex.org



------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to