diff options
-rw-r--r-- | app-text/texlive-core/ChangeLog | 13 | ||||
-rw-r--r-- | app-text/texlive-core/Manifest | 24 | ||||
-rw-r--r-- | app-text/texlive-core/texlive-core-2012-r2.ebuild | 350 | ||||
-rw-r--r-- | app-text/texlive-core/texlive-core-2013-r2.ebuild | 357 | ||||
-rw-r--r-- | app-text/texlive-core/texlive-core-2014-r2.ebuild | 339 |
5 files changed, 1077 insertions, 6 deletions
diff --git a/app-text/texlive-core/ChangeLog b/app-text/texlive-core/ChangeLog index 111e3a85c8ea..300db15ec7a6 100644 --- a/app-text/texlive-core/ChangeLog +++ b/app-text/texlive-core/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for app-text/texlive-core -# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/texlive-core/ChangeLog,v 1.218 2014/11/04 10:50:58 aballier Exp $ +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/texlive-core/ChangeLog,v 1.219 2015/02/28 17:45:07 blueness Exp $ + +*texlive-core-2014-r2 (28 Feb 2015) +*texlive-core-2013-r2 (28 Feb 2015) +*texlive-core-2012-r2 (28 Feb 2015) + + 28 Feb 2015; Anthony G. Basile <blueness@gentoo.org> + +texlive-core-2012-r2.ebuild, +texlive-core-2013-r2.ebuild, + +texlive-core-2014-r2.ebuild: + Bump 2012/2013/2014 for bug #510770 04 Nov 2014; Alexis Ballier <aballier@gentoo.org> -texlive-core-2011-r6.ebuild, -texlive-core-2011-r7.ebuild: diff --git a/app-text/texlive-core/Manifest b/app-text/texlive-core/Manifest index 7424feb70cb2..cdb5feb0c301 100644 --- a/app-text/texlive-core/Manifest +++ b/app-text/texlive-core/Manifest @@ -9,6 +9,9 @@ DIST texlive-core-patches-36.tar.xz 2200 SHA256 409d48ef65032ec3c335be09ba8eaa5e DIST texlive-core-patches-39.tar.xz 3056 SHA256 685705f1994b751df42738cb542a6ca0b4adbc013275318667c634665b8bd25b SHA512 95e7161820a648d667c2a69bd74c1d24a20670128889d1ebbec2e700b0459d84bb4d96b2d9f355e519d9efe0e126689b29225af1a184e5a06e0cb398fefc7cc3 WHIRLPOOL 24359dbca04f3e9f9c09a9afc195dd6858da2284947cbebaa770e73ef78276059f9d2e3c8a95c5005971fa64be76367a55887f1f94e423e7d0ca227d5573dc95 DIST texlive-core-patches-41.tar.xz 2340 SHA256 64f914d6e32c1d91cd484b230e651a2646f94c90e94b8ca5b5accf634bf3905d SHA512 e829c9c68c6f9e7edbf582c6820d5b42483b9411754fcddc6a076ad4790497ef3ea30babbd4950451b543e3b0d960561d6cc099feb54282325040a8009b506b5 WHIRLPOOL d606d537f80aa30bdb05dd5a60afdcf23f9b863fdcc62aa22f1bb5a34ec89b79960efdc89fc19351e6d1f69236363a246cffe9059ee3df67d82308616dfb4bc4 DIST texlive-core-patches-42.tar.xz 2508 SHA256 e3b4d4de520ff58420a7b695491ffd780d88621c5bef135e59f35e3112ed5fec SHA512 fb5753a25a07f8f9a42494ed96c29f01f11c3f1a070972eafceb8c5ab5fa598c4d7fd5d7533608e6595621394f71563c187e3aaa1e2ba7a6b4e09fe2ae273991 WHIRLPOOL f31aefa1fad71bc294b18655e2db222ce272b6e286693bb62a880a25493d5eed933a3ef549a7a6a814c12677833110f77dcb71f36792aad8755a900a4aba9193 +DIST texlive-core-patches-43.tar.xz 3468 SHA256 01d9b08947a8fb8699724c90307a2450394f3de78ea269d7e5494c67f30dadd4 SHA512 bf169aa8cc7b01fdfe8a24f7f51aae430c9b1dccf0ba8daa365bca72fe68735d4b604ffbffd4c2e5198180bbf3eb789be5c36ee304e33b6f59896c0b3564ce03 WHIRLPOOL e38cedc8da12b1b0d48a64a7b57ebac0e440240dfebe27872c359faa1ad828b1cc1450a662e9cf9751c882d69edfd566e8a01ed0ee486114fdcd8e3d8b0374bd +DIST texlive-core-patches-44.tar.xz 2752 SHA256 e5699150b1ccb4784990bd0c796337b24b38cbd0ab8d2461f1aec5db07932a9a SHA512 a23cbd60ae6c80ea28e76ae5687f7ea73514e0dc9629012176ce8229ba4bd693227f3ceb7ea407e6df086030882b6cec7d69ac302a6f3e64fa1c9f171de3b472 WHIRLPOOL b30995744fdf06a462348b93657e06ee8720dee5559f8dffc3144b90a18d2264eb170316b4de943d4285647f78ece05f95c83e00b80e0f4dfd287bf28f0de3ca +DIST texlive-core-patches-45.tar.xz 2876 SHA256 0da1bd87ffa453cda9e23f68e5ecd26742049839e13efc0ca8be488bf0919880 SHA512 08d2643bc6215198d5eec586f892005be930248d491ae83a2c4f6b573ff7281db1d2d36e98eed8db15d29c669e8f5ca3041d9308633502302202f43da351927d WHIRLPOOL d86c2e52ad392bcbf1f2e5049ecd3fb7ce4f7e4dd57394f977bcaca94d81672b46699c0d78c7e72ef0ecc6829c46f9efadc137be56683bfe449a001c8772edaf DIST texlive-module-a2ping-2012.tar.xz 31124 SHA256 37b769091af7c7c9f95c52f92cbc26b22f72dc0de5ecb0e9e37cf1482438605a SHA512 b4f74f037d1113d204d3f0e34c8418e354ae002ab09e8c326458bf7c9c9a9bfa3211317e03bb7e69d7f2e83a2b22851410287477176dab5288dacf5a9ec4a8a6 WHIRLPOOL 5e76ab0e818c3e20d8211c35230a9ee1084f1de830c988b1ed9707036481582540aa97c6ee9e31b0dd1ee2a8346dc3b81197d8c0489563122bba2dd7dffe5fe1 DIST texlive-module-a2ping-2013.tar.xz 31124 SHA256 a50f2714269e1725a05584d2e1b0b822f082c7291a989d37976b8666f69e8e09 SHA512 bc05c8610e58bacb6001fd41f848d12f8e77837b5e24d32f7af1c9939778d92aeac7ee07969f22e86c72a8850650ad1d06341681503d8d8699dbf6db1de4be62 WHIRLPOOL c4ebb0c3bb4db9d176fbadfd06753509965aa7d1d89be69ded9cc4488b1629fbd7584f2fed70b9633ead1341fb88de006b7f840446f142ec25eaeeb8cd7577d5 DIST texlive-module-a2ping-2014.tar.xz 31124 SHA256 18c8686e9d443af0e3b6d4feaaa42996b1fa2f03a07dce0e19d10226b7bc8839 SHA512 d5b65f04a96b7206624fd80fae4a04779fd31995247ed4b04d3ddb7197aeb3373d6b3679f674e29fb39e7022f37115fab2a3f5fc7304b3c6c133456242fef8bb WHIRLPOOL a6a8c93836825b07930a61c35d37b657479025d217b4d006021724a1b85c9afa4b6dffa0ba1d96bc0bdcaa3fd72274c11ea401d8387d1bcedbd20df2fde31cbd @@ -344,16 +347,29 @@ DIST texlive-module-web.doc-2012.tar.xz 11508 SHA256 c0023456ff68d89ecccf5d368c8 DIST texlive-module-web.doc-2013.tar.xz 11596 SHA256 d6da8a94e2fddac6d167221807883cdfe67fab43f19ba1e4061f3f1fed2e80d2 SHA512 15298f6c808dfdbb960130d7677e33bd3e48bca6230f85870df0e8430a55a738e7f73e6dd5c3f96792d9e829bb3990a64d593cc664f2902b118f7ee316c069dd WHIRLPOOL b8435046bde4c03271339397c681d0a854f24baad5ada98b13e05d5db7151d938e4a671da8fb310789178d0e7c622977784265233561bbbb61e62fb363ed1eae DIST texlive-module-web.doc-2014.tar.xz 11580 SHA256 e0aae3d6cb0823adeb31c070511b069068b295480fe8d4db65f7142411df7805 SHA512 809e7685522bad25a7975b6f604f9f2279005a7a5a63a7937f71ab4ace0fa2978b69812fb0892db7b6cae842b5bfb5c1133a9cf542456a65238427fbf5c526c9 WHIRLPOOL 476ff1866a87f586066b82bb4f2796edd94b921e5e3438f9e32965697d20fa6fe00ec0acdb3018ae5d5e92d0d9573081589371429b520e52156f58c221cfae9c EBUILD texlive-core-2012-r1.ebuild 11179 SHA256 f53215ec4a23ad45e92af19b11a297e4e62a549c2fbf7862ea3aa8e5d77043ea SHA512 a72e74c4b9420797ae4b688899491f3e0d11b1268b3a06013de196cbe9463b1fbd549e080ab4a01e4c094fd36b42d6ac86deb833774f85f6f8901349adb2e9bb WHIRLPOOL 3cbac82ae6fe069af8fa38c46c020fccbdce90f333aa79025fb361e0d0c5ac45f412cd31b2fba548c600ad093f4b328f92ba6791c9689871541a7bba5f337be7 +EBUILD texlive-core-2012-r2.ebuild 11189 SHA256 2078b4a5712bef85a75618b12bbd481956a665d21a1a67a456727dc0c62c7b79 SHA512 a330214ce5113c1f61ad73ca7890232695cf3f2e6d43eb6c48aec39552ae958922d3b4f8b6938358d780183904721bc04d2adec4dd906880a451e7c38553ebad WHIRLPOOL 96d11983e8219acfe90b0d62cd200b11b637b0fe4da0b16b31b715c5df876eb8d7f0612fc6b021d6eae6999b5003c7ed70dab41c34a39017b431714253005b1f EBUILD texlive-core-2012.ebuild 11140 SHA256 d0901aa92229f159fac7b9ebcecc12c7ffaf40114b7366cd7c53ad1ee9302410 SHA512 595bf082e0f55b061072ae6bdeffd90a512f971d4e2091a8689f09f3d028baa6d2e50ab5e0884e701872734185a28e2e3c10a5adeeb921b1f9049b128dcc237e WHIRLPOOL 30e44b26bf0ac4853d5e7dca61042a235c17c4afdf032d98faf457a5336ac3dd6ef39cc34cda4cad057683e461cb7003e2f74b97373d0902d1092b61941c8556 EBUILD texlive-core-2013-r1.ebuild 11630 SHA256 6c0f1fd2ab68ca0b5cc1e99852d0c5d072ec75542bdc05fe5fad0e550881781d SHA512 e36652cbed625d8499b2feb034299a01e6fafc9ce2f269bffe53898550bcf95ce5258d2f5f60a865062c0db8f4a54300695ba4a6850104555635cd05d103dfb4 WHIRLPOOL 5d776018b3b3846a2f959e09f3979accf8327540a10b6354f8a169ba65e8b96294cb0bb03e69994b4ab56e16d32ed934cbf8619f283e99b835bd4e9f007f91f8 +EBUILD texlive-core-2013-r2.ebuild 11630 SHA256 7db516011338ee74694cb31339bdb584ae8272f27b2d839d4522e25a0079a0bc SHA512 494299ef585e5d342666aa53f467ffce4bb1e35918e23cb8a6c3c7324ed6698f94484675f391ef4f9edac0a34b1af35c9d985e77e38894609479f039130d4489 WHIRLPOOL fd0b3c6d60b7a345c876fb93193c2f32c70d24116834d0f759d3f156f4dc47ebc33ea5d09bf1620226ec257a9dc90f418844ccfc185cf1f23e87348b215f75d4 EBUILD texlive-core-2014-r1.ebuild 11010 SHA256 f4dc0070805201d7100c7fd02af0866205de96d632a52fc0ead17c6f23ed55b5 SHA512 b6f50f664d6762e269b5cbf563de00ce419d55ba3652618045e1fa611e806f7747ea5b837d74cee156aca85c4b67a43340862227777a490a692b9dd2a5a192cf WHIRLPOOL 17f9a543ce5d0c5f3076ba78eff99e3b1d5d748e1c94d93d0bf9c39807af3589763622b1ef566dde4bf371e33fb9ca3d9e2cf97e06ddbf5fa7b0eabb5b63f9b2 +EBUILD texlive-core-2014-r2.ebuild 11010 SHA256 7ea7fce6f6fabbdfa634f4da5f65b4f56488f60b183d26cb71610444a0f22082 SHA512 c7aefd6e92b685469af6cdb2cd476e26b909cb5ba3ccd8a6c5a136305b9f0f136a03958ae4437f4df21a81b4ed4491d0918c04662f0bc1790c411f5cf33bdfac WHIRLPOOL 303b7ef6e48373a47de3d2f95a2fac4537779352d39b326f4563635e9ab1d2a597e434bccbd704bb29ce01be7892844f6987e2120d7dea78c916de89d6aa7e3b EBUILD texlive-core-2014.ebuild 10961 SHA256 114ee434dfae05bb8ceeb5c3f23ceaa9d8ea75222dfaa1454f3ec47b63db93ba SHA512 f9ec9b36b8d94ca498cfcc97fb2826e601e5defc00e601fdf53f4b07904e18d91435e51e2bd14cadc205bba0f94cd6702f6084f7d32a61627fb24890f152ac0e WHIRLPOOL b287b8db22418fb6b4df2bb508743f8d7901c50f6c36c84ab5e159d4caddf3182f33319c99991fc02fc94326d38cf0d41b3c223323f165030278863b6e71fa90 -MISC ChangeLog 34489 SHA256 7053bc8419236add910eabd76483947c94815d167f3b7f22d139100278916701 SHA512 b0dbc445de80d1a5ec01febebc982b2074e7efaa84ce91a6bc1a9467724495820fc1550fc4aadf7de71626cdc849a93ddd2b26008668a256bafddd69b8106c91 WHIRLPOOL f29d3a561e7956395c8b103472e2319e9fd5a92e46e7c5fb099fbd55bfe874bee939564a5fa6340c730f8e2e44e83bf66f505edcd3f83212eb922808d684630b +MISC ChangeLog 34786 SHA256 4803c328bac518e2f03fc44be9b25d0bdf885664766c92a218e9eedd80fe5d53 SHA512 044baf86846ed28787d078df279e9dcb9e48021e66462f8db0a5468defe1d4d9097b33fdd3fa242ea251ac2a015c5e1ea2366d62bbec29fdd069dc8a2a730431 WHIRLPOOL a9e2d0ba1449984e06be7f92e94f3b22ee4bec14a3a84cebf1eb6558c6a04fc0152f17d0dddb1a87611d4c8d0a28166a7715d7f7c8335338871d92523b09ad68 MISC metadata.xml 448 SHA256 ddaca86e81c2eaf01ff5e7d613777a6c2231ed0f09646cb303e23b0e90c08d02 SHA512 c414f498afa7c6effabb5c21f85c1fca64271e9d8a429e15e86661c8b7f12adac0beb6b90c74a7309cfe9d20e639c818dc2a2045b4c315c0924583f0e71dca4b WHIRLPOOL d0537703ae9ac1a072795b05ee90b1e06d4f1dcb61b0e5adbac05f91db442a44846f909e63840518790d765c71b9a6314f58602d1489cb482ca7b7826cd88ee1 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 -iEYEAREIAAYFAlRYr5MACgkQvFcC4BYPU0oC4ACeOSVuyVXGUrzNSuOb8EdY7m0W -8XwAnioOpgEWPxLq2jbHW4G3BSC7NKR4 -=odQv +iQIcBAEBCAAGBQJU8f8eAAoJEJOE+m71LUu6q60P/3QIq49WezuK89/uhsANGxvb +EVvORjAQNmXRKLHD65jHpMESzO0TjLkR89uvmmXXJdMz+ilywWDrPUcEPtiRh2N2 +5eNoG5CvHmJd65fAFglXJqZY9CDvvJ8XBrSE/oPSZ0KLI25i9AS6mE9XaztChuLV +hOJ418Q/T7G4oUh7bWt8NZ8KsalIA/yt3ZYUxQ+7XUZ6LZddP3kZs0jTc9Frq44f +47ac9UCQDELkrJpSn6ecACRDchIrYaKmeF+gGiHsJ0xOX2XfLIy+JWyXEtvoynde +DFNa4a65QVVbTSURJqlb0RbRlOfLV5iUKixGsm97ToWCWXEgAQx1avwKD3A48+0T +NctMdXjqyTw2Ccklb4myFWE8Wun+bR5iliyEfjDZdVYXxtVqX+ILEdcxu7PBiN+v +NUwa5RdHkJMDi51CwfNLfovcHe3js6UXw3df7k+UOD/jgnHlywD9uj2RzGrAq7fv +IXNR9jkURep2IbfbjOGkZ0ogEve5aafEysr378LAT0NW/W291/mxu6BHnpOu3B0Z +RsAHo30IPlqOHy/otWCYjGUAkHFK2H0cc9olsb11NJ9BdD8JaUiUO2L4C0jlZlwl +ZwNNJcz2NyoZpiiA74Qd4FFwE4qngF6PifZ3AkeinSDRSfWNLm7pD3A1v84UF4tV +JGvzrNI0tqKfJ9ctJQ6b +=J6Zi -----END PGP SIGNATURE----- diff --git a/app-text/texlive-core/texlive-core-2012-r2.ebuild b/app-text/texlive-core/texlive-core-2012-r2.ebuild new file mode 100644 index 000000000000..07d9ad5faec8 --- /dev/null +++ b/app-text/texlive-core/texlive-core-2012-r2.ebuild @@ -0,0 +1,350 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/texlive-core/texlive-core-2012-r2.ebuild,v 1.1 2015/02/28 17:45:07 blueness Exp $ + +EAPI=5 + +#TL_UPSTREAM_PATCHLEVEL="1" +PATCHLEVEL="43" +TL_SOURCE_VERSION=20120701 + +inherit eutils flag-o-matic toolchain-funcs libtool texlive-common + +MY_PV=${PN%-core}-${TL_SOURCE_VERSION}-source + +DESCRIPTION="A complete TeX distribution" +HOMEPAGE="http://tug.org/texlive/" +SLOT="0" +LICENSE="GPL-2 LPPL-1.3c TeX" + +SRC_URI="mirror://gentoo/${MY_PV}.tar.xz" + +# Fetch patches +SRC_URI="${SRC_URI} mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.xz" +# mirror://gentoo/texlive-core-upstream-patches-${TL_UPSTREAM_PATCHLEVEL}.tar.xz" + +TL_CORE_BINEXTRA_MODULES=" + a2ping asymptote bibtex8 bundledoc ctanify ctanupload ctie cweb de-macro dtl + dvi2tty dviasm dvicopy dvidvi dviljk dvipng dvipos findhyph fragmaster + hyphenex installfont lacheck latex2man latexfileversion latexpand + listings-ext match_parens mkjobtexmf patgen pdfcrop pdftools pkfix + pkfix-helper purifyeps seetexk sty2dtx synctex texcount texdef texdiff + texdirflatten texdoc texliveonfly texloganalyser texware tie tpic2pdftex + typeoutfileinfo web collection-binextra + " +TL_CORE_BINEXTRA_DOC_MODULES=" + a2ping.doc asymptote.doc bibtex8.doc bundledoc.doc ctanify.doc + ctanupload.doc ctie.doc cweb.doc de-macro.doc dvi2tty.doc dvicopy.doc + dviljk.doc dvipng.doc dvipos.doc findhyph.doc fragmaster.doc installfont.doc + latex2man.doc latexfileversion.doc latexpand.doc listings-ext.doc + match_parens.doc mkjobtexmf.doc patgen.doc pdfcrop.doc pdftools.doc + pkfix.doc pkfix-helper.doc purifyeps.doc sty2dtx.doc synctex.doc + texcount.doc texdef.doc texdiff.doc texdirflatten.doc texdoc.doc + texliveonfly.doc texloganalyser.doc texware.doc tie.doc tpic2pdftex.doc + typeoutfileinfo web.doc + " +TL_CORE_BINEXTRA_SRC_MODULES="hyphenex.source listings-ext.source mkjobtexmf.source texdef.source" + +TL_CORE_EXTRA_MODULES="tetex hyphen-base texconfig gsftopk texlive.infra ${TL_CORE_BINEXTRA_MODULES}" +TL_CORE_EXTRA_DOC_MODULES="tetex.doc texconfig.doc gsftopk.doc texlive.infra.doc ${TL_CORE_BINEXTRA_DOC_MODULES}" +TL_CORE_EXTRA_SRC_MODULES="${TL_CORE_BINEXTRA_SRC_MODULES}" + +for i in ${TL_CORE_EXTRA_MODULES}; do + SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz" +done + +SRC_URI="${SRC_URI} doc? ( " +for i in ${TL_CORE_EXTRA_DOC_MODULES}; do + SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz" +done +SRC_URI="${SRC_URI} )" +SRC_URI="${SRC_URI} source? ( " +for i in ${TL_CORE_EXTRA_SRC_MODULES}; do + SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz" +done +SRC_URI="${SRC_URI} )" + +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" +IUSE="cjk X doc source tk xetex" + +MODULAR_X_DEPEND="X? ( + x11-libs/libXmu + x11-libs/libXp + x11-libs/libXpm + x11-libs/libICE + x11-libs/libSM + x11-libs/libXaw + x11-libs/libXfont + )" + +COMMON_DEPEND="${MODULAR_X_DEPEND} + !app-text/ptex + !app-text/tetex + !<app-text/texlive-2007 + !app-text/xetex + !<dev-texlive/texlive-basic-2009 + !<dev-texlive/texlive-metapost-2011 + !app-text/dvibook + sys-libs/zlib + >=media-libs/libpng-1.2.43-r2:0= + >=app-text/poppler-0.12.3-r3:= + xetex? ( + app-text/teckit + media-libs/fontconfig + media-libs/freetype:2 + media-libs/silgraphite + ) + >=dev-libs/kpathsea-6.1.0_p20120701 + cjk? ( >=dev-libs/ptexenc-1.2.0_p20120701 )" + +DEPEND="${COMMON_DEPEND} + virtual/pkgconfig + sys-apps/ed + sys-devel/flex + app-arch/xz-utils" + +RDEPEND="${COMMON_DEPEND} + >=app-text/ps2pkm-1.5_p20120701 + >=app-text/dvipsk-5.992_p20120701 + >=dev-tex/bibtexu-3.71_p20120701 + virtual/perl-Getopt-Long + xetex? ( >=app-text/xdvipdfmx-0.7.8_p20120701 ) + tk? ( dev-perl/perl-tk )" + +# texdoc needs luatex. +PDEPEND=">=dev-tex/luatex-0.70" + +S="${WORKDIR}/${P}_build" +B="${WORKDIR}/${MY_PV}" + +src_unpack() { + unpack ${A} + mkdir -p "${S}" || die "failed to create build dir" +} + +src_prepare() { + mv "${WORKDIR}"/texmf* "${B}" || die "failed to move texmf files" + + cd "${B}" + #EPATCH_MULTI_MSG="Applying patches from upstream bugfix branch..." EPATCH_SUFFIX="patch" epatch "${WORKDIR}/gentoo_branch2011_patches" + EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches" + + elibtoolize +} + +src_configure() { + # It fails on alpha without this + use alpha && append-ldflags "-Wl,--no-relax" + + # Bug #265232 and bug #414271: + if use hppa; then + append-cppflags "-DU_IS_BIG_ENDIAN=1" + fi + + # Too many regexps use A-Z a-z constructs, what causes problems with locales + # that don't have the same alphabetical order than ascii. Bug #242430 + # So we set LC_ALL to C in order to avoid problems. + export LC_ALL=C + tc-export CC CXX AR RANLIB + ECONF_SOURCE="${B}" \ + econf -C \ + --bindir=/usr/bin \ + --datadir="${S}" \ + --with-system-freetype2 \ + --with-freetype2-include=/usr/include \ + --with-system-zlib \ + --with-system-libpng \ + --with-system-xpdf \ + --with-system-poppler \ + --with-system-teckit \ + --with-teckit-includes=/usr/include/teckit \ + --with-system-graphite \ + --with-system-kpathsea \ + --with-system-icu \ + --with-system-ptexenc \ + --without-texinfo \ + --disable-dialog \ + --disable-multiplatform \ + --enable-epsfwin \ + --enable-mftalkwin \ + --enable-regiswin \ + --enable-tektronixwin \ + --enable-unitermwin \ + --with-ps=gs \ + --disable-psutils \ + --disable-t1utils \ + --enable-ipc \ + --disable-biber \ + --disable-bibtexu \ + --disable-dvipng \ + --disable-dvipsk \ + --disable-dvipdfmx \ + --disable-chktex \ + --disable-lcdf-typetools \ + --disable-pdfopen \ + --disable-ps2eps \ + --disable-ps2pkm \ + --disable-detex \ + --disable-ttf2pk \ + --disable-tex4htk \ + --disable-cjkutils \ + --disable-xdvik \ + --disable-xindy \ + --disable-luatex \ + --disable-dvi2tty \ + --disable-dvisvgm \ + --disable-vlna \ + --disable-xdvipdfmx \ + --enable-shared \ + --disable-native-texlive-build \ + --disable-largefile \ + $(use_enable xetex) \ + $(use_enable cjk ptex) \ + $(use_enable cjk eptex) \ + $(use_enable cjk uptex) \ + $(use_enable cjk euptex) \ + $(use_enable cjk mendexk) \ + $(use_enable cjk makejvf) \ + $(use_with X x) +} + +src_compile() { + emake SHELL=/bin/sh texmf=${TEXMF_PATH:-/usr/share/texmf} || die "emake failed" + + cd "${B}" + # Mimic updmap --syncwithtrees to enable only fonts installed + # Code copied from updmap script + for i in `egrep '^(Mixed)?Map' "texmf/web2c/updmap.cfg" | sed 's@.* @@'`; do + texlive-common_is_file_present_in_texmf "$i" || echo "$i" + done > "${T}/updmap_update" + { + sed 's@/@\\/@g; s@^@/^MixedMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update" + sed 's@/@\\/@g; s@^@/^Map[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update" + } > "${T}/updmap_update2" + sed -f "${T}/updmap_update2" "texmf/web2c/updmap.cfg" > "${T}/updmap_update3"\ + && cat "${T}/updmap_update3" > "texmf/web2c/updmap.cfg" +} + +src_test() { + ewarn "Due to modular layout of texlive ebuilds," + ewarn "It would not make much sense to use tests into the ebuild" + ewarn "And tests would fail anyway" + ewarn "Alternatively you can try to compile any tex file" + ewarn "Tex warnings should be considered as errors and reported" + ewarn "You can also run fmtutil-sys --all and check for errors/warnings there" +} + +src_install() { + dodir ${TEXMF_PATH:-/usr/share/texmf}/web2c + emake DESTDIR="${D}" texmf="${D}${TEXMF_PATH:-/usr/share/texmf}" run_texlinks="true" run_mktexlsr="true" install || die "install failed" + + cd "${B}" + dodir /usr/share # just in case + cp -pR texmf{,-dist} "${D}/usr/share/" || die "failed to install texmf trees" + cp -pR "${WORKDIR}"/tlpkg "${D}/usr/share/" || die "failed to install tlpkg files" + + newsbin "${FILESDIR}/texmf-update2010" texmf-update + + # When X is disabled mf-nowin doesn't exist but some scripts expect it to + # exist. Instead, it is called mf, so we symlink it to please everything. + use X || dosym mf /usr/bin/mf-nowin + + docinto texk + cd "${B}/texk" + dodoc ChangeLog README || die "failed to install texk docs" + + docinto dviljk + cd "${B}/texk/dviljk" + dodoc ChangeLog README NEWS || die "failed to install dviljk docs" + + docinto makeindexk + cd "${B}/texk/makeindexk" + dodoc ChangeLog NOTES README || die "failed to install makeindexk docs" + + docinto web2c + cd "${B}/texk/web2c" + dodoc ChangeLog NEWS PROJECTS README || die "failed to install web2c docs" + + use doc || rm -rf "${D}/usr/share/texmf/doc" + use doc || rm -rf "${D}/usr/share/texmf-dist/doc" + + dodir /etc/env.d + echo 'CONFIG_PROTECT_MASK="/etc/texmf/web2c /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d"' > "${D}/etc/env.d/98texlive" + # populate /etc/texmf + keepdir /etc/texmf/web2c + + # take care of updmap.cfg and language.d files + keepdir /etc/texmf/{updmap.d,language.dat.d,language.def.d,language.dat.lua.d} + + mv "${D}${TEXMF_PATH}/web2c/updmap.cfg" "${D}/etc/texmf/updmap.d/00updmap.cfg" || die "moving updmap.cfg failed" + + # Remove fmtutil.cnf, it will be regenerated from /etc/texmf/fmtutil.d files + # by texmf-update + rm -f "${D}${TEXMF_PATH}/web2c/fmtutil.cnf" + # Remove bundled and invalid updmap.cfg + rm -f "${D}/usr/share/texmf-dist/web2c/updmap.cfg" + + texlive-common_handle_config_files + + keepdir /usr/share/texmf-site + + # the virtex symlink is not installed + # The links has to be relative, since the targets + # is not present at this stage and MacOS doesn't + # like non-existing targets + dosym tex /usr/bin/virtex + dosym pdftex /usr/bin/pdfvirtex + + # Remove texdoctk if we don't want it + if ! use tk ; then + rm -f "${D}/usr/bin/texdoctk" "${D}/usr/share/texmf/scripts/tetex/texdoctk.pl" "${D}/usr/share/man/man1/texdoctk.1" || die "failed to remove texdoc tk!" + fi + + # Rename mpost to leave room for mplib + mv "${D}/usr/bin/mpost" "${D}/usr/bin/mpost-${P}" + dosym "mpost-${P}" /usr/bin/mpost + + # Ditto for pdftex + mv "${D}/usr/bin/pdftex" "${D}/usr/bin/pdftex-${P}" + dosym "pdftex-${P}" /usr/bin/pdftex +} + +pkg_preinst() { + # Remove stray files to keep the upgrade path sane + if has_version =app-text/texlive-core-2007* ; then + for i in pdftex/pdflatex aleph/aleph aleph/lamed omega/lambda omega/omega xetex/xetex xetex/xelatex tex/tex pdftex/etex pdftex/pdftex pdftex/pdfetex ; do + for j in log fmt ; do + local file="${ROOT}/var/lib/texmf/web2c/${i}.${j}" + if [ -f "${file}" ] ; then + elog "Removing stray ${file} from TeXLive 2007 install." + rm -f "${file}" + fi + done + done + for j in base log ; do + local file="${ROOT}/var/lib/texmf/web2c/metafont/mf.${j}" + if [ -f "${file}" ] ; then + elog "Removing stray ${file} from TeXLive 2007 install." + rm -f "${file}" + fi + done + fi +} + +pkg_postinst() { + etexmf-update + + elog + elog "If you have configuration files in /etc/texmf to merge," + elog "please update them and run /usr/sbin/texmf-update." + elog + ewarn "If you are migrating from an older TeX distribution" + ewarn "Please make sure you have read:" + ewarn "http://www.gentoo.org/proj/en/tex/texlive-migration-guide.xml" + ewarn "in order to avoid possible problems" + elog + elog "TeXLive has been split in various ebuilds. If you are missing a" + elog "package to process your TeX documents, you can install" + elog "dev-tex/texmfind to easily search for them." + elog +} diff --git a/app-text/texlive-core/texlive-core-2013-r2.ebuild b/app-text/texlive-core/texlive-core-2013-r2.ebuild new file mode 100644 index 000000000000..e1a4692106fa --- /dev/null +++ b/app-text/texlive-core/texlive-core-2013-r2.ebuild @@ -0,0 +1,357 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/texlive-core/texlive-core-2013-r2.ebuild,v 1.1 2015/02/28 17:45:07 blueness Exp $ + +EAPI=5 + +#TL_UPSTREAM_PATCHLEVEL="1" +PATCHLEVEL="44" +TL_SOURCE_VERSION=20130530 + +inherit eutils flag-o-matic toolchain-funcs libtool texlive-common + +MY_PV=${PN%-core}-${TL_SOURCE_VERSION}-source + +DESCRIPTION="A complete TeX distribution" +HOMEPAGE="http://tug.org/texlive/" +SLOT="0" +LICENSE="GPL-2 LPPL-1.3c TeX" + +SRC_URI="mirror://gentoo/${MY_PV}.tar.xz" + +# Fetch patches +SRC_URI="${SRC_URI} mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.xz" +# mirror://gentoo/texlive-core-upstream-patches-${TL_UPSTREAM_PATCHLEVEL}.tar.xz" + +TL_CORE_BINEXTRA_MODULES=" + a2ping adhocfilelist asymptote bundledoc ctanify ctanupload ctie cweb + de-macro dtl dtxgen dvi2tty dviasm dvicopy dvidvi dviljk dvipos findhyph + fragmaster hyphenex installfont lacheck latex2man latexfileversion + latexpand ltxfileinfo listings-ext match_parens mkjobtexmf patgen pdfcrop + pdftools pfarrei pkfix pkfix-helper purifyeps seetexk sty2dtx synctex + texcount texdef texdiff texdirflatten texdoc texliveonfly texloganalyser + texware tie tpic2pdftex typeoutfileinfo web collection-binextra + " +TL_CORE_BINEXTRA_DOC_MODULES=" + a2ping.doc adhocfilelist.doc asymptote.doc bundledoc.doc ctanify.doc + ctanupload.doc ctie.doc cweb.doc de-macro.doc dtxgen.doc dvi2tty.doc + dvicopy.doc dviljk.doc dvipos.doc findhyph.doc fragmaster.doc + installfont.doc latex2man.doc latexfileversion.doc latexpand.doc + ltxfileinfo.doc listings-ext.doc match_parens.doc mkjobtexmf.doc patgen.doc + pdfcrop.doc pdftools.doc pfarrei.doc pkfix.doc pkfix-helper.doc + purifyeps.doc sty2dtx.doc synctex.doc texcount.doc texdef.doc texdiff.doc + texdirflatten.doc texdoc.doc texliveonfly.doc texloganalyser.doc texware.doc + tie.doc tpic2pdftex.doc typeoutfileinfo web.doc + " +TL_CORE_BINEXTRA_SRC_MODULES=" + adhocfilelist.source hyphenex.source listings-ext.source mkjobtexmf.source + pfarrei.source texdef.source + " + +TL_CORE_EXTRA_MODULES="tetex hyphen-base texconfig gsftopk texlive.infra ${TL_CORE_BINEXTRA_MODULES}" +TL_CORE_EXTRA_DOC_MODULES="tetex.doc texconfig.doc gsftopk.doc texlive.infra.doc ${TL_CORE_BINEXTRA_DOC_MODULES}" +TL_CORE_EXTRA_SRC_MODULES="${TL_CORE_BINEXTRA_SRC_MODULES}" + +for i in ${TL_CORE_EXTRA_MODULES}; do + SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz" +done + +SRC_URI="${SRC_URI} doc? ( " +for i in ${TL_CORE_EXTRA_DOC_MODULES}; do + SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz" +done +SRC_URI="${SRC_URI} )" +SRC_URI="${SRC_URI} source? ( " +for i in ${TL_CORE_EXTRA_SRC_MODULES}; do + SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz" +done +SRC_URI="${SRC_URI} )" + +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="cjk X doc source tk xetex" + +TEXMF_PATH=/usr/share/texmf-dist + +MODULAR_X_DEPEND="X? ( + x11-libs/libXmu + x11-libs/libXp + x11-libs/libXpm + x11-libs/libICE + x11-libs/libSM + x11-libs/libXaw + x11-libs/libXfont + )" + +COMMON_DEPEND="${MODULAR_X_DEPEND} + !app-text/ptex + !app-text/tetex + !<app-text/texlive-2007 + !app-text/xetex + !<dev-texlive/texlive-basic-2013 + !<dev-texlive/texlive-metapost-2011 + !app-text/dvibook + sys-libs/zlib + >=media-libs/libpng-1.2.43-r2:0= + >=app-text/poppler-0.12.3-r3:= + >=x11-libs/cairo-1.12 + >=x11-libs/pixman-0.18 + xetex? ( + >=media-libs/harfbuzz-0.9.20[icu,graphite] + >=dev-libs/icu-50:= + app-text/teckit + media-libs/fontconfig + media-gfx/graphite2 + media-libs/freetype:2 + ) + >=dev-libs/kpathsea-6.1.1_p20130530 + cjk? ( >=dev-libs/ptexenc-1.3.1_p20130530 )" + +DEPEND="${COMMON_DEPEND} + virtual/pkgconfig + sys-apps/ed + sys-devel/flex + app-arch/xz-utils" + +RDEPEND="${COMMON_DEPEND} + >=app-text/ps2pkm-1.5_p20130530 + >=app-text/dvipsk-5.993_p20130530 + >=dev-tex/bibtexu-3.71_p20130530 + virtual/perl-Getopt-Long + xetex? ( >=app-text/xdvipdfmx-0.7.9_p20130530 ) + tk? ( dev-perl/perl-tk )" + +# texdoc needs luatex. +PDEPEND=">=dev-tex/luatex-0.76" + +S="${WORKDIR}/${P}_build" +B="${WORKDIR}/${MY_PV}" + +src_unpack() { + unpack ${A} + mkdir -p "${S}" || die "failed to create build dir" +} + +RELOC_TARGET=texmf-dist + +src_prepare() { + cd "${WORKDIR}" + # From texlive-module.eclass. + grep -H RELOC tlpkg/tlpobj/* | awk '{print $2}' | sed 's#^RELOC/##' > "${T}/reloclist" + { for i in $(<"${T}/reloclist"); do dirname $i; done; } | uniq > "${T}/dirlist" + for i in $(<"${T}/dirlist"); do + [ -d "${RELOC_TARGET}/${i}" ] || mkdir -p "${RELOC_TARGET}/${i}" + done + for i in $(<"${T}/reloclist"); do + mv "${i}" "${RELOC_TARGET}"/$(dirname "${i}") || die "failed to relocate ${i} to ${RELOC_TARGET}/$(dirname ${i})" + done + + mv "${WORKDIR}"/texmf* "${B}" || die "failed to move texmf files" + + cd "${B}" + #EPATCH_MULTI_MSG="Applying patches from upstream bugfix branch..." EPATCH_SUFFIX="patch" epatch "${WORKDIR}/gentoo_branch2011_patches" + EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches" + + elibtoolize +} + +src_configure() { + # It fails on alpha without this + use alpha && append-ldflags "-Wl,--no-relax" + + # Too many regexps use A-Z a-z constructs, what causes problems with locales + # that don't have the same alphabetical order than ascii. Bug #242430 + # So we set LC_ALL to C in order to avoid problems. + export LC_ALL=C + tc-export CC CXX AR RANLIB + ECONF_SOURCE="${B}" \ + econf -C \ + --bindir="${EPREFIX}"/usr/bin \ + --datadir="${S}" \ + --with-system-freetype2 \ + --with-system-zlib \ + --with-system-libpng \ + --with-system-xpdf \ + --with-system-poppler \ + --with-system-teckit \ + --with-teckit-includes="${EPREFIX}"/usr/include/teckit \ + --with-system-kpathsea \ + --with-kpathsea-includes="${EPREFIX}"/usr/include \ + --with-system-icu \ + --with-system-ptexenc \ + --with-system-harfbuzz \ + --with-system-icu \ + --with-system-graphite2 \ + --with-system-cairo \ + --with-system-pixman \ + --without-texinfo \ + --disable-dialog \ + --disable-multiplatform \ + --enable-epsfwin \ + --enable-mftalkwin \ + --enable-regiswin \ + --enable-tektronixwin \ + --enable-unitermwin \ + --with-ps=gs \ + --disable-psutils \ + --disable-t1utils \ + --enable-ipc \ + --disable-biber \ + --disable-bibtex-x \ + --disable-dvipng \ + --disable-dvipsk \ + --disable-dvipdfmx \ + --disable-chktex \ + --disable-lcdf-typetools \ + --disable-pdfopen \ + --disable-ps2eps \ + --disable-ps2pkm \ + --disable-detex \ + --disable-ttf2pk \ + --disable-tex4htk \ + --disable-cjkutils \ + --disable-xdvik \ + --disable-xindy \ + --disable-luatex \ + --disable-dvi2tty \ + --disable-dvisvgm \ + --disable-vlna \ + --disable-xdvipdfmx \ + --enable-shared \ + --disable-native-texlive-build \ + --disable-largefile \ + $(use_enable xetex) \ + $(use_enable cjk ptex) \ + $(use_enable cjk eptex) \ + $(use_enable cjk uptex) \ + $(use_enable cjk euptex) \ + $(use_enable cjk mendexk) \ + $(use_enable cjk makejvf) \ + $(use_enable tk texdoctk) \ + $(use_with X x) +} + +src_compile() { + tc-export CC CXX AR RANLIB + emake SHELL="${EPREFIX}"/bin/sh texmf="${EPREFIX}"${TEXMF_PATH:-/usr/share/texmf-dist} || die "emake failed" + + cd "${B}" + # Mimic updmap --syncwithtrees to enable only fonts installed + # Code copied from updmap script + for i in `egrep '^(Mixed|Kanji)?Map' "texmf-dist/web2c/updmap.cfg" | sed 's@.* @@'`; do + texlive-common_is_file_present_in_texmf "$i" || echo "$i" + done > "${T}/updmap_update" + { + sed 's@/@\\/@g; s@^@/^MixedMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update" + sed 's@/@\\/@g; s@^@/^Map[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update" + sed 's@/@\\/@g; s@^@/^KanjiMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update" + } > "${T}/updmap_update2" + sed -f "${T}/updmap_update2" "texmf-dist/web2c/updmap.cfg" > "${T}/updmap_update3"\ + && cat "${T}/updmap_update3" > "texmf-dist/web2c/updmap.cfg" +} + +src_install() { + dodir ${TEXMF_PATH:-/usr/share/texmf-dist}/web2c + emake DESTDIR="${D}" texmf="${ED}${TEXMF_PATH:-/usr/share/texmf-dist}" run_texlinks="true" run_mktexlsr="true" install || die "install failed" + + cd "${B}" + dodir /usr/share # just in case + cp -pR texmf-dist "${ED}/usr/share/" || die "failed to install texmf trees" + cp -pR "${WORKDIR}"/tlpkg "${ED}/usr/share/" || die "failed to install tlpkg files" + + # When X is disabled mf-nowin doesn't exist but some scripts expect it to + # exist. Instead, it is called mf, so we symlink it to please everything. + use X || dosym mf /usr/bin/mf-nowin + + docinto texk + cd "${B}/texk" + dodoc ChangeLog README || die "failed to install texk docs" + + docinto dviljk + cd "${B}/texk/dviljk" + dodoc ChangeLog README NEWS || die "failed to install dviljk docs" + + docinto makeindexk + cd "${B}/texk/makeindexk" + dodoc ChangeLog NOTES README || die "failed to install makeindexk docs" + + docinto web2c + cd "${B}/texk/web2c" + dodoc ChangeLog NEWS PROJECTS README || die "failed to install web2c docs" + + use doc || rm -rf "${ED}/usr/share/texmf-dist/doc" + + dodir /etc/env.d + echo 'CONFIG_PROTECT_MASK="/etc/texmf/web2c /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d"' > "${ED}/etc/env.d/98texlive" + # populate /etc/texmf + keepdir /etc/texmf/web2c + + # take care of updmap.cfg and language.d files + keepdir /etc/texmf/{updmap.d,language.dat.d,language.def.d,language.dat.lua.d} + + mv "${ED}${TEXMF_PATH}/web2c/updmap.cfg" "${ED}/etc/texmf/updmap.d/00updmap.cfg" || die "moving updmap.cfg failed" + + # Remove fmtutil.cnf, it will be regenerated from /etc/texmf/fmtutil.d files + # by texmf-update + rm -f "${ED}${TEXMF_PATH}/web2c/fmtutil.cnf" + # Remove bundled and invalid updmap.cfg + rm -f "${ED}/usr/share/texmf-dist/web2c/updmap.cfg" + + texlive-common_handle_config_files + + keepdir /usr/share/texmf-site + + # the virtex symlink is not installed + # The links has to be relative, since the targets + # is not present at this stage and MacOS doesn't + # like non-existing targets + dosym tex /usr/bin/virtex + dosym pdftex /usr/bin/pdfvirtex + + # Rename mpost to leave room for mplib + mv "${ED}/usr/bin/mpost" "${ED}/usr/bin/mpost-${P}" + dosym "mpost-${P}" /usr/bin/mpost + + # Ditto for pdftex + mv "${ED}/usr/bin/pdftex" "${ED}/usr/bin/pdftex-${P}" + dosym "pdftex-${P}" /usr/bin/pdftex +} + +pkg_preinst() { + # Remove stray files to keep the upgrade path sane + if has_version =app-text/texlive-core-2007* ; then + for i in pdftex/pdflatex aleph/aleph aleph/lamed omega/lambda omega/omega xetex/xetex xetex/xelatex tex/tex pdftex/etex pdftex/pdftex pdftex/pdfetex ; do + for j in log fmt ; do + local file="${EROOT}/var/lib/texmf/web2c/${i}.${j}" + if [ -f "${file}" ] ; then + elog "Removing stray ${file} from TeXLive 2007 install." + rm -f "${file}" + fi + done + done + for j in base log ; do + local file="${EROOT}/var/lib/texmf/web2c/metafont/mf.${j}" + if [ -f "${file}" ] ; then + elog "Removing stray ${file} from TeXLive 2007 install." + rm -f "${file}" + fi + done + fi +} + +pkg_postinst() { + etexmf-update + + elog + elog "If you have configuration files in ${EPREFIX}/etc/texmf to merge," + elog "please update them and run ${EPREFIX}/usr/sbin/texmf-update." + elog + ewarn "If you are migrating from an older TeX distribution" + ewarn "Please make sure you have read:" + ewarn "http://www.gentoo.org/proj/en/tex/texlive-migration-guide.xml" + ewarn "in order to avoid possible problems" + elog + elog "TeXLive has been split in various ebuilds. If you are missing a" + elog "package to process your TeX documents, you can install" + elog "dev-tex/texmfind to easily search for them." + elog +} diff --git a/app-text/texlive-core/texlive-core-2014-r2.ebuild b/app-text/texlive-core/texlive-core-2014-r2.ebuild new file mode 100644 index 000000000000..f77b84023451 --- /dev/null +++ b/app-text/texlive-core/texlive-core-2014-r2.ebuild @@ -0,0 +1,339 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/texlive-core/texlive-core-2014-r2.ebuild,v 1.1 2015/02/28 17:45:07 blueness Exp $ + +EAPI=5 + +#TL_UPSTREAM_PATCHLEVEL="1" +PATCHLEVEL="45" +TL_SOURCE_VERSION=20140525 + +inherit eutils flag-o-matic toolchain-funcs libtool texlive-common + +MY_PV=${PN%-core}-${TL_SOURCE_VERSION}-source + +DESCRIPTION="A complete TeX distribution" +HOMEPAGE="http://tug.org/texlive/" +SLOT="0" +LICENSE="GPL-2 LPPL-1.3c TeX" + +SRC_URI="mirror://gentoo/${MY_PV}.tar.xz" + +# Fetch patches +SRC_URI="${SRC_URI} mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.xz" +# mirror://gentoo/texlive-core-upstream-patches-${TL_UPSTREAM_PATCHLEVEL}.tar.xz" + +TL_CORE_BINEXTRA_MODULES=" + a2ping adhocfilelist asymptote bundledoc ctanify ctanupload ctie cweb + de-macro dtl dtxgen dvi2tty dviasm dvicopy dvidvi dviljk dvipos findhyph + fragmaster hyphenex installfont lacheck latex-git-log latex2man + latexfileversion latexpand latexindent ltxfileinfo ltximg listings-ext + match_parens mkjobtexmf patgen pdfcrop pdftools pfarrei pkfix pkfix-helper + purifyeps seetexk sty2dtx synctex texcount texdef texdiff texdirflatten + texdoc texliveonfly texloganalyser texware tie tpic2pdftex typeoutfileinfo + web collection-binextra + " +TL_CORE_BINEXTRA_DOC_MODULES=" + a2ping.doc adhocfilelist.doc asymptote.doc bundledoc.doc ctanify.doc + ctanupload.doc ctie.doc cweb.doc de-macro.doc dtxgen.doc dvi2tty.doc + dvicopy.doc dviljk.doc dvipos.doc findhyph.doc fragmaster.doc + installfont.doc latex-git-log.doc latex2man.doc latexfileversion.doc + latexpand.doc latexindent.doc ltxfileinfo.doc ltximg.doc listings-ext.doc + match_parens.doc mkjobtexmf.doc patgen.doc pdfcrop.doc pdftools.doc + pfarrei.doc pkfix.doc pkfix-helper.doc purifyeps.doc sty2dtx.doc synctex.doc + texcount.doc texdef.doc texdiff.doc texdirflatten.doc texdoc.doc + texliveonfly.doc texloganalyser.doc texware.doc tie.doc tpic2pdftex.doc + typeoutfileinfo.doc web.doc + " +TL_CORE_BINEXTRA_SRC_MODULES=" + adhocfilelist.source hyphenex.source listings-ext.source mkjobtexmf.source + pfarrei.source texdef.source + " + +TL_CORE_EXTRA_MODULES="tetex hyphen-base texconfig gsftopk texlive.infra ${TL_CORE_BINEXTRA_MODULES}" +TL_CORE_EXTRA_DOC_MODULES="tetex.doc texconfig.doc gsftopk.doc texlive.infra.doc ${TL_CORE_BINEXTRA_DOC_MODULES}" +TL_CORE_EXTRA_SRC_MODULES="${TL_CORE_BINEXTRA_SRC_MODULES}" + +for i in ${TL_CORE_EXTRA_MODULES}; do + SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz" +done + +SRC_URI="${SRC_URI} doc? ( " +for i in ${TL_CORE_EXTRA_DOC_MODULES}; do + SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz" +done +SRC_URI="${SRC_URI} )" +SRC_URI="${SRC_URI} source? ( " +for i in ${TL_CORE_EXTRA_SRC_MODULES}; do + SRC_URI="${SRC_URI} mirror://gentoo/texlive-module-${i}-${PV}.tar.xz" +done +SRC_URI="${SRC_URI} )" + +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="cjk X doc source tk xetex" + +TEXMF_PATH=/usr/share/texmf-dist + +MODULAR_X_DEPEND="X? ( + x11-libs/libXmu + x11-libs/libXp + x11-libs/libXpm + x11-libs/libICE + x11-libs/libSM + x11-libs/libXaw + x11-libs/libXfont + )" + +COMMON_DEPEND="${MODULAR_X_DEPEND} + !app-text/ptex + !app-text/tetex + !<app-text/texlive-2007 + !app-text/xetex + !<dev-texlive/texlive-basic-2014 + !<dev-texlive/texlive-metapost-2011 + !app-text/dvibook + !dev-tex/luatex + !app-text/dvipdfm + !app-text/dvipdfmx + !app-text/xdvipdfmx + sys-libs/zlib + >=media-libs/libpng-1.2.43-r2:0= + >=app-text/poppler-0.12.3-r3:= + >=x11-libs/cairo-1.12 + >=x11-libs/pixman-0.18 + dev-libs/zziplib + app-text/libpaper + xetex? ( + >=media-libs/harfbuzz-0.9.20[icu,graphite] + >=dev-libs/icu-50:= + app-text/teckit + media-libs/fontconfig + media-gfx/graphite2 + ) + media-libs/freetype:2 + >=dev-libs/kpathsea-6.2.0 + cjk? ( >=dev-libs/ptexenc-1.3.2_p20140525-r1 )" + +DEPEND="${COMMON_DEPEND} + virtual/pkgconfig + sys-apps/ed + sys-devel/flex + app-arch/xz-utils" + +RDEPEND="${COMMON_DEPEND} + >=app-text/ps2pkm-1.5_p20130530 + >=app-text/dvipsk-5.993_p20130530 + >=dev-tex/bibtexu-3.71_p20130530 + virtual/perl-Getopt-Long + tk? ( dev-perl/perl-tk )" + +S="${WORKDIR}/${P}_build" +B="${WORKDIR}/${MY_PV}" + +src_unpack() { + unpack ${A} + mkdir -p "${S}" || die "failed to create build dir" +} + +RELOC_TARGET=texmf-dist + +src_prepare() { + cd "${WORKDIR}" + # From texlive-module.eclass. + grep -H RELOC tlpkg/tlpobj/* | awk '{print $2}' | sed 's#^RELOC/##' > "${T}/reloclist" + { for i in $(<"${T}/reloclist"); do dirname $i; done; } | uniq > "${T}/dirlist" + for i in $(<"${T}/dirlist"); do + [ -d "${RELOC_TARGET}/${i}" ] || mkdir -p "${RELOC_TARGET}/${i}" + done + for i in $(<"${T}/reloclist"); do + mv "${i}" "${RELOC_TARGET}"/$(dirname "${i}") || die "failed to relocate ${i} to ${RELOC_TARGET}/$(dirname ${i})" + done + + mv "${WORKDIR}"/texmf* "${B}" || die "failed to move texmf files" + + cd "${B}" + #EPATCH_MULTI_MSG="Applying patches from upstream bugfix branch..." EPATCH_SUFFIX="patch" epatch "${WORKDIR}/gentoo_branch2011_patches" + EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches" + + elibtoolize +} + +src_configure() { + # It fails on alpha without this + use alpha && append-ldflags "-Wl,--no-relax" + + # Too many regexps use A-Z a-z constructs, what causes problems with locales + # that don't have the same alphabetical order than ascii. Bug #242430 + # So we set LC_ALL to C in order to avoid problems. + export LC_ALL=C + tc-export CC CXX AR RANLIB + ECONF_SOURCE="${B}" \ + econf -C \ + --bindir="${EPREFIX}"/usr/bin \ + --datadir="${S}" \ + --with-system-freetype2 \ + --with-system-zlib \ + --with-system-libpng \ + --with-system-xpdf \ + --with-system-poppler \ + --with-system-teckit \ + --with-teckit-includes="${EPREFIX}"/usr/include/teckit \ + --with-system-kpathsea \ + --with-kpathsea-includes="${EPREFIX}"/usr/include \ + --with-system-icu \ + --with-system-ptexenc \ + --with-system-harfbuzz \ + --with-system-icu \ + --with-system-graphite2 \ + --with-system-cairo \ + --with-system-pixman \ + --with-system-zziplib \ + --with-system-libpaper \ + --without-texinfo \ + --disable-dialog \ + --disable-multiplatform \ + --enable-epsfwin \ + --enable-mftalkwin \ + --enable-regiswin \ + --enable-tektronixwin \ + --enable-unitermwin \ + --with-ps=gs \ + --disable-psutils \ + --disable-t1utils \ + --enable-ipc \ + --disable-biber \ + --disable-bibtex-x \ + --disable-dvipng \ + --disable-dvipsk \ + --disable-chktex \ + --disable-lcdf-typetools \ + --disable-pdfopen \ + --disable-ps2eps \ + --disable-ps2pkm \ + --disable-detex \ + --disable-ttf2pk2 \ + --disable-tex4htk \ + --disable-cjkutils \ + --disable-xdvik \ + --disable-xindy \ + --enable-luatex \ + --disable-dvi2tty \ + --disable-dvisvgm \ + --disable-vlna \ + --enable-shared \ + --disable-native-texlive-build \ + --disable-largefile \ + $(use_enable xetex) \ + $(use_enable cjk ptex) \ + $(use_enable cjk eptex) \ + $(use_enable cjk uptex) \ + $(use_enable cjk euptex) \ + $(use_enable cjk mendexk) \ + $(use_enable cjk makejvf) \ + $(use_enable tk texdoctk) \ + $(use_with X x) +} + +src_compile() { + tc-export CC CXX AR RANLIB + emake SHELL="${EPREFIX}"/bin/sh texmf="${EPREFIX}"${TEXMF_PATH:-/usr/share/texmf-dist} || die "emake failed" + + cd "${B}" + # Mimic updmap --syncwithtrees to enable only fonts installed + # Code copied from updmap script + for i in `egrep '^(Mixed|Kanji)?Map' "texmf-dist/web2c/updmap.cfg" | sed 's@.* @@'`; do + texlive-common_is_file_present_in_texmf "$i" || echo "$i" + done > "${T}/updmap_update" + { + sed 's@/@\\/@g; s@^@/^MixedMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update" + sed 's@/@\\/@g; s@^@/^Map[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update" + sed 's@/@\\/@g; s@^@/^KanjiMap[ ]*@; s@$@$/s/^/#! /@' <"${T}/updmap_update" + } > "${T}/updmap_update2" + sed -f "${T}/updmap_update2" "texmf-dist/web2c/updmap.cfg" > "${T}/updmap_update3"\ + && cat "${T}/updmap_update3" > "texmf-dist/web2c/updmap.cfg" +} + +src_install() { + dodir ${TEXMF_PATH:-/usr/share/texmf-dist}/web2c + emake DESTDIR="${D}" texmf="${ED}${TEXMF_PATH:-/usr/share/texmf-dist}" run_texlinks="true" run_mktexlsr="true" install || die "install failed" + + cd "${B}" + dodir /usr/share # just in case + cp -pR texmf-dist "${ED}/usr/share/" || die "failed to install texmf trees" + cp -pR "${WORKDIR}"/tlpkg "${ED}/usr/share/" || die "failed to install tlpkg files" + + # When X is disabled mf-nowin doesn't exist but some scripts expect it to + # exist. Instead, it is called mf, so we symlink it to please everything. + use X || dosym mf /usr/bin/mf-nowin + + docinto texk + cd "${B}/texk" + dodoc ChangeLog README || die "failed to install texk docs" + + docinto dviljk + cd "${B}/texk/dviljk" + dodoc ChangeLog README NEWS || die "failed to install dviljk docs" + + docinto makeindexk + cd "${B}/texk/makeindexk" + dodoc ChangeLog NOTES README || die "failed to install makeindexk docs" + + docinto web2c + cd "${B}/texk/web2c" + dodoc ChangeLog NEWS PROJECTS README || die "failed to install web2c docs" + + use doc || rm -rf "${ED}/usr/share/texmf-dist/doc" + + dodir /etc/env.d + echo 'CONFIG_PROTECT_MASK="/etc/texmf/web2c /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d"' > "${ED}/etc/env.d/98texlive" + # populate /etc/texmf + keepdir /etc/texmf/web2c + + # take care of updmap.cfg and language.d files + keepdir /etc/texmf/{updmap.d,language.dat.d,language.def.d,language.dat.lua.d} + + mv "${ED}${TEXMF_PATH}/web2c/updmap.cfg" "${ED}/etc/texmf/updmap.d/00updmap.cfg" || die "moving updmap.cfg failed" + + # Remove fmtutil.cnf, it will be regenerated from /etc/texmf/fmtutil.d files + # by texmf-update + rm -f "${ED}${TEXMF_PATH}/web2c/fmtutil.cnf" + # Remove bundled and invalid updmap.cfg + rm -f "${ED}/usr/share/texmf-dist/web2c/updmap.cfg" + + texlive-common_handle_config_files + + keepdir /usr/share/texmf-site + + # the virtex symlink is not installed + # The links has to be relative, since the targets + # is not present at this stage and MacOS doesn't + # like non-existing targets + dosym tex /usr/bin/virtex + dosym pdftex /usr/bin/pdfvirtex + + # Rename mpost to leave room for mplib + mv "${ED}/usr/bin/mpost" "${ED}/usr/bin/mpost-${P}" + dosym "mpost-${P}" /usr/bin/mpost + + # Ditto for pdftex + mv "${ED}/usr/bin/pdftex" "${ED}/usr/bin/pdftex-${P}" + dosym "pdftex-${P}" /usr/bin/pdftex +} + +pkg_postinst() { + etexmf-update + + elog + elog "If you have configuration files in ${EPREFIX}/etc/texmf to merge," + elog "please update them and run ${EPREFIX}/usr/sbin/texmf-update." + elog + ewarn "If you are migrating from an older TeX distribution" + ewarn "Please make sure you have read:" + ewarn "http://www.gentoo.org/proj/en/tex/texlive-migration-guide.xml" + ewarn "in order to avoid possible problems" + elog + elog "TeXLive has been split in various ebuilds. If you are missing a" + elog "package to process your TeX documents, you can install" + elog "dev-tex/texmfind to easily search for them." + elog +} |